💾 Offline storage, improved. Wraps IndexedDB, WebSQL, or localStorage using a simple but powerful API.
Includes fix for #760 but removes the accidental breaking API change around dropInstance
when using defineDriver
.
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 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
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
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 #562.
1.4.3 fixed #501.
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.
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)
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)
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)