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.49.1 #1967

Merged
merged 6 commits into from
Sep 24, 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
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