diff --git a/CHANGELOG.md b/CHANGELOG.md index 1177f02683..ee7703a2e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Configuration/Shared/Project-Version.xcconfig b/Configuration/Shared/Project-Version.xcconfig index 96df022565..b7d90a3d3c 100644 --- a/Configuration/Shared/Project-Version.xcconfig +++ b/Configuration/Shared/Project-Version.xcconfig @@ -1 +1 @@ -CURRENT_PROJECT_VERSION = 0.49.0 +CURRENT_PROJECT_VERSION = 0.49.1 diff --git a/RELEASE_CHECKLIST.md b/RELEASE_CHECKLIST.md index 2265364373..4b16ffc88b 100644 --- a/RELEASE_CHECKLIST.md +++ b/RELEASE_CHECKLIST.md @@ -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. diff --git a/docs/source/api/ApolloCodegenLib/structs/ApolloSchemaDownloadConfiguration.HTTPHeader.md b/docs/source/api/ApolloCodegenLib/structs/ApolloSchemaDownloadConfiguration.HTTPHeader.md index 9665c0ef9a..72a0060071 100644 --- a/docs/source/api/ApolloCodegenLib/structs/ApolloSchemaDownloadConfiguration.HTTPHeader.md +++ b/docs/source/api/ApolloCodegenLib/structs/ApolloSchemaDownloadConfiguration.HTTPHeader.md @@ -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) +``` diff --git a/docs/source/api/ApolloCodegenLib/structs/ApolloSchemaDownloadConfiguration.md b/docs/source/api/ApolloCodegenLib/structs/ApolloSchemaDownloadConfiguration.md index ae9f9f906c..283d3dd159 100644 --- a/docs/source/api/ApolloCodegenLib/structs/ApolloSchemaDownloadConfiguration.md +++ b/docs/source/api/ApolloCodegenLib/structs/ApolloSchemaDownloadConfiguration.md @@ -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:)`