- update travis link/shield (63f97d8d)
- add support for getting/setting an object with a special constructor (e.g., Date, Blob etc.) (#140) (0089530c)
- Always remove $$hashKey from object or array objects (1237fac1)
- Use correct error handler parameter (2b01f4ec)
- Do not copy value on setItem (6a42de38)
- Add return to AMD module loading (467b988)
- Fix SystemJS loading (18c91d2)
- If there is no root, use angular from window (bcb80690)
- Fix unit test documentation (f821f464)
- Update API reference for getItem (283bc263)
- Update API reference and tests for iteration to include iterationNumber examples (fe8bd37)
- Change getItem(string[]) to return null for unknown keys instead of undefined (4397b7db)
- require localforage ~1.2.10 (b75ef139, #84)
- gulpfile.js missing done var in build task (670398ab)
- ArrayBuffer binary type is now supported (7b1be931)
- require localforage ~1.2.10 (b75ef139, #84)
- gulpfile.js missing done var in build task (670398ab)
- ArrayBuffer binary type is now supported (7b1be931)
- Fixed $localForage.bind with falsey defaults (+ test). (c686347b)
- getItem returns null for unknown key (c88e346, #55)
- Blob fix for IE9 (f3774641)
- new method
pull
(0a1cf013, #38) - you can now get, set and remove multiple items at the same time (8b304633, #35)
- new method
iterate
(3e942732, #42)
- due to 3e942732,
the method
search
has been removed and replaced withiterate
that can potentially do the same but is based on the localForage functioniterate
and is way more optimised.
Fixes #42
- Added search functionality (220110bd)
- Script loading for require.js (56647fdf, #26)
- Update to localforage 1.1.1
- You can now use multiple instances of localForage (see the Readme file for more info).
- You can use a
name
option with bind and with the directive to specify which instance to use. - Slightly better examples (I could do much better)
-
The following deprecated functions have been removed: getDriver, set, get, remove, clearAll, getKeyAt, getLength
-
getKeys is now deprecated, use the function keys instead (following the naming convention from localForage).
-
Because localForage now takes into account the prefix for localStorage, this lib will no longer add its own prefix to localStorage variables. If you want to ensure compability with values stored in localStorage before this release, you need to add
oldPrefix: true
to your provider's configuration:$localForageProvider.config({ oldPrefix: true });
If you don't do that, you won't be able to access those old data, and they will stay in localStorage. This doesn't affect other storages (indexedDB & WebSQL).
-
The method
bind
and the directive have changed:storeName
has been replaced byscopeKey
to avoid confusion with thestoreName
from config and to be more self explicit.key
is now the name of the storage key. -
The method
unbind
now takes only 2 parameters (scope & key, or scope & config object).storeName
has also been replaced byscopeKey
.
- Better doc on the directive
- General cleanup
- Doc for the multiple instances
- use angular.copy before storing values (e4707d3e, #29)
- use correct model to allow multiple binding (42f41d3a, #28)
- fixed tests for all browsers (06258791)
- updated readme with lowercase name of the lib for bower & npm (809c6636)
- update to localforage 0.9.2 (e6c1f19f)
- Safari private browsing would not resolve (224fca6d)
- better fix for the Firefox private browsing invalidStateError (c566a19b)
- bump to localForage 0.9.1 and use of the new
keys
function (4f9431a6)
- invalidStateError in firefox private browsing (04f55e6f)
- readded changes that disappeared in the build for #16 (avoiding attributes from objects before store it on localforage) (c1175e0c)
- error on ipad (safari/chrome) where key could be null and throw an error (0011d110)
- remove $promise attributes from objects before we store them on localforage. (6f6f11ab)
- Added a validation for commits & a task to auto generate the changelog (f9658263)
- new tests for getItem/setItem functions (61efd115)
- instructions for contributing (2a84fc4c)
- Added gulpfile.js to test & build the dist files
- Fix bug #14 (broadcast removeItem: notify.setItem instead of notify.removeItem)
- Update localforage to 0.8.1
- Update bower.json to fix bug #12
- setPrefix has been removed from code
- setItem now returns the value set in the promise resolve
- Breaking change: due to changes in localForage, you now need to configure localforage before any call has been made to it (in your module config for example), you can't configure it after init
- Added an example app
- Moved angular-localForage files to dist folder and the files have been renamed in lowercase to keep consistency with localforage
- Fix bug with prefixing for localstorage (bug #10)
- Bump to localForage 0.3.1
- Bump to localForage 0.3.0
- Updated bower localstorage version to 0.2.0
- Added a changelog !
- Using localForage 0.1.1 with the new config options
- Breaking change: setPrefix has been removed, use the config function from now on
- Renamed all the functions to keep consistency with the localForage function names (set/get/remove/clearAll/getKeyAt/getLength/getDriver are renammed setItem/getItem/removeItem/clear/key/length/driver). The old function names are still available.
- Added a test to check for "InvalidStateError" due to private browsing in firefox and switching to localstorage when this is the case
- Fixed bug #4 removeItem needs to use prefix
- Added missing package.json (for tests) and updated tests