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 1.11.0 #360

Merged
merged 3 commits into from
May 15, 2024
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
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.10.0"
public static let CLIVersion: String = "1.11.0"
static let defaultFilePath: String = "./apollo-codegen-config.json"
}
12 changes: 12 additions & 0 deletions apollo-ios/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Change Log

## v1.11.0

### New

- **Added `refetchOnFailedUpdates` option to `GraphQLQueryWatcher` ([#347](https://github.com/apollographql/apollo-ios/pull/347)):** This allows you to configure the query watcher not to refetch it's query from the server when a cache read to update it's data fails.

### Fixed

- **Generated input objects have default `nil` value for parameters with a schema-defined default value ([#2997](https://github.com/apollographql/apollo-ios/issues/2997)):** When the schema defines a default value for an input parameter, you can now omit that parameter when initializing the input object and the default value will be used. This corrects feature parity with the Apollo Kotlin client. See PR [#358](https://github.com/apollographql/apollo-ios-dev/pull/358).

- **Fix namespacing error in `InterfaceTemplate` ([#3375](https://github.com/apollographql/apollo-ios/issues/3375)):** This fixes an issue where having a schema type named `Interface` caused compilation errors in generated code. See PR [#359](https://github.com/apollographql/apollo-ios-dev/pull/359).

## v1.10.0

### New
Expand Down
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.10.0"
public static let ApolloVersion: String = "1.11.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@
],
"title" : "Instance Properties"
},
{
"identifiers" : [
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/watch(query:cachePolicy:refetchOnFailedUpdates:context:callbackQueue:resultHandler:)"
],
"title" : "Instance Methods"
},
{
"identifiers" : [
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/ApolloClientError"
Expand Down Expand Up @@ -409,6 +415,181 @@
"type" : "topic",
"url" : "\/documentation\/apollo\/apolloclient\/store"
},
"doc://Apollo/documentation/Apollo/ApolloClient/watch(query:cachePolicy:refetchOnFailedUpdates:context:callbackQueue:resultHandler:)": {
"abstract" : [
{
"text" : "Watches a query by first fetching an initial result from the server or from the local cache, depending on the current contents of the cache and the specified cache policy. After the initial fetch, the returned query watcher object will get notified whenever any of the data the query result depends on changes in the local cache, and calls the result handler again with the new result.",
"type" : "text"
}
],
"fragments" : [
{
"kind" : "keyword",
"text" : "func"
},
{
"kind" : "text",
"text" : " "
},
{
"kind" : "identifier",
"text" : "watch"
},
{
"kind" : "text",
"text" : "<"
},
{
"kind" : "genericParameter",
"text" : "Query"
},
{
"kind" : "text",
"text" : ">("
},
{
"kind" : "externalParam",
"text" : "query"
},
{
"kind" : "text",
"text" : ": "
},
{
"kind" : "typeIdentifier",
"text" : "Query"
},
{
"kind" : "text",
"text" : ", "
},
{
"kind" : "externalParam",
"text" : "cachePolicy"
},
{
"kind" : "text",
"text" : ": "
},
{
"kind" : "typeIdentifier",
"preciseIdentifier" : "s:6Apollo11CachePolicyO",
"text" : "CachePolicy"
},
{
"kind" : "text",
"text" : ", "
},
{
"kind" : "externalParam",
"text" : "refetchOnFailedUpdates"
},
{
"kind" : "text",
"text" : ": "
},
{
"kind" : "typeIdentifier",
"preciseIdentifier" : "s:Sb",
"text" : "Bool"
},
{
"kind" : "text",
"text" : ", "
},
{
"kind" : "externalParam",
"text" : "context"
},
{
"kind" : "text",
"text" : ": (any "
},
{
"kind" : "typeIdentifier",
"preciseIdentifier" : "s:6Apollo14RequestContextP",
"text" : "RequestContext"
},
{
"kind" : "text",
"text" : ")?, "
},
{
"kind" : "externalParam",
"text" : "callbackQueue"
},
{
"kind" : "text",
"text" : ": "
},
{
"kind" : "typeIdentifier",
"preciseIdentifier" : "c:objc(cs)OS_dispatch_queue",
"text" : "DispatchQueue"
},
{
"kind" : "text",
"text" : ", "
},
{
"kind" : "externalParam",
"text" : "resultHandler"
},
{
"kind" : "text",
"text" : ": "
},
{
"kind" : "typeIdentifier",
"preciseIdentifier" : "s:6Apollo20GraphQLResultHandlera",
"text" : "GraphQLResultHandler"
},
{
"kind" : "text",
"text" : "<"
},
{
"kind" : "typeIdentifier",
"text" : "Query"
},
{
"kind" : "text",
"text" : "."
},
{
"kind" : "typeIdentifier",
"preciseIdentifier" : "s:9ApolloAPI16GraphQLOperationP4DataQa",
"text" : "Data"
},
{
"kind" : "text",
"text" : ">) -> "
},
{
"kind" : "typeIdentifier",
"preciseIdentifier" : "s:6Apollo19GraphQLQueryWatcherC",
"text" : "GraphQLQueryWatcher"
},
{
"kind" : "text",
"text" : "<"
},
{
"kind" : "typeIdentifier",
"text" : "Query"
},
{
"kind" : "text",
"text" : ">"
}
],
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/watch(query:cachePolicy:refetchOnFailedUpdates:context:callbackQueue:resultHandler:)",
"kind" : "symbol",
"role" : "symbol",
"title" : "watch(query:cachePolicy:refetchOnFailedUpdates:context:callbackQueue:resultHandler:)",
"type" : "topic",
"url" : "\/documentation\/apollo\/apolloclient\/watch(query:cachepolicy:refetchonfailedupdates:context:callbackqueue:resulthandler:)"
},
"doc://Apollo/documentation/Apollo/ApolloClientProtocol": {
"abstract" : [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,7 @@
"abstract" : [

],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@
{
"name" : "Apollo"
}
],
"platforms" : [

],
"role" : "symbol",
"roleHeading" : "Instance Method",
Expand Down Expand Up @@ -477,6 +480,7 @@
"abstract" : [

],
"deprecated" : true,
"fragments" : [
{
"kind" : "keyword",
Expand Down
Loading
Loading