Skip to content

Commit d93568f

Browse files
Release 0.50.0 (#2031)
* Update version number for release * Updated changelog for release * Update documentation for release changes * Update changelog for #2015
1 parent 46957a3 commit d93568f

7 files changed

Lines changed: 66 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Change log
22

3+
## v0.50.0
4+
- **Dropped SPM support for Swift 5.2**: The minimum version of the Swift tools and language compatibilty required to process the SPM manifest is Swift 5.3. This means a minimum of Xcode version 12 is required for Swift Package Manager support. [#1992](https://github.com/apollographql/apollo-ios/pull/1992)
5+
- **Removed unnecessary assertion failure**: The completion handler on `returnResultAsyncIfNeeded` is defined as optional but if not included would cause debug builds to crash with an `assertionFailure` in the case of a `failure` of the `Result`. [#2005](https://github.com/apollographql/apollo-ios/pull/2005) - _Thank you to [Richard Topchii](https://github.com/richardtop) for raising this issue!_
6+
- **`CachePolicy.default` is now a stored property**: It is now easier to configure a different default value for the `CachePolicy` property on any `ApolloClient` instance instead of having to override it in a subclass. [#1998](https://github.com/apollographql/apollo-ios/pull/1998) - _Thank you to [Tiziano Coroneo](https://github.com/TizianoCoroneo) for the contribution!_
7+
- **Exposed `cacheKey` function as `public`**: The access modifier of this function on `GraphQLField` has changed from `internal` to `public`. It is not recommended to rely on internal behaviour of the cache, and this is subject to change in future major versions. [#2014](https://github.com/apollographql/apollo-ios/pull/2014) - _Thank you to [Peter Potrebic](https://github.com/potrebic) for the discussion!_
8+
- **GET method support for `ApolloSchemaDownloader`**: Introspection-based schema downloads can now be queried using a GET request. [#2010](https://github.com/apollographql/apollo-ios/pull/2010) - _Thank you to [Mike Pitre](https://github.com/mikepitre) for the contribution!_
9+
- **Updated to version 2.33.9 of the Apollo CLI**: This update will add `__typename` fields to inline fragments in operations to match the output from the `client:push` CLI command which used for operation safelisting. This should not affect the behaviour of your operations. [#2028](https://github.com/apollographql/apollo-ios/pull/2028).
10+
- **Updated to version 0.13.1 of SQLite.swift**: This update brings in some iOS 14 fixes and new table functionality such as `upsert` and `insertMany`. [#2015](https://github.com/apollographql/apollo-ios/pull/2015) - _Thank you to [Hesham Salman](https://github.com/Iron-Ham) for the contribution._
11+
312
## v0.49.1
413
- **`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](https://github.com/apollographql/apollo-ios/pull/1962) - _Thank you to [Nikolai Sivertsen](https://github.com/nsivertsen) for the contribution!_
514
- **Documentation update**: Fixed an inline code block that had specified language where such specification is not supported. [#1954](https://github.com/apollographql/apollo-ios/pull/1954) - _Thank you to [Kim Røen](https://github.com/kimroen) for the contribution!_
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
CURRENT_PROJECT_VERSION = 0.49.1
1+
CURRENT_PROJECT_VERSION = 0.50.0

docs/source/api/Apollo/structs/GraphQLField.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ public init(_ name: String,
1515
arguments: FieldArguments? = nil,
1616
type: GraphQLOutputType)
1717
```
18+
19+
### `cacheKey(with:)`
20+
21+
```swift
22+
public func cacheKey(with variables: [String: JSONEncodable]?) throws -> String
23+
```

docs/source/api/ApolloCodegenLib/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
- [CodegenLogger.LogLevel](enums/CodegenLogger.LogLevel/)
6262
- [CompilationResult.OperationType](enums/CompilationResult.OperationType/)
6363
- [CompilationResult.Selection](enums/CompilationResult.Selection/)
64+
- [DownloadMethod.HTTPMethod](enums/DownloadMethod.HTTPMethod/)
6465
- [GraphQLType](enums/GraphQLType/)
6566

6667
## Extensions

docs/source/api/ApolloCodegenLib/enums/ApolloSchemaDownloadConfiguration.DownloadMethod.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ case apolloRegistry(_ settings: ApolloRegistrySettings)
1717

1818
The Apollo Schema Registry, which serves as a central hub for managing your graph.
1919

20-
### `introspection(endpointURL:)`
20+
### `introspection(endpointURL:httpMethod:)`
2121

2222
```swift
23-
case introspection(endpointURL: URL)
23+
case introspection(endpointURL: URL, httpMethod: HTTPMethod = .POST)
2424
```
2525

2626
GraphQL Introspection connecting to the specified URL.

docs/source/api/ApolloCodegenLib/enums/ApolloSchemaDownloader.SchemaDownloadError.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ case couldNotCreateSDLDataToWrite(schema: String)
4949
case couldNotConvertIntrospectionJSONToSDL(underlying: Error)
5050
```
5151

52+
### `couldNotCreateURLComponentsFromEndpointURL(url:)`
53+
54+
```swift
55+
case couldNotCreateURLComponentsFromEndpointURL(url: URL)
56+
```
57+
58+
### `couldNotGetURLFromURLComponents(components:)`
59+
60+
```swift
61+
case couldNotGetURLFromURLComponents(components: URLComponents)
62+
```
63+
5264
## Properties
5365
### `errorDescription`
5466

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
**ENUM**
2+
3+
# `DownloadMethod.HTTPMethod`
4+
5+
```swift
6+
public enum HTTPMethod: Equatable, CustomStringConvertible
7+
```
8+
9+
The HTTP request method. This is an option on Introspection schema downloads only. Apollo Registry downloads are always
10+
POST requests.
11+
12+
## Cases
13+
### `POST`
14+
15+
```swift
16+
case POST
17+
```
18+
19+
Use POST for HTTP requests. This is the default for GraphQL.
20+
21+
### `GET(queryParameterName:)`
22+
23+
```swift
24+
case GET(queryParameterName: String)
25+
```
26+
27+
Use GET for HTTP requests with the GraphQL query being sent in the query string parameter named in
28+
`queryParameterName`.
29+
30+
## Properties
31+
### `description`
32+
33+
```swift
34+
public var description: String
35+
```

0 commit comments

Comments
 (0)