Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.50.0 #2031

Merged
merged 4 commits into from
Nov 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change log

## v0.50.0
- **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)
- **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!_
- **`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!_
- **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!_
- **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!_
- **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).
- **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._

## v0.49.1
- **`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!_
- **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!_
Expand Down
2 changes: 1 addition & 1 deletion Configuration/Shared/Project-Version.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CURRENT_PROJECT_VERSION = 0.49.1
CURRENT_PROJECT_VERSION = 0.50.0
6 changes: 6 additions & 0 deletions docs/source/api/Apollo/structs/GraphQLField.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ public init(_ name: String,
arguments: FieldArguments? = nil,
type: GraphQLOutputType)
```

### `cacheKey(with:)`

```swift
public func cacheKey(with variables: [String: JSONEncodable]?) throws -> String
```
1 change: 1 addition & 0 deletions docs/source/api/ApolloCodegenLib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
- [CodegenLogger.LogLevel](enums/CodegenLogger.LogLevel/)
- [CompilationResult.OperationType](enums/CompilationResult.OperationType/)
- [CompilationResult.Selection](enums/CompilationResult.Selection/)
- [DownloadMethod.HTTPMethod](enums/DownloadMethod.HTTPMethod/)
- [GraphQLType](enums/GraphQLType/)

## Extensions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ case apolloRegistry(_ settings: ApolloRegistrySettings)

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

### `introspection(endpointURL:)`
### `introspection(endpointURL:httpMethod:)`

```swift
case introspection(endpointURL: URL)
case introspection(endpointURL: URL, httpMethod: HTTPMethod = .POST)
```

GraphQL Introspection connecting to the specified URL.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ case couldNotCreateSDLDataToWrite(schema: String)
case couldNotConvertIntrospectionJSONToSDL(underlying: Error)
```

### `couldNotCreateURLComponentsFromEndpointURL(url:)`

```swift
case couldNotCreateURLComponentsFromEndpointURL(url: URL)
```

### `couldNotGetURLFromURLComponents(components:)`

```swift
case couldNotGetURLFromURLComponents(components: URLComponents)
```

## Properties
### `errorDescription`

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
**ENUM**

# `DownloadMethod.HTTPMethod`

```swift
public enum HTTPMethod: Equatable, CustomStringConvertible
```

The HTTP request method. This is an option on Introspection schema downloads only. Apollo Registry downloads are always
POST requests.

## Cases
### `POST`

```swift
case POST
```

Use POST for HTTP requests. This is the default for GraphQL.

### `GET(queryParameterName:)`

```swift
case GET(queryParameterName: String)
```

Use GET for HTTP requests with the GraphQL query being sent in the query string parameter named in
`queryParameterName`.

## Properties
### `description`

```swift
public var description: String
```