Skip to content

Releases: apollographql/apollo-ios

Version 0.27.1

04 May 19:27
Compare
Choose a tag to compare
  • Better defense against multithreading crashes in URLSessionClient. (#1184)
  • Fix for watchOS availability for URLSessionClient. (#1175)

Version 0.25.1

01 May 00:57
Compare
Choose a tag to compare
  • Repoints download link to our CDN for the CLI.

Version 0.24.1

01 May 00:49
Compare
Choose a tag to compare
  • Repoints download link to our CDN for the CLI.

Version 0.23.3

01 May 00:40
Compare
Choose a tag to compare
  • Repoints download link to our CDN for the CLI.

Version 0.22.1

01 May 00:31
Compare
Choose a tag to compare
  • Repoints download link to our CDN for the CLI.

Version 0.21.1

01 May 00:22
Compare
Choose a tag to compare
  • Repoints download link to our CDN for the CLI.

Version 0.20.1

01 May 00:15
Compare
Choose a tag to compare
  • Repoints download link to our CDN for the CLI.

Version 0.19.1

01 May 00:08
Compare
Choose a tag to compare
  • Repoints download link to our CDN for the CLI.

Version 0.18.2

01 May 00:03
Compare
Choose a tag to compare
  • Repoints download link to our CDN for the CLI.

Version 0.27.0

28 Apr 04:22
Compare
Choose a tag to compare
  • BREAKING: Replaced calls directly into the closure based implementation of URLSession with a delegate-based implementation called URLSessionClient.
    • This (finally) allows background session configurations to be used with ApolloClient, since background session configurations immediately error out if you try to use the closure-based URLSession API.

    • This makes a significant change to the initialization of HTTPNetworkTransport if you're using a custom URLSession: Because URLSession must have its delegate set at the point of creation, URLSessionClient is now creating the URL session. You can initialize a URLSessionClient with a URLSessionConfiguration. if before you were using:

      let session = URLSession(configuration: myCustomConfiguration)
      let url = URL(string: "http://localhost:8080/graphql")!
      let transport = HTTPNetworkTransport(url: url,
                                           session: session)

      You will now need to use:

      let client = URLSessionClient(sessionConfiguration: myCustomConfiguration)
      let url = URL(string: "http://localhost:8080/graphql")!
      let transport = HTTPNetworkTransport(url: url,
                                           client: client)
    • If you were passing in a session you'd already set yourself up to be the delegate of to handle GraphQL requests, you'll need to subclass URLSessionClient and override any delegate methods off of URLSessionDelegate, URLSessionTaskDelegate, or URLSessionDataDelegate you need to handle. Unfortunately only one class can be a delegate at a time, and that class must be declared when the session is instantiated.

      Note that if you don't need your existing delegate-based session to do any handling for things touched by Apollo, you can keep it completely separate if you'd prefer.

    • This does not change anything at the point of calls - everything is still closure-based in the end

      Please file bugs on this ASAP if you run into problems. Thank you! (#1163)