Repository navigation
Version 0.15.0
-
BREAKING: Finally swapped out
URLSessionConfigurationon initializer forHTTPNetworkTransportto useURLSessiondirectly instead. If you were previously passing in a configuration, first hand it to aURLSessioninstance and then pass that instance into the initializer.This allows many new things including:
- Support for background sessions
- Easier mocking through
NSURLProtocol - Certificate pinning
- Self-signed certificates
- Metrics inspection
- Authentication challenge handling
All these are pretty much entirely through the ability to use URLSessionDelegate directly since we're now accepting a URLSession you can declare yourself to be the delegate of rather than just the configuration. (#699, inspired by #265)
- BREAKING, though hopefully in a good way: Significant updates to the Upload functionality to make it conform more closely to the GraphQL Upload Spec. Also added a goodly bit of documentation around this functionality. (#707)
- Way better support for Swift Package Manager, especially for
ApolloSQLiteandApolloWebSocket. (#674) - Created
ApolloClientProtocolto match all public methods ofApolloClientfor easier mocking. (#715, inspired by #693)