Releases: kosiakMD/apollo-enchanted-cache-inmemory
Releases Β· kosiakMD/apollo-enchanted-cache-inmemory
v1.2.0 - adapted for Web with `localStorage` support
Changed
*Breaking changes
- added as 3rd EnchantedInMemoryCache param
AppStorage
- support of bothAsyncStorage
andLocalStorage
via Dependency Injection asGraphQLStorage
(previousstorage
) - EnchantedInMemoryCache 3rd param
logs
became 4th AppStorage
andGQLStorage
are not more available directly and as set of static only methods - they are created with dependencies provided as params inenchantInMemoryCache
and set as properties to the new "enchanted" cache:
const cache = createEnchantedInMemoryCache(...);
const GQLStorage = cache.GQLStorage; // to get `GQLStorage`
const AppStorage = cache.AppStorage; // to get `AppStorage`
- improved Readme Docs
v1.2.0-beta.0
Changed
*Breaking changes
Details:
- added as 3rd EnchantedInMemoryCache param
AppStorage
- support of bothAsyncStorage
andLocalStorage
via Dependency Injection asGraphQLStorage
(previousstorage
) - EnchantedInMemoryCache 3rd param
logs
became 4th AppStorage
andGQLStorage
are not more available directly and as set of static only methods - they are created with dependencies provided as params inenchantInMemoryCache
and set as properties to the new "enchanted" cache:
const cache = createEnchantedInMemoryCache(...);
const GQLStorage = cache.GQLStorage; // to get `GQLStorage`
const AppStorage = cache.AppStorage; // to get `AppStorage`
v1.1.2
v1.1.1
v1.1.0
v1.1.0
Changed
*Breaking changes
updateQueryHandler
name changed toupdateQueryHelper
*updateQueryHelper
has new paramupdater
instead ofretriever
in case of updating withupdateName
only!*retriever
can be used in case of string withstoreName
as previouslynestedFromArray
renamed tonestByArrayPath
*- README.md - huge update with actual usage examples, types, etc
- code documentation small updates
Added
updateQueryHelper
*nestByArrayPath
*- new
updateQueryHelper
paramupdater
instead ofretriever
in case of updating withupdateName
only!*
Removed
updateQueryHelper
*nestedFromArray
*
Fixed
- utility
set
- could cause a bug with deep (2+) nesting objects into empty object
Utils, Helpers and Readme improvements
Changed:
contains braking changes!
- utils:
- set() is stable for empty array path
- helpers:
- updateQueryHandler() changed arguments structure - BRAKING CHANGES!
- Improved Readme.md
For npm publish only
Upgraded version because of npm
"publish" issue
Enhanced -> Enchanted
Renamed from Enhanced
to Enchanted
, just because I want and npm
publish issue ;)