Skip to content

Commit

Permalink
Prepare Beta 4 Release (#2488)
Browse files Browse the repository at this point in the history
Co-authored-by: Calvin Cestari <calvincestari@users.noreply.github.com>
  • Loading branch information
AnthonyMDev and calvincestari committed Sep 10, 2022
1 parent 0c22876 commit 092f0a7
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 5 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Change Log

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

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.

* **Breaking: Generated Files now have the file extension `.graphql.swift`.**
* This allows you to clearly distinguish which files in your project are Apollo generated files.
* Generated template files that are user-editable will still have the `.swift` file extension.
* `CustomScalar` templates as well as the `SchemaConfiguration` file are user-editable. Once these are generated, they are never overwritten by future code generation execution.
* This change is also necessary for the identification of generated files for the pruning functionality.
* **New: Pruning of Unused Generated Files**
* Generated files that no longer should exist are automatically deleted now. This occurs when a `.graphql` file is removed from your project. The generated file will also be deleted the next time code generation is run.
* This can be disabled with the new `pruneGeneratedFiles` codegen option.
* **Breaking: Automatic Deletion will not delete files generated in previous Alpha/Beta versions.**
* Only files with the `.graphql.swift` file extension will be deleted.
* If you have used previous Alpha/Beta versions, you will need to delete your generated files manually one last time before running code generation with this version.
* **New: Enum Case Names are Converted to Camel Case in Generated Enums.**
* **Breaking: This is enabled by default, your call sites will need to be updated.**
* Camel case conversion for enum cases can be disabled with the new `conversionStrategies.enumCases` codegen option.
* Thanks [@bannzai](https://github.com/bannzai) for this one!
* **Fixed: Swift Keywords are escaped when used as names of Enum Values** Thanks [@bannzai](https://github.com/bannzai) for the fix!
* **Fixed: Compilation Error when Using Fragment with Lowercased Name** This was an edge case that only occured when referencing a nested, merged selection set from the lowercase named fragment.
* **Fixed: Retain Cycle in `ReadTransaction`** Thanks [@lorraine-hatch](https://github.com/lorraine-hatch) for the fix!
* **Fixed: String `jsonValue` Initializer for Large Numbers** Thanks [@Almaz5200](https://github.com/Almaz5200) for the fix!

## v1.0.0-beta.3

This is the third 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.3
CURRENT_PROJECT_VERSION = 1.0.0-beta.4
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.3"),
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-beta.4"),
],
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.3",
version: "1.0.0-beta.4",
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.3"),
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-beta.4"),
],
"""
// when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
.library(name: "GraphQLSchemaName", targets: ["GraphQLSchemaName"]),
],
dependencies: [
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-beta.3"),
.package(url: "https://github.com/apollographql/apollo-ios.git", from: "1.0.0-beta.4"),
],
targets: [
.target(
Expand Down

0 comments on commit 092f0a7

Please sign in to comment.