@apollo/client 3.8.0-beta.4 → 3.8.0-beta.6

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 (115) hide show
  1. package/apollo-client.cjs +225 -175
  2. package/apollo-client.cjs.map +1 -1
  3. package/apollo-client.min.cjs +1 -1
  4. package/cache/inmemory/writeToStore.js.map +1 -1
  5. package/core/ApolloClient.js +4 -3
  6. package/core/LocalState.js +2 -2
  7. package/core/ObservableQuery.d.ts +2 -0
  8. package/core/ObservableQuery.d.ts.map +1 -1
  9. package/core/ObservableQuery.js +26 -9
  10. package/core/ObservableQuery.js.map +1 -1
  11. package/core/QueryManager.d.ts +2 -2
  12. package/core/QueryManager.d.ts.map +1 -1
  13. package/core/QueryManager.js +9 -9
  14. package/core/QueryManager.js.map +1 -1
  15. package/core/core.cjs +42 -24
  16. package/core/core.cjs.map +1 -1
  17. package/core/core.cjs.native.js +42 -24
  18. package/dev/dev.cjs +73 -80
  19. package/dev/dev.cjs.map +1 -1
  20. package/dev/dev.cjs.native.js +73 -80
  21. package/invariantErrorCodes.js +72 -79
  22. package/link/core/ApolloLink.js +2 -2
  23. package/link/core/core.cjs +2 -2
  24. package/link/core/core.cjs.map +1 -1
  25. package/link/core/core.cjs.native.js +2 -2
  26. package/link/http/checkFetcher.js +1 -1
  27. package/link/http/createHttpLink.js +1 -1
  28. package/link/http/http.cjs +3 -3
  29. package/link/http/http.cjs.map +1 -1
  30. package/link/http/http.cjs.native.js +3 -3
  31. package/link/http/serializeFetchParameter.js +1 -1
  32. package/link/persisted-queries/index.js +2 -2
  33. package/link/persisted-queries/persisted-queries.cjs +2 -2
  34. package/link/persisted-queries/persisted-queries.cjs.map +1 -1
  35. package/link/persisted-queries/persisted-queries.cjs.native.js +2 -2
  36. package/link/utils/toPromise.js +1 -1
  37. package/link/utils/utils.cjs +2 -2
  38. package/link/utils/utils.cjs.map +1 -1
  39. package/link/utils/utils.cjs.native.js +2 -2
  40. package/link/utils/validateOperation.js +1 -1
  41. package/package.json +16 -16
  42. package/react/cache/QueryReference.d.ts +9 -3
  43. package/react/cache/QueryReference.d.ts.map +1 -1
  44. package/react/cache/QueryReference.js +50 -20
  45. package/react/cache/QueryReference.js.map +1 -1
  46. package/react/cache/SuspenseCache.d.ts +2 -2
  47. package/react/cache/SuspenseCache.d.ts.map +1 -1
  48. package/react/cache/SuspenseCache.js +2 -2
  49. package/react/cache/SuspenseCache.js.map +1 -1
  50. package/react/context/ApolloConsumer.js +1 -1
  51. package/react/context/ApolloContext.js +1 -1
  52. package/react/context/ApolloProvider.js +1 -1
  53. package/react/context/context.cjs +3 -3
  54. package/react/context/context.cjs.map +1 -1
  55. package/react/context/context.cjs.native.js +3 -3
  56. package/react/hoc/hoc-utils.js +1 -1
  57. package/react/hoc/hoc.cjs +2 -2
  58. package/react/hoc/hoc.cjs.map +1 -1
  59. package/react/hoc/hoc.cjs.native.js +2 -2
  60. package/react/hoc/withApollo.js +1 -1
  61. package/react/hooks/hooks.cjs +174 -27
  62. package/react/hooks/hooks.cjs.map +1 -1
  63. package/react/hooks/hooks.cjs.native.js +174 -27
  64. package/react/hooks/index.d.ts +2 -1
  65. package/react/hooks/index.d.ts.map +1 -1
  66. package/react/hooks/index.js +2 -1
  67. package/react/hooks/index.js.map +1 -1
  68. package/react/hooks/useApolloClient.js +1 -1
  69. package/react/hooks/useBackgroundQuery.d.ts +16 -13
  70. package/react/hooks/useBackgroundQuery.d.ts.map +1 -1
  71. package/react/hooks/useBackgroundQuery.js +8 -44
  72. package/react/hooks/useBackgroundQuery.js.map +1 -1
  73. package/react/hooks/useQuery.js +1 -1
  74. package/react/hooks/useReadQuery.d.ts +8 -0
  75. package/react/hooks/useReadQuery.d.ts.map +1 -0
  76. package/react/hooks/useReadQuery.js +42 -0
  77. package/react/hooks/useReadQuery.js.map +1 -0
  78. package/react/hooks/useSubscription.js +2 -2
  79. package/react/hooks/useSuspenseCache.js +1 -1
  80. package/react/hooks/useSuspenseQuery.d.ts +2 -2
  81. package/react/hooks/useSuspenseQuery.d.ts.map +1 -1
  82. package/react/hooks/useSuspenseQuery.js +5 -6
  83. package/react/hooks/useSuspenseQuery.js.map +1 -1
  84. package/react/hooks/useSyncExternalStore.js +1 -1
  85. package/react/parser/index.js +5 -5
  86. package/react/parser/parser.cjs +5 -5
  87. package/react/parser/parser.cjs.map +1 -1
  88. package/react/parser/parser.cjs.native.js +5 -5
  89. package/react/react.cjs +49 -20
  90. package/react/react.cjs.map +1 -1
  91. package/react/react.cjs.native.js +49 -20
  92. package/react/types/types.d.ts +6 -0
  93. package/react/types/types.d.ts.map +1 -1
  94. package/react/types/types.js.map +1 -1
  95. package/testing/core/core.cjs +1 -1
  96. package/testing/core/core.cjs.map +1 -1
  97. package/testing/core/core.cjs.native.js +1 -1
  98. package/testing/core/mocking/mockLink.js +1 -1
  99. package/utilities/globals/globals.cjs +1 -1
  100. package/utilities/globals/globals.cjs.map +1 -1
  101. package/utilities/globals/globals.cjs.native.js +1 -1
  102. package/utilities/graphql/DocumentTransform.js +1 -1
  103. package/utilities/graphql/directives.js +4 -4
  104. package/utilities/graphql/fragments.js +3 -3
  105. package/utilities/graphql/getFromAST.js +8 -8
  106. package/utilities/graphql/storeUtils.js +1 -1
  107. package/utilities/graphql/transform.js +2 -2
  108. package/utilities/index.js.map +1 -1
  109. package/utilities/promises/decoration.d.ts.map +1 -1
  110. package/utilities/promises/decoration.js +1 -0
  111. package/utilities/promises/decoration.js.map +1 -1
  112. package/utilities/utilities.cjs +20 -19
  113. package/utilities/utilities.cjs.map +1 -1
  114. package/utilities/utilities.cjs.native.js +20 -19
  115. package/version.js +1 -1
