Skip to content

v1.2.0 - adapted for Web with `localStorage` support

Latest
Compare
Choose a tag to compare
@kosiakMD kosiakMD released this 21 Jul 20:02
· 2 commits to master since this release

Changed

*Breaking changes

  • added as 3rd EnchantedInMemoryCache param AppStorage - support of both AsyncStorage and LocalStorage via Dependency Injection as GraphQLStorage (previous storage)
  • EnchantedInMemoryCache 3rd param logs became 4th
  • AppStorage and GQLStorage are not more available directly and as set of static only methods - they are created with dependencies provided as params in enchantInMemoryCache 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