Skip to content

Commit 846ffc9

Browse files
apollo-bot2gh-action-runner
authored andcommitted
Release 1.22.0 (#662)
1 parent c48d545 commit 846ffc9

File tree

26 files changed

+1738
-17
lines changed

26 files changed

+1738
-17
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Foundation
22

33
public enum Constants {
4-
public static let CodegenVersion: String = "1.21.0"
4+
public static let CodegenVersion: String = "1.22.0"
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

33
public enum Constants {
4-
public static let CLIVersion: String = "1.21.0"
4+
public static let CLIVersion: String = "1.22.0"
55
static let defaultFilePath: String = "./apollo-codegen-config.json"
66
}

apollo-ios/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Change Log
22

3+
## v1.22.0
4+
5+
### Improvement
6+
- **Make cache public within `ReadTransaction` ([#661](https://github.com/apollographql/apollo-ios-dev/pull/661)):** Some users have use cases for accessing a custom `NormalizedCache` implementation directly while performing cache transactions. A new `ReadOnlyNormalizedCache` protocol exposes the cache as read-only in the `ReadTransaction` and as writable in the `ReadWriteTransaction`. See PR [#661](https://github.com/apollographql/apollo-ios-dev/pull/661).
7+
8+
### Fixed
9+
- **Multiple deprecation warning directives not compiling ([#3559](https://github.com/apollographql/apollo-ios/issues/3559)):** Codegen would generate an incorrect list-style character between the Swift deprecation annotations when using multiple deprecation directives in GraphQL. See PR [#658](https://github.com/apollographql/apollo-ios-dev/pull/658). _Thank you to [@guilherme-anchorage](https://github.com/guilherme-anchorage) for raising the issue._
10+
- **Non-`all` field merging causes selection set initializers to stop being generated for local cache mutations ([#3554](https://github.com/apollographql/apollo-ios/issues/3554)):** Codegen will now force field merging behaviour and selection set initializer generation for local cache mutations. See PR [#654](https://github.com/apollographql/apollo-ios-dev/pull/654).
11+
- **Referenced fragments within a local cache mutation operation are generated as mutable ([#3557](https://github.com/apollographql/apollo-ios/issues/3557)):** Any fragments referenced within a local cache mutation will now be generated as mutable too, including any fragments within those fragments. See PR [#659](https://github.com/apollographql/apollo-ios-dev/pull/659).
12+
313
## v1.21.0
414

515
### New

apollo-ios/CLI/apollo-ios-cli.tar.gz

3.63 KB
Binary file not shown.

apollo-ios/Sources/Apollo/Constants.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Foundation
22

33
public enum Constants {
44
public static let ApolloClientName = "apollo-ios"
5-
public static let ApolloClientVersion: String = "1.21.0"
5+
public static let ApolloClientVersion: String = "1.22.0"
66

77
@available(*, deprecated, renamed: "ApolloClientVersion")
88
public static let ApolloVersion: String = ApolloClientVersion

docs/docc/Apollo.doccarchive/data/documentation/apollo.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
"doc:\/\/Apollo\/documentation\/Apollo\/InterceptorProvider",
9696
"doc:\/\/Apollo\/documentation\/Apollo\/NetworkTransport",
9797
"doc:\/\/Apollo\/documentation\/Apollo\/NormalizedCache",
98+
"doc:\/\/Apollo\/documentation\/Apollo\/ReadOnlyNormalizedCache",
9899
"doc:\/\/Apollo\/documentation\/Apollo\/RequestBodyCreator",
99100
"doc:\/\/Apollo\/documentation\/Apollo\/RequestChain",
100101
"doc:\/\/Apollo\/documentation\/Apollo\/RequestContext",
@@ -1838,6 +1839,56 @@
18381839
"type" : "topic",
18391840
"url" : "\/documentation\/apollo\/pathcomponent"
18401841
},
1842+
"doc://Apollo/documentation/Apollo/ReadOnlyNormalizedCache": {
1843+
"abstract" : [
1844+
{
1845+
"text" : "A read-only view of a ",
1846+
"type" : "text"
1847+
},
1848+
{
1849+
"code" : "NormalizedCache",
1850+
"type" : "codeVoice"
1851+
},
1852+
{
1853+
"text" : " for use within a ",
1854+
"type" : "text"
1855+
},
1856+
{
1857+
"code" : "ReadTransaction",
1858+
"type" : "codeVoice"
1859+
},
1860+
{
1861+
"text" : ".",
1862+
"type" : "text"
1863+
}
1864+
],
1865+
"fragments" : [
1866+
{
1867+
"kind" : "keyword",
1868+
"text" : "protocol"
1869+
},
1870+
{
1871+
"kind" : "text",
1872+
"text" : " "
1873+
},
1874+
{
1875+
"kind" : "identifier",
1876+
"text" : "ReadOnlyNormalizedCache"
1877+
}
1878+
],
1879+
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ReadOnlyNormalizedCache",
1880+
"kind" : "symbol",
1881+
"navigatorTitle" : [
1882+
{
1883+
"kind" : "identifier",
1884+
"text" : "ReadOnlyNormalizedCache"
1885+
}
1886+
],
1887+
"role" : "symbol",
1888+
"title" : "ReadOnlyNormalizedCache",
1889+
"type" : "topic",
1890+
"url" : "\/documentation\/apollo\/readonlynormalizedcache"
1891+
},
18411892
"doc://Apollo/documentation/Apollo/Record": {
18421893
"abstract" : [
18431894
{

docs/docc/Apollo.doccarchive/data/documentation/apollo/apollostore/readtransaction.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@
9292

9393
],
9494
"topicSections" : [
95+
{
96+
"identifiers" : [
97+
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloStore\/ReadTransaction\/readOnlyCache"
98+
],
99+
"title" : "Instance Properties"
100+
},
95101
{
96102
"identifiers" : [
97103
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloStore\/ReadTransaction\/read(query:)",
@@ -383,6 +389,40 @@
383389
"type" : "topic",
384390
"url" : "\/documentation\/apollo\/apollostore\/readtransaction\/readobject(oftype:withkey:variables:)"
385391
},
392+
"doc://Apollo/documentation/Apollo/ApolloStore/ReadTransaction/readOnlyCache": {
393+
"abstract" : [
394+
395+
],
396+
"fragments" : [
397+
{
398+
"kind" : "keyword",
399+
"text" : "var"
400+
},
401+
{
402+
"kind" : "text",
403+
"text" : " "
404+
},
405+
{
406+
"kind" : "identifier",
407+
"text" : "readOnlyCache"
408+
},
409+
{
410+
"kind" : "text",
411+
"text" : ": any "
412+
},
413+
{
414+
"kind" : "typeIdentifier",
415+
"preciseIdentifier" : "s:6Apollo23ReadOnlyNormalizedCacheP",
416+
"text" : "ReadOnlyNormalizedCache"
417+
}
418+
],
419+
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloStore\/ReadTransaction\/readOnlyCache",
420+
"kind" : "symbol",
421+
"role" : "symbol",
422+
"title" : "readOnlyCache",
423+
"type" : "topic",
424+
"url" : "\/documentation\/apollo\/apollostore\/readtransaction\/readonlycache"
425+
},
386426
"doc://Apollo/documentation/Apollo/ApolloStore/ReadWriteTransaction": {
387427
"abstract" : [
388428

0 commit comments

Comments
 (0)