@@ -54,7 +54,7 @@ export const errorCodes = // This file is used by the error message display webs
54
54
  "For more information, please visit: https://go.apollo.dev/c/docs"
55
55
  },
56
56
 
57
- 15: {
57
+ 14: {
58
58
  file: "@apollo/client/core/ApolloClient.js",
59
59
  condition: "options.fetchPolicy !== 'cache-and-network'",
60
60
 
@@ -64,42 +64,42 @@ export const errorCodes = // This file is used by the error message display webs
64
64
  'using a different fetchPolicy, such as cache-first or network-only.'
65
65
  },
66
66
 
67
- 17: {
67
+ 16: {
68
68
  file: "@apollo/client/core/LocalState.js",
69
69
  condition: "fragment",
70
70
  message: "No fragment named %s"
71
71
  },
72
72
 
73
- 18: {
73
+ 17: {
74
74
  file: "@apollo/client/core/LocalState.js",
75
75
  condition: "fragment",
76
76
  message: "No fragment named %s"
77
77
  },
78
78
 
79
- 21: {
79
+ 20: {
80
80
  file: "@apollo/client/core/ObservableQuery.js",
81
81
  condition: "pollInterval",
82
82
  message: 'Attempted to start a polling query without a polling interval.'
83
83
  },
84
84
 
85
- 24: {
85
+ 23: {
86
86
  file: "@apollo/client/core/QueryManager.js",
87
87
  message: 'QueryManager stopped while query was in flight'
88
88
  },
89
89
 
90
- 25: {
90
+ 24: {
91
91
  file: "@apollo/client/core/QueryManager.js",
92
92
  condition: "mutation",
93
93
  message: 'mutation option is required. You must specify your GraphQL document in the mutation option.'
94
94
  },
95
95
 
96
- 26: {
96
+ 25: {
97
97
  file: "@apollo/client/core/QueryManager.js",
98
98
  condition: "fetchPolicy === 'network-only' ||\n fetchPolicy === 'no-cache'",
99
99
  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
100
  },
101
101
 
102
- 27: {
102
+ 26: {
103
103
  file: "@apollo/client/core/QueryManager.js",
104
104
  condition: "options.query",
105
105
 
@@ -107,45 +107,45 @@ export const errorCodes = // This file is used by the error message display webs
107
107
  'in the query option.'
108
108
  },
109
109
 
110
- 28: {
110
+ 27: {
111
111
  file: "@apollo/client/core/QueryManager.js",
112
112
  condition: "options.query.kind === 'Document'",
113
113
  message: 'You must wrap the query string in a "gql" tag.'
114
114
  },
115
115
 
116
- 29: {
116
+ 28: {
117
117
  file: "@apollo/client/core/QueryManager.js",
118
118
  condition: "!options.returnPartialData",
119
119
  message: 'returnPartialData option only supported on watchQuery.'
120
120
  },
121
121
 
122
- 30: {
122
+ 29: {
123
123
  file: "@apollo/client/core/QueryManager.js",
124
124
  condition: "!options.pollInterval",
125
125
  message: 'pollInterval option only supported on watchQuery.'
126
126
  },
127
127
 
128
- 31: {
128
+ 30: {
129
129
  file: "@apollo/client/core/QueryManager.js",
130
130
  message: 'Store reset while query was in flight (not completed in link chain)'
131
131
  },
132
132
 
133
- 35: {
133
+ 34: {
134
134
  file: "@apollo/client/link/core/ApolloLink.js",
135
135
  message: 'request is not implemented'
136
136
  },
137
137
 
138
- 36: {
138
+ 35: {
139
139
  file: "@apollo/client/link/http/checkFetcher.js",
140
140
  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
141
  },
142
142
 
143
- 38: {
143
+ 37: {
144
144
  file: "@apollo/client/link/http/serializeFetchParameter.js",
145
145
  message: "Network request failed. %s is not serializable: %s"
146
146
  },
147
147
 
148
- 39: {
148
+ 38: {
149
149
  file: "@apollo/client/link/persisted-queries/index.js",
150
150
  condition: "options && (typeof options.sha256 === 'function' ||\n typeof options.generateHash === 'function')",
151
151
 
@@ -154,18 +154,18 @@ export const errorCodes = // This file is used by the error message display webs
154
154
  'parameter.'
155
155
  },
156
156
 
157
- 40: {
157
+ 39: {
158
158
  file: "@apollo/client/link/persisted-queries/index.js",
159
159
  condition: "forward",
160
160
  message: 'PersistedQueryLink cannot be the last link in the chain.'
161
161
  },
162
162
 
163
- 42: {
163
+ 41: {
164
164
  file: "@apollo/client/link/utils/validateOperation.js",
165
165
  message: "illegal argument: %s"
166
166
  },
167
167
 
168
- 43: {
168
+ 42: {
169
169
  file: "@apollo/client/react/context/ApolloConsumer.js",
170
170
  condition: "context && context.client",
171
171
 
@@ -173,7 +173,7 @@ export const errorCodes = // This file is used by the error message display webs
173
173
  'Wrap the root component in an <ApolloProvider>.'
174
174
  },
175
175
 
176
- 44: {
176
+ 43: {
177
177
  file: "@apollo/client/react/context/ApolloContext.js",
178
178
  condition: "'createContext' in React",
179
179
 
@@ -183,7 +183,7 @@ export const errorCodes = // This file is used by the error message display webs
183
183
  'For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components'
184
184
  },
185
185
 
186
- 45: {
186
+ 44: {
187
187
  file: "@apollo/client/react/context/ApolloProvider.js",
188
188
  condition: "context.client",
189
189
 
@@ -191,7 +191,7 @@ export const errorCodes = // This file is used by the error message display webs
191
191
  'sure you pass in your client via the "client" prop.'
192
192
  },
193
193
 
194
- 46: {
194
+ 45: {
195
195
  file: "@apollo/client/react/hoc/hoc-utils.js",
196
196
  condition: "this.withRef",
197
197
 
@@ -199,7 +199,7 @@ export const errorCodes = // This file is used by the error message display webs
199
199
  "{ withRef: true } in the options"
200
200
  },
201
201
 
202
- 47: {
202
+ 46: {
203
203
  file: "@apollo/client/react/hoc/withApollo.js",
204
204
  condition: "operationOptions.withRef",
205
205
 
@@ -207,7 +207,7 @@ export const errorCodes = // This file is used by the error message display webs
207
207
  "{ withRef: true } in the options"
208
208
  },
209
209
 
210
- 48: {
210
+ 47: {
211
211
  file: "@apollo/client/react/hooks/useApolloClient.js",
212
212
  condition: "!!client",
213
213
 
@@ -217,15 +217,15 @@ export const errorCodes = // This file is used by the error message display webs
217
217
  },
218
218
 
219
219
  49: {
220
- file: "@apollo/client/react/hooks/useBackgroundQuery.js",
221
- condition: "queryRef.promiseCache",
220
+ file: "@apollo/client/react/hooks/useReadQuery.js",
221
+ condition: "internalQueryRef.promiseCache",
222
222
 
223
223
  message: 'It appears that `useReadQuery` was used outside of `useBackgroundQuery`. ' +
224
224
  '`useReadQuery` is only supported for use with `useBackgroundQuery`. ' +
225
225
  'Please ensure you are passing the `queryRef` returned from `useBackgroundQuery`.'
226
226
  },
227
227
 
228
- 55: {
228
+ 54: {
229
229
  file: "@apollo/client/react/hooks/useSuspenseCache.js",
230
230
  condition: "suspenseCache",
231
231
 
@@ -234,13 +234,13 @@ export const errorCodes = // This file is used by the error message display webs
234
234
  'or pass a SuspenseCache instance in via options.'
235
235
  },
236
236
 
237
- 56: {
237
+ 55: {
238
238
  file: "@apollo/client/react/hooks/useSuspenseQuery.js",
239
239
  condition: "supportedFetchPolicies.includes(fetchPolicy)",
240
240
  message: "The fetch policy `%s` is not supported with suspense."
241
241
  },
242
242
 
243
- 59: {
243
+ 58: {
244
244
  file: "@apollo/client/react/parser/index.js",
245
245
  condition: "!!document && !!document.kind",
246
246
 
@@ -249,7 +249,7 @@ export const errorCodes = // This file is used by the error message display webs
249
249
  "to convert your operation into a document"
250
250
  },
251
251
 
252
- 60: {
252
+ 59: {
253
253
  file: "@apollo/client/react/parser/index.js",
254
254
  condition: "!fragments.length ||\n (queries.length || mutations.length || subscriptions.length)",
255
255
 
@@ -257,7 +257,7 @@ export const errorCodes = // This file is used by the error message display webs
257
257
  "You must include a query, subscription or mutation as well"
258
258
  },
259
259
 
260
- 61: {
260
+ 60: {
261
261
  file: "@apollo/client/react/parser/index.js",
262
262
  condition: "queries.length + mutations.length + subscriptions.length <= 1",
263
263
 
@@ -267,7 +267,7 @@ export const errorCodes = // This file is used by the error message display webs
267
267
  "You can use 'compose' to join multiple operation types to a component"
268
268
  },
269
269
 
270
- 62: {
270
+ 61: {
271
271
  file: "@apollo/client/react/parser/index.js",
272
272
  condition: "definitions.length === 1",
273
273
 
@@ -276,7 +276,7 @@ export const errorCodes = // This file is used by the error message display webs
276
276
  "You can use 'compose' to join multiple operation types to a component"
277
277
  },
278
278
 
279
- 63: {
279
+ 62: {
280
280
  file: "@apollo/client/react/parser/index.js",
281
281
  condition: "operation.type === type",
282
282
 
@@ -284,108 +284,108 @@ export const errorCodes = // This file is used by the error message display webs
284
284
  "%s, but a %s was used instead."
285
285
  },
286
286
 
287
- 64: {
287
+ 63: {
288
288
  file: "@apollo/client/testing/core/mocking/mockLink.js",
289
289
  condition: "queryWithoutConnection",
290
290
  message: "query is required"
291
291
  },
292
292
 
293
- 65: {
293
+ 64: {
294
294
  file: "@apollo/client/utilities/graphql/DocumentTransform.js",
295
295
  condition: "Array.isArray(cacheKeys)",
296
296
  message: '`getCacheKey` must return an array or undefined'
297
297
  },
298
298
 
299
- 66: {
299
+ 65: {
300
300
  file: "@apollo/client/utilities/graphql/directives.js",
301
301
  condition: "evaledValue !== void 0",
302
302
  message: "Invalid variable referenced in @%s directive."
303
303
  },
304
304
 
305
- 67: {
305
+ 66: {
306
306
  file: "@apollo/client/utilities/graphql/directives.js",
307
307
  condition: "directiveArguments && directiveArguments.length === 1",
308
308
  message: "Incorrect number of arguments for the @%s directive."
309
309
  },
310
310
 
311
- 68: {
311
+ 67: {
312
312
  file: "@apollo/client/utilities/graphql/directives.js",
313
313
  condition: "ifArgument.name && ifArgument.name.value === 'if'",
314
314
  message: "Invalid argument for the @%s directive."
315
315
  },
316
316
 
317
- 69: {
317
+ 68: {
318
318
  file: "@apollo/client/utilities/graphql/directives.js",
319
319
  condition: "ifValue &&\n (ifValue.kind === 'Variable' || ifValue.kind === 'BooleanValue')",
320
320
  message: "Argument for the @%s directive must be a variable or a boolean value."
321
321
  },
322
322
 
323
- 70: {
323
+ 69: {
324
324
  file: "@apollo/client/utilities/graphql/fragments.js",
325
325
 
326
326
  message: "Found a %s operation%s. " +
327
327
  'No operations are allowed when using a fragment as a query. Only fragments are allowed.'
328
328
  },
329
329
 
330
- 71: {
330
+ 70: {
331
331
  file: "@apollo/client/utilities/graphql/fragments.js",
332
332
  condition: "fragments.length === 1",
333
333
  message: "Found %s fragments. `fragmentName` must be provided when there is not exactly 1 fragment."
334
334
  },
335
335
 
336
- 72: {
336
+ 71: {
337
337
  file: "@apollo/client/utilities/graphql/fragments.js",
338
338
  condition: "fragment",
339
339
  message: "No fragment named %s"
340
340
  },
341
341
 
342
- 73: {
342
+ 72: {
343
343
  file: "@apollo/client/utilities/graphql/getFromAST.js",
344
344
  condition: "doc && doc.kind === 'Document'",
345
345
  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"
346
346
  },
347
347
 
348
- 74: {
348
+ 73: {
349
349
  file: "@apollo/client/utilities/graphql/getFromAST.js",
350
350
  message: "Schema type definitions not allowed in queries. Found: \"%s\""
351
351
  },
352
352
 
353
- 75: {
353
+ 74: {
354
354
  file: "@apollo/client/utilities/graphql/getFromAST.js",
355
355
  condition: "operations.length <= 1",
356
356
  message: "Ambiguous GraphQL document: contains %s operations"
357
357
  },
358
358
 
359
- 76: {
359
+ 75: {
360
360
  file: "@apollo/client/utilities/graphql/getFromAST.js",
361
361
  condition: "queryDef && queryDef.operation === 'query'",
362
362
  message: 'Must contain a query definition.'
363
363
  },
364
364
 
365
- 77: {
365
+ 76: {
366
366
  file: "@apollo/client/utilities/graphql/getFromAST.js",
367
367
  condition: "doc.kind === 'Document'",
368
368
  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"
369
369
  },
370
370
 
371
- 78: {
371
+ 77: {
372
372
  file: "@apollo/client/utilities/graphql/getFromAST.js",
373
373
  condition: "doc.definitions.length <= 1",
374
374
  message: 'Fragment must have exactly one definition.'
375
375
  },
376
376
 
377
- 79: {
377
+ 78: {
378
378
  file: "@apollo/client/utilities/graphql/getFromAST.js",
379
379
  condition: "fragmentDef.kind === 'FragmentDefinition'",
380
380
  message: 'Must be a fragment definition.'
381
381
  },
382
382
 
383
- 80: {
383
+ 79: {
384
384
  file: "@apollo/client/utilities/graphql/getFromAST.js",
385
385
  message: 'Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.'
386
386
  },
387
387
 
388
- 81: {
388
+ 80: {
389
389
  file: "@apollo/client/utilities/graphql/storeUtils.js",
390
390
 
391
391
  message: "The inline argument \"%s\" of kind \"%s\"" +
@@ -395,25 +395,18 @@ export const errorCodes = // This file is used by the error message display webs
395
395
  };
396
396
 
397
397
  export const devDebug = {
398
- 16: {
398
+ 15: {
399
399
  file: "@apollo/client/core/ApolloClient.js",
400
400
  message: "In client.refetchQueries, Promise.all promise rejected with error %o"
401
401
  },
402
402
 
403
- 23: {
403
+ 22: {
404
404
  file: "@apollo/client/core/ObservableQuery.js",
405
405
  message: "Missing cache result fields: %o"
406
406
  }
407
407
  };
408
408
 
409
- export const devLog = {
410
- 14: {
411
- file: "@apollo/client/core/ApolloClient.js",
412
-
413
- message: "Download the Apollo DevTools for a better development " +
414
- "experience: %s"
415
- }
416
- };
409
+ export const devLog = {};
417
410
 
418
411
  export const devWarn = {
419
412
  4: {
@@ -428,70 +421,70 @@ export const devWarn = {
428
421
 
429
422
  12: {
430
423
  file: "@apollo/client/cache/inmemory/writeToStore.js",
431
- message: "Cache data may be lost when replacing the %s field of a %s object.\n\nTo address this problem (which is not a bug in Apollo Client), %sdefine a custom merge function for the %s field, so InMemoryCache can safely merge these objects:\n\n existing: %s\n incoming: %s\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"
424
+ message: "Cache data may be lost when replacing the %s field of a %s object.\n\nThis could cause additional (usually avoidable) network requests to fetch data that were otherwise cached.\n\nTo address this problem (which is not a bug in Apollo Client), %sdefine a custom merge function for the %s field, so InMemoryCache can safely merge these objects:\n\n existing: %s\n incoming: %s\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"
432
425
  },
433
426
 
434
- 19: {
427
+ 18: {
435
428
  file: "@apollo/client/core/ObservableQuery.js",
436
429
  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 })?"
437
430
  },
438
431
 
439
- 32: {
432
+ 31: {
440
433
  file: "@apollo/client/core/QueryManager.js",
441
434
  message: "Unknown query named \"%s\" requested in refetchQueries options.include array"
442
435
  },
443
436
 
444
- 33: {
437
+ 32: {
445
438
  file: "@apollo/client/core/QueryManager.js",
446
439
  message: "Unknown query %s requested in refetchQueries options.include array"
447
440
  },
448
441
 
449
- 34: {
442
+ 33: {
450
443
  file: "@apollo/client/link/core/ApolloLink.js",
451
444
  message: "You are calling concat on a terminating link, which will have no effect %o"
452
445
  },
453
446
 
454
- 37: {
447
+ 36: {
455
448
  file: "@apollo/client/link/http/createHttpLink.js",
456
449
  message: "Multipart-subscriptions do not support @defer"
457
450
  },
458
451
 
459
- 41: {
452
+ 40: {
460
453
  file: "@apollo/client/link/utils/toPromise.js",
461
454
  message: "Promise Wrapper does not support multiple results from Observable"
462
455
  },
463
456
 
464
- 50: {
457
+ 48: {
465
458
  file: "@apollo/client/react/hooks/useQuery.js",
466
459
  message: "Calling default no-op implementation of InternalState#forceUpdate"
467
460
  },
468
461
 
469
- 51: {
462
+ 50: {
470
463
  file: "@apollo/client/react/hooks/useSubscription.js",
471
464
  message: "'useSubscription' supports only the 'onSubscriptionData' or 'onData' option, but not both. Only the 'onData' option will be used."
472
465
  },
473
466
 
474
- 52: {
467
+ 51: {
475
468
  file: "@apollo/client/react/hooks/useSubscription.js",
476
469
  message: "'onSubscriptionData' is deprecated and will be removed in a future major version. Please use the 'onData' option instead."
477
470
  },
478
471
 
479
- 53: {
472
+ 52: {
480
473
  file: "@apollo/client/react/hooks/useSubscription.js",
481
474
  message: "'useSubscription' supports only the 'onSubscriptionComplete' or 'onComplete' option, but not both. Only the 'onComplete' option will be used."
482
475
  },
483
476
 
484
- 54: {
477
+ 53: {
485
478
  file: "@apollo/client/react/hooks/useSubscription.js",
486
479
  message: "'onSubscriptionComplete' is deprecated and will be removed in a future major version. Please use the 'onComplete' option instead."
487
480
  },
488
481
 
489
- 57: {
482
+ 56: {
490
483
  file: "@apollo/client/react/hooks/useSuspenseQuery.js",
491
484
  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.'
492
485
  },
493
486
 
494
- 83: {
487
+ 82: {
495
488
  file: "@apollo/client/utilities/graphql/transform.js",
496
489
 
497
490
  message: 'Removing an @connection directive even though it does not have a key. ' +
@@ -505,22 +498,22 @@ export const devError = {
505
498
  message: "Missing field '%s' while writing result %o"
506
499
  },
507
500
 
508
- 20: {
501
+ 19: {
509
502
  file: "@apollo/client/core/ObservableQuery.js",
510
503
  message: 'Unhandled GraphQL subscription error'
511
504
  },
512
505
 
513
- 22: {
506
+ 21: {
514
507
  file: "@apollo/client/core/ObservableQuery.js",
515
508
  message: 'Unhandled error'
516
509
  },
517
510
 
518
- 58: {
511
+ 57: {
519
512
  file: "@apollo/client/react/hooks/useSyncExternalStore.js",
520
513
  message: 'The result of getSnapshot should be cached to avoid an infinite loop'
521
514
  },
522
515
 
523
- 82: {
516
+ 81: {
524
517
  file: "@apollo/client/utilities/graphql/transform.js",
525
518
  message: "Could not find operation or fragment"
526
519
  }
@@ -47,7 +47,7 @@ var ApolloLink = (function () {
47
47
  ApolloLink.concat = function (first, second) {
48
48
  var firstLink = toLink(first);
49
49
  if (isTerminating(firstLink)) {
50
- __DEV__ && invariant.warn(34, firstLink);
50
+ __DEV__ && invariant.warn(33, firstLink);
51
51
  return firstLink;
52
52
  }
53
53
  var nextLink = toLink(second);
@@ -71,7 +71,7 @@ var ApolloLink = (function () {
71
71
  return ApolloLink.concat(this, next);
72
72
  };
73
73
  ApolloLink.prototype.request = function (operation, forward) {
74
- throw newInvariantError(35);
74
+ throw newInvariantError(34);
75
75
  };
76
76
  ApolloLink.prototype.onError = function (error, observer) {
77
77
  if (observer && observer.error) {
@@ -52,7 +52,7 @@ var ApolloLink = (function () {
52
52
  ApolloLink.concat = function (first, second) {
53
53
  var firstLink = toLink(first);
54
54
  if (isTerminating(firstLink)) {
55
- globals.__DEV__ && globals.invariant.warn(34, firstLink);
55
+ globals.__DEV__ && globals.invariant.warn(33, firstLink);
56
56
  return firstLink;
57
57
  }
58
58
  var nextLink = toLink(second);
@@ -76,7 +76,7 @@ var ApolloLink = (function () {
76
76
  return ApolloLink.concat(this, next);
77
77
  };
78
78
  ApolloLink.prototype.request = function (operation, forward) {
79
- throw globals.newInvariantError(35);
79
+ throw globals.newInvariantError(34);
80
80
  };
81
81
  ApolloLink.prototype.onError = function (error, observer) {
82
82
  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, __DEV__ } from '../../utilities/globals';\nimport { Observable } from '../../utilities';\nimport { validateOperation, createOperation, transformOperation, } from '../utils';\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 = (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 if (isTerminating(leftLink) && isTerminating(rightLink)) {\n return 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 return 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 };\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 __DEV__ && invariant.warn(34, firstLink);\n return firstLink;\n }\n var nextLink = toLink(second);\n if (isTerminating(nextLink)) {\n return new ApolloLink(function (operation) {\n return firstLink.request(operation, function (op) { return nextLink.request(op) || Observable.of(); }) || Observable.of();\n });\n }\n else {\n return 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 };\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(35);\n };\n ApolloLink.prototype.onError = function (error, observer) {\n if (observer && observer.error) {\n observer.error(error);\n return false;\n }\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';\nexport var empty = ApolloLink.empty;\n//# sourceMappingURL=empty.js.map","import { ApolloLink } from './ApolloLink';\nexport var from = ApolloLink.from;\n//# sourceMappingURL=from.js.map","import { ApolloLink } from './ApolloLink';\nexport var split = ApolloLink.split;\n//# sourceMappingURL=split.js.map","import { ApolloLink } from './ApolloLink';\nexport var concat = ApolloLink.concat;\n//# sourceMappingURL=concat.js.map","import { ApolloLink } from './ApolloLink';\nexport var execute = ApolloLink.execute;\n//# sourceMappingURL=execute.js.map"],"names":["Observable","createOperation","transformOperation","validateOperation","__DEV__","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;A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IAAI,UAAU,CAAC,SAAS,CAAC,OAAO,GAAG,UAAU,SAAS,EAAE,OAAO,EAAE;AACjE,QAAQ,MAAMM,yBAAiB,CAAC,EAAE,CAAC,CAAC;AACpC,KAAK,CAAC;AACN,IAAI,UAAU,CAAC,SAAS,CAAC,OAAO,GAAG,UAAU,KAAK,EAAE,QAAQ,EAAE;AAC9D,QAAQ,IAAI,QAAQ,IAAI,QAAQ,CAAC,KAAK,EAAE;AACxC,YAAY,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAClC,YAAY,OAAO,KAAK,CAAC;AACzB,SAAS;AACT,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;;ACtFO,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, __DEV__ } from '../../utilities/globals';\nimport { Observable } from '../../utilities';\nimport { validateOperation, createOperation, transformOperation, } from '../utils';\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 = (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 if (isTerminating(leftLink) && isTerminating(rightLink)) {\n return 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 return 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 };\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 __DEV__ && invariant.warn(33, firstLink);\n return firstLink;\n }\n var nextLink = toLink(second);\n if (isTerminating(nextLink)) {\n return new ApolloLink(function (operation) {\n return firstLink.request(operation, function (op) { return nextLink.request(op) || Observable.of(); }) || Observable.of();\n });\n }\n else {\n return 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 };\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(34);\n };\n ApolloLink.prototype.onError = function (error, observer) {\n if (observer && observer.error) {\n observer.error(error);\n return false;\n }\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';\nexport var empty = ApolloLink.empty;\n//# sourceMappingURL=empty.js.map","import { ApolloLink } from './ApolloLink';\nexport var from = ApolloLink.from;\n//# sourceMappingURL=from.js.map","import { ApolloLink } from './ApolloLink';\nexport var split = ApolloLink.split;\n//# sourceMappingURL=split.js.map","import { ApolloLink } from './ApolloLink';\nexport var concat = ApolloLink.concat;\n//# sourceMappingURL=concat.js.map","import { ApolloLink } from './ApolloLink';\nexport var execute = ApolloLink.execute;\n//# sourceMappingURL=execute.js.map"],"names":["Observable","createOperation","transformOperation","validateOperation","__DEV__","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,IAAI,YAAY;AAC9B,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,MAAM,KAAK,CAAC;AAC9B,YAAY,OAAO,UAAU,CAAC,KAAK,EAAE,CAAC;AACtC,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G,UAAU,CAAC;;ACApB,IAAC,MAAM,GAAG,UAAU,CAAC;;ACArB,IAAC,OAAO,GAAG,UAAU,CAAC;;;;;;;;;"}
@@ -52,7 +52,7 @@ var ApolloLink = (function () {
52
52
  ApolloLink.concat = function (first, second) {
53
53
  var firstLink = toLink(first);
54
54
  if (isTerminating(firstLink)) {
55
- globals.__DEV__ && globals.invariant.warn(34, firstLink);
55
+ globals.__DEV__ && globals.invariant.warn(33, firstLink);
56
56
  return firstLink;
57
57
  }
58
58
  var nextLink = toLink(second);
@@ -76,7 +76,7 @@ var ApolloLink = (function () {
76
76
  return ApolloLink.concat(this, next);
77
77
  };
78
78
  ApolloLink.prototype.request = function (operation, forward) {
79
- throw globals.newInvariantError(35);
79
+ throw globals.newInvariantError(34);
80
80
  };
81
81
  ApolloLink.prototype.onError = function (error, observer) {
82
82
  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(36);
4
+ throw newInvariantError(35);
5
5
  }
6
6
  };
7
7
  //# sourceMappingURL=checkFetcher.js.map
@@ -78,7 +78,7 @@ export var createHttpLink = function (linkOptions) {
78
78
  options.headers = options.headers || {};
79
79
  var acceptHeader = "multipart/mixed;";
80
80
  if (isSubscription && hasDefer) {
81
- __DEV__ && invariant.warn(37);
81
+ __DEV__ && invariant.warn(36);
82
82
  }
83
83
  if (isSubscription) {
84
84
  acceptHeader += 'boundary=graphql;subscriptionSpec=1.0,application/json';
@@ -330,7 +330,7 @@ var serializeFetchParameter = function (p, label) {
330
330
  serialized = JSON.stringify(p);
331
331
  }
332
332
  catch (e) {
333
- var parseError = globals.newInvariantError(38, label, e.message);
333
+ var parseError = globals.newInvariantError(37, label, e.message);
334
334
  parseError.parseError = e;
335
335
  throw parseError;
336
336
  }
@@ -413,7 +413,7 @@ function removeDuplicateHeaders(headers, preserveHeaderCase) {
413
413
 
414
414
  var checkFetcher = function (fetcher) {
415
415
  if (!fetcher && typeof fetch === 'undefined') {
416
- throw globals.newInvariantError(36);
416
+ throw globals.newInvariantError(35);
417
417
  }
418
418
  };
419
419
 
@@ -548,7 +548,7 @@ var createHttpLink = function (linkOptions) {
548
548
  options.headers = options.headers || {};
549
549
  var acceptHeader = "multipart/mixed;";
550
550
  if (isSubscription && hasDefer) {
551
- globals.__DEV__ && globals.invariant.warn(37);
551
+ globals.__DEV__ && globals.invariant.warn(36);
552
552
  }
553
553
  if (isSubscription) {
554
554
  acceptHeader += 'boundary=graphql;subscriptionSpec=1.0,application/json';