- Updated required version of
apollo-cli
to1.9
. A nice addition to1.9.2
is that Swift Enums now conforms to Hashable enabling among other things comparision between fetch objects. (#578) - Fixed internal bug that caused infinite reconnection cycle when connection is lost. A reconnectionInterval was added as a workaround. (#368)
- Fixed internal bug that prevents the
wrongType
case being returned by theJSONDecodingError
implementation ofMatchable
. (#367) - Added delegate for WebTransport which can handle connection/reconnection/disconnection events of websocket. (#379)
- Since
apollo-codegen
is now part of the newapollo-cli
, the build script used to generateAPI.swift
needs to be updated. See the docs for the updated script.
-
Added read and write functions for fine-grained manual store updates.
-
Added support for pluggable asynchronous caches, with an optional experimental SQLite implementation.
-
Fragments are now merged into the parent result, so you only need to go through
fragments
when you want to pass a fragment explicitly. -
Generated result models are no longer immutable (but still obey value semantics).
-
Generated result models now have memberwise initializers (when they represent a concrete type) or type-specific factory methods (when they represent multiple possible types).
-
Any generated result model can be safely initialized from a JSON object (
init(jsonObject:)
and converted into ajsonObject
. -
Generated input objects now differentiate between a property being
null
and a property not being present.