All Versions
Latest Version
Avg Release Cycle
10 days
Latest Release

Changelog History
Page 1

  • v0.49.1 Changes

    • ApolloSchemaDownloadConfiguration.HTTPHeader initializer was not public: The struct initializer that Swift automatically generates is marked with the internal access level, which meant that custom HTTP headers could not be added to an instance of ApolloSchemaDownloadConfiguration. #1962 - Thank you to Nikolai Sivertsen for the contribution!
    • πŸ“š Documentation update: Fixed an inline code block that had specified language where such specification is not supported. #1954 - Thank you to Kim RΓΈen for the contribution!
    • πŸ›  Fix - ApolloCodegenOptions could not find schema input file: - If you created ApolloSchemaDownloadConfiguration and ApolloCodegenOptions objects using only output folders the default output filename for the schema download was different from the default schema input filename for codegen. #1968 - Thank you to Arnaud Coomans for finding this issue!
  • v0.49.0 Changes

    • πŸ’₯ Breaking - Schema download is now Swift-based: The dependency on the Apollo CLI (Typescript-based) for schema downloading has been removed. Schema downloading is now Swift-based, outputs GraphQL SDL (Schema Definition Language) by default, and is maintainable/extensible within apollo-ios with full API documentation. This is a breaking change because some of the API signatures have changed. Swift scripting offers a convenient way to perform certain operations that would otherwise require the command line - it's worth a look if you haven't tried it yet. #1935
  • v0.48.0 Changes

    • Customizable subscription message identifiers: The WebSocketTransport initializer can be configured with a subclass of OperationMessageIdCreator to provide a unique identifier per request. The default implementation is ApolloSequencedOperationMessageIdCreator and retains the current behavior of sequential message numbering. #1919 - Thank you to Clark McNally for the contribution!
    • AWS AppSync Compatibility: Apollo-ios will now correctly handle the start_ack message that AWS AppSync servers respond with when a subscription is requested. #1919 - Thank you to Clark McNally for the contribution!
    • ⚑️ Updated to version 2.33.6 of the Apollo CLI: Applies some new vulnerability patches to the CLI, but should not change any output. #1929
    • πŸ‘Œ Improved documentation: Clarification of cache normalization concepts. #1710 - Thank you to Daniel Morgan for the contribution!
  • v0.47.1 Changes

    • πŸ›  Fixed - Websocket default implementation not included in ApolloWebSocket via Cocoapods: Thank you to ketenshi for the contribution!
  • v0.47.0 Changes

    • πŸ’₯ Breaking - Removed Starscream dependency: Due to dependency management conflicts it has become easier for us to maintain our WebSockets as part of the ApolloWebSockets target instead of an external dependency on a forked version of Starscream. #1906
      • Removed Starscream as an external dependency in Cocoapods and Swift Package Manager.
      • The DefaultWebSocket implementation has been replaced with WebSocket.
    • πŸ›  Fixed - clearCache not using the provided callback queue: ApolloClient was not passing the provided callback queue to ApolloStore and therefore the completion block for clearCache was being called on the main queue. #1904, #1901 - Thank you to Isaac Ressler for the contribution!
    • βœ‚ Removed - Swift playground: The playground has been moved to a separate repository. #1905
  • v0.46.0 Changes

  • v0.45.0 Changes

    • πŸ’₯ Breaking - Downgraded from Starscream v4 to v3! After upgrading to Starscream 4.0, a lot of our users started to experience crashes while using web sockets. We've decided to revert to the more stable Starscream version 3. In order to fix a few known bugs in Starscream 3, we have made a fork of Starscream that Apollo will depend on going forward. In preparation for moving to Apple WebSockets in the future, we have also fully inverted the dependency on Starscream. Between these two changes, a lot of breaking changes to our Web Socket API have been made:
      • The ApolloWebSocketClient protocol was removed and replaced with WebSocketClient.
      • WebSocketClient does not rely directly on Starscream anymore and has been streamlined for easier conformance.
      • ApolloWebSocket, the default implementation of the WebSocketClient has been replaced with DefaultWebSocket. This implementation uses Starscream, but implementations using other websocket libraries can now be created and used with no need for Starscream.
      • WebSocketClientDelegate replaces direct dependency on Starscream.WebSocketDelegate for delegates.
    • πŸ’₯ Breaking: Renamed some of the request chain interceptors object:
      • LegacyInterceptorProvider -> DefaultInterceptorProvider
      • LegacyCacheReadInterceptor -> CacheReadInterceptor
      • LegacyCacheWriteInterceptor -> CacheWriteInterceptor
      • LegacyParsingInterceptor -> JSONResponseParsingInterceptor
    • πŸ’₯ Breaking: WebSocketTransport is now initialized with an ApolloWebSocket (or other object conforming to the ApolloWebSocketClient protocol.) Previously, the initializer took in the necessary parameters to create the web socket internally. This provides better dependency injection capabilities and makes testing easier.
    • βœ‚ Removed class constraint on ApolloInterceptor and converted to structs for all interceptors that could be structs instead of classes.
    • βž• Added removeRecords(matching pattern: CacheKey) function to the normalized cache.
  • v0.44.0 Changes

    • πŸ’₯ BREAKING: Split ApolloCore into two more granular libraries, ApolloAPI (which will contain the parts necessary to compile generated code) and ApolloUtils (which will contain code shared between Apollo and ApolloCodegenLib). If you were previously importing ApolloCore, in most places you will need to import ApolloUtils. If you're using Carthage, you will need to remove the old ApolloCore xcframework and replace it with the two ApolloAPI and ApolloUtils frameworks. (#1817)
    • πŸ›  Fixed a stray CocoaPods warning. (#1769)
    • ⚑️ Updated the Typescript CLI to version 2.32.13. (#1773)
    • βž• Added the ability to specify a cachePolicy when calling refresh on a GraphQLWatcher. (#1802)
  • v0.43.0 Changes

    • πŸ’₯ BREAKING (or hopefully, fixing): We removed our test libraries from our Package.swift file since we're not using it to run tests directly at this time. This prevents SPM from trying to resolve test dependencies that are not actually used in the library, which should reduce any version conflicts. However, if you were using any of our test libs in an unsupported fashion, these will no longer be directly available. (#1745)
    • πŸ›  Fixed an issue where when Starscream returned multiple errors in close succession, an exponential number of web socket reconnections could be created. (#1762)
    • ⚑️ Updated class constraints to AnyObject constraints, which should silence a few warnings in 12.5 and be more forward compatible. (#1733)
    • βž• Added the ability to specify a callback queue for the result handler of GraphQLWatcher. (#1723)
    • πŸ›  Fixed a crash when closing a web socket connection and re-opening it immediately. (#1740)
    • ⚑️ You can now skip auto-reconnection for updating the header values and connecting payload in ApolloWebSocket. (#1759)
    • Now avoids the ? when generating a GET URL if queryItems is empty. (#1729)
    • ⚑️ Updated use of the default fetch policy to include fetch and watch. Note that under the hood, this does not change what fetch policy was pointed to at this time, it just centralizes the logic. (#1737)
  • v0.42.0 Changes

    • πŸ’₯ BREAKING: Finally updates our Starscream dependency to 4.0.x. Note that due to SOCKS proxy support being removed from Starscream, we've correspondeingly removed such support.(#1659)
    • πŸ’₯ BREAKING, but only to Swift Scripting: Updated ApolloSchemaOptions to more clearly handle introspection (ie, from a URL) vs registry (ie, from Apollo Studio) requests by using an enum. If you were passing in an endpointURL previously, you need to use the .introspection enum value going forward. Also changed the name of the field to match the new type. (#1691)
    • πŸ’₯ BREAKING: Removed CoadableParsingInterceptor and related code designed for new codegen (which is still in progress) since we were wildly over-optimistic on how quickly we'd be using it. (#1670)
    • πŸ›  Fixed an issue where tasks that were in the canceling state could trigger a No data found for task assertion failure. (#1677)
    • πŸ›  Fixed an issue with encoding + in GET requests. (#1653)
    • πŸ›  Fixed an issue where creating GET requests removed existing query params from the URL. (#1687)
    • 🌐 Prevented a retain cycle during web socket reconnection. (#1674)
    • βž• Added better handling for calling cancel on a RequestChain which has already been cancelled. (#1679)