Skip to content

Commit

Permalink
release: 1.9.1 (#280)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Miller <[email protected]>
  • Loading branch information
calvincestari and AnthonyMDev authored Mar 4, 2024
1 parent bfdcf19 commit af4a0d6
Show file tree
Hide file tree
Showing 14 changed files with 212 additions and 43 deletions.
2 changes: 1 addition & 1 deletion apollo-ios-codegen/Sources/CodegenCLI/Constants.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation

public enum Constants {
public static let CLIVersion: String = "1.9.0"
public static let CLIVersion: String = "1.9.1"
static let defaultFilePath: String = "./apollo-codegen-config.json"
}
11 changes: 11 additions & 0 deletions apollo-ios/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change Log

## v1.9.1

### Fixed

- **`SelectionSet` generated initializers don't compile with `self` parameter ([#3330](https://github.com/apollographql/apollo-ios/issues/3330)):** Selection set initializers now use a local property name when the external property name is a Swift reserved word; see PR [#257](https://github.com/apollographql/apollo-ios-dev/pull/257). _Thanks to [@grantjbutler](https://github.com/grantjbutler) for raising the issue._
- **asXXXXXXX property on a union never returning `nil` if selection set empty ([#3326](https://github.com/apollographql/apollo-ios/issues/3326)):** - The codegen logic to determine whether a selection set is composite or not has been improved to handle the case when `__typename` was the only field in the selection set; see PR [#261](https://github.com/apollographql/apollo-ios-dev/pull/261). _Thanks to [@vincentisambart](https://github.com/vincentisambart) for raising the issue._

### Improvement

- **Feature/ContextIdentifier for the mutate queries ([#281](https://github.com/apollographql/apollo-ios-dev/pull/281)):** Mutation operations can now be given a context identifier to be used later in the request. _Thanks to [@VladimirK-ah](https://github.com/VladimirK-ah) for the contribution._

## v1.9.0

### Improvement
Expand Down
Binary file modified apollo-ios/CLI/apollo-ios-cli.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion apollo-ios/Sources/Apollo/Constants.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation

public enum Constants {
public static let ApolloVersion: String = "1.9.0"
public static let ApolloVersion: String = "1.9.1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"identifiers" : [
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/clearCache(callbackQueue:completion:)",
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/fetch(query:cachePolicy:contextIdentifier:context:queue:resultHandler:)",
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/perform(mutation:publishResultToStore:context:queue:resultHandler:)",
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/perform(mutation:publishResultToStore:contextIdentifier:context:queue:resultHandler:)",
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/subscribe(subscription:context:queue:resultHandler:)",
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/upload(operation:files:context:queue:resultHandler:)",
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/watch(query:cachePolicy:context:callbackQueue:resultHandler:)"
Expand Down Expand Up @@ -358,7 +358,7 @@
"type" : "topic",
"url" : "\/documentation\/apollo\/apolloclient\/fetch(query:cachepolicy:contextidentifier:context:queue:resulthandler:)"
},
"doc://Apollo/documentation/Apollo/ApolloClient/perform(mutation:publishResultToStore:context:queue:resultHandler:)": {
"doc://Apollo/documentation/Apollo/ApolloClient/perform(mutation:publishResultToStore:contextIdentifier:context:queue:resultHandler:)": {
"abstract" : [

],
Expand Down Expand Up @@ -420,6 +420,23 @@
"kind" : "text",
"text" : ", "
},
{
"kind" : "externalParam",
"text" : "contextIdentifier"
},
{
"kind" : "text",
"text" : ": "
},
{
"kind" : "typeIdentifier",
"preciseIdentifier" : "s:10Foundation4UUIDV",
"text" : "UUID"
},
{
"kind" : "text",
"text" : "?, "
},
{
"kind" : "externalParam",
"text" : "context"
Expand Down Expand Up @@ -493,12 +510,12 @@
"text" : "Cancellable"
}
],
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/perform(mutation:publishResultToStore:context:queue:resultHandler:)",
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/perform(mutation:publishResultToStore:contextIdentifier:context:queue:resultHandler:)",
"kind" : "symbol",
"role" : "symbol",
"title" : "perform(mutation:publishResultToStore:context:queue:resultHandler:)",
"title" : "perform(mutation:publishResultToStore:contextIdentifier:context:queue:resultHandler:)",
"type" : "topic",
"url" : "\/documentation\/apollo\/apolloclient\/perform(mutation:publishresulttostore:context:queue:resulthandler:)"
"url" : "\/documentation\/apollo\/apolloclient\/perform(mutation:publishresulttostore:contextidentifier:context:queue:resulthandler:)"
},
"doc://Apollo/documentation/Apollo/ApolloClient/subscribe(subscription:context:queue:resultHandler:)": {
"abstract" : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type" : "text"
},
{
"code" : "ApolloClientProtocol.perform(mutation:publishResultToStore:context:queue:resultHandler:)",
"code" : "ApolloClientProtocol.perform(mutation:publishResultToStore:contextIdentifier:context:queue:resultHandler:)",
"type" : "codeVoice"
},
{
Expand All @@ -24,12 +24,12 @@
},
"identifier" : {
"interfaceLanguage" : "swift",
"url" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/perform(mutation:publishResultToStore:context:queue:resultHandler:)"
"url" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/perform(mutation:publishResultToStore:contextIdentifier:context:queue:resultHandler:)"
},
"kind" : "symbol",
"metadata" : {
"extendedModule" : "Apollo",
"externalID" : "s:6Apollo0A6ClientC7perform8mutation20publishResultToStore7context5queue13resultHandlerAA11Cancellable_px_SbAA14RequestContext_pSgSo012OS_dispatch_J0Cys0F0OyAA13GraphQLResultVy4DataQzGs5Error_pGcSgt0A3API0R10QLMutationRzlF",
"externalID" : "s:6Apollo0A6ClientC7perform8mutation20publishResultToStore17contextIdentifier0I05queue13resultHandlerAA11Cancellable_px_Sb10Foundation4UUIDVSgAA14RequestContext_pSgSo012OS_dispatch_K0Cys0F0OyAA13GraphQLResultVy4DataQzGs5Error_pGcSgt0A3API0U10QLMutationRzlF",
"fragments" : [
{
"kind" : "keyword",
Expand Down Expand Up @@ -88,6 +88,23 @@
"kind" : "text",
"text" : ", "
},
{
"kind" : "externalParam",
"text" : "contextIdentifier"
},
{
"kind" : "text",
"text" : ": "
},
{
"kind" : "typeIdentifier",
"preciseIdentifier" : "s:10Foundation4UUIDV",
"text" : "UUID"
},
{
"kind" : "text",
"text" : "?, "
},
{
"kind" : "externalParam",
"text" : "context"
Expand Down Expand Up @@ -169,7 +186,7 @@
"role" : "symbol",
"roleHeading" : "Instance Method",
"symbolKind" : "method",
"title" : "perform(mutation:publishResultToStore:context:queue:resultHandler:)"
"title" : "perform(mutation:publishResultToStore:contextIdentifier:context:queue:resultHandler:)"
},
"primaryContentSections" : [
{
Expand Down Expand Up @@ -247,6 +264,23 @@
"kind" : "text",
"text" : " = true, "
},
{
"kind" : "externalParam",
"text" : "contextIdentifier"
},
{
"kind" : "text",
"text" : ": "
},
{
"kind" : "typeIdentifier",
"preciseIdentifier" : "s:10Foundation4UUIDV",
"text" : "UUID"
},
{
"kind" : "text",
"text" : "? = nil, "
},
{
"kind" : "externalParam",
"text" : "context"
Expand Down Expand Up @@ -364,7 +398,7 @@
"variants" : [
{
"paths" : [
"\/documentation\/apollo\/apolloclient\/perform(mutation:publishresulttostore:context:queue:resulthandler:)"
"\/documentation\/apollo\/apolloclient\/perform(mutation:publishresulttostore:contextidentifier:context:queue:resulthandler:)"
],
"traits" : [
{
Expand Down Expand Up @@ -450,7 +484,7 @@
"type" : "topic",
"url" : "\/documentation\/apollo\/apolloclient\/apolloclientprotocol-implementations"
},
"doc://Apollo/documentation/Apollo/ApolloClient/perform(mutation:publishResultToStore:context:queue:resultHandler:)": {
"doc://Apollo/documentation/Apollo/ApolloClient/perform(mutation:publishResultToStore:contextIdentifier:context:queue:resultHandler:)": {
"abstract" : [

],
Expand Down Expand Up @@ -512,6 +546,23 @@
"kind" : "text",
"text" : ", "
},
{
"kind" : "externalParam",
"text" : "contextIdentifier"
},
{
"kind" : "text",
"text" : ": "
},
{
"kind" : "typeIdentifier",
"preciseIdentifier" : "s:10Foundation4UUIDV",
"text" : "UUID"
},
{
"kind" : "text",
"text" : "?, "
},
{
"kind" : "externalParam",
"text" : "context"
Expand Down Expand Up @@ -585,12 +636,12 @@
"text" : "Cancellable"
}
],
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/perform(mutation:publishResultToStore:context:queue:resultHandler:)",
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/perform(mutation:publishResultToStore:contextIdentifier:context:queue:resultHandler:)",
"kind" : "symbol",
"role" : "symbol",
"title" : "perform(mutation:publishResultToStore:context:queue:resultHandler:)",
"title" : "perform(mutation:publishResultToStore:contextIdentifier:context:queue:resultHandler:)",
"type" : "topic",
"url" : "\/documentation\/apollo\/apolloclient\/perform(mutation:publishresulttostore:context:queue:resulthandler:)"
"url" : "\/documentation\/apollo\/apolloclient\/perform(mutation:publishresulttostore:contextidentifier:context:queue:resulthandler:)"
},
"doc://Apollo/documentation/Apollo/Cancellable": {
"abstract" : [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"identifiers" : [
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClientProtocol\/clearCache(callbackQueue:completion:)",
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClientProtocol\/fetch(query:cachePolicy:contextIdentifier:context:queue:resultHandler:)",
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClientProtocol\/perform(mutation:publishResultToStore:context:queue:resultHandler:)",
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClientProtocol\/perform(mutation:publishResultToStore:contextIdentifier:context:queue:resultHandler:)",
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClientProtocol\/subscribe(subscription:context:queue:resultHandler:)",
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClientProtocol\/upload(operation:files:context:queue:resultHandler:)",
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClientProtocol\/watch(query:cachePolicy:context:callbackQueue:resultHandler:)"
Expand Down Expand Up @@ -512,7 +512,7 @@
"type" : "topic",
"url" : "\/documentation\/apollo\/apolloclientprotocol\/fetch(query:cachepolicy:contextidentifier:context:queue:resulthandler:)"
},
"doc://Apollo/documentation/Apollo/ApolloClientProtocol/perform(mutation:publishResultToStore:context:queue:resultHandler:)": {
"doc://Apollo/documentation/Apollo/ApolloClientProtocol/perform(mutation:publishResultToStore:contextIdentifier:context:queue:resultHandler:)": {
"abstract" : [
{
"text" : "Performs a mutation by sending it to the server.",
Expand Down Expand Up @@ -577,6 +577,23 @@
"kind" : "text",
"text" : ", "
},
{
"kind" : "externalParam",
"text" : "contextIdentifier"
},
{
"kind" : "text",
"text" : ": "
},
{
"kind" : "typeIdentifier",
"preciseIdentifier" : "s:10Foundation4UUIDV",
"text" : "UUID"
},
{
"kind" : "text",
"text" : "?, "
},
{
"kind" : "externalParam",
"text" : "context"
Expand Down Expand Up @@ -650,13 +667,13 @@
"text" : "Cancellable"
}
],
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClientProtocol\/perform(mutation:publishResultToStore:context:queue:resultHandler:)",
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClientProtocol\/perform(mutation:publishResultToStore:contextIdentifier:context:queue:resultHandler:)",
"kind" : "symbol",
"required" : true,
"role" : "symbol",
"title" : "perform(mutation:publishResultToStore:context:queue:resultHandler:)",
"title" : "perform(mutation:publishResultToStore:contextIdentifier:context:queue:resultHandler:)",
"type" : "topic",
"url" : "\/documentation\/apollo\/apolloclientprotocol\/perform(mutation:publishresulttostore:context:queue:resulthandler:)"
"url" : "\/documentation\/apollo\/apolloclientprotocol\/perform(mutation:publishresulttostore:contextidentifier:context:queue:resulthandler:)"
},
"doc://Apollo/documentation/Apollo/ApolloClientProtocol/store": {
"abstract" : [
Expand Down
Loading

0 comments on commit af4a0d6

Please sign in to comment.