NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #3339 most downloaded on npm
Offline storage, improved.
Last release 5 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 1.6 years
Some releases are documented
notes for 31 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
62 releases · first in 2014
Avoid uncaught error in dropInstance. You can now catch errors thrown by dropInstance, see #807.
dropInstance. You can now catch errors thrown by dropInstance, see #807.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 n
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.
One column per quarter.
Reverted the ESM/module field change in #940, which broke many builds. See: #979. Sorry about that! 😓
module field change in #940, which broke many builds. See: #979. Sorry about that! 😓No changes to code, but added a module field in package.json for better ESM support. See: #940.
No changes to code, but added a module field in package.json for better ESM support. See: #940.
Use openKeyCursor instead of openCursor for key() retrieval. Props to @MeMark2 for the fix, and thanks to @lincolnthree and @f for additional testing!
openKeyCursor instead of openCursor for key() retrieval. Props to @MeMark2 for the fix, and thanks to @lincolnthree and @f for additional testing!This release adds an .npmignore file to reduce the package size of localForage when installed via NPM. That's it! 😄
This release adds an .npmignore file to reduce the package size of localForage when installed via NPM. That's it! 😄
.npmignore file to reduce package size when installed via npm.Nothing published for this version
The fix to #805 broke things for people and needs more testing to work, so this reverts things back to pre-module field days 😄
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.
This is a largely minor release but we've added support for the "module" property in package.json–see #805.
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!)
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…
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.
Nothing published for this version
Nothing published for this version
Includes fix for #760 but removes the accidental breaking API change around dropInstance when using defineDriver.
Includes fix for #760 but removes the accidental breaking API change around dropInstance when using defineDriver.
Fixes #760. Thanks to @tran2 for the fix! 😄
Fixes #760. Thanks to @tran2 for the fix! 😄
Check whether localStorage is actually usable while initializing the driver (#730 by @jesusbotella). When using Safari on Private Browsing mode and tr
Check whether localStorage is actually usable while initializing the driver (#730 by @jesusbotella). When using Safari on Private Browsing mode and trying to set the LocalStorage driver, will now property get a "No driver available" error on from .ready().
Thanks to everyone who made this release possible: @jesusbotella .
– @thgreasi
Nothing published for this version
Highlights: Try to re-establish IDB connection after an InvalidStateError (#694 by @stkao05). Really cool for long running apps. Added Generics to ite
Highlights:
Try to re-establish IDB connection after an InvalidStateError (#694 by @stkao05). Really cool for long running apps.
Added Generics to iterate() TS Typings (#713 by @DaSchTour).
Define custom drivers syncronously when _support isn't a function (#692 by @gabrielmaldi).
Use the custom driver API for internal drivers, which makes possible to override parts of their implementation.
Thanks to everyone who made this release possible: @jesusbotella, @dmlzj, @morkro, @DaSchTour, @5aledmaged, @eppfel, @stkao05, @gabrielmaldi, @Toub, and of course @tofumatt.
Thanks all!
– @thgreasi
This is a breaking change, see the CHANGELOG for more info.
Defaults to IndexedDB in Safari 10.1+ (#650). Pretty sweet!
This is a breaking change, see the CHANGELOG for more info.
Thanks to everyone who made this release possible: @nolanlawson, @michielbdejong, @dennismartensson, @ztamizzen, @stephanebachelier, @rparrapy, @iamolivinius, and of course @thgreasi.
Thanks all!
– @tofumatt
Fixes #516. Released as a new version in case anyone was "relying" on the bug to load a different driver.
Fixes #516. Released as a new version in case anyone was "relying" on the bug to load a different driver.
Fixes #562.
1.4.3 fixed #501.
* Fixes #562.
Fixes #520; browserify builds work properly
Nothing published for this version
This release is rewritten to use ES6 and webpack.
This release is rewritten to use ES6 and webpack.
I'll try to post more detailed release notes later. Right now I'm very tired :smile:
Thanks so much to @thgreasi, @sebweaver, and others for their hard work on this version.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Added the iterate() functionality to allow users to iterate through all available keys.
Added the iterate() functionality to allow users to iterate through all available keys. (#283)
Thanks so much to @lu4 for the work on this release! Also to @thgreasi for his work on #329. And to @nolanlawson for his Blob fixes! Thanks to @af7 for their work on localStorage bugs.
1.2.10: Fixes for browserify and webpack users (#439)
1.2.9: Fixes localStorage iterate issues (#407 and #428)
1.2.4: Fixes WebKit blob issues (#381)
1.2.3: Fixes a bug with require (#378)
1.2.2: Fixes a bug with webpack (#340)
1.2.1: Fixes a bug with odd-length ArrayBuffer (#285)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Custom drivers can now be created using the defineDriver() method. (See #282 for details.)
Custom drivers can now be created using the defineDriver() method. (See #282 for details.)
Thanks again to @thgreasi for this awesome release! :+1:
1.1.1: Fixes a bug with IE IndexedDB support not being recognized (#284; thanks @Evgenus for the fix)
Nothing published for this version
Stable API for localForage featuring node-style, error-first callbacks. Also includes great work from @thgreasi: multiple instances of localForage on
Stable API for localForage featuring node-style, error-first callbacks. Also includes great work from @thgreasi: multiple instances of localForage on the same page.
Use IndexedDB, WebSQL, or localStorage from one simple, key/value pair API using localForage.
Thanks so much to all of our pre-1.0 contributors! Couldn't have done it without you: @thgreasi, @ocombe, @thisandagain, @lejenome, @sole, @nantunes, @magalhas, @pgherveou, @ahanriat, @Aleanar, @ahbeng, @tomByrer, @code-vicar, @davidguttman, @BlackGlory, @iamolivinius, @jviereck, @wmluke, @genkgo, @stephanebachelier, @peterbe, @andyburke, @jontewks, @albertogasparin, @willfarrell, @rubennorte, @pelish8, @adambutler, @potch, @bartek, @PatrickHeneise, @adig
:heart: :heart: :heart:
1.0.4: Namespaces when using the localStorage driver are now always respected. (#276; fixes #275)
1.0.3: config() accepts a new option: driver, so users can set the driver during config rather than using setDriver(). (#273; fixes #168)
1.0.2: Checks for Safari UA and disables IndexedDB on iOS 8/OS X Yosemite (as IndexedDB support on these platforms is currently broken). (#254)
1.0.1: Fixes a bug where localforage.clear() would delete all localStorage values instead of only the ones in the localforage namespace. (#246)
config() accepts a new option: driver, so users can set the driver during config rather than using setDriver(). (#273; fixes #168)
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
This release adds vastly improved tests using mocha and includes the ability to be run on sauce labs (and in-browser) for the first time. They are _wa
This release adds vastly improved tests using mocha and includes the ability to be run on sauce labs (and in-browser) for the first time. They are way faster and much easier to work on. :+1:
This version also includes support for the keys() method by @code-vicar and fixes many IE-specific bugs, especially in IndexedDB.
Version 0.9.2 fixes a few ES3 keyword bugs in IE and Cordova. (#201 and #202)
Version 0.9.1 fixes a bug with the ready() promise not being rejected on error.
Nothing published for this version
Nothing published for this version
Thanks so much to @wmluke for writing some great Web Worker tests for this release. :+1:
Adds support for Web Workers.
Thanks so much to @wmluke for writing some great Web Worker tests for this release. :+1:
Nothing published for this version
Nothing published for this version
This release adds the localforage.config() method, allowing localForage's config to be set after the library has been loaded (but before the first API
This release adds the localforage.config() method, allowing localForage's config to be set after the library has been loaded (but before the first API call).
This release improve all errors. (#60)
This release removes support for window.localForageConfig.
Put built versions back in dist/ directory.
dist/ directory.Remove support for window.localForageConfig.
Nothing published for this version
Nothing published for this version
Nothing published for this version
This is a bugfix release: localForage now uses WebSQL on certain Samsung Android Devices and possibly other browsers with an out-of-date IndexedDB spe
This is a bugfix release: localForage now uses WebSQL on certain Samsung Android Devices and possibly other browsers with an out-of-date IndexedDB spec.
Thanks to @albertogasparin for catching this bug and fixing it.
This release also includes all the goodies from 0.3.0, chiefly: localForage doesn't load backend drivers or databases until the first API call.
localForage now waits to load the backend storage driver until after the first public API call is made. This allows us to set the storage driver befor
localForage now waits to load the backend storage driver until after the first public API call is made. This allows us to set the storage driver before the first getItem()/setItem()/[etc.] API call and thus never erroneously load a driver. It should also improve performance.
Graças à @nantunes for his work on this patch.
localForage now supports storing ArrayBuffers, Blobs, and TypedArrays in all drivers. This allows things like MP3s or images to be saved offline in an
localForage now supports storing ArrayBuffers, Blobs, and TypedArrays in all drivers. This allows things like MP3s or images to be saved offline in any driver.
Additionally, this includes config options found in 0.1.1, allowing users to set the name of their database.
Added config options to allow users to set their own database names, etc.
Your coding agent can read these notes before it upgrades. Set up the MCP server →