@apollo/client 3.11.2 → 3.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/apollo-client.cjs +105 -86
  3. package/apollo-client.cjs.map +1 -1
  4. package/apollo-client.min.cjs +1 -1
  5. package/core/ObservableQuery.js +72 -43
  6. package/core/ObservableQuery.js.map +1 -1
  7. package/core/QueryManager.js +19 -11
  8. package/core/QueryManager.js.map +1 -1
  9. package/core/core.cjs +62 -43
  10. package/core/core.cjs.map +1 -1
  11. package/core/core.cjs.native.js +62 -43
  12. package/dev/dev.cjs +72 -67
  13. package/dev/dev.cjs.map +1 -1
  14. package/dev/dev.cjs.native.js +72 -67
  15. package/invariantErrorCodes.js +72 -66
  16. package/link/core/ApolloLink.js +2 -2
  17. package/link/core/core.cjs +2 -2
  18. package/link/core/core.cjs.map +1 -1
  19. package/link/core/core.cjs.native.js +2 -2
  20. package/link/http/checkFetcher.js +1 -1
  21. package/link/http/createHttpLink.js +1 -1
  22. package/link/http/http.cjs +3 -3
  23. package/link/http/http.cjs.map +1 -1
  24. package/link/http/http.cjs.native.js +3 -3
  25. package/link/http/serializeFetchParameter.js +1 -1
  26. package/link/persisted-queries/index.js +2 -2
  27. package/link/persisted-queries/persisted-queries.cjs +2 -2
  28. package/link/persisted-queries/persisted-queries.cjs.map +1 -1
  29. package/link/persisted-queries/persisted-queries.cjs.native.js +2 -2
  30. package/link/utils/toPromise.js +1 -1
  31. package/link/utils/utils.cjs +2 -2
  32. package/link/utils/utils.cjs.map +1 -1
  33. package/link/utils/utils.cjs.native.js +2 -2
  34. package/link/utils/validateOperation.js +1 -1
  35. package/package.json +1 -1
  36. package/react/context/ApolloConsumer.js +1 -1
  37. package/react/context/ApolloContext.js +1 -1
  38. package/react/context/ApolloProvider.js +1 -1
  39. package/react/context/context.cjs +3 -3
  40. package/react/context/context.cjs.map +1 -1
  41. package/react/context/context.cjs.native.js +3 -3
  42. package/react/hoc/hoc-utils.js +1 -1
  43. package/react/hoc/hoc.cjs +2 -2
  44. package/react/hoc/hoc.cjs.map +1 -1
  45. package/react/hoc/hoc.cjs.native.js +2 -2
  46. package/react/hoc/withApollo.js +1 -1
  47. package/react/hooks/hooks.cjs +9 -9
  48. package/react/hooks/hooks.cjs.map +1 -1
  49. package/react/hooks/hooks.cjs.native.js +9 -9
  50. package/react/hooks/useApolloClient.js +1 -1
  51. package/react/hooks/useLoadableQuery.js +2 -2
  52. package/react/hooks/useSubscription.js +3 -3
  53. package/react/hooks/useSuspenseQuery.js +2 -2
  54. package/react/hooks/useSyncExternalStore.js +1 -1
  55. package/react/internal/cache/QueryReference.js +1 -1
  56. package/react/internal/internal.cjs +2 -2
  57. package/react/internal/internal.cjs.map +1 -1
  58. package/react/internal/internal.cjs.native.js +2 -2
  59. package/react/parser/index.js +5 -5
  60. package/react/parser/parser.cjs +5 -5
  61. package/react/parser/parser.cjs.map +1 -1
  62. package/react/parser/parser.cjs.native.js +5 -5
  63. package/testing/core/core.cjs +2 -2
  64. package/testing/core/core.cjs.map +1 -1
  65. package/testing/core/core.cjs.native.js +2 -2
  66. package/testing/core/mocking/mockLink.js +2 -2
  67. package/testing/internal/scenarios/index.d.ts +5 -0
  68. package/testing/internal/scenarios/index.js +1 -1
  69. package/testing/internal/scenarios/index.js.map +1 -1
  70. package/utilities/globals/globals.cjs +1 -1
  71. package/utilities/globals/globals.cjs.map +1 -1
  72. package/utilities/globals/globals.cjs.native.js +1 -1
  73. package/utilities/graphql/DocumentTransform.js +1 -1
  74. package/utilities/graphql/directives.js +4 -4
  75. package/utilities/graphql/fragments.js +3 -3
  76. package/utilities/graphql/getFromAST.js +8 -8
  77. package/utilities/graphql/storeUtils.js +1 -1
  78. package/utilities/graphql/transform.js +2 -2
  79. package/utilities/utilities.cjs +19 -19
  80. package/utilities/utilities.cjs.map +1 -1
  81. package/utilities/utilities.cjs.native.js +19 -19
  82. package/version.js +1 -1
@@ -76,30 +76,36 @@ export const errorCodes = // This file is used by the error message display webs
76
76
  message: "No fragment named %s"
77
77
  },
78
78
 
