Skip to content

Commit 9684589

Browse files
apollo-bot2gh-action-runner
authored andcommitted
Release 1.21.0 (#639)
1 parent 3683f0c commit 9684589

File tree

57 files changed

+3517
-623
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+3517
-623
lines changed

SwiftScripts/Package.resolved

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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.20.0"
4+
public static let CodegenVersion: String = "1.21.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.20.0"
4+
public static let CLIVersion: String = "1.21.0"
55
static let defaultFilePath: String = "./apollo-codegen-config.json"
66
}

apollo-ios/CHANGELOG.md

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

3+
## v1.21.0
4+
5+
### New
6+
- **Enhanced Client Awareness ([#638](https://github.com/apollographql/apollo-ios-dev/pull/638)):** Apollo iOS now sends the library name and version as metadata in the `extensions` key of each request. This Enhanced Client Awareness metric is collected in GraphOS along with the existing Client Awareness and general operation metrics.
7+
8+
### Improvement
9+
- **Removed SQLite.swift dependency ([#635](https://github.com/apollographql/apollo-ios-dev/pull/635)):** Removed the dependency on `SQLite.swift` and replaced it with direct interaction with the SQLite C API.
10+
11+
### Fixed
12+
- **Fix possible data races in the WebSocketTransport ([#636](https://github.com/apollographql/apollo-ios-dev/pull/636)):** Fixes possible data race issues in the `subscriptions` property inside of `WebSocketTransport`. _Thank you to [@tahirmt](https://github.com/tahirmt) for the contribution._
13+
- **Fix cache reading of null list items ([#3527](https://github.com/apollographql/apollo-ios/issues/3527)):** Null list items would previously generate a `wrongType` error if stored and read from the cache. This refactors the execution logic to correctly handle values from cache references in lists. See PR [#637](https://github.com/apollographql/apollo-ios-dev/pull/637).
14+
315
## v1.20.0
416

517
### Fixed

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

10 Bytes
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.20.0"
5+
public static let ApolloClientVersion: String = "1.21.0"
66

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

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

Lines changed: 44 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@
115115
"topicSections" : [
116116
{
117117
"identifiers" : [
118-
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/init(networkTransport:store:)",
119-
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/init(url:)"
118+
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/init(networkTransport:store:sendEnhancedClientAwareness:)",
119+
"doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/init(url:sendEnhancedClientAwareness:)"
120120
],
121121
"title" : "Initializers"
122122
},
@@ -266,7 +266,7 @@
266266
"type" : "topic",
267267
"url" : "\/documentation\/apollo\/apolloclient\/apolloclientprotocol-implementations"
268268
},
269-
"doc://Apollo/documentation/Apollo/ApolloClient/init(networkTransport:store:)": {
269+
"doc://Apollo/documentation/Apollo/ApolloClient/init(networkTransport:store:sendEnhancedClientAwareness:)": {
270270
"abstract" : [
271271
{
272272
"text" : "Creates a client with the specified network transport and store.",
@@ -312,19 +312,36 @@
312312
"preciseIdentifier" : "s:6Apollo0A5StoreC",
313313
"text" : "ApolloStore"
314314
},
315+
{
316+
"kind" : "text",
317+
"text" : ", "
318+
},
319+
{
320+
"kind" : "externalParam",
321+
"text" : "sendEnhancedClientAwareness"
322+
},
323+
{
324+
"kind" : "text",
325+
"text" : ": "
326+
},
327+
{
328+
"kind" : "typeIdentifier",
329+
"preciseIdentifier" : "s:Sb",
330+
"text" : "Bool"
331+
},
315332
{
316333
"kind" : "text",
317334
"text" : ")"
318335
}
319336
],
320-
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/init(networkTransport:store:)",
337+
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/init(networkTransport:store:sendEnhancedClientAwareness:)",
321338
"kind" : "symbol",
322339
"role" : "symbol",
323-
"title" : "init(networkTransport:store:)",
340+
"title" : "init(networkTransport:store:sendEnhancedClientAwareness:)",
324341
"type" : "topic",
325-
"url" : "\/documentation\/apollo\/apolloclient\/init(networktransport:store:)"
342+
"url" : "\/documentation\/apollo\/apolloclient\/init(networktransport:store:sendenhancedclientawareness:)"
326343
},
327-
"doc://Apollo/documentation/Apollo/ApolloClient/init(url:)": {
344+
"doc://Apollo/documentation/Apollo/ApolloClient/init(url:sendEnhancedClientAwareness:)": {
328345
"abstract" : [
329346
{
330347
"text" : "Creates a client with a ",
@@ -369,17 +386,34 @@
369386
"preciseIdentifier" : "s:10Foundation3URLV",
370387
"text" : "URL"
371388
},
389+
{
390+
"kind" : "text",
391+
"text" : ", "
392+
},
393+
{
394+
"kind" : "externalParam",
395+
"text" : "sendEnhancedClientAwareness"
396+
},
397+
{
398+
"kind" : "text",
399+
"text" : ": "
400+
},
401+
{
402+
"kind" : "typeIdentifier",
403+
"preciseIdentifier" : "s:Sb",
404+
"text" : "Bool"
405+
},
372406
{
373407
"kind" : "text",
374408
"text" : ")"
375409
}
376410
],
377-
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/init(url:)",
411+
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/init(url:sendEnhancedClientAwareness:)",
378412
"kind" : "symbol",
379413
"role" : "symbol",
380-
"title" : "init(url:)",
414+
"title" : "init(url:sendEnhancedClientAwareness:)",
381415
"type" : "topic",
382-
"url" : "\/documentation\/apollo\/apolloclient\/init(url:)"
416+
"url" : "\/documentation\/apollo\/apolloclient\/init(url:sendenhancedclientawareness:)"
383417
},
384418
"doc://Apollo/documentation/Apollo/ApolloClient/store": {
385419
"abstract" : [

docs/docc/Apollo.doccarchive/data/documentation/apollo/apolloclient/init(networktransport:store:).json renamed to docs/docc/Apollo.doccarchive/data/documentation/apollo/apolloclient/init(networktransport:store:sendenhancedclientawareness:).json

Lines changed: 103 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
},
1616
"identifier" : {
1717
"interfaceLanguage" : "swift",
18-
"url" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/init(networkTransport:store:)"
18+
"url" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/init(networkTransport:store:sendEnhancedClientAwareness:)"
1919
},
2020
"kind" : "symbol",
2121
"metadata" : {
22-
"externalID" : "s:6Apollo0A6ClientC16networkTransport5storeAcA07NetworkD0_p_AA0A5StoreCtcfc",
22+
"externalID" : "s:6Apollo0A6ClientC16networkTransport5store012sendEnhancedB9AwarenessAcA07NetworkD0_p_AA0A5StoreCSbtcfc",
2323
"fragments" : [
2424
{
2525
"kind" : "identifier",
@@ -59,6 +59,23 @@
5959
"preciseIdentifier" : "s:6Apollo0A5StoreC",
6060
"text" : "ApolloStore"
6161
},
62+
{
63+
"kind" : "text",
64+
"text" : ", "
65+
},
66+
{
67+
"kind" : "externalParam",
68+
"text" : "sendEnhancedClientAwareness"
69+
},
70+
{
71+
"kind" : "text",
72+
"text" : ": "
73+
},
74+
{
75+
"kind" : "typeIdentifier",
76+
"preciseIdentifier" : "s:Sb",
77+
"text" : "Bool"
78+
},
6279
{
6380
"kind" : "text",
6481
"text" : ")"
@@ -72,7 +89,7 @@
7289
"role" : "symbol",
7390
"roleHeading" : "Initializer",
7491
"symbolKind" : "init",
75-
"title" : "init(networkTransport:store:)"
92+
"title" : "init(networkTransport:store:sendEnhancedClientAwareness:)"
7693
},
7794
"primaryContentSections" : [
7895
{
@@ -127,7 +144,24 @@
127144
},
128145
{
129146
"kind" : "text",
130-
"text" : ")"
147+
"text" : ", "
148+
},
149+
{
150+
"kind" : "externalParam",
151+
"text" : "sendEnhancedClientAwareness"
152+
},
153+
{
154+
"kind" : "text",
155+
"text" : ": "
156+
},
157+
{
158+
"kind" : "typeIdentifier",
159+
"preciseIdentifier" : "s:Sb",
160+
"text" : "Bool"
161+
},
162+
{
163+
"kind" : "text",
164+
"text" : " = true)"
131165
}
132166
]
133167
}
@@ -164,14 +198,56 @@
164198
"type" : "codeVoice"
165199
},
166200
{
167-
"text" : " or any of its dependencies takes a store, you should make sure the same store is passed here so that it can be cleared properly.",
201+
"text" : " or any of its dependencies takes",
202+
"type" : "text"
203+
},
204+
{
205+
"text" : " ",
206+
"type" : "text"
207+
},
208+
{
209+
"text" : "a store, you should make sure the same store is passed here so that it can be cleared properly.",
168210
"type" : "text"
169211
}
170212
],
171213
"type" : "paragraph"
172214
}
173215
],
174216
"name" : "store"
217+
},
218+
{
219+
"content" : [
220+
{
221+
"inlineContent" : [
222+
{
223+
"text" : "Specifies whether client library metadata is sent in each request ",
224+
"type" : "text"
225+
},
226+
{
227+
"code" : "extensions",
228+
"type" : "codeVoice"
229+
},
230+
{
231+
"text" : " ",
232+
"type" : "text"
233+
},
234+
{
235+
"text" : "key. Client library metadata is the Apollo iOS library name and version. Defaults to ",
236+
"type" : "text"
237+
},
238+
{
239+
"code" : "true",
240+
"type" : "codeVoice"
241+
},
242+
{
243+
"text" : ".",
244+
"type" : "text"
245+
}
246+
],
247+
"type" : "paragraph"
248+
}
249+
],
250+
"name" : "sendEnhancedClientAwareness"
175251
}
176252
]
177253
}
@@ -187,7 +263,7 @@
187263
"variants" : [
188264
{
189265
"paths" : [
190-
"\/documentation\/apollo\/apolloclient\/init(networktransport:store:)"
266+
"\/documentation\/apollo\/apolloclient\/init(networktransport:store:sendenhancedclientawareness:)"
191267
],
192268
"traits" : [
193269
{
@@ -262,7 +338,7 @@
262338
"type" : "topic",
263339
"url" : "\/documentation\/apollo\/apolloclient"
264340
},
265-
"doc://Apollo/documentation/Apollo/ApolloClient/init(networkTransport:store:)": {
341+
"doc://Apollo/documentation/Apollo/ApolloClient/init(networkTransport:store:sendEnhancedClientAwareness:)": {
266342
"abstract" : [
267343
{
268344
"text" : "Creates a client with the specified network transport and store.",
@@ -308,17 +384,34 @@
308384
"preciseIdentifier" : "s:6Apollo0A5StoreC",
309385
"text" : "ApolloStore"
310386
},
387+
{
388+
"kind" : "text",
389+
"text" : ", "
390+
},
391+
{
392+
"kind" : "externalParam",
393+
"text" : "sendEnhancedClientAwareness"
394+
},
395+
{
396+
"kind" : "text",
397+
"text" : ": "
398+
},
399+
{
400+
"kind" : "typeIdentifier",
401+
"preciseIdentifier" : "s:Sb",
402+
"text" : "Bool"
403+
},
311404
{
312405
"kind" : "text",
313406
"text" : ")"
314407
}
315408
],
316-
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/init(networkTransport:store:)",
409+
"identifier" : "doc:\/\/Apollo\/documentation\/Apollo\/ApolloClient\/init(networkTransport:store:sendEnhancedClientAwareness:)",
317410
"kind" : "symbol",
318411
"role" : "symbol",
319-
"title" : "init(networkTransport:store:)",
412+
"title" : "init(networkTransport:store:sendEnhancedClientAwareness:)",
320413
"type" : "topic",
321-
"url" : "\/documentation\/apollo\/apolloclient\/init(networktransport:store:)"
414+
"url" : "\/documentation\/apollo\/apolloclient\/init(networktransport:store:sendenhancedclientawareness:)"
322415
},
323416
"doc://Apollo/documentation/Apollo/ApolloStore": {
324417
"abstract" : [

0 commit comments

Comments
 (0)