Skip to content

Releases: apollographql/apollo-kotlin-normalized-cache

v1.0.0-alpha.3

06 Jun 14:38
b5cf6dd
Compare
Choose a tag to compare

With this release, the Normalized Cache requires Apollo Kotlin 4.3.0 or later.
This is necessary to ensure the cache compiler plugin can be used while other compiler plugins are also used.

  • Update Apollo compiler plugin to 4.3 API (#169)
  • Make deprecations less annoying (#163)
  • Don't assume presence of keyFields on @typePolicy (#162)
  • Bump sqldelight to 2.1.0 (#167)

v1.0.0-alpha.2

20 May 07:55
43800c7
Compare
Choose a tag to compare
  • The computation of cache keys when multiple key fields are used has changed to avoid potential collisions. Note: this can lead to cache misses after upgrading to this version. (#80)
  • Make SQL cache more robust. (#152)
  • Support simple list cases in FieldPolicyCacheResolver. (#142)
  • Fragments selecting the key fields are now automatically added for union members and interface possible types by the compiler plugin. (#141)
  • Introduce CacheKey.Scope. (#102)

v1.0.0-alpha.1

28 Apr 14:52
5b40dcb
Compare
Choose a tag to compare
  • Rename ApolloStore to CacheManager and SimpleApolloStore to ApolloStore. (#134)
  • Revert the ApolloClient.apolloStore deprecation - keeping the original name makes more sense now after the above rename. (#134)
  • Add ApolloStore.removeOperation() and ApolloStore.removeFragment(). (#135)

v0.0.9

09 Apr 17:38
db95600
Compare
Choose a tag to compare

Release 0.0.9 (#129)

  • Removing "incubating" from the repository and artifacts name. With a stable API on the horizon, now is a great time to try the library in your projects and give us feedback.
    The artifacts are now:

    • com.apollographql.cache:normalized-cache for the memory cache
    • com.apollographql.cache:normalized-cache-sqlite for the SQL cache.

    The package names are unchanged.

  • Records are now rooted per operation type (QUERY_ROOT, MUTATION_ROOT, SUBSCRIPTION_ROOT) (#109)

  • ApolloClient.apolloStore is deprecated in favor of ApolloClient.store for consistency. (#127)

  • ApolloClient.apolloStore now returns a SimpleApolloStore, a wrapper around ApolloStore that doesn't need a CustomScalarAdapters to be passed to read/write methods. (#123)

v0.0.8

28 Mar 15:08
3f6ebec
Compare
Choose a tag to compare

v0.0.8

  • Storage binary format is changed to be a bit more compact
  • Add ApolloStore.trim() to remove old data from the cache
  • CacheKey is used in more APIs instead of String, for consistency.
  • ApolloCacheHeaders.EVICT_AFTER_READ is removed. ApolloStore.remove() can be used instead.
  • NormalizedCache.remove(pattern: String) is removed. Please open an issue if you need this feature back.

v0.0.7

03 Mar 16:38
97283f2
Compare
Choose a tag to compare
  • Store errors in the cache, and remove storePartialResponses() (#96)

v0.0.6

11 Feb 11:40
bf71d23
Compare
Choose a tag to compare
  • Add ApolloStore.ALL_KEYS to notify all watchers (#87)
  • Support partial responses from the cache (#57)

v0.0.5

18 Dec 12:12
6a6c25b
Compare
Choose a tag to compare

v0.0.4

07 Nov 11:11
0fa5bd1
Compare
Choose a tag to compare
  • Cache control support (see the documentation for details)
  • Compatibility with the IntelliJ plugin cache viewer (#42)
  • For consistency, MemoryCacheFactory and MemoryCache are now in the com.apollographql.cache.normalized.memory package
  • Remove deprecated symbols
  • Add IdCacheKeyGenerator and IdCacheKeyResolver (#41)
  • Add ApolloStore.writeOptimisticUpdates API for fragments (#55)

v0.0.3

20 Sep 14:31
4e4c5c1
Compare
Choose a tag to compare

release 0.0.3 (#39)

Co-authored-by: librarian[bot] <librarian[bot]@users.noreply.github.com>