Skip to content

Commit

Permalink
Release - 0.49.1 (#1967)
Browse files Browse the repository at this point in the history
* Update the version number for release
* Update the changelog for #1962
* Update release template query param instructions
* Update changelog for #1954
* Update documentation for #1962
* Update changelog for #1968
  • Loading branch information
calvincestari authored Sep 24, 2021
1 parent 6c3a75b commit 84c8fc2
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change log

## 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!_
- **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](https://github.com/apollographql/apollo-ios/pull/1968) - _Thank you to [Arnaud Coomans](https://github.com/acoomans) for finding this issue!_

## v0.49.0
- **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](https://www.apollographql.com/docs/ios/api/ApolloCodegenLib/structs/ApolloSchemaDownloader/). This is a breaking change because some of the API signatures have changed. [Swift scripting](https://www.apollographql.com/docs/ios/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](https://github.com/apollographql/apollo-ios/pull/1935)

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.0
CURRENT_PROJECT_VERSION = 0.49.1
2 changes: 1 addition & 1 deletion RELEASE_CHECKLIST.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
The release checklist has been moved to a [Pull Request template](https://github.com/apollographql/apollo-ios/blob/main/.github/PULL_REQUEST_TEMPLATE/pull-request-template-release.md). Unfortunately Pull Request templates aren't offered as a selection list when creating a new Pull Request, nor can a static link be used. To get the template contents in your new Pull Request you need to manually append the query parameter `?template=pull-request-template-release.md` in the address bar once you've selected the compare branches.
The release checklist has been moved to a [Pull Request template](https://github.com/apollographql/apollo-ios/blob/main/.github/PULL_REQUEST_TEMPLATE/pull-request-template-release.md). Unfortunately Pull Request templates aren't offered as a selection list when creating a new Pull Request, nor can a static link be used. To get the template contents in your new Pull Request you need to manually append the query parameter `template=pull-request-template-release.md` in the address bar once you've selected the compare branches.
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ public struct HTTPHeader: Equatable, CustomDebugStringConvertible
```swift
public var debugDescription: String
```

## Methods
### `init(key:value:)`

```swift
public init(key: String, value: String)
```
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,39 @@ public struct ApolloSchemaDownloadConfiguration

A configuration object that defines behavior for schema download.

## Properties
### `downloadMethod`

```swift
public let downloadMethod: DownloadMethod
```

How to download your schema. Supports the Apollo Registry and GraphQL Introspection methods.

### `downloadTimeout`

```swift
public let downloadTimeout: Double
```

The maximum time to wait before indicating that the download timed out, in seconds. Defaults to 30 seconds.

### `headers`

```swift
public let headers: [HTTPHeader]
```

Any additional headers to include when retrieving your schema. Defaults to nil.

### `outputURL`

```swift
public let outputURL: URL
```

The URL of the folder in which the downloaded schema should be written.

## Methods
### `init(using:timeout:headers:outputFolderURL:schemaFilename:)`

Expand Down

0 comments on commit 84c8fc2

Please sign in to comment.