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