Releases: localForage/localForage
Avoid dropInstance uncaught errors
Improved TypeScript definition
- Fixed TypeScript definition for
getItem
. It now notes thatgetItem
can returnnull
, so this change may cause TypeScript code that didn't account fornull
values to fail. See #980.
This was shipped as a minor release as it has the potential to break TypeScript checks that weren't checking for a null
return value from getItem
. Note that this version otherwise introduces no new features, so you can upgrade later when you're ready to fix code to check for null
return values for getItem
calls.
Added ESM support
No changes to code, but added a module
field in package.json
for better ESM support. See: #940.
Improvement to key() retrieval
- Use
openKeyCursor
instead ofopenCursor
forkey()
retrieval. Props to @MeMark2 for the fix, and thanks to @lincolnthree and @f for additional testing!
Add npmignore
This release adds an .npmignore
file to reduce the package size of localForage when installed via NPM. That's it! 馃槃
Revert module support in package.json (for now)
The fix to #805 broke things for people and needs more testing to work, so this reverts things back to pre-module field days 馃槃
If your Webpack build was breaking with 1.7.0
, this should fix it.
Add support for package.json "module" prop
This is a largely minor release but we've added support for the "module" property in package.json
鈥搒ee #805.
Bumping a minor version to make sure people's builds don't break with the new property.
If you are experiencing build errors with webpack after upgrading, try changing your mainFields
webpack config: #805 (comment) (thanks to @brettz9 for the tip!)
Add dropInstance() method!
Adds dropInstance()
method to localforage.
This will be an optional method for custom drivers to preserve compatibility in an effort to not make this a breaking change. Custom driver that doesn't provide the dropInstance()
method will reject with a respective error when this method is invoked.
Further improves IDB driver reliability by trying to reestablish closed connections or upgraded stores.
Fix IE8 localStorage support detection
1.5.7 Bump version for 1.5.7 hotfix
Upgrade lie to work with yarn
Upgrade lie version.