Skip to content

Releases: localForage/localForage

Avoid dropInstance uncaught errors

18 Aug 21:22
7323475
Compare
Choose a tag to compare
  • Avoid uncaught error in dropInstance. You can now catch errors thrown by dropInstance, see #807.

Improved TypeScript definition

31 Jul 18:37
c1cc34f
Compare
Choose a tag to compare
  • Fixed TypeScript definition for getItem. It now notes that getItem can return null, so this change may cause TypeScript code that didn't account for null 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

20 Jul 22:34
d016798
Compare
Choose a tag to compare

No changes to code, but added a module field in package.json for better ESM support. See: #940.

Improvement to key() retrieval

05 Jun 20:39
5f7057c
Compare
Choose a tag to compare
  • Use openKeyCursor instead of openCursor for key() retrieval. Props to @MeMark2 for the fix, and thanks to @lincolnthree and @f for additional testing!

Add npmignore

26 Oct 22:47
44ef806
Compare
Choose a tag to compare

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)

30 Mar 18:51
e4b4c94
Compare
Choose a tag to compare

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

30 Mar 09:12
098e119
Compare
Choose a tag to compare

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!

03 Mar 09:08
Compare
Choose a tag to compare

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

23 Feb 10:39
Compare
Choose a tag to compare
1.5.7

Bump version for 1.5.7 hotfix

Upgrade lie to work with yarn

18 Jan 14:01
8ef88fb
Compare
Choose a tag to compare

Upgrade lie version.