Skip to content

Releases: kosiakMD/apollo-enchanted-cache-inmemory

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

21 Jul 20:02
Compare
Choose a tag to compare

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

v1.2.0-beta.0

13 Jul 21:27
Compare
Choose a tag to compare
v1.2.0-beta.0 Pre-release
Pre-release

Changed

*Breaking changes

Details:
  • 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`

v1.1.2

04 Jun 13:03
Compare
Choose a tag to compare

Changed

  • helpers / updateQueryHelper - added sourceDefault option (details in Readme)
  • utils - improved get utility
  • Readme - added sourceDefault definition

v1.1.1

04 Jun 12:18
Compare
Choose a tag to compare

Changed

  • Readme.md content link fix, fixed explanation comments' mistakes
  • helpers / updateQueryHelper: fixed missed default updateType

v1.1.0

02 Jun 14:17
Compare
Choose a tag to compare

v1.1.0

Changed

*Breaking changes

  • updateQueryHandler name changed to updateQueryHelper*
  • updateQueryHelper has new param updater instead of retriever in case of updating with updateName only!* retriever can be used in case of string with storeName as previously
  • nestedFromArray renamed to nestByArrayPath*
  • README.md - huge update with actual usage examples, types, etc
  • code documentation small updates

Added

  • updateQueryHelper*
  • nestByArrayPath*
  • new updateQueryHelper param updater instead of retriever in case of updating with updateName only!*

Removed

  • updateQueryHelper*
  • nestedFromArray*

Fixed

  • utility set - could cause a bug with deep (2+) nesting objects into empty object

Utils, Helpers and Readme improvements

01 Jun 15:33
Compare
Choose a tag to compare

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

30 May 08:52
Compare
Choose a tag to compare

Upgraded version because of npm "publish" issue

Enhanced -> Enchanted

30 May 01:03
Compare
Choose a tag to compare

Renamed from Enhanced to Enchanted, just because I want and npm publish issue ;)