79
- 22: {
79
+ 21: {
80
+ file: "@apollo/client/core/ObservableQuery.js",
81
+ condition: "updateQuery",
82
+ message: "You must provide an `updateQuery` function when using `fetchMore` with a `no-cache` fetch policy."
83
+ },
84
+
85
+ 23: {
80
86
  file: "@apollo/client/core/ObservableQuery.js",
81
87
  condition: "pollInterval",
82
88
  message: "Attempted to start a polling query without a polling interval."
83
89
  },
84
90
 
85
- 25: {
91
+ 26: {
86
92
  file: "@apollo/client/core/QueryManager.js",
87
93
  message: "QueryManager stopped while query was in flight"
88
94
  },
89
95
 
90
- 26: {
96
+ 27: {
91
97
  file: "@apollo/client/core/QueryManager.js",
92
98
  condition: "mutation",
93
99
  message: "mutation option is required. You must specify your GraphQL document in the mutation option."
94
100
  },
95
101
 
96
- 27: {
102
+ 28: {
97
103
  file: "@apollo/client/core/QueryManager.js",
98
104
  condition: "fetchPolicy === \"network-only\" || fetchPolicy === \"no-cache\"",
99
105
  message: "Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."
100
106
  },
101
107
 
102
- 28: {
108
+ 29: {
103
109
  file: "@apollo/client/core/QueryManager.js",
104
110
  condition: "options.query",
105
111
 
@@ -107,45 +113,45 @@ export const errorCodes = // This file is used by the error message display webs
107
113
  "in the query option."
108
114
  },
109
115
 
110
- 29: {
116
+ 30: {
111
117
  file: "@apollo/client/core/QueryManager.js",
112
118
  condition: "options.query.kind === \"Document\"",
113
119
  message: 'You must wrap the query string in a "gql" tag.'
114
120
  },
115
121
 
116
- 30: {
122
+ 31: {
117
123
  file: "@apollo/client/core/QueryManager.js",
118
124
  condition: "!options.returnPartialData",
119
125
  message: "returnPartialData option only supported on watchQuery."
120
126
  },
121
127
 
122
- 31: {
128
+ 32: {
123
129
  file: "@apollo/client/core/QueryManager.js",
124
130
  condition: "!options.pollInterval",
125
131
  message: "pollInterval option only supported on watchQuery."
126
132
  },
127
133
 
128
- 32: {
134
+ 33: {
129
135
  file: "@apollo/client/core/QueryManager.js",
130
136
  message: "Store reset while query was in flight (not completed in link chain)"
131
137
  },
132
138
 
133
- 36: {
139
+ 37: {
134
140
  file: "@apollo/client/link/core/ApolloLink.js",
135
141
  message: "request is not implemented"
136
142
  },
137
143
 
138
- 37: {
144
+ 38: {
139
145
  file: "@apollo/client/link/http/checkFetcher.js",
140
146
  message: "\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "
141
147
  },
142
148
 
143
- 39: {
149
+ 40: {
144
150
  file: "@apollo/client/link/http/serializeFetchParameter.js",
145
151
  message: "Network request failed. %s is not serializable: %s"
146
152
  },
147
153
 
148
- 40: {
154
+ 41: {
149
155
  file: "@apollo/client/link/persisted-queries/index.js",
150
156
  condition: "options &&\n (typeof options.sha256 === \"function\" ||\n typeof options.generateHash === \"function\")",
151
157
 
@@ -154,18 +160,18 @@ export const errorCodes = // This file is used by the error message display webs
154
160
  "parameter."
155
161
  },
156
162
 
157
- 41: {
163
+ 42: {
158
164
  file: "@apollo/client/link/persisted-queries/index.js",
159
165
  condition: "forward",
160
166
  message: "PersistedQueryLink cannot be the last link in the chain."
161
167
  },
162
168
 
163
- 43: {
169
+ 44: {
164
170
  file: "@apollo/client/link/utils/validateOperation.js",
165
171
  message: "illegal argument: %s"
166
172
  },
167
173
 
168
- 44: {
174
+ 45: {
169
175
  file: "@apollo/client/react/context/ApolloConsumer.js",
170
176
  condition: "context && context.client",
171
177
 
@@ -173,7 +179,7 @@ export const errorCodes = // This file is used by the error message display webs
173
179
  "Wrap the root component in an <ApolloProvider>."
174
180
  },
175
181
 
176
- 45: {
182
+ 46: {
177
183
  file: "@apollo/client/react/context/ApolloContext.js",
178
184
  condition: "\"createContext\" in React",
179
185
 
@@ -184,7 +190,7 @@ export const errorCodes = // This file is used by the error message display webs
184
190
  "For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components"
185
191
  },
186
192
 
187
- 46: {
193
+ 47: {
188
194
  file: "@apollo/client/react/context/ApolloProvider.js",
189
195
  condition: "context.client",
190
196
 
@@ -192,7 +198,7 @@ export const errorCodes = // This file is used by the error message display webs
192
198
  'sure you pass in your client via the "client" prop.'
193
199
  },
194
200
 
195
- 47: {
201
+ 48: {
196
202
  file: "@apollo/client/react/hoc/hoc-utils.js",
197
203
  condition: "this.withRef",
198
204
 
@@ -200,7 +206,7 @@ export const errorCodes = // This file is used by the error message display webs
200
206
  "{ withRef: true } in the options"
201
207
  },
202
208
 
203
- 48: {
209
+ 49: {
204
210
  file: "@apollo/client/react/hoc/withApollo.js",
205
211
  condition: "operationOptions.withRef",
206
212
 
@@ -208,7 +214,7 @@ export const errorCodes = // This file is used by the error message display webs
208
214
  "{ withRef: true } in the options"
209
215
  },
210
216
 
211
- 49: {
217
+ 50: {
212
218
  file: "@apollo/client/react/hooks/useApolloClient.js",
213
219
  condition: "!!client",
214
220
 
@@ -217,37 +223,37 @@ export const errorCodes = // This file is used by the error message display webs
217
223
  "instance in via options."
218
224
  },
219
225
 
220
- 50: {
226
+ 51: {
221
227
  file: "@apollo/client/react/hooks/useLoadableQuery.js",
222
228
  condition: "!calledDuringRender()",
223
229
  message: "useLoadableQuery: 'loadQuery' should not be called during render. To start a query during render, use the 'useBackgroundQuery' hook."
224
230
  },
225
231
 
226
- 51: {
232
+ 52: {
227
233
  file: "@apollo/client/react/hooks/useLoadableQuery.js",
228
234
  condition: "internalQueryRef",
229
235
  message: "The query has not been loaded. Please load the query."
230
236
  },
231
237
 
232
- 56: {
238
+ 57: {
233
239
  file: "@apollo/client/react/hooks/useSubscription.js",
234
240
  condition: "!optionsRef.current.skip",
235
241
  message: "A subscription that is skipped cannot be restarted."
236
242
  },
237
243
 
238
- 57: {
244
+ 58: {
239
245
  file: "@apollo/client/react/hooks/useSuspenseQuery.js",
240
246
  condition: "supportedFetchPolicies.includes(fetchPolicy)",
241
247
  message: "The fetch policy `%s` is not supported with suspense."
242
248
  },
243
249
 
244
- 60: {
250
+ 61: {
245
251
  file: "@apollo/client/react/internal/cache/QueryReference.js",
246
252
  condition: "!queryRef || QUERY_REFERENCE_SYMBOL in queryRef",
247
253
  message: "Expected a QueryRef object, but got something else instead."
248
254
  },
249
255
 
250
- 61: {
256
+ 62: {
251
257
  file: "@apollo/client/react/parser/index.js",
252
258
  condition: "!!document && !!document.kind",
253
259
 
@@ -256,7 +262,7 @@ export const errorCodes = // This file is used by the error message display webs
256
262
  "to convert your operation into a document"
257
263
  },
258
264
 
259
- 62: {
265
+ 63: {
260
266
  file: "@apollo/client/react/parser/index.js",
261
267
  condition: "!fragments.length ||\n queries.length ||\n mutations.length ||\n subscriptions.length",
262
268
 
@@ -264,7 +270,7 @@ export const errorCodes = // This file is used by the error message display webs
264
270
  "You must include a query, subscription or mutation as well"
265
271
  },
266
272
 
267
- 63: {
273
+ 64: {
268
274
  file: "@apollo/client/react/parser/index.js",
269
275
  condition: "queries.length + mutations.length + subscriptions.length <= 1",
270
276
 
@@ -274,7 +280,7 @@ export const errorCodes = // This file is used by the error message display webs
274
280
  "You can use 'compose' to join multiple operation types to a component"
275
281
  },
276
282
 
277
- 64: {
283
+ 65: {
278
284
  file: "@apollo/client/react/parser/index.js",
279
285
  condition: "definitions.length === 1",
280
286
 
@@ -283,120 +289,120 @@ export const errorCodes = // This file is used by the error message display webs
283
289
  "You can use 'compose' to join multiple operation types to a component"
284
290
  },
285
291
 
286
- 65: {
292
+ 66: {
287
293
  file: "@apollo/client/react/parser/index.js",
288
294
  condition: "operation.type === type",
289
295
  message: "Running a %s requires a graphql " + "%s, but a %s was used instead."
290
296
  },
291
297
 
292
- 66: {
298
+ 67: {
293
299
  file: "@apollo/client/testing/core/mocking/mockLink.js",
294
300
  condition: "queryWithoutClientOnlyDirectives",
295
301
  message: "query is required"
296
302
  },
297
303
 
298
- 67: {
304
+ 68: {
299
305
  file: "@apollo/client/testing/core/mocking/mockLink.js",
300
306
  condition: "mockedResponse.maxUsageCount > 0",
301
307
  message: "Mock response maxUsageCount must be greater than 0, %s given"
302
308
  },
303
309
 
304
- 68: {
310
+ 69: {
305
311
  file: "@apollo/client/utilities/graphql/DocumentTransform.js",
306
312
  condition: "Array.isArray(cacheKeys)",
307
313
  message: "`getCacheKey` must return an array or undefined"
308
314
  },
309
315
 
310
- 69: {
316
+ 70: {
311
317
  file: "@apollo/client/utilities/graphql/directives.js",
312
318
  condition: "evaledValue !== void 0",
313
319
  message: "Invalid variable referenced in @%s directive."
314
320
  },
315
321
 
316
- 70: {
322
+ 71: {
317
323
  file: "@apollo/client/utilities/graphql/directives.js",
318
324
  condition: "directiveArguments && directiveArguments.length === 1",
319
325
  message: "Incorrect number of arguments for the @%s directive."
320
326
  },
321
327
 
322
- 71: {
328
+ 72: {
323
329
  file: "@apollo/client/utilities/graphql/directives.js",
324
330
  condition: "ifArgument.name && ifArgument.name.value === \"if\"",
325
331
  message: "Invalid argument for the @%s directive."
326
332
  },
327
333
 
328
- 72: {
334
+ 73: {
329
335
  file: "@apollo/client/utilities/graphql/directives.js",
330
336
  condition: "ifValue &&\n (ifValue.kind === \"Variable\" || ifValue.kind === \"BooleanValue\")",
331
337
  message: "Argument for the @%s directive must be a variable or a boolean value."
332
338
  },
333
339
 
334
- 73: {
340
+ 74: {
335
341
  file: "@apollo/client/utilities/graphql/fragments.js",
336
342
 
337
343
  message: "Found a %s operation%s. " +
338
344
  "No operations are allowed when using a fragment as a query. Only fragments are allowed."
339
345
  },
340
346
 
341
- 74: {
347
+ 75: {
342
348
  file: "@apollo/client/utilities/graphql/fragments.js",
343
349
  condition: "fragments.length === 1",
344
350
  message: "Found %s fragments. `fragmentName` must be provided when there is not exactly 1 fragment."
345
351
  },
346
352
 
347
- 75: {
353
+ 76: {
348
354
  file: "@apollo/client/utilities/graphql/fragments.js",
349
355
  condition: "fragment",
350
356
  message: "No fragment named %s"
351
357
  },
352
358
 
353
- 76: {
359
+ 77: {
354
360
  file: "@apollo/client/utilities/graphql/getFromAST.js",
355
361
  condition: "doc && doc.kind === \"Document\"",
356
362
  message: "Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \"gql\" tag? http://docs.apollostack.com/apollo-client/core.html#gql"
357
363
  },
358
364
 
359
- 77: {
365
+ 78: {
360
366
  file: "@apollo/client/utilities/graphql/getFromAST.js",
361
367
  message: "Schema type definitions not allowed in queries. Found: \"%s\""
362
368
  },
363
369
 
364
- 78: {
370
+ 79: {
365
371
  file: "@apollo/client/utilities/graphql/getFromAST.js",
366
372
  condition: "operations.length <= 1",
367
373
  message: "Ambiguous GraphQL document: contains %s operations"
368
374
  },
369
375
 
370
- 79: {
376
+ 80: {
371
377
  file: "@apollo/client/utilities/graphql/getFromAST.js",
372
378
  condition: "queryDef && queryDef.operation === \"query\"",
373
379
  message: "Must contain a query definition."
374
380
  },
375
381
 
376
- 80: {
382
+ 81: {
377
383
  file: "@apollo/client/utilities/graphql/getFromAST.js",
378
384
  condition: "doc.kind === \"Document\"",
379
385
  message: "Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \"gql\" tag? http://docs.apollostack.com/apollo-client/core.html#gql"
380
386
  },
381
387
 
382
- 81: {
388
+ 82: {
383
389
  file: "@apollo/client/utilities/graphql/getFromAST.js",
384
390
  condition: "doc.definitions.length <= 1",
385
391
  message: "Fragment must have exactly one definition."
386
392
  },
387
393
 
388
- 82: {
394
+ 83: {
389
395
  file: "@apollo/client/utilities/graphql/getFromAST.js",
390
396
  condition: "fragmentDef.kind === \"FragmentDefinition\"",
391
397
  message: "Must be a fragment definition."
392
398
  },
393
399
 
394
- 83: {
400
+ 84: {
395
401
  file: "@apollo/client/utilities/graphql/getFromAST.js",
396
402
  message: "Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."
397
403
  },
398
404
 
399
- 84: {
405
+ 85: {
400
406
  file: "@apollo/client/utilities/graphql/storeUtils.js",
401
407
 
402
408
  message: "The inline argument \"%s\" of kind \"%s\"" +
@@ -411,7 +417,7 @@ export const devDebug = {
411
417
  message: "In client.refetchQueries, Promise.all promise rejected with error %o"
412
418
  },
413
419
 
414
- 24: {
420
+ 25: {
415
421
  file: "@apollo/client/core/ObservableQuery.js",
416
422
  message: "Missing cache result fields: %o"
417
423
  }
@@ -455,57 +461,57 @@ export const devWarn = {
455
461
  message: "Called refetch(%o) for query %o, which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"
456
462
  },
457
463
 
458
- 33: {
464
+ 34: {
459
465
  file: "@apollo/client/core/QueryManager.js",
460
466
  message: "Unknown query named \"%s\" requested in refetchQueries options.include array"
461
467
  },
462
468
 
463
- 34: {
469
+ 35: {
464
470
  file: "@apollo/client/core/QueryManager.js",
465
471
  message: "Unknown query %o requested in refetchQueries options.include array"
466
472
  },
467
473
 
468
- 35: {
474
+ 36: {
469
475
  file: "@apollo/client/link/core/ApolloLink.js",
470
476
  message: "You are calling concat on a terminating link, which will have no effect %o"
471
477
  },
472
478
 
473
- 38: {
479
+ 39: {
474
480
  file: "@apollo/client/link/http/createHttpLink.js",
475
481
  message: "Multipart-subscriptions do not support @defer"
476
482
  },
477
483
 
478
- 42: {
484
+ 43: {
479
485
  file: "@apollo/client/link/utils/toPromise.js",
480
486
  message: "Promise Wrapper does not support multiple results from Observable"
481
487
  },
482
488
 
483
- 52: {
489
+ 53: {
484
490
  file: "@apollo/client/react/hooks/useSubscription.js",
485
491
  message: "'useSubscription' supports only the 'onSubscriptionData' or 'onData' option, but not both. Only the 'onData' option will be used."
486
492
  },
487
493
 
488
- 53: {
494
+ 54: {
489
495
  file: "@apollo/client/react/hooks/useSubscription.js",
490
496
  message: "'onSubscriptionData' is deprecated and will be removed in a future major version. Please use the 'onData' option instead."
491
497
  },
492
498
 
493
- 54: {
499
+ 55: {
494
500
  file: "@apollo/client/react/hooks/useSubscription.js",
495
501
  message: "'useSubscription' supports only the 'onSubscriptionComplete' or 'onComplete' option, but not both. Only the 'onComplete' option will be used."
496
502
  },
497
503
 
498
- 55: {
504
+ 56: {
499
505
  file: "@apollo/client/react/hooks/useSubscription.js",
500
506
  message: "'onSubscriptionComplete' is deprecated and will be removed in a future major version. Please use the 'onComplete' option instead."
501
507
  },
502
508
 
503
- 58: {
509
+ 59: {
504
510
  file: "@apollo/client/react/hooks/useSuspenseQuery.js",
505
511
  message: "Using `returnPartialData` with a `no-cache` fetch policy has no effect. To read partial data from the cache, consider using an alternate fetch policy."
506
512
  },
507
513
 
508
- 86: {
514
+ 87: {
509
515
  file: "@apollo/client/utilities/graphql/transform.js",
510
516
 
511
517
  message: "Removing an @connection directive even though it does not have a key. " +
@@ -519,22 +525,22 @@ export const devError = {
519
525
  message: "Missing field '%s' while writing result %o"
520
526
  },
521
527
 
522
- 21: {
528
+ 22: {
523
529
  file: "@apollo/client/core/ObservableQuery.js",
524
530
  message: "Unhandled GraphQL subscription error"
525
531
  },
526
532
 
527
- 23: {
533
+ 24: {
528
534
  file: "@apollo/client/core/ObservableQuery.js",
529
535
  message: "Unhandled error"
530
536
  },
531
537
 
532
- 59: {
538
+ 60: {
533
539
  file: "@apollo/client/react/hooks/useSyncExternalStore.js",
534
540
  message: "The result of getSnapshot should be cached to avoid an infinite loop"
535
541
  },
536
542
 
537
- 85: {
543
+ 86: {
538
544
  file: "@apollo/client/utilities/graphql/transform.js",
539
545
  message: "Could not find operation or fragment"
540
546
  }
@@ -49,7 +49,7 @@ var ApolloLink = /** @class */ (function () {
49
49
  ApolloLink.concat = function (first, second) {
50
50
  var firstLink = toLink(first);
51
51
  if (isTerminating(firstLink)) {
52
- globalThis.__DEV__ !== false && invariant.warn(35, firstLink);
52
+ globalThis.__DEV__ !== false && invariant.warn(36, firstLink);
53
53
  return firstLink;
54
54
  }
55
55
  var nextLink = toLink(second);
@@ -75,7 +75,7 @@ var ApolloLink = /** @class */ (function () {
75
75
  return ApolloLink.concat(this, next);
76
76
  };
77
77
  ApolloLink.prototype.request = function (operation, forward) {
78
- throw newInvariantError(36);
78
+ throw newInvariantError(37);
79
79
  };
80
80
  ApolloLink.prototype.onError = function (error, observer) {
81
81
  if (observer && observer.error) {
@@ -54,7 +54,7 @@ var ApolloLink = (function () {
54
54
  ApolloLink.concat = function (first, second) {
55
55
  var firstLink = toLink(first);
56
56
  if (isTerminating(firstLink)) {
57
- globalThis.__DEV__ !== false && globals.invariant.warn(35, firstLink);
57
+ globalThis.__DEV__ !== false && globals.invariant.warn(36, firstLink);
58
58
  return firstLink;
59
59
  }
60
60
  var nextLink = toLink(second);
@@ -80,7 +80,7 @@ var ApolloLink = (function () {
80
80
  return ApolloLink.concat(this, next);
81
81
  };
82
82
  ApolloLink.prototype.request = function (operation, forward) {
83
- throw globals.newInvariantError(36);
83
+ throw globals.newInvariantError(37);
84
84
  };
85
85
  ApolloLink.prototype.onError = function (error, observer) {
86
86
  if (observer && observer.error) {
@@ -1 +1 @@
1
- {"version":3,"file":"core.cjs","sources":["ApolloLink.js","empty.js","from.js","split.js","concat.js","execute.js"],"sourcesContent":["import { newInvariantError, invariant } from \"../../utilities/globals/index.js\";\nimport { Observable } from \"../../utilities/index.js\";\nimport { validateOperation, createOperation, transformOperation, } from \"../utils/index.js\";\nfunction passthrough(op, forward) {\n return (forward ? forward(op) : Observable.of());\n}\nfunction toLink(handler) {\n return typeof handler === \"function\" ? new ApolloLink(handler) : handler;\n}\nfunction isTerminating(link) {\n return link.request.length <= 1;\n}\nvar ApolloLink = /** @class */ (function () {\n function ApolloLink(request) {\n if (request)\n this.request = request;\n }\n ApolloLink.empty = function () {\n return new ApolloLink(function () { return Observable.of(); });\n };\n ApolloLink.from = function (links) {\n if (links.length === 0)\n return ApolloLink.empty();\n return links.map(toLink).reduce(function (x, y) { return x.concat(y); });\n };\n ApolloLink.split = function (test, left, right) {\n var leftLink = toLink(left);\n var rightLink = toLink(right || new ApolloLink(passthrough));\n var ret;\n if (isTerminating(leftLink) && isTerminating(rightLink)) {\n ret = new ApolloLink(function (operation) {\n return test(operation) ?\n leftLink.request(operation) || Observable.of()\n : rightLink.request(operation) || Observable.of();\n });\n }\n else {\n ret = new ApolloLink(function (operation, forward) {\n return test(operation) ?\n leftLink.request(operation, forward) || Observable.of()\n : rightLink.request(operation, forward) || Observable.of();\n });\n }\n return Object.assign(ret, { left: leftLink, right: rightLink });\n };\n ApolloLink.execute = function (link, operation) {\n return (link.request(createOperation(operation.context, transformOperation(validateOperation(operation)))) || Observable.of());\n };\n ApolloLink.concat = function (first, second) {\n var firstLink = toLink(first);\n if (isTerminating(firstLink)) {\n globalThis.__DEV__ !== false && invariant.warn(35, firstLink);\n return firstLink;\n }\n var nextLink = toLink(second);\n var ret;\n if (isTerminating(nextLink)) {\n ret = new ApolloLink(function (operation) {\n return firstLink.request(operation, function (op) { return nextLink.request(op) || Observable.of(); }) || Observable.of();\n });\n }\n else {\n ret = new ApolloLink(function (operation, forward) {\n return (firstLink.request(operation, function (op) {\n return nextLink.request(op, forward) || Observable.of();\n }) || Observable.of());\n });\n }\n return Object.assign(ret, { left: firstLink, right: nextLink });\n };\n ApolloLink.prototype.split = function (test, left, right) {\n return this.concat(ApolloLink.split(test, left, right || new ApolloLink(passthrough)));\n };\n ApolloLink.prototype.concat = function (next) {\n return ApolloLink.concat(this, next);\n };\n ApolloLink.prototype.request = function (operation, forward) {\n throw newInvariantError(36);\n };\n ApolloLink.prototype.onError = function (error, observer) {\n if (observer && observer.error) {\n observer.error(error);\n // Returning false indicates that observer.error does not need to be\n // called again, since it was already called (on the previous line).\n // Calling observer.error again would not cause any real problems,\n // since only the first call matters, but custom onError functions\n // might have other reasons for wanting to prevent the default\n // behavior by returning false.\n return false;\n }\n // Throw errors will be passed to observer.error.\n throw error;\n };\n ApolloLink.prototype.setOnError = function (fn) {\n this.onError = fn;\n return this;\n };\n return ApolloLink;\n}());\nexport { ApolloLink };\n//# sourceMappingURL=ApolloLink.js.map","import { ApolloLink } from \"./ApolloLink.js\";\nexport var empty = ApolloLink.empty;\n//# sourceMappingURL=empty.js.map","import { ApolloLink } from \"./ApolloLink.js\";\nexport var from = ApolloLink.from;\n//# sourceMappingURL=from.js.map","import { ApolloLink } from \"./ApolloLink.js\";\nexport var split = ApolloLink.split;\n//# sourceMappingURL=split.js.map","import { ApolloLink } from \"./ApolloLink.js\";\nexport var concat = ApolloLink.concat;\n//# sourceMappingURL=concat.js.map","import { ApolloLink } from \"./ApolloLink.js\";\nexport var execute = ApolloLink.execute;\n//# sourceMappingURL=execute.js.map"],"names":["Observable","createOperation","transformOperation","validateOperation","invariant","newInvariantError"],"mappings":";;;;;;;;AAGA,SAAS,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE;AAClC,IAAI,QAAQ,OAAO,GAAG,OAAO,CAAC,EAAE,CAAC,GAAGA,oBAAU,CAAC,EAAE,EAAE,EAAE;AACrD,CAAC;AACD,SAAS,MAAM,CAAC,OAAO,EAAE;AACzB,IAAI,OAAO,OAAO,OAAO,KAAK,UAAU,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AAC7E,CAAC;AACD,SAAS,aAAa,CAAC,IAAI,EAAE;AAC7B,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC;AACpC,CAAC;AACE,IAAC,UAAU,KAAkB,YAAY;AAC5C,IAAI,SAAS,UAAU,CAAC,OAAO,EAAE;AACjC,QAAQ,IAAI,OAAO;AACnB,YAAY,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACnC,KAAK;AACL,IAAI,UAAU,CAAC,KAAK,GAAG,YAAY;AACnC,QAAQ,OAAO,IAAI,UAAU,CAAC,YAAY,EAAE,OAAOA,oBAAU,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,KAAK,CAAC;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AAC9D,QAAQ,IAAI,QAAQ,IAAI,QAAQ,CAAC,KAAK,EAAE;AACxC,YAAY,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAOlC,YAAY,OAAO,KAAK,CAAC;AACzB,SAAS;AAET,QAAQ,MAAM,KAAK,CAAC;AACpB,KAAK,CAAC;AACN,IAAI,UAAU,CAAC,SAAS,CAAC,UAAU,GAAG,UAAU,EAAE,EAAE;AACpD,QAAQ,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;AAC1B,QAAQ,OAAO,IAAI,CAAC;AACpB,KAAK,CAAC;AACN,IAAI,OAAO,UAAU,CAAC;AACtB,CAAC,EAAE;;ACjGO,IAAC,KAAK,GAAG,UAAU,CAAC;;ACApB,IAAC,IAAI,GAAG,UAAU,CAAC;;ACAnB,IAAC,KAAK,GAAG,UAAU,CAAC;;ACApB,IAAC,MAAM,GAAG,UAAU,CAAC;;ACArB,IAAC,OAAO,GAAG,UAAU,CAAC;;;;;;;;;"}
1
+ {"version":3,"file":"core.cjs","sources":["ApolloLink.js","empty.js","from.js","split.js","concat.js","execute.js"],"sourcesContent":["import { newInvariantError, invariant } from \"../../utilities/globals/index.js\";\nimport { Observable } from \"../../utilities/index.js\";\nimport { validateOperation, createOperation, transformOperation, } from \"../utils/index.js\";\nfunction passthrough(op, forward) {\n return (forward ? forward(op) : Observable.of());\n}\nfunction toLink(handler) {\n return typeof handler === \"function\" ? new ApolloLink(handler) : handler;\n}\nfunction isTerminating(link) {\n return link.request.length <= 1;\n}\nvar ApolloLink = /** @class */ (function () {\n function ApolloLink(request) {\n if (request)\n this.request = request;\n }\n ApolloLink.empty = function () {\n return new ApolloLink(function () { return Observable.of(); });\n };\n ApolloLink.from = function (links) {\n if (links.length === 0)\n return ApolloLink.empty();\n return links.map(toLink).reduce(function (x, y) { return x.concat(y); });\n };\n ApolloLink.split = function (test, left, right) {\n var leftLink = toLink(left);\n var rightLink = toLink(right || new ApolloLink(passthrough));\n var ret;\n if (isTerminating(leftLink) && isTerminating(rightLink)) {\n ret = new ApolloLink(function (operation) {\n return test(operation) ?\n leftLink.request(operation) || Observable.of()\n : rightLink.request(operation) || Observable.of();\n });\n }\n else {\n ret = new ApolloLink(function (operation, forward) {\n return test(operation) ?\n leftLink.request(operation, forward) || Observable.of()\n : rightLink.request(operation, forward) || Observable.of();\n });\n }\n return Object.assign(ret, { left: leftLink, right: rightLink });\n };\n ApolloLink.execute = function (link, operation) {\n return (link.request(createOperation(operation.context, transformOperation(validateOperation(operation)))) || Observable.of());\n };\n ApolloLink.concat = function (first, second) {\n var firstLink = toLink(first);\n if (isTerminating(firstLink)) {\n globalThis.__DEV__ !== false && invariant.warn(36, firstLink);\n return firstLink;\n }\n var nextLink = toLink(second);\n var ret;\n if (isTerminating(nextLink)) {\n ret = new ApolloLink(function (operation) {\n return firstLink.request(operation, function (op) { return nextLink.request(op) || Observable.of(); }) || Observable.of();\n });\n }\n else {\n ret = new ApolloLink(function (operation, forward) {\n return (firstLink.request(operation, function (op) {\n return nextLink.request(op, forward) || Observable.of();\n }) || Observable.of());\n });\n }\n return Object.assign(ret, { left: firstLink, right: nextLink });\n };\n ApolloLink.prototype.split = function (test, left, right) {\n return this.concat(ApolloLink.split(test, left, right || new ApolloLink(passthrough)));\n };\n ApolloLink.prototype.concat = function (next) {\n return ApolloLink.concat(this, next);\n };\n ApolloLink.prototype.request = function (operation, forward) {\n throw newInvariantError(37);\n };\n ApolloLink.prototype.onError = function (error, observer) {\n if (observer && observer.error) {\n observer.error(error);\n // Returning false indicates that observer.error does not need to be\n // called again, since it was already called (on the previous line).\n // Calling observer.error again would not cause any real problems,\n // since only the first call matters, but custom onError functions\n // might have other reasons for wanting to prevent the default\n // behavior by returning false.\n return false;\n }\n // Throw errors will be passed to observer.error.\n throw error;\n };\n ApolloLink.prototype.setOnError = function (fn) {\n this.onError = fn;\n return this;\n };\n return ApolloLink;\n}());\nexport { ApolloLink };\n//# sourceMappingURL=ApolloLink.js.map","import { ApolloLink } from \"./ApolloLink.js\";\nexport var empty = ApolloLink.empty;\n//# sourceMappingURL=empty.js.map","import { ApolloLink } from \"./ApolloLink.js\";\nexport var from = ApolloLink.from;\n//# sourceMappingURL=from.js.map","import { ApolloLink } from \"./ApolloLink.js\";\nexport var split = ApolloLink.split;\n//# sourceMappingURL=split.js.map","import { ApolloLink } from \"./ApolloLink.js\";\nexport var concat = ApolloLink.concat;\n//# sourceMappingURL=concat.js.map","import { ApolloLink } from \"./ApolloLink.js\";\nexport var execute = ApolloLink.execute;\n//# sourceMappingURL=execute.js.map"],"names":["Observable","createOperation","transformOperation","validateOperation","invariant","newInvariantError"],"mappings":";;;;;;;;AAGA,SAAS,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE;AAClC,IAAI,QAAQ,OAAO,GAAG,OAAO,CAAC,EAAE,CAAC,GAAGA,oBAAU,CAAC,EAAE,EAAE,EAAE;AACrD,CAAC;AACD,SAAS,MAAM,CAAC,OAAO,EAAE;AACzB,IAAI,OAAO,OAAO,OAAO,KAAK,UAAU,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AAC7E,CAAC;AACD,SAAS,aAAa,CAAC,IAAI,EAAE;AAC7B,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,CAAC;AACpC,CAAC;AACE,IAAC,UAAU,KAAkB,YAAY;AAC5C,IAAI,SAAS,UAAU,CAAC,OAAO,EAAE;AACjC,QAAQ,IAAI,OAAO;AACnB,YAAY,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACnC,KAAK;AACL,IAAI,UAAU,CAAC,KAAK,GAAG,YAAY;AACnC,QAAQ,OAAO,IAAI,UAAU,CAAC,YAAY,EAAE,OAAOA,oBAAU,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,KAAK,CAAC;AACN,IAAI,UAAU,CAAC,IAAI,GAAG,UAAU,KAAK,EAAE;AACvC,QAAQ,IAAI,KAAK,CAAC,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KAAK,CAAC,KAAK,CAAC,CAAC;AAOlC,YAAY,OAAO,KAAK,CAAC;AACzB,SAAS;AAET,QAAQ,MAAM,KAAK,CAAC;AACpB,KAAK,CAAC;AACN,IAAI,UAAU,CAAC,SAAS,CAAC,UAAU,GAAG,UAAU,EAAE,EAAE;AACpD,QAAQ,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;AAC1B,QAAQ,OAAO,IAAI,CAAC;AACpB,KAAK,CAAC;AACN,IAAI,OAAO,UAAU,CAAC;AACtB,CAAC,EAAE;;ACjGO,IAAC,KAAK,GAAG,UAAU,CAAC;;ACApB,IAAC,IAAI,GAAG,UAAU,CAAC;;ACAnB,IAAC,KAAK,GAAG,UAAU,CAAC;;ACApB,IAAC,MAAM,GAAG,UAAU,CAAC;;ACArB,IAAC,OAAO,GAAG,UAAU,CAAC;;;;;;;;;"}
@@ -54,7 +54,7 @@ var ApolloLink = (function () {
54
54
  ApolloLink.concat = function (first, second) {
55
55
  var firstLink = toLink(first);
56
56
  if (isTerminating(firstLink)) {
57
- globalThis.__DEV__ !== false && globals.invariant.warn(35, firstLink);
57
+ globalThis.__DEV__ !== false && globals.invariant.warn(36, firstLink);
58
58
  return firstLink;
59
59
  }
60
60
  var nextLink = toLink(second);
@@ -80,7 +80,7 @@ var ApolloLink = (function () {
80
80
  return ApolloLink.concat(this, next);
81
81
  };
82
82
  ApolloLink.prototype.request = function (operation, forward) {
83
- throw globals.newInvariantError(36);
83
+ throw globals.newInvariantError(37);
84
84
  };
85
85
  ApolloLink.prototype.onError = function (error, observer) {
86
86
  if (observer && observer.error) {
@@ -1,7 +1,7 @@
1
1
  import { newInvariantError } from "../../utilities/globals/index.js";
2
2
  export var checkFetcher = function (fetcher) {
3
3
  if (!fetcher && typeof fetch === "undefined") {
4
- throw newInvariantError(37);
4
+ throw newInvariantError(38);
5
5
  }
6
6
  };
7
7
  //# sourceMappingURL=checkFetcher.js.map
@@ -90,7 +90,7 @@ export var createHttpLink = function (linkOptions) {
90
90
  // Omit defer-specific headers if the user attempts to defer a selection
91
91
  // set on a subscription and log a warning.
92
92
  if (isSubscription && hasDefer) {
93
- globalThis.__DEV__ !== false && invariant.warn(38);
93
+ globalThis.__DEV__ !== false && invariant.warn(39);
94
94
  }
95
95
  if (isSubscription) {
96
96
  acceptHeader +=
@@ -331,7 +331,7 @@ var serializeFetchParameter = function (p, label) {
331
331
  serialized = JSON.stringify(p);
332
332
  }
333
333
  catch (e) {
334
- var parseError = globals.newInvariantError(39, label, e.message);
334
+ var parseError = globals.newInvariantError(40, label, e.message);
335
335
  parseError.parseError = e;
336
336
  throw parseError;
337
337
  }
@@ -417,7 +417,7 @@ function removeDuplicateHeaders(headers, preserveHeaderCase) {
417
417
 
418
418
  var checkFetcher = function (fetcher) {
419
419
  if (!fetcher && typeof fetch === "undefined") {
420
- throw globals.newInvariantError(37);
420
+ throw globals.newInvariantError(38);
421
421
  }
422
422
  };
423
423
 
@@ -551,7 +551,7 @@ var createHttpLink = function (linkOptions) {
551
551
  options.headers = options.headers || {};
552
552
  var acceptHeader = "multipart/mixed;";
553
553
  if (isSubscription && hasDefer) {
554
- globalThis.__DEV__ !== false && globals.invariant.warn(38);
554
+ globalThis.__DEV__ !== false && globals.invariant.warn(39);
555
555
  }
556
556
  if (isSubscription) {
557
557
  acceptHeader +=