Skip to content

Commit

Permalink
Prepare Version 1.0 RC 1 (#2512)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyMDev committed Sep 21, 2022
1 parent 57ecfde commit 5349afb
Show file tree
Hide file tree
Showing 2,383 changed files with 23,147 additions and 24,613 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# Change Log

## v1.0.0-rc.1 - Release Candidate #1

This is the first Release Candidate for Apollo iOS 1.0. The Release Candidate is a fully featured and code-complete representation of the final 1.0 version. This includes full feature parity with the 0.x.x releases.

API breaking changes are not expected between the Release Candidate and the General Availability (GA) release. The only code changes will be non-breaking bug fixes due to user feedback. The Release Candidate does not have complete documentation or usage guides, which will be completed prior to GA.

This first major version will include a new code generation engine, better generated models, and many syntax and performance improvements across the entire library. The primary goal of Apollo iOS 1.0 is to stabilize the API of the model layer and provide a foundation for future feature additions and evolution of the library.

* **New: Option to Include Deprecated Input Arguments on Fields During Schema Download** Thanks to [@dave-perry](https://github.com/dave-perry) for this addition!
* **Fixed: Code Generation Config JSON File Compatibility**
* Previously, the `apollo-codegen-config.json` file used by the Apollo CLI needed to contain values for all optional fields. When new codegen options were added, this would cause errors until all newly added options has values provided.
* The `Codable` implementation for the `ApolloCodgenConfiguration` has been implemented manually to prevent this. Now, only required fields must be provided, all optional fields can be omitted from the config file safely.
* The CLI's `init` command also now generates a template config file with only the required fields.
* **Fixed: Swift Keywords are escaped when used as names of Input Parameters**
* **Fixed: Compilation Error when using `@skip` and `@include` conditions on the same field**
* **Fixed: Added permissions request to SPM Code Generation Plugin**
* When running the code generation plugin, you will be prompted to give permission for the plugin to write to the package directory.
* This permission check can be avoided by passing the `--allow-writing-to-package-directory` flag when executing the plugin command.
* **Fixed: APQ Operations Will no Longer be Retried when Unrecognized if using `.persistedOperationsOnly`**
* `.persistedOperationsOnly` is for use with allow-listed operations only. If an operation identifier is not recognized by the server, there is no way to register the operation in this configuration.
* **Breaking: Updated `ApolloAPI` internal metadata properties to be `__` prefixed.**
* Generated GraphQL files expose certain properties/functions that are consumed by the `Apollo` library during GraphQL Execution. These members must be public in order to be exposed to `Apollo`, but are not intended for external consumption. We have added underscore prefixes to each of these members to signify that intention, using `__` for GraphQL Metadata (in alignment with the GraphQL Specification) and `_` for `Apollo`'s utility and helper functions.
* The affected signatures are:
* `SelectionSet.schema` -> `SelectionSet.__schema`
* `SelectionSet.selection` -> `SelectionSet.__selection`
* `JSONEncodable.jsonValue` -> `JSONEncodable._jsonValue`
* `JSONDecodable.init(jsonValue:)` -> `JSONDecodable.init(_jsonValue:)`
* `AnyHashableConvertible.asAnyHashable` -> `AnyHashableConvertible._asAnyHashable`
* `OutputTypeConvertible.asOutputType` -> `OutputTypeConvertible._asOutputType`
* `GraphQLOperation.variables` -> `GraphQLOperation._variables`
* `LocalCacheMutation.variables` -> `LocalCacheMutation._variables`

## v1.0.0-beta.4

This is the fourth Beta Release of Apollo iOS 1.0. The Beta version has full feature parity with the 0.x.x releases. The API is expected to be mostly stable. Some breaking changes may occur due to user feedback prior to General Availability (GA) Release. The Beta does not have complete documentation or usage guides, which will be completed prior to GA.
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 = 1.0.0-beta.4
CURRENT_PROJECT_VERSION = 1.0.0-rc.1
2 changes: 1 addition & 1 deletion Sources/AnimalKingdomAPI/AnimalKingdomAPI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
.library(name: "AnimalKingdomAPI", targets: ["AnimalKingdomAPI"]),
],
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-beta.4"),
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-rc.1"),
],
targets: [
.target(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct SwiftPackageManagerModuleTemplate: TemplateRenderer {
.library(name: "\(casedModuleName)", targets: ["\(casedModuleName)"]),
],
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-beta.4"),
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-rc.1"),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/GitHubAPI/GitHubAPI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
.library(name: "GitHubAPI", targets: ["GitHubAPI"]),
],
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-beta.4"),
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-rc.1"),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/StarWarsAPI/StarWarsAPI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
.library(name: "StarWarsAPI", targets: ["StarWarsAPI"]),
],
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-beta.4"),
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-rc.1"),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/SubscriptionAPI/SubscriptionAPI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
.library(name: "SubscriptionAPI", targets: ["SubscriptionAPI"]),
],
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-beta.4"),
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-rc.1"),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/UploadAPI/UploadAPI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
.library(name: "UploadAPI", targets: ["UploadAPI"]),
],
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-beta.4"),
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-rc.1"),
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion Sources/apollo-ios-cli/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ struct Apollo_iOS_CLI: ParsableCommand {
static var configuration = CommandConfiguration(
commandName: "apollo-ios-cli",
abstract: "A command line utility for Apollo iOS code generation.",
version: "1.0.0-beta.4",
version: "1.0.0-rc.1",
subcommands: [
CodegenCLI.Initialize.self,
CodegenCLI.Generate.self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class SwiftPackageManagerModuleTemplateTests: XCTestCase {

let expected = """
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-beta.4"),
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-rc.1"),
],
"""
// when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Unions.ClassroomPet }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.inlineFragment(AsAnimal.self),
.inlineFragment(AsPet.self),
.inlineFragment(AsWarmBlooded.self),
Expand All @@ -66,7 +66,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Interfaces.Animal }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("species", String.self),
] }

Expand All @@ -81,7 +81,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Interfaces.Pet }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("humanName", String?.self),
] }

