- Updated required version of
apollo-clito1.9. A nice addition to1.9.2is 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
wrongTypecase being returned by theJSONDecodingErrorimplementation ofMatchable. (#367) - Added delegate for WebTransport which can handle connection/reconnection/disconnection events of websocket. (#379)
- Since
apollo-codegenis now part of the newapollo-cli, the build script used to generateAPI.swiftneeds 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
fragmentswhen 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
nulland a property not being present.