LocalForage Versions Save

💾 Offline storage, improved. Wraps IndexedDB, WebSQL, or localStorage using a simple but powerful API.

1.10.0

2 years ago
  • Avoid uncaught error in dropInstance. You can now catch errors thrown by dropInstance, see #807.

1.9.0

3 years ago
  • 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.

1.8.0

3 years ago

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

1.7.4

3 years ago
  • Use openKeyCursor instead of openCursor for key() retrieval. Props to @MeMark2 for the fix, and thanks to @lincolnthree and @f for additional testing!

1.7.3

5 years ago

This release adds an .npmignore file to reduce the package size of localForage when installed via NPM. That's it! 😄

1.7.1

6 years ago

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.

1.7.0

6 years ago

This is a largely minor release but we've added support for the "module" property in package.json–see #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: https://github.com/localForage/localForage/issues/805#issuecomment-377500059 (thanks to @brettz9 for the tip!)

1.6.0

6 years ago

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.

1.5.7

6 years ago

1.5.6

6 years ago

Upgrade lie version.