Releases: apollographql/apollo-kotlin-normalized-cache
v1.0.0-alpha.3
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.
v1.0.0-alpha.2
- 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
v0.0.9
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 cachecom.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 ofApolloClient.store
for consistency. (#127) -
ApolloClient.apolloStore
now returns aSimpleApolloStore
, a wrapper aroundApolloStore
that doesn't need aCustomScalarAdapters
to be passed to read/write methods. (#123)
v0.0.8
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 ofString
, 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
v0.0.6
v0.0.5
- Add Garbage Collection support (see the documentation for details)
v0.0.4
- Cache control support (see the documentation for details)
- Compatibility with the IntelliJ plugin cache viewer (#42)
- For consistency,
MemoryCacheFactory
andMemoryCache
are now in thecom.apollographql.cache.normalized.memory
package - Remove deprecated symbols
- Add
IdCacheKeyGenerator
andIdCacheKeyResolver
(#41) - Add
ApolloStore.writeOptimisticUpdates
API for fragments (#55)