@apollo/client 4.3.3 → 4.3.4
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.
- package/CHANGELOG.md +20 -0
- package/__cjs/cache/core/cache.cjs +1 -1
- package/__cjs/cache/core/cache.cjs.map +1 -1
- package/__cjs/cache/core/cache.d.cts +4 -1
- package/__cjs/cache/core/types/Cache.d.cts +5 -0
- package/__cjs/cache/inmemory/entityStore.cjs +4 -4
- package/__cjs/cache/inmemory/inMemoryCache.cjs +15 -5
- package/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
- package/__cjs/cache/inmemory/inMemoryCache.d.cts +3 -1
- package/__cjs/cache/inmemory/key-extractor.cjs +1 -1
- package/__cjs/cache/inmemory/policies.cjs +5 -5
- package/__cjs/cache/inmemory/readFromStore.cjs +28 -10
- package/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
- package/__cjs/cache/inmemory/types.d.cts +7 -2
- package/__cjs/cache/inmemory/writeToStore.cjs +29 -14
- package/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
- package/__cjs/cache/inmemory/writeToStore.d.cts +5 -2
- package/__cjs/core/ApolloClient.cjs +14 -14
- package/__cjs/core/ObservableQuery.cjs +8 -8
- package/__cjs/core/QueryInfo.cjs +13 -32
- package/__cjs/core/QueryInfo.cjs.map +1 -1
- package/__cjs/core/QueryManager.cjs +12 -12
- package/__cjs/core/RefetchEventManager.cjs +3 -3
- package/__cjs/incremental/handlers/defer20220824.cjs +15 -2
- package/__cjs/incremental/handlers/defer20220824.cjs.map +1 -1
- package/__cjs/incremental/handlers/defer20220824.d.cts +5 -1
- package/__cjs/incremental/handlers/graphql17Alpha9.cjs +58 -14
- package/__cjs/incremental/handlers/graphql17Alpha9.cjs.map +1 -1
- package/__cjs/incremental/handlers/graphql17Alpha9.d.cts +23 -12
- package/__cjs/incremental/handlers/notImplemented.cjs +1 -1
- package/__cjs/incremental/types.d.cts +19 -1
- package/__cjs/invariantErrorCodes.cjs +64 -58
- package/__cjs/utilities/internal/index.cjs.map +1 -1
- package/__cjs/utilities/internal/index.d.cts +0 -1
- package/__cjs/version.cjs +1 -1
- package/cache/core/cache.d.ts +4 -1
- package/cache/core/cache.js +1 -1
- package/cache/core/cache.js.map +1 -1
- package/cache/core/types/Cache.d.ts +5 -0
- package/cache/core/types/Cache.js.map +1 -1
- package/cache/inmemory/entityStore.js +4 -4
- package/cache/inmemory/inMemoryCache.d.ts +3 -1
- package/cache/inmemory/inMemoryCache.js +15 -5
- package/cache/inmemory/inMemoryCache.js.map +1 -1
- package/cache/inmemory/key-extractor.js +1 -1
- package/cache/inmemory/policies.js +5 -5
- package/cache/inmemory/readFromStore.js +28 -10
- package/cache/inmemory/readFromStore.js.map +1 -1
- package/cache/inmemory/types.d.ts +7 -2
- package/cache/inmemory/types.js.map +1 -1
- package/cache/inmemory/writeToStore.d.ts +5 -2
- package/cache/inmemory/writeToStore.js +30 -15
- package/cache/inmemory/writeToStore.js.map +1 -1
- package/core/ApolloClient.js +14 -14
- package/core/ObservableQuery.js +8 -8
- package/core/QueryInfo.js +14 -33
- package/core/QueryInfo.js.map +1 -1
- package/core/QueryManager.js +12 -12
- package/core/RefetchEventManager.js +3 -3
- package/incremental/handlers/defer20220824.d.ts +5 -1
- package/incremental/handlers/defer20220824.js +15 -2
- package/incremental/handlers/defer20220824.js.map +1 -1
- package/incremental/handlers/graphql17Alpha9.d.ts +23 -12
- package/incremental/handlers/graphql17Alpha9.js +58 -14
- package/incremental/handlers/graphql17Alpha9.js.map +1 -1
- package/incremental/handlers/notImplemented.js +1 -1
- package/incremental/types.d.ts +19 -1
- package/incremental/types.js.map +1 -1
- package/invariantErrorCodes.js +64 -58
- package/package.json +1 -1
- package/utilities/internal/index.d.ts +0 -1
- package/utilities/internal/index.js.map +1 -1
- package/version.js +1 -1
- package/__cjs/utilities/internal/types/DeferInfo.cjs +0 -3
- package/__cjs/utilities/internal/types/DeferInfo.cjs.map +0 -1
- package/__cjs/utilities/internal/types/DeferInfo.d.cts +0 -10
- package/utilities/internal/types/DeferInfo.d.ts +0 -10
- package/utilities/internal/types/DeferInfo.js +0 -2
- package/utilities/internal/types/DeferInfo.js.map +0 -1
package/invariantErrorCodes.js
CHANGED
|
@@ -340,18 +340,24 @@ const client = new ApolloClient({
|
|
|
340
340
|
},
|
|
341
341
|
|
|
342
342
|
68: {
|
|
343
|
+
file: "@apollo/client/incremental/handlers/graphql17Alpha9.js",
|
|
344
|
+
condition: "labelNode && labelNode.value.kind === \"StringValue\"",
|
|
345
|
+
message: "Expected a label for @defer directive"
|
|
346
|
+
},
|
|
347
|
+
|
|
348
|
+
69: {
|
|
343
349
|
file: "@apollo/client/incremental/handlers/graphql17Alpha9.js",
|
|
344
350
|
condition: "pending",
|
|
345
351
|
message: "Could not find pending chunk for incremental value. Please file an issue for the Apollo Client team to investigate."
|
|
346
352
|
},
|
|
347
353
|
|
|
348
|
-
|
|
354
|
+
70: {
|
|
349
355
|
file: "@apollo/client/incremental/handlers/notImplemented.js",
|
|
350
356
|
condition: "!hasDirectives([\"defer\", \"stream\"], request.query)",
|
|
351
357
|
message: "`@defer` and `@stream` are not supported without specifying an incremental handler. Please pass a handler as the `incrementalHandler` option to the `ApolloClient` constructor."
|
|
352
358
|
},
|
|
353
359
|
|
|
354
|
-
|
|
360
|
+
71: {
|
|
355
361
|
file: "@apollo/client/core/ApolloClient.js",
|
|
356
362
|
condition: "options.cache",
|
|
357
363
|
|
|
@@ -360,7 +366,7 @@ const client = new ApolloClient({
|
|
|
360
366
|
"For more information, please visit: https://go.apollo.dev/c/docs"
|
|
361
367
|
},
|
|
362
368
|
|
|
363
|
-
|
|
369
|
+
72: {
|
|
364
370
|
file: "@apollo/client/core/ApolloClient.js",
|
|
365
371
|
condition: "options.link",
|
|
366
372
|
|
|
@@ -369,7 +375,7 @@ const client = new ApolloClient({
|
|
|
369
375
|
"For more information, please visit: https://go.apollo.dev/c/docs"
|
|
370
376
|
},
|
|
371
377
|
|
|
372
|
-
|
|
378
|
+
75: {
|
|
373
379
|
file: "@apollo/client/core/ApolloClient.js",
|
|
374
380
|
condition: "options.fetchPolicy !== \"cache-and-network\"",
|
|
375
381
|
|
|
@@ -379,7 +385,7 @@ const client = new ApolloClient({
|
|
|
379
385
|
"using a different fetchPolicy, such as cache-first or network-only."
|
|
380
386
|
},
|
|
381
387
|
|
|
382
|
-
|
|
388
|
+
76: {
|
|
383
389
|
file: "@apollo/client/core/ApolloClient.js",
|
|
384
390
|
condition: "options.fetchPolicy !== \"standby\"",
|
|
385
391
|
|
|
@@ -388,7 +394,7 @@ const client = new ApolloClient({
|
|
|
388
394
|
"as cache-first or network-only."
|
|
389
395
|
},
|
|
390
396
|
|
|
391
|
-
|
|
397
|
+
77: {
|
|
392
398
|
file: "@apollo/client/core/ApolloClient.js",
|
|
393
399
|
condition: "options.query",
|
|
394
400
|
|
|
@@ -396,164 +402,164 @@ const client = new ApolloClient({
|
|
|
396
402
|
"in the query option."
|
|
397
403
|
},
|
|
398
404
|
|
|
399
|
-
|
|
405
|
+
78: {
|
|
400
406
|
file: "@apollo/client/core/ApolloClient.js",
|
|
401
407
|
condition: "options.query.kind === \"Document\"",
|
|
402
408
|
message: 'You must wrap the query string in a "gql" tag.'
|
|
403
409
|
},
|
|
404
410
|
|
|
405
|
-
|
|
411
|
+
79: {
|
|
406
412
|
file: "@apollo/client/core/ApolloClient.js",
|
|
407
413
|
condition: "!options.returnPartialData",
|
|
408
414
|
message: "returnPartialData option only supported on watchQuery."
|
|
409
415
|
},
|
|
410
416
|
|
|
411
|
-
|
|
417
|
+
80: {
|
|
412
418
|
file: "@apollo/client/core/ApolloClient.js",
|
|
413
419
|
condition: "!options.pollInterval",
|
|
414
420
|
message: "pollInterval option only supported on watchQuery."
|
|
415
421
|
},
|
|
416
422
|
|
|
417
|
-
|
|
423
|
+
81: {
|
|
418
424
|
file: "@apollo/client/core/ApolloClient.js",
|
|
419
425
|
condition: "!options.notifyOnNetworkStatusChange",
|
|
420
426
|
message: "notifyOnNetworkStatusChange option only supported on watchQuery."
|
|
421
427
|
},
|
|
422
428
|
|
|
423
|
-
|
|
429
|
+
82: {
|
|
424
430
|
file: "@apollo/client/core/ApolloClient.js",
|
|
425
431
|
condition: "optionsWithDefaults.mutation",
|
|
426
432
|
message: "The `mutation` option is required. Please provide a GraphQL document in the `mutation` option."
|
|
427
433
|
},
|
|
428
434
|
|
|
429
|
-
|
|
435
|
+
83: {
|
|
430
436
|
file: "@apollo/client/core/ApolloClient.js",
|
|
431
437
|
condition: "optionsWithDefaults.fetchPolicy === \"network-only\" ||\n optionsWithDefaults.fetchPolicy === \"no-cache\"",
|
|
432
438
|
message: "Mutations only support 'network-only' or 'no-cache' fetch policies. The default 'network-only' behavior automatically writes mutation results to the cache. Passing 'no-cache' skips the cache write."
|
|
433
439
|
},
|
|
434
440
|
|
|
435
|
-
|
|
441
|
+
85: {
|
|
436
442
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
437
443
|
condition: "fetchPolicy === \"standby\"",
|
|
438
444
|
message: "The `variablesUnknown` option can only be used together with a `standby` fetch policy."
|
|
439
445
|
},
|
|
440
446
|
|
|
441
|
-
|
|
447
|
+
87: {
|
|
442
448
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
443
449
|
condition: "this.options.fetchPolicy !== \"cache-only\"",
|
|
444
450
|
message: "Cannot execute `fetchMore` for 'cache-only' query '%s'. Please use a different fetch policy."
|
|
445
451
|
},
|
|
446
452
|
|
|
447
|
-
|
|
453
|
+
88: {
|
|
448
454
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
449
455
|
condition: "updateQuery",
|
|
450
456
|
message: "You must provide an `updateQuery` function when using `fetchMore` with a `no-cache` fetch policy."
|
|
451
457
|
},
|
|
452
458
|
|
|
453
|
-
|
|
459
|
+
94: {
|
|
454
460
|
file: "@apollo/client/core/QueryManager.js",
|
|
455
461
|
message: "QueryManager stopped while query was in flight"
|
|
456
462
|
},
|
|
457
463
|
|
|
458
|
-
|
|
464
|
+
95: {
|
|
459
465
|
file: "@apollo/client/core/QueryManager.js",
|
|
460
466
|
condition: "this.localState",
|
|
461
467
|
message: "Mutation '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
|
|
462
468
|
},
|
|
463
469
|
|
|
464
|
-
|
|
470
|
+
96: {
|
|
465
471
|
file: "@apollo/client/core/QueryManager.js",
|
|
466
472
|
message: "Store reset while query was in flight (not completed in link chain)"
|
|
467
473
|
},
|
|
468
474
|
|
|
469
|
-
|
|
475
|
+
99: {
|
|
470
476
|
file: "@apollo/client/core/QueryManager.js",
|
|
471
477
|
condition: "!this.getDocumentInfo(query).hasClientExports || this.localState",
|
|
472
478
|
message: "Subscription '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
|
|
473
479
|
},
|
|
474
480
|
|
|
475
|
-
|
|
481
|
+
100: {
|
|
476
482
|
file: "@apollo/client/core/QueryManager.js",
|
|
477
483
|
condition: "this.localState",
|
|
478
484
|
message: "%s '%s' contains `@client` fields but local state has not been configured."
|
|
479
485
|
},
|
|
480
486
|
|
|
481
|
-
|
|
487
|
+
101: {
|
|
482
488
|
file: "@apollo/client/core/QueryManager.js",
|
|
483
489
|
condition: "!hasIncrementalDirective",
|
|
484
490
|
message: "%s '%s' contains `@client` and `@defer` directives. These cannot be used together."
|
|
485
491
|
},
|
|
486
492
|
|
|
487
|
-
|
|
493
|
+
102: {
|
|
488
494
|
file: "@apollo/client/core/QueryManager.js",
|
|
489
495
|
condition: "this.localState",
|
|
490
496
|
message: "Query '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
|
|
491
497
|
},
|
|
492
498
|
|
|
493
|
-
|
|
499
|
+
104: {
|
|
494
500
|
file: "@apollo/client/core/QueryManager.js",
|
|
495
501
|
condition: "this.localState",
|
|
496
502
|
message: "Query '%s' contains `@client` fields but local state has not been configured."
|
|
497
503
|
},
|
|
498
504
|
|
|
499
|
-
|
|
505
|
+
105: {
|
|
500
506
|
file: "@apollo/client/core/QueryManager.js",
|
|
501
507
|
condition: "didEmitValue",
|
|
502
508
|
message: "The link chain completed without emitting a value. This is likely unintentional and should be updated to emit a value before completing."
|
|
503
509
|
},
|
|
504
510
|
|
|
505
|
-
|
|
511
|
+
109: {
|
|
506
512
|
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
507
513
|
condition: "typeof dataId === \"string\"",
|
|
508
514
|
message: "store.merge expects a string ID"
|
|
509
515
|
},
|
|
510
516
|
|
|
511
|
-
|
|
517
|
+
114: {
|
|
512
518
|
file: "@apollo/client/cache/inmemory/key-extractor.js",
|
|
513
519
|
condition: "extracted !== void 0",
|
|
514
520
|
message: `Missing field '%s' while extracting keyFields from %s`
|
|
515
521
|
},
|
|
516
522
|
|
|
517
|
-
|
|
523
|
+
115: {
|
|
518
524
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
519
525
|
condition: "!old || old === which",
|
|
520
526
|
message: `Cannot change root %s __typename more than once`
|
|
521
527
|
},
|
|
522
528
|
|
|
523
|
-
|
|
529
|
+
118: {
|
|
524
530
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
525
531
|
message: "Cannot automatically merge arrays"
|
|
526
532
|
},
|
|
527
533
|
|
|
528
|
-
|
|
534
|
+
121: {
|
|
529
535
|
file: "@apollo/client/cache/inmemory/readFromStore.js",
|
|
530
536
|
message: `No fragment named %s`
|
|
531
537
|
},
|
|
532
538
|
|
|
533
|
-
|
|
539
|
+
122: {
|
|
534
540
|
file: "@apollo/client/cache/inmemory/readFromStore.js",
|
|
535
541
|
condition: "!isReference(value)",
|
|
536
542
|
message: `Missing selection set for object of type %s returned for query field %s`
|
|
537
543
|
},
|
|
538
544
|
|
|
539
|
-
|
|
545
|
+
123: {
|
|
540
546
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
541
547
|
message: `Could not identify object %s`
|
|
542
548
|
},
|
|
543
549
|
|
|
544
|
-
|
|
550
|
+
125: {
|
|
545
551
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
546
552
|
message: `No fragment named %s`
|
|
547
553
|
}
|
|
548
554
|
};
|
|
549
555
|
|
|
550
556
|
export const devDebug = {
|
|
551
|
-
|
|
557
|
+
84: {
|
|
552
558
|
file: "@apollo/client/core/ApolloClient.js",
|
|
553
559
|
message: `In client.refetchQueries, Promise.all promise rejected with error %o`
|
|
554
560
|
},
|
|
555
561
|
|
|
556
|
-
|
|
562
|
+
91: {
|
|
557
563
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
558
564
|
message: `Missing cache result fields: %o`
|
|
559
565
|
}
|
|
@@ -636,29 +642,29 @@ export const devWarn = {
|
|
|
636
642
|
"If you are using a split link, ensure each branch contains a terminating link that handles the request."
|
|
637
643
|
},
|
|
638
644
|
|
|
639
|
-
|
|
645
|
+
73: {
|
|
640
646
|
file: "@apollo/client/core/ApolloClient.js",
|
|
641
647
|
message: "`refetchOn` was set on query '%s' but no `RefetchEventManager` is configured on this `ApolloClient` instance. This option has no effect until a RefetchEventManager is connected to this client. Pass a `RefetchEventManager` instance to the `refetchEventManager` option on the `ApolloClient` constructor."
|
|
642
648
|
},
|
|
643
649
|
|
|
644
|
-
|
|
650
|
+
74: {
|
|
645
651
|
file: "@apollo/client/core/ApolloClient.js",
|
|
646
652
|
message: "`refetchOn` references the '%s' event on query '%s' but no source is configured for it on the `RefetchEventManager`. This event will never fire. Add a source for the event to the `sources` option or call `setEventSource` on the refetch event manager."
|
|
647
653
|
},
|
|
648
654
|
|
|
649
|
-
|
|
655
|
+
86: {
|
|
650
656
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
651
657
|
|
|
652
658
|
message: `Called refetch(%o) for query %o, which does not declare a $variables variable.
|
|
653
659
|
Did you mean to call refetch(variables) instead of refetch({ variables })?`
|
|
654
660
|
},
|
|
655
661
|
|
|
656
|
-
|
|
662
|
+
90: {
|
|
657
663
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
658
664
|
message: "Cannot poll on 'cache-only' query '%s' and as such, polling is disabled. Please use a different fetch policy."
|
|
659
665
|
},
|
|
660
666
|
|
|
661
|
-
|
|
667
|
+
92: {
|
|
662
668
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
663
669
|
|
|
664
670
|
message: `Apollo Client stopped refetching '%s' because the same incomplete cache result was already refetched. Automatic refetching was halted to prevent an endless cycle of network requests.
|
|
@@ -678,7 +684,7 @@ For more information about these options, please refer to the documentation:
|
|
|
678
684
|
`
|
|
679
685
|
},
|
|
680
686
|
|
|
681
|
-
|
|
687
|
+
93: {
|
|
682
688
|
file: "@apollo/client/core/QueryInfo.js",
|
|
683
689
|
|
|
684
690
|
message: `The network result for query %s was written to the cache, but reading it back returned a partial result.
|
|
@@ -697,37 +703,37 @@ For more information, please refer to the documentation:
|
|
|
697
703
|
`
|
|
698
704
|
},
|
|
699
705
|
|
|
700
|
-
|
|
706
|
+
97: {
|
|
701
707
|
file: "@apollo/client/core/QueryManager.js",
|
|
702
708
|
message: `Unknown query named "%s" requested in refetchQueries options.include array`
|
|
703
709
|
},
|
|
704
710
|
|
|
705
|
-
|
|
711
|
+
98: {
|
|
706
712
|
file: "@apollo/client/core/QueryManager.js",
|
|
707
713
|
message: `Unknown anonymous query requested in refetchQueries options.include array`
|
|
708
714
|
},
|
|
709
715
|
|
|
710
|
-
|
|
716
|
+
103: {
|
|
711
717
|
file: "@apollo/client/core/QueryManager.js",
|
|
712
718
|
message: '[%s]: Fragments masked by data masking are inaccessible when using fetch policy "no-cache". Please add `@unmask` to each fragment spread to access the data.'
|
|
713
719
|
},
|
|
714
720
|
|
|
715
|
-
|
|
721
|
+
106: {
|
|
716
722
|
file: "@apollo/client/core/RefetchEventManager.js",
|
|
717
723
|
message: "Connected an `ApolloClient` instance to a `RefetchEventManager` that was already connected to a different `ApolloClient`. The previous client has been disconnected and will no longer receive refetch events from this manager."
|
|
718
724
|
},
|
|
719
725
|
|
|
720
|
-
|
|
726
|
+
107: {
|
|
721
727
|
file: "@apollo/client/core/RefetchEventManager.js",
|
|
722
728
|
message: "Received '%s' event but an `ApolloClient` instance is not connected to the `RefetchEventManager`. No queries will refetch. Pass the manager to the `refetchEventManager` option on the `ApolloClient` constructor."
|
|
723
729
|
},
|
|
724
730
|
|
|
725
|
-
|
|
731
|
+
108: {
|
|
726
732
|
file: "@apollo/client/core/RefetchEventManager.js",
|
|
727
733
|
message: "Received '%s' event but no source is configured for it on the `RefetchEventManager`. No queries will refetch. Add the event to the `sources` option or call `setEventSource`."
|
|
728
734
|
},
|
|
729
735
|
|
|
730
|
-
|
|
736
|
+
110: {
|
|
731
737
|
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
732
738
|
|
|
733
739
|
message: "cache.modify: You are trying to write a Reference that is not part of the store: %o\n" +
|
|
@@ -735,44 +741,44 @@ For more information, please refer to the documentation:
|
|
|
735
741
|
"`toReference(object, true)`"
|
|
736
742
|
},
|
|
737
743
|
|
|
738
|
-
|
|
744
|
+
111: {
|
|
739
745
|
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
740
746
|
|
|
741
747
|
message: "cache.modify: Writing an array with a mix of both References and Objects will not result in the Objects being normalized correctly.\n" +
|
|
742
748
|
"Please convert the object instance %o to a Reference before writing it to the cache by calling `toReference(object, true)`."
|
|
743
749
|
},
|
|
744
750
|
|
|
745
|
-
|
|
751
|
+
112: {
|
|
746
752
|
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
747
753
|
message: "The custom scalar configuration for '%s' uses list type '%s', but the value is not an array. The value was coerced as '%s' anyway."
|
|
748
754
|
},
|
|
749
755
|
|
|
750
|
-
|
|
756
|
+
113: {
|
|
751
757
|
file: "@apollo/client/cache/inmemory/inMemoryCache.js",
|
|
752
758
|
message: "The variable '%s' has list type '%s', but the value is not an array. The value was coerced as '%s' anyway."
|
|
753
759
|
},
|
|
754
760
|
|
|
755
|
-
|
|
761
|
+
116: {
|
|
756
762
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
757
763
|
message: `Inferring subtype %s of supertype %s`
|
|
758
764
|
},
|
|
759
765
|
|
|
760
|
-
|
|
766
|
+
117: {
|
|
761
767
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
762
768
|
message: `Undefined 'from' passed to readField with arguments %s`
|
|
763
769
|
},
|
|
764
770
|
|
|
765
|
-
|
|
771
|
+
119: {
|
|
766
772
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
767
773
|
message: "The field policy for '%s' is configured with the '%s' scalar, so its '%s' function is ignored. Scalar configuration cannot be used with custom read or merge functions."
|
|
768
774
|
},
|
|
769
775
|
|
|
770
|
-
|
|
776
|
+
120: {
|
|
771
777
|
file: "@apollo/client/cache/inmemory/readFromStore.js",
|
|
772
778
|
message: "The field policy for '%s' is configured with the '%s' scalar, but the field is not a scalar field because it contains a selection set. The field value remains unchanged."
|
|
773
779
|
},
|
|
774
780
|
|
|
775
|
-
|
|
781
|
+
126: {
|
|
776
782
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
777
783
|
|
|
778
784
|
message: `Cache data may be lost when replacing the %s field of a %s object.
|
|
@@ -791,7 +797,7 @@ For more information about these options, please refer to the documentation:
|
|
|
791
797
|
`
|
|
792
798
|
},
|
|
793
799
|
|
|
794
|
-
|
|
800
|
+
127: {
|
|
795
801
|
file: "@apollo/client/cache/core/cache.js",
|
|
796
802
|
message: "Could not identify object passed to `from` for '%s' fragment, either because the object is non-normalized or the key fields are missing. If you are masking this object, please ensure the key fields are requested by the parent object."
|
|
797
803
|
}
|
|
@@ -808,12 +814,12 @@ export const devError = {
|
|
|
808
814
|
message: "The result of getSnapshot should be cached to avoid an infinite loop"
|
|
809
815
|
},
|
|
810
816
|
|
|
811
|
-
|
|
817
|
+
89: {
|
|
812
818
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
813
819
|
message: "Unhandled GraphQL subscription error"
|
|
814
820
|
},
|
|
815
821
|
|
|
816
|
-
|
|
822
|
+
124: {
|
|
817
823
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
818
824
|
message: `Missing field '%s' while writing result %o`
|
|
819
825
|
}
|
package/package.json
CHANGED
|
@@ -14,7 +14,6 @@ export type { Primitive } from "./types/Primitive.js";
|
|
|
14
14
|
export type { RejectedPromise } from "./types/RejectedPromise.js";
|
|
15
15
|
export type { RemoveIndexSignature } from "./types/RemoveIndexSignature.js";
|
|
16
16
|
export type { StreamInfoTrie } from "./types/StreamInfoTrie.js";
|
|
17
|
-
export type { DeferInfoTrie } from "./types/DeferInfo.js";
|
|
18
17
|
export type { VariablesOption } from "./types/VariablesOption.js";
|
|
19
18
|
export type { DocumentationTypes } from "./types/DocumentationTypes.js";
|
|
20
19
|
export type { LazyType } from "./LazyType.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utilities/internal/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utilities/internal/index.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAA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B,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAC3E,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC9B,+BAA+B,EAC/B,mBAAmB,GACpB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC","sourcesContent":["export type { DecoratedPromise } from \"./types/DecoratedPromise.js\";\nexport type { DeepOmit } from \"./types/DeepOmit.js\";\nexport type { Exact } from \"./types/Exact.js\";\nexport type { ExtensionsWithStreamInfo } from \"./types/ExtensionsWithStreamDetails.js\";\nexport type { FragmentMap } from \"./types/FragmentMap.js\";\nexport type { FragmentMapFunction } from \"./types/FragmentMapFunction.js\";\nexport type { FulfilledPromise } from \"./types/FulfilledPromise.js\";\nexport type { IsAny } from \"./types/IsAny.js\";\nexport type { IsLooselyEqual } from \"./types/IsLooselyEqual.js\";\nexport type { IsNeverish } from \"./types/IsNeverish.js\";\nexport type { PendingPromise } from \"./types/PendingPromise.js\";\nexport type { Prettify } from \"./types/Prettify.js\";\nexport type { Primitive } from \"./types/Primitive.js\";\nexport type { RejectedPromise } from \"./types/RejectedPromise.js\";\nexport type { RemoveIndexSignature } from \"./types/RemoveIndexSignature.js\";\nexport type { StreamInfoTrie } from \"./types/StreamInfoTrie.js\";\nexport type { VariablesOption } from \"./types/VariablesOption.js\";\nexport type { DocumentationTypes } from \"./types/DocumentationTypes.js\";\nexport type { LazyType } from \"./LazyType.js\";\nexport type {\n ClassicSignature,\n SignatureStyle,\n} from \"./types/SignatureStyle.js\";\nexport type { OptionWithFallback } from \"./types/OptionWithFallback.js\";\n\nexport { addDeferFragmentLabels } from \"./addDeferFragmentLabels.js\";\nexport { argumentsObjectFromField } from \"./argumentsObjectFromField.js\";\nexport { capitalize } from \"./capitalize.js\";\nexport { canUseDOM } from \"./canUseDOM.js\";\nexport { checkDocument } from \"./checkDocument.js\";\nexport { cloneDeep } from \"./cloneDeep.js\";\nexport { coerceScalarFieldsToParsed } from \"./coerceScalarFieldsToParsed.js\";\nexport { combineLatestBatched } from \"./combineLatestBatched.js\";\nexport { compact } from \"./compact.js\";\nexport { createFragmentMap } from \"./createFragmentMap.js\";\nexport { createFulfilledPromise } from \"./createFulfilledPromise.js\";\nexport { createRejectedPromise } from \"./createRejectedPromise.js\";\nexport { dealias } from \"./dealias.js\";\nexport { decoratePromise } from \"./decoratePromise.js\";\nexport { DeepMerger } from \"./DeepMerger.js\";\nexport { getDefaultValues } from \"./getDefaultValues.js\";\nexport { getDirectiveArgValue } from \"./getDirectiveArgValue.js\";\nexport { getFragmentFromSelection } from \"./getFragmentFromSelection.js\";\nexport { getFragmentQueryDocument } from \"./getFragmentQueryDocument.js\";\nexport { getFragmentDefinition } from \"./getFragmentDefinition.js\";\nexport { getFragmentDefinitions } from \"./getFragmentDefinitions.js\";\nexport { getGraphQLErrorsFromResult } from \"./getGraphQLErrorsFromResult.js\";\nexport { getMainDefinition } from \"./getMainDefinition.js\";\nexport { getOperationDefinition } from \"./getOperationDefinition.js\";\nexport { getOperationName } from \"./getOperationName.js\";\nexport { getQueryDefinition } from \"./getQueryDefinition.js\";\nexport { getStoreKeyName } from \"./getStoreKeyName.js\";\nexport { graphQLResultHasError } from \"./graphQLResultHasError.js\";\nexport { hasDirectives } from \"./hasDirectives.js\";\nexport { hasForcedResolvers } from \"./hasForcedResolvers.js\";\nexport { isArray } from \"./isArray.js\";\nexport { isDeferredFragment } from \"./isDeferredFragment.js\";\nexport { isDocumentNode } from \"./isDocumentNode.js\";\nexport { isField } from \"./isField.js\";\nexport { isNonEmptyArray } from \"./isNonEmptyArray.js\";\nexport { isNonNullObject } from \"./isNonNullObject.js\";\nexport { isPlainObject } from \"./isPlainObject.js\";\nexport { isStreamField } from \"./isStreamField.js\";\nexport { isTypenameField } from \"./isTypenameField.js\";\nexport { makeStreamInfoTrie } from \"./makeStreamInfoTrie.js\";\nexport { makeReference } from \"./makeReference.js\";\nexport { makeUniqueId } from \"./makeUniqueId.js\";\nexport { matchScalarList } from \"./matchScalarList.js\";\nexport { maybeDeepFreeze } from \"./maybeDeepFreeze.js\";\nexport { mergeDeep } from \"./mergeDeep.js\";\nexport { mergeDeepArray } from \"./mergeDeepArray.js\";\nexport { mergeOptions } from \"./mergeOptions.js\";\nexport { omitDeep } from \"./omitDeep.js\";\nexport { preventUnhandledRejection } from \"./preventUnhandledRejection.js\";\nexport { removeDirectivesFromDocument } from \"./removeDirectivesFromDocument.js\";\nexport { removeMaskedFragmentSpreads } from \"./removeFragmentSpreads.js\";\nexport { resultKeyNameFromField } from \"./resultKeyNameFromField.js\";\nexport { shouldInclude } from \"./shouldInclude.js\";\nexport { storeKeyNameFromField } from \"./storeKeyNameFromField.js\";\nexport { StreamArrayState } from \"./StreamArrayState.js\";\nexport { stringifyForDisplay } from \"./stringifyForDisplay.js\";\nexport { toDiffWithDataState } from \"./toDiffWithDataState.js\";\nexport { toQueryResult } from \"./toQueryResult.js\";\nexport { unwrapScalarType } from \"./unwrapScalarType.js\";\nexport { filterMap } from \"./filterMap.js\";\nexport { equalByQuery } from \"./equalByQuery.js\";\nexport { canonicalStringify } from \"./canonicalStringify.js\";\nexport { mapObservableFragmentMemoized } from \"./mapObservableFragment.js\";\nexport {\n extensionsSymbol,\n handleIncrementalSymbol,\n streamInfoSymbol,\n variablesUnknownSymbol,\n} from \"./constants.js\";\nexport { bindCacheKey } from \"./bindCacheKey.js\";\n\nexport {\n getApolloCacheMemoryInternals,\n getApolloClientMemoryInternals,\n getInMemoryCacheMemoryInternals,\n registerGlobalCache,\n} from \"../internal/getMemoryInternals.js\";\n\nexport { AutoCleanedStrongCache, AutoCleanedWeakCache } from \"./caches.js\";\n\nexport type { ApplyHKT } from \"./types/ApplyHKT.js\";\nexport type { ApplyHKTImplementationWithDefault } from \"./types/ApplyHKTImplementationWithDefault.js\";\n"]}
|
package/version.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeferInfo.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Trie } from "@wry/trie";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
* For use in InMemoryCache only. This should not be used in userland
|
|
5
|
-
* code.
|
|
6
|
-
*
|
|
7
|
-
* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
|
|
8
|
-
*/
|
|
9
|
-
export type DeferInfoTrie = Trie<true>;
|
|
10
|
-
//# sourceMappingURL=DeferInfo.d.cts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { Trie } from "@wry/trie";
|
|
2
|
-
/**
|
|
3
|
-
* @internal
|
|
4
|
-
* For use in InMemoryCache only. This should not be used in userland
|
|
5
|
-
* code.
|
|
6
|
-
*
|
|
7
|
-
* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
|
|
8
|
-
*/
|
|
9
|
-
export type DeferInfoTrie = Trie<true>;
|
|
10
|
-
//# sourceMappingURL=DeferInfo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeferInfo.js","sourceRoot":"","sources":["../../../../src/utilities/internal/types/DeferInfo.ts"],"names":[],"mappings":"","sourcesContent":["import type { Trie } from \"@wry/trie\";\n\n/**\n * @internal\n * For use in InMemoryCache only. This should not be used in userland\n * code.\n */\nexport type DeferInfoTrie = Trie<true>;\n"]}
|