- Allow periods in arguments to be ignored when parsing cacheKeys: If your query arguments include periods they will no longer cause broken cache keys. This means the cached data for those queries can be correctly found and returned. The caveat with this change though is that if you use a persisted cache, after the upgrade you could see cache misses and the data would be refetched. #2057 - Thanks to Hesham Salman for the contribution.
- Fixed -
Sendable
classJavaScriptError
cannot inherit from another class other thanNSObject
: Xcode 13.3 introduced some additional requirements forError
types andJavaScriptError
did not conform causing compile errors inApolloCodegenLib
. This change disablesSendable
type checking forJavaScriptError
while maintaining type-safety across concurrency boundaries. #2147 - Thank you to Tiziano Coroneo for the contribution. - Fixed - Watcher using a policy that shouldn't hit the network, can still hit the network: If the cache policy given to the
watch(query:cachePolicy:)
method ofApolloClient
was.returnCacheDataDontFetch
it could still trigger a remote fetch of the query. - Thank you to Peter Potrebic for raising the issue. - BREAKING CHANGE -
graphql-ws
Protocol Support: We've added official support for the graphql-ws library and itsgraphql-transport-ws
protocol. This is a breaking change because theWebSocket
initializers now require you to specify which protocol to use.