Expand All @@ -96,7 +96,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Interfaces.WarmBlooded }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("laysEggs", Bool.self),
] }

Expand All @@ -112,7 +112,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Objects.Cat }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("bodyTemperature", Int.self),
.field("isJellicle", Bool.self),
] }
Expand All @@ -132,7 +132,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Objects.Bird }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("wingspan", Double.self),
] }

Expand All @@ -150,7 +150,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Objects.PetRock }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("favoriteToy", String.self),
] }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Unions.ClassroomPet }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.inlineFragment(AsAnimal.self),
] }

Expand All @@ -38,7 +38,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Interfaces.Animal }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("height", Height.self),
] }

Expand All @@ -52,7 +52,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Objects.Height }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("inches", Int.self),
] }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Objects.Dog }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("species", String.self),
] }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Interfaces.Animal }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("height", Height.self),
] }

Expand All @@ -35,7 +35,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Objects.Height }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("meters", Int.self),
] }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Interfaces.Pet }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("humanName", String?.self),
.field("favoriteToy", String.self),
.field("owner", Owner?.self),
Expand All @@ -41,7 +41,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Objects.Human }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("firstName", String.self),
] }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Interfaces.WarmBlooded }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("bodyTemperature", Int.self),
.fragment(HeightInMeters.self),
] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Objects.Query }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("allAnimals", [AllAnimal].self),
] }

Expand All @@ -33,7 +33,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Interfaces.Animal }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("species", String.self),
.field("skinCovering", GraphQLEnum<SkinCovering>?.self),
.inlineFragment(AsBird.self),
Expand Down Expand Up @@ -61,7 +61,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Objects.Bird }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("wingspan", Double.self),
] }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Interfaces.Pet }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("owner", Owner?.self),
] }

Expand All @@ -38,7 +38,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Objects.Human }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("firstName", String.self),
] }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ public extension MyGraphQLSchema {
self.input = input
}

public var variables: Variables? { ["input": input] }
public var __variables: Variables? { ["input": input] }

public struct Data: MyGraphQLSchema.SelectionSet {
public let __data: DataDict
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Objects.Mutation }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("adoptPet", AdoptPet.self, arguments: ["input": .variable("input")]),
] }

Expand All @@ -48,7 +48,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Interfaces.Pet }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("id", ID.self),
.field("humanName", String?.self),
] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Objects.Query }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("allAnimals", [AllAnimal].self),
] }

Expand All @@ -45,7 +45,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Interfaces.Animal }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("height", Height?.self),
] }

Expand All @@ -59,7 +59,7 @@ public extension MyGraphQLSchema {
public init(data: DataDict) { __data = data }

public static var __parentType: ParentType { MyGraphQLSchema.Objects.Height }
public static var selections: [Selection] { [
public static var __selections: [Selection] { [
.field("feet", Int?.self),
.field("inches", Int.self),
] }
Expand Down

0 comments on commit 5349afb

Please sign in to comment.