Skip to content

Latest commit

Β 

History

History
111 lines (93 loc) Β· 3.93 KB

CHANGELOG.md

File metadata and controls

111 lines (93 loc) Β· 3.93 KB

Change Log

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.

RoadMap

Add

  • 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

Unreleased

v1.2.0

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

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.3

Changed

  • Readme.md - fixed definitions, improved by new changes
  • improved logs and some logic of Enchanted InMemory Cache at EnchantedInMemoryCache.js

v1.1.2

Changed

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

v1.1.1

Changed

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

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

v1.0.3

Changed

  • utils:
    • set() is stable for empty array path
  • helpers:
    • updateQueryHandler() changed arguments structure - Breaking changes!
  • Improved Readme.md

v1.0.2

Changed

  • 1.0.1 skipped because of npm publish issue
  • renamed from Enhanced to Enchanted, just because I want and npm publish issue ;)

v1.0.0

Changed

  • πŸ› bug-fixes
  • improvements in Utils, Helpers, Docs & Dependencies
  • added ability for deep merge of queries

v1.0.0-alpha - DO NOT USE!

Added

  • initiation of all basic files
  • dependencies
  • improvements of dependencies & Docs
  • πŸ› bug-fixes
  • stable and ready for usage