All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- finish support for LocalStorage (e.g. add multiSet)!
- rewrite EnchantedInMemoryCache into
class
! - add tests
- ability for 2-ways updating linked/nested queries as optional
- migration support
- support Fragments
- support/restoring storing Queries with IDs
*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
*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`
- Readme.md - fixed definitions, improved by new changes
- improved logs and some logic of Enchanted InMemory Cache at EnchantedInMemoryCache.js
- helpers / updateQueryHelper - added sourceDefault option (details in Readme)
- utils - improved get utility
- Readme - added sourceDefault definition
- Readme.md content link fix, fixed explanation comments' mistakes
- helpers / updateQueryHelper: fixed missed default
updateType
*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
updateQueryHelper
*nestByArrayPath
*- new
updateQueryHelper
paramupdater
instead ofretriever
in case of updating withupdateName
only!*
updateQueryHelper
*nestedFromArray
*
- utility
set
- could cause a bug with deep (2+) nesting objects into empty object
- utils:
set()
is stable for empty array path
- helpers:
updateQueryHandler()
changed arguments structure - Breaking changes!
- Improved Readme.md
- 1.0.1 skipped because of npm publish issue
- renamed from
Enhanced
toEnchanted
, just because I want and npm publish issue ;)
- π bug-fixes
- improvements in Utils, Helpers, Docs & Dependencies
- added ability for deep merge of queries
- initiation of all basic files
- dependencies
- improvements of dependencies & Docs
- π bug-fixes
- stable and ready for usage