-
Add browser JS support to
normalized-cache-sqlite
(#177)With this change,
NormalizedCache
/CacheManager
/ApolloStore
APIs are nowsuspend
. -
Add
ApolloClient.Builder.cache()
extension generation (#181)This generates a convenience
cache()
extension which configures theCacheKeyGenerator
,MetadataGenerator
,CacheResolver
, andRecordMerger
based
on the type policies, connection types, and max ages configured in the schema:val apolloClient = ApolloClient.Builder() // ... .cache(cacheFactory = /*...*/) .build()
-
Add ability to control clock used for received and expiration dates, for tests (#189)
-
[Breaking] Disable optimistic updates by default (#190)
To use optimistic updates, apps must now opt in, by passing
enableOptimisticUpdates = true
to thenormalizedCache
method. This was done as an optimization on native targets.