@apollo/client 4.0.0-alpha.1 → 4.0.0-alpha.11
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/.changeset/afraid-grapes-call.md +5 -0
- package/.changeset/afraid-moons-arrive.md +5 -0
- package/.changeset/beige-mirrors-talk.md +15 -0
- package/.changeset/cool-kiwis-hunt.md +15 -0
- package/.changeset/cuddly-spiders-tie.md +5 -0
- package/.changeset/dirty-eagles-poke.md +5 -0
- package/.changeset/early-eggs-develop.md +22 -0
- package/.changeset/eighty-squids-fix.md +15 -0
- package/.changeset/eleven-kangaroos-jump.md +5 -0
- package/.changeset/forty-shrimps-fry.md +5 -0
- package/.changeset/forty-tomatoes-punch.md +5 -0
- package/.changeset/four-countries-clean.md +24 -0
- package/.changeset/four-ghosts-watch.md +5 -0
- package/.changeset/funny-jeans-invent.md +16 -0
- package/.changeset/funny-terms-deny.md +5 -0
- package/.changeset/fuzzy-tips-sit.md +5 -0
- package/.changeset/gentle-badgers-train.md +5 -0
- package/.changeset/gentle-waves-cough.md +5 -0
- package/.changeset/giant-apes-thank.md +5 -0
- package/.changeset/giant-bags-share.md +5 -0
- package/.changeset/gorgeous-chefs-tap.md +5 -0
- package/.changeset/great-roses-jog.md +15 -0
- package/.changeset/grumpy-vans-type.md +5 -0
- package/.changeset/hip-vans-act.md +5 -0
- package/.changeset/hungry-bikes-cough.md +5 -0
- package/.changeset/itchy-chefs-run.md +23 -0
- package/.changeset/khaki-keys-deliver.md +5 -0
- package/.changeset/khaki-spies-work.md +11 -0
- package/.changeset/large-plants-know.md +5 -0
- package/.changeset/light-apes-rescue.md +5 -0
- package/.changeset/little-spoons-kick.md +7 -0
- package/.changeset/loud-cows-raise.md +7 -0
- package/.changeset/lucky-sheep-explain.md +34 -0
- package/.changeset/many-buses-allow.md +5 -0
- package/.changeset/mean-lizards-think.md +5 -0
- package/.changeset/nervous-fireants-bow.md +5 -0
- package/.changeset/nervous-goats-allow.md +5 -0
- package/.changeset/nice-dots-matter.md +5 -0
- package/.changeset/ninety-bags-bake.md +17 -0
- package/.changeset/odd-chicken-hide.md +17 -0
- package/.changeset/odd-lemons-relax.md +5 -0
- package/.changeset/orange-suits-laugh.md +5 -0
- package/.changeset/perfect-ducks-reflect.md +12 -0
- package/.changeset/perfect-vans-give.md +7 -0
- package/.changeset/poor-eels-punch.md +5 -0
- package/.changeset/pre.json +70 -0
- package/.changeset/purple-bears-flash.md +5 -0
- package/.changeset/real-teachers-peel.md +5 -0
- package/.changeset/serious-moons-juggle.md +5 -0
- package/.changeset/seven-dragons-repair.md +14 -0
- package/.changeset/seven-schools-carry.md +5 -0
- package/.changeset/shaggy-pugs-add.md +52 -0
- package/.changeset/short-months-complain.md +5 -0
- package/.changeset/slimy-chicken-melt.md +5 -0
- package/.changeset/slimy-maps-press.md +5 -0
- package/.changeset/small-buttons-rhyme.md +5 -0
- package/.changeset/small-poems-rest.md +5 -0
- package/.changeset/swift-rivers-share.md +13 -0
- package/.changeset/tall-bikes-develop.md +5 -0
- package/.changeset/tame-points-work.md +11 -0
- package/.changeset/tender-swans-flash.md +16 -0
- package/.changeset/thick-books-grin.md +5 -0
- package/.changeset/thin-peas-hear.md +16 -0
- package/.changeset/tidy-pandas-punch.md +5 -0
- package/.changeset/tough-rockets-allow.md +5 -0
- package/.changeset/tricky-tables-shave.md +5 -0
- package/.changeset/unlucky-kiwis-sell.md +5 -0
- package/.changeset/warm-ties-sit.md +7 -0
- package/.changeset/wicked-forks-double.md +33 -0
- package/.changeset/young-phones-fold.md +5 -0
- package/.changeset/young-snails-grin.md +5 -0
- package/CHANGELOG.md +535 -0
- package/__cjs/cache/core/cache.cjs +2 -2
- package/__cjs/cache/core/cache.cjs.map +1 -1
- package/__cjs/cache/core/cache.d.cts +18 -18
- package/__cjs/cache/core/types/Cache.cjs.map +1 -1
- package/__cjs/cache/core/types/Cache.d.cts +9 -16
- package/__cjs/cache/core/types/DataProxy.d.cts +8 -23
- package/__cjs/cache/core/types/common.cjs +1 -0
- package/__cjs/cache/core/types/common.cjs.map +1 -1
- package/__cjs/cache/index.cjs +4 -4
- package/__cjs/cache/index.cjs.map +1 -1
- package/__cjs/cache/index.d.cts +3 -3
- package/__cjs/cache/inmemory/entityStore.cjs +9 -8
- package/__cjs/cache/inmemory/entityStore.cjs.map +1 -1
- package/__cjs/cache/inmemory/entityStore.d.cts +3 -2
- package/__cjs/cache/inmemory/fragmentRegistry.cjs +3 -3
- package/__cjs/cache/inmemory/fragmentRegistry.cjs.map +1 -1
- package/__cjs/cache/inmemory/helpers.cjs +0 -8
- package/__cjs/cache/inmemory/helpers.cjs.map +1 -1
- package/__cjs/cache/inmemory/helpers.d.cts +3 -4
- package/__cjs/cache/inmemory/inMemoryCache.cjs +4 -12
- package/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
- package/__cjs/cache/inmemory/inMemoryCache.d.cts +8 -9
- package/__cjs/cache/inmemory/key-extractor.cjs +1 -1
- package/__cjs/cache/inmemory/policies.cjs +9 -9
- package/__cjs/cache/inmemory/policies.cjs.map +1 -1
- package/__cjs/cache/inmemory/policies.d.cts +1 -1
- package/__cjs/cache/inmemory/reactiveVars.cjs.map +1 -1
- package/__cjs/cache/inmemory/reactiveVars.d.cts +7 -7
- package/__cjs/cache/inmemory/readFromStore.cjs +14 -56
- package/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
- package/__cjs/cache/inmemory/readFromStore.d.cts +1 -6
- package/__cjs/cache/inmemory/types.d.cts +3 -17
- package/__cjs/cache/inmemory/writeToStore.cjs +8 -8
- package/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
- package/__cjs/cache/inmemory/writeToStore.d.cts +2 -2
- package/__cjs/config/jest/areCombinedGraphQLErrorsEqual.cjs +6 -4
- package/__cjs/config/jest/areCombinedGraphQLErrorsEqual.cjs.map +1 -1
- package/__cjs/config/jest/areCombinedProtocolErrorsEqual.cjs +3 -3
- package/__cjs/config/jest/areCombinedProtocolErrorsEqual.cjs.map +1 -1
- package/__cjs/config/jest/areMissingFieldErrorsEqual.cjs +2 -3
- package/__cjs/config/jest/areMissingFieldErrorsEqual.cjs.map +1 -1
- package/__cjs/config/jest/areServerErrorsEqual.cjs +22 -0
- package/__cjs/config/jest/areServerErrorsEqual.cjs.map +1 -0
- package/__cjs/config/jest/areServerErrorsEqual.d.cts +3 -0
- package/__cjs/config/jest/resolver.cjs +11 -0
- package/__cjs/config/jest/resolver.cjs.map +1 -1
- package/__cjs/config/jest/setup.cjs +18 -1
- package/__cjs/config/jest/setup.cjs.map +1 -1
- package/__cjs/core/ApolloClient.cjs +37 -21
- package/__cjs/core/ApolloClient.cjs.map +1 -1
- package/__cjs/core/ApolloClient.d.cts +37 -27
- package/__cjs/core/LocalState.cjs +2 -3
- package/__cjs/core/LocalState.cjs.map +1 -1
- package/__cjs/core/LocalState.d.cts +7 -8
- package/__cjs/core/ObservableQuery.cjs +267 -103
- package/__cjs/core/ObservableQuery.cjs.map +1 -1
- package/__cjs/core/ObservableQuery.d.cts +156 -17
- package/__cjs/core/QueryInfo.cjs +12 -86
- package/__cjs/core/QueryInfo.cjs.map +1 -1
- package/__cjs/core/QueryInfo.d.cts +2 -11
- package/__cjs/core/QueryManager.cjs +173 -128
- package/__cjs/core/QueryManager.cjs.map +1 -1
- package/__cjs/core/QueryManager.d.cts +51 -32
- package/__cjs/core/index.cjs +42 -21
- package/__cjs/core/index.cjs.map +1 -1
- package/__cjs/core/index.d.cts +12 -11
- package/__cjs/core/types.d.cts +65 -7
- package/__cjs/core/watchQueryOptions.d.cts +32 -119
- package/__cjs/errors/CombinedGraphQLErrors.cjs +30 -11
- package/__cjs/errors/CombinedGraphQLErrors.cjs.map +1 -1
- package/__cjs/errors/CombinedGraphQLErrors.d.cts +21 -2
- package/__cjs/errors/CombinedProtocolErrors.cjs +13 -6
- package/__cjs/errors/CombinedProtocolErrors.cjs.map +1 -1
- package/__cjs/errors/CombinedProtocolErrors.d.cts +9 -0
- package/__cjs/errors/LinkError.cjs +20 -0
- package/__cjs/errors/LinkError.cjs.map +1 -0
- package/__cjs/errors/LinkError.d.cts +14 -0
- package/__cjs/errors/ServerError.cjs +6 -0
- package/__cjs/errors/ServerError.cjs.map +1 -1
- package/__cjs/errors/ServerError.d.cts +2 -0
- package/__cjs/errors/ServerParseError.cjs +6 -0
- package/__cjs/errors/ServerParseError.cjs.map +1 -1
- package/__cjs/errors/ServerParseError.d.cts +2 -0
- package/__cjs/errors/UnconventionalError.cjs +6 -0
- package/__cjs/errors/UnconventionalError.cjs.map +1 -1
- package/__cjs/errors/UnconventionalError.d.cts +2 -0
- package/__cjs/errors/index.cjs +19 -4
- package/__cjs/errors/index.cjs.map +1 -1
- package/__cjs/errors/index.d.cts +2 -3
- package/__cjs/errors/isErrorLike.cjs +12 -0
- package/__cjs/errors/isErrorLike.cjs.map +1 -0
- package/__cjs/errors/isErrorLike.d.cts +3 -0
- package/__cjs/errors/utils.cjs +18 -0
- package/__cjs/errors/utils.cjs.map +1 -0
- package/__cjs/errors/utils.d.cts +3 -0
- package/__cjs/invariantErrorCodes.cjs +131 -138
- package/__cjs/link/batch/index.cjs +4 -2
- package/__cjs/link/batch/index.cjs.map +1 -1
- package/__cjs/link/batch/index.d.cts +2 -1
- package/__cjs/link/batch-http/batchHttpLink.cjs.map +1 -1
- package/__cjs/link/batch-http/batchHttpLink.d.cts +3 -2
- package/__cjs/link/batch-http/index.cjs +3 -2
- package/__cjs/link/batch-http/index.cjs.map +1 -1
- package/__cjs/link/batch-http/index.d.cts +1 -1
- package/__cjs/link/context/index.cjs.map +1 -1
- package/__cjs/link/context/index.d.cts +2 -3
- package/__cjs/link/core/ApolloLink.cjs +4 -22
- package/__cjs/link/core/ApolloLink.cjs.map +1 -1
- package/__cjs/link/core/ApolloLink.d.cts +3 -5
- package/__cjs/link/core/index.cjs.map +1 -1
- package/__cjs/link/core/index.d.cts +1 -1
- package/__cjs/link/core/types.d.cts +15 -4
- package/__cjs/link/error/index.cjs +13 -28
- package/__cjs/link/error/index.cjs.map +1 -1
- package/__cjs/link/error/index.d.cts +4 -15
- package/__cjs/link/http/HttpLink.cjs.map +1 -1
- package/__cjs/link/http/HttpLink.d.cts +128 -3
- package/__cjs/link/http/checkFetcher.cjs +1 -1
- package/__cjs/link/http/createHttpLink.cjs +1 -1
- package/__cjs/link/http/createHttpLink.cjs.map +1 -1
- package/__cjs/link/http/createHttpLink.d.cts +3 -2
- package/__cjs/link/http/index.cjs.map +1 -1
- package/__cjs/link/http/index.d.cts +0 -1
- package/__cjs/link/http/parseAndCheckHttpResponse.cjs +1 -1
- package/__cjs/link/http/rewriteURIForGET.cjs.map +1 -1
- package/__cjs/link/http/rewriteURIForGET.d.cts +2 -2
- package/__cjs/link/http/selectHttpOptionsAndBody.cjs.map +1 -1
- package/__cjs/link/http/selectHttpOptionsAndBody.d.cts +7 -82
- package/__cjs/link/http/serializeFetchParameter.cjs +1 -1
- package/__cjs/link/persisted-queries/index.cjs +3 -3
- package/__cjs/link/persisted-queries/index.cjs.map +1 -1
- package/__cjs/link/persisted-queries/index.d.cts +14 -3
- package/__cjs/link/remove-typename/removeTypenameFromVariables.cjs +1 -1
- package/__cjs/link/remove-typename/removeTypenameFromVariables.cjs.map +1 -1
- package/__cjs/link/remove-typename/removeTypenameFromVariables.d.cts +10 -1
- package/__cjs/link/retry/index.cjs +3 -2
- package/__cjs/link/retry/index.cjs.map +1 -1
- package/__cjs/link/retry/index.d.cts +1 -1
- package/__cjs/link/subscriptions/index.cjs +3 -1
- package/__cjs/link/subscriptions/index.cjs.map +1 -1
- package/__cjs/link/utils/createOperation.cjs +5 -1
- package/__cjs/link/utils/createOperation.cjs.map +1 -1
- package/__cjs/link/utils/createOperation.d.cts +2 -2
- package/__cjs/link/utils/validateOperation.cjs +1 -1
- package/__cjs/masking/maskDefinition.cjs +2 -2
- package/__cjs/masking/maskDefinition.cjs.map +1 -1
- package/__cjs/masking/maskDefinition.d.cts +1 -1
- package/__cjs/masking/maskFragment.cjs +2 -2
- package/__cjs/masking/maskFragment.cjs.map +1 -1
- package/__cjs/masking/maskFragment.d.cts +2 -2
- package/__cjs/masking/maskOperation.cjs +1 -1
- package/__cjs/masking/maskOperation.cjs.map +1 -1
- package/__cjs/masking/maskOperation.d.cts +2 -2
- package/__cjs/masking/utils.cjs +1 -1
- package/__cjs/react/context/ApolloConsumer.cjs +1 -1
- package/__cjs/react/context/ApolloConsumer.cjs.map +1 -1
- package/__cjs/react/context/ApolloConsumer.d.cts +7 -4
- package/__cjs/react/context/ApolloContext.cjs +1 -1
- package/__cjs/react/context/ApolloContext.cjs.map +1 -1
- package/__cjs/react/context/ApolloContext.d.cts +4 -4
- package/__cjs/react/context/ApolloProvider.cjs +1 -1
- package/__cjs/react/context/ApolloProvider.cjs.map +1 -1
- package/__cjs/react/context/ApolloProvider.d.cts +7 -5
- package/__cjs/react/hooks/internal/__use.d.cts +3 -1
- package/__cjs/react/hooks/internal/useIsomorphicLayoutEffect.d.cts +1 -1
- package/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs +28 -0
- package/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs.map +1 -0
- package/__cjs/react/hooks/internal/validateSuspenseHookOptions.d.cts +3 -0
- package/__cjs/react/hooks/internal/wrapHook.cjs +26 -5
- package/__cjs/react/hooks/internal/wrapHook.cjs.map +1 -1
- package/__cjs/react/hooks/internal/wrapHook.d.cts +7 -5
- package/__cjs/react/hooks/useApolloClient.cjs +2 -2
- package/__cjs/react/hooks/useApolloClient.cjs.map +1 -1
- package/__cjs/react/hooks/useApolloClient.d.cts +2 -2
- package/__cjs/react/hooks/useBackgroundQuery.cjs +2 -2
- package/__cjs/react/hooks/useBackgroundQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useBackgroundQuery.d.cts +143 -46
- package/__cjs/react/hooks/useFragment.cjs.map +1 -1
- package/__cjs/react/hooks/useFragment.d.cts +51 -26
- package/__cjs/react/hooks/useLazyQuery.cjs +31 -32
- package/__cjs/react/hooks/useLazyQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useLazyQuery.d.cts +278 -276
- package/__cjs/react/hooks/useLoadableQuery.cjs +21 -2
- package/__cjs/react/hooks/useLoadableQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useLoadableQuery.d.cts +106 -34
- package/__cjs/react/hooks/useMutation.cjs +14 -21
- package/__cjs/react/hooks/useMutation.cjs.map +1 -1
- package/__cjs/react/hooks/useMutation.d.cts +231 -4
- package/__cjs/react/hooks/useQuery.cjs +87 -206
- package/__cjs/react/hooks/useQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useQuery.d.cts +274 -4
- package/__cjs/react/hooks/useQueryRefHandlers.cjs.map +1 -1
- package/__cjs/react/hooks/useQueryRefHandlers.d.cts +23 -22
- package/__cjs/react/hooks/useReactiveVar.cjs.map +1 -1
- package/__cjs/react/hooks/useReactiveVar.d.cts +1 -1
- package/__cjs/react/hooks/useReadQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useReadQuery.d.cts +27 -25
- package/__cjs/react/hooks/useSubscription.cjs +9 -60
- package/__cjs/react/hooks/useSubscription.cjs.map +1 -1
- package/__cjs/react/hooks/useSubscription.d.cts +94 -3
- package/__cjs/react/hooks/useSuspenseFragment.cjs.map +1 -1
- package/__cjs/react/hooks/useSuspenseFragment.d.cts +40 -38
- package/__cjs/react/hooks/useSuspenseQuery.cjs +7 -32
- package/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useSuspenseQuery.d.cts +199 -38
- package/__cjs/react/hooks/useSyncExternalStore.cjs +1 -1
- package/__cjs/react/index.cjs +37 -11
- package/__cjs/react/index.cjs.map +1 -1
- package/__cjs/react/index.d.cts +22 -6
- package/__cjs/react/index.react-server.cjs +1 -5
- package/__cjs/react/index.react-server.cjs.map +1 -1
- package/__cjs/react/index.react-server.d.cts +0 -1
- package/__cjs/react/internal/cache/FragmentReference.cjs.map +1 -1
- package/__cjs/react/internal/cache/FragmentReference.d.cts +3 -3
- package/__cjs/react/internal/cache/QueryReference.cjs +3 -14
- package/__cjs/react/internal/cache/QueryReference.cjs.map +1 -1
- package/__cjs/react/internal/cache/QueryReference.d.cts +7 -7
- package/__cjs/react/internal/cache/SuspenseCache.cjs.map +1 -1
- package/__cjs/react/internal/cache/SuspenseCache.d.cts +3 -3
- package/__cjs/react/internal/cache/getSuspenseCache.cjs.map +1 -1
- package/__cjs/react/internal/cache/getSuspenseCache.d.cts +4 -4
- package/__cjs/react/internal/index.cjs +3 -1
- package/__cjs/react/internal/index.cjs.map +1 -1
- package/__cjs/react/internal/index.d.cts +2 -0
- package/__cjs/react/internal/types.d.cts +9 -0
- package/__cjs/react/query-preloader/createQueryPreloader.cjs +1 -0
- package/__cjs/react/query-preloader/createQueryPreloader.cjs.map +1 -1
- package/__cjs/react/query-preloader/createQueryPreloader.d.cts +6 -45
- package/__cjs/react/ssr/getDataFromTree.cjs +24 -30
- package/__cjs/react/ssr/getDataFromTree.cjs.map +1 -1
- package/__cjs/react/ssr/getDataFromTree.d.cts +12 -1
- package/__cjs/react/ssr/index.cjs +3 -3
- package/__cjs/react/ssr/index.cjs.map +1 -1
- package/__cjs/react/ssr/index.d.cts +1 -1
- package/__cjs/react/ssr/prerenderStatic.cjs +151 -0
- package/__cjs/react/ssr/prerenderStatic.cjs.map +1 -0
- package/__cjs/react/ssr/prerenderStatic.d.cts +122 -0
- package/__cjs/react/ssr/renderToStringWithData.cjs +11 -5
- package/__cjs/react/ssr/renderToStringWithData.cjs.map +1 -1
- package/__cjs/react/ssr/renderToStringWithData.d.cts +5 -0
- package/__cjs/react/ssr/useSSRQuery.cjs +60 -0
- package/__cjs/react/ssr/useSSRQuery.cjs.map +1 -0
- package/__cjs/react/ssr/useSSRQuery.d.cts +5 -0
- package/__cjs/{utilities/types/TODO.cjs → react/types/deprecated.cjs} +1 -1
- package/__cjs/react/types/deprecated.cjs.map +1 -0
- package/__cjs/react/types/deprecated.d.cts +75 -0
- package/__cjs/react/types/types.documentation.d.cts +6 -34
- package/__cjs/testing/core/index.cjs +6 -3
- package/__cjs/testing/core/index.cjs.map +1 -1
- package/__cjs/testing/core/index.d.cts +3 -3
- package/__cjs/testing/core/mocking/mockClient.cjs +3 -4
- package/__cjs/testing/core/mocking/mockClient.cjs.map +1 -1
- package/__cjs/testing/core/mocking/mockClient.d.cts +2 -3
- package/__cjs/testing/core/mocking/mockLink.cjs +118 -112
- package/__cjs/testing/core/mocking/mockLink.cjs.map +1 -1
- package/__cjs/testing/core/mocking/mockLink.d.cts +26 -7
- package/__cjs/testing/experimental/createSchemaFetch.cjs +4 -4
- package/__cjs/testing/experimental/createSchemaFetch.cjs.map +1 -1
- package/__cjs/testing/experimental/createTestSchema.cjs.map +1 -1
- package/__cjs/testing/experimental/createTestSchema.d.cts +1 -1
- package/__cjs/testing/index.cjs +13 -2
- package/__cjs/testing/index.cjs.map +1 -1
- package/__cjs/testing/index.d.cts +2 -1
- package/__cjs/testing/internal/disposables/spyOnConsole.cjs +0 -1
- package/__cjs/testing/internal/disposables/spyOnConsole.cjs.map +1 -1
- package/__cjs/testing/internal/disposables/spyOnConsole.d.cts +0 -1
- package/__cjs/testing/internal/disposables/withProdMode.d.cts +1 -1
- package/__cjs/testing/internal/incremental.cjs.map +1 -1
- package/__cjs/testing/internal/incremental.d.cts +4 -3
- package/__cjs/testing/internal/index.cjs +17 -8
- package/__cjs/testing/internal/index.cjs.map +1 -1
- package/__cjs/testing/internal/index.d.cts +5 -3
- package/__cjs/testing/internal/link.cjs +16 -0
- package/__cjs/testing/internal/link.cjs.map +1 -0
- package/__cjs/testing/internal/link.d.cts +5 -0
- package/__cjs/testing/internal/renderHelpers.cjs.map +1 -1
- package/__cjs/testing/internal/renderHelpers.d.cts +3 -3
- package/__cjs/testing/internal/resetApolloContext.cjs +24 -0
- package/__cjs/testing/internal/resetApolloContext.cjs.map +1 -0
- package/__cjs/testing/internal/resetApolloContext.d.cts +10 -0
- package/__cjs/testing/internal/scenarios/index.cjs +9 -7
- package/__cjs/testing/internal/scenarios/index.cjs.map +1 -1
- package/__cjs/testing/internal/scenarios/index.d.cts +14 -5
- package/__cjs/testing/matchers/arrayWithLength.cjs +15 -0
- package/__cjs/testing/matchers/arrayWithLength.cjs.map +1 -0
- package/__cjs/testing/matchers/arrayWithLength.d.cts +3 -0
- package/__cjs/testing/matchers/index.cjs +6 -18
- package/__cjs/testing/matchers/index.cjs.map +1 -1
- package/__cjs/testing/matchers/isSameClient.cjs +19 -0
- package/__cjs/testing/matchers/isSameClient.cjs.map +1 -0
- package/__cjs/testing/matchers/isSameClient.d.cts +3 -0
- package/__cjs/testing/matchers/isSameObservableQuery.cjs +19 -0
- package/__cjs/testing/matchers/isSameObservableQuery.cjs.map +1 -0
- package/__cjs/testing/matchers/isSameObservableQuery.d.cts +3 -0
- package/__cjs/testing/matchers/toComplete.cjs.map +1 -1
- package/__cjs/testing/matchers/toEmitAnything.cjs.map +1 -1
- package/__cjs/testing/matchers/toEmitError.cjs.map +1 -1
- package/__cjs/testing/matchers/toEmitNext.cjs.map +1 -1
- package/__cjs/testing/matchers/{toEmitFetchResult.cjs → toEmitTypedValue.cjs} +9 -7
- package/__cjs/testing/matchers/toEmitTypedValue.cjs.map +1 -0
- package/__cjs/testing/matchers/{toEmitValueStrict.d.cts → toEmitTypedValue.d.cts} +2 -2
- package/__cjs/testing/matchers/toHaveSuspenseCacheEntryUsing.cjs +2 -2
- package/__cjs/testing/matchers/toHaveSuspenseCacheEntryUsing.cjs.map +1 -1
- package/__cjs/testing/matchers/toHaveSuspenseCacheEntryUsing.d.cts +1 -1
- package/__cjs/testing/matchers/toMatchDocument.cjs.map +1 -1
- package/__cjs/testing/matchers/toMatchDocument.d.cts +1 -1
- package/__cjs/testing/matchers/toStrictEqualTyped.cjs +32 -0
- package/__cjs/testing/matchers/toStrictEqualTyped.cjs.map +1 -0
- package/__cjs/testing/matchers/toStrictEqualTyped.d.cts +8 -0
- package/__cjs/testing/matchers/utils/getSerializableProperties.cjs +24 -0
- package/__cjs/testing/matchers/utils/getSerializableProperties.cjs.map +1 -0
- package/__cjs/testing/matchers/utils/getSerializableProperties.d.cts +4 -0
- package/__cjs/testing/react/MockedProvider.cjs +11 -7
- package/__cjs/testing/react/MockedProvider.cjs.map +1 -1
- package/__cjs/testing/react/MockedProvider.d.cts +8 -6
- package/__cjs/utilities/caching/sizes.cjs +2 -2
- package/__cjs/utilities/caching/sizes.cjs.map +1 -1
- package/__cjs/utilities/caching/sizes.d.cts +2 -20
- package/__cjs/utilities/common/errorHandling.d.cts +1 -1
- package/__cjs/utilities/common/mergeOptions.cjs.map +1 -1
- package/__cjs/utilities/common/mergeOptions.d.cts +1 -1
- package/__cjs/utilities/graphql/getFromAST.cjs +15 -6
- package/__cjs/utilities/graphql/getFromAST.cjs.map +1 -1
- package/__cjs/utilities/graphql/getFromAST.d.cts +2 -2
- package/__cjs/utilities/graphql/operations.cjs.map +1 -1
- package/__cjs/utilities/graphql/operations.d.cts +1 -1
- package/__cjs/utilities/graphql/storeUtils.cjs +1 -1
- package/__cjs/utilities/graphql/transform.cjs +2 -2
- package/__cjs/utilities/index.cjs +39 -19
- package/__cjs/utilities/index.cjs.map +1 -1
- package/__cjs/utilities/index.d.cts +16 -15
- package/__cjs/utilities/internal/getMemoryInternals.cjs +0 -2
- package/__cjs/utilities/internal/getMemoryInternals.cjs.map +1 -1
- package/__cjs/utilities/internal/getMemoryInternals.d.cts +1 -2
- package/__cjs/utilities/internal/index.cjs +3 -1
- package/__cjs/utilities/internal/index.cjs.map +1 -1
- package/__cjs/utilities/internal/index.d.cts +1 -0
- package/__cjs/utilities/internal/index.production.cjs +1 -0
- package/__cjs/utilities/internal/index.production.cjs.map +1 -1
- package/__cjs/utilities/internal/toQueryResult.cjs +13 -0
- package/__cjs/utilities/internal/toQueryResult.cjs.map +1 -0
- package/__cjs/utilities/internal/toQueryResult.d.cts +3 -0
- package/__cjs/utilities/invariant/index.development.cjs +1 -0
- package/__cjs/utilities/invariant/index.development.cjs.map +1 -1
- package/__cjs/utilities/subscriptions/relay/index.cjs +2 -2
- package/__cjs/utilities/subscriptions/relay/index.cjs.map +1 -1
- package/__cjs/utilities/subscriptions/relay/index.d.cts +1 -1
- package/__cjs/utilities/types/NoInfer.d.cts +1 -1
- package/__cjs/utilities/types/{OnlyRequiredProperties.cjs → VariablesOption.cjs} +1 -1
- package/__cjs/utilities/types/VariablesOption.cjs.map +1 -0
- package/__cjs/utilities/types/VariablesOption.d.cts +25 -0
- package/__cjs/version.cjs +1 -1
- package/__cjs/version.cjs.map +1 -1
- package/__cjs/version.d.cts +1 -1
- package/cache/core/cache.d.ts +18 -18
- package/cache/core/cache.js +1 -1
- package/cache/core/cache.js.map +1 -1
- package/cache/core/types/Cache.d.ts +9 -16
- package/cache/core/types/Cache.js.map +1 -1
- package/cache/core/types/DataProxy.d.ts +8 -23
- package/cache/core/types/common.js +1 -0
- package/cache/core/types/common.js.map +1 -1
- package/cache/index.d.ts +3 -3
- package/cache/index.js +1 -1
- package/cache/index.js.map +1 -1
- package/cache/inmemory/entityStore.d.ts +3 -2
- package/cache/inmemory/entityStore.js +9 -8
- package/cache/inmemory/entityStore.js.map +1 -1
- package/cache/inmemory/fragmentRegistry.js +1 -1
- package/cache/inmemory/fragmentRegistry.js.map +1 -1
- package/cache/inmemory/helpers.d.ts +0 -1
- package/cache/inmemory/helpers.js +0 -7
- package/cache/inmemory/helpers.js.map +1 -1
- package/cache/inmemory/inMemoryCache.d.ts +8 -9
- package/cache/inmemory/inMemoryCache.js +4 -12
- package/cache/inmemory/inMemoryCache.js.map +1 -1
- package/cache/inmemory/key-extractor.js +1 -1
- package/cache/inmemory/policies.d.ts +1 -1
- package/cache/inmemory/policies.js +9 -9
- package/cache/inmemory/policies.js.map +1 -1
- package/cache/inmemory/reactiveVars.d.ts +7 -7
- package/cache/inmemory/reactiveVars.js.map +1 -1
- package/cache/inmemory/readFromStore.d.ts +1 -6
- package/cache/inmemory/readFromStore.js +14 -56
- package/cache/inmemory/readFromStore.js.map +1 -1
- package/cache/inmemory/types.d.ts +3 -17
- package/cache/inmemory/writeToStore.d.ts +2 -2
- package/cache/inmemory/writeToStore.js +8 -8
- package/cache/inmemory/writeToStore.js.map +1 -1
- package/config/jest/areCombinedGraphQLErrorsEqual.js +6 -4
- package/config/jest/areCombinedGraphQLErrorsEqual.js.map +1 -1
- package/config/jest/areCombinedProtocolErrorsEqual.js +3 -3
- package/config/jest/areCombinedProtocolErrorsEqual.js.map +1 -1
- package/config/jest/areMissingFieldErrorsEqual.js +2 -3
- package/config/jest/areMissingFieldErrorsEqual.js.map +1 -1
- package/config/jest/areServerErrorsEqual.d.ts +3 -0
- package/config/jest/areServerErrorsEqual.js +18 -0
- package/config/jest/areServerErrorsEqual.js.map +1 -0
- package/config/jest/resolver.js +12 -1
- package/config/jest/resolver.js.map +1 -1
- package/config/jest/setup.js +19 -2
- package/config/jest/setup.js.map +1 -1
- package/core/ApolloClient.d.ts +37 -27
- package/core/ApolloClient.js +38 -22
- package/core/ApolloClient.js.map +1 -1
- package/core/LocalState.d.ts +5 -6
- package/core/LocalState.js +2 -3
- package/core/LocalState.js.map +1 -1
- package/core/ObservableQuery.d.ts +156 -17
- package/core/ObservableQuery.js +266 -101
- package/core/ObservableQuery.js.map +1 -1
- package/core/QueryInfo.d.ts +2 -11
- package/core/QueryInfo.js +12 -86
- package/core/QueryInfo.js.map +1 -1
- package/core/QueryManager.d.ts +38 -29
- package/core/QueryManager.js +176 -131
- package/core/QueryManager.js.map +1 -1
- package/core/index.d.ts +12 -11
- package/core/index.js +9 -6
- package/core/index.js.map +1 -1
- package/core/types.d.ts +65 -7
- package/core/watchQueryOptions.d.ts +32 -119
- package/errors/CombinedGraphQLErrors.d.ts +21 -2
- package/errors/CombinedGraphQLErrors.js +30 -11
- package/errors/CombinedGraphQLErrors.js.map +1 -1
- package/errors/CombinedProtocolErrors.d.ts +9 -0
- package/errors/CombinedProtocolErrors.js +13 -6
- package/errors/CombinedProtocolErrors.js.map +1 -1
- package/errors/LinkError.d.ts +14 -0
- package/errors/LinkError.js +16 -0
- package/errors/LinkError.js.map +1 -0
- package/errors/ServerError.d.ts +2 -0
- package/errors/ServerError.js +6 -0
- package/errors/ServerError.js.map +1 -1
- package/errors/ServerParseError.d.ts +2 -0
- package/errors/ServerParseError.js +6 -0
- package/errors/ServerParseError.js.map +1 -1
- package/errors/UnconventionalError.d.ts +2 -0
- package/errors/UnconventionalError.js +6 -0
- package/errors/UnconventionalError.js.map +1 -1
- package/errors/index.d.ts +2 -3
- package/errors/index.js +13 -1
- package/errors/index.js.map +1 -1
- package/errors/isErrorLike.d.ts +3 -0
- package/errors/isErrorLike.js +9 -0
- package/errors/isErrorLike.js.map +1 -0
- package/errors/utils.d.ts +3 -0
- package/errors/utils.js +14 -0
- package/errors/utils.js.map +1 -0
- package/invariantErrorCodes.js +131 -138
- package/legacyEntryPoints/testing/internal/index.d.ts +1 -0
- package/legacyEntryPoints/testing/internal/index.js +1 -0
- package/legacyEntryPoints/testing/internal/internal.cjs +1 -0
- package/legacyEntryPoints/testing/internal/internal.d.cts +1 -0
- package/link/batch/index.d.ts +2 -1
- package/link/batch/index.js +1 -1
- package/link/batch/index.js.map +1 -1
- package/link/batch-http/batchHttpLink.d.ts +3 -2
- package/link/batch-http/batchHttpLink.js.map +1 -1
- package/link/batch-http/index.d.ts +1 -1
- package/link/batch-http/index.js +1 -1
- package/link/batch-http/index.js.map +1 -1
- package/link/context/index.d.ts +2 -3
- package/link/context/index.js.map +1 -1
- package/link/core/ApolloLink.d.ts +3 -5
- package/link/core/ApolloLink.js +4 -22
- package/link/core/ApolloLink.js.map +1 -1
- package/link/core/index.d.ts +1 -1
- package/link/core/index.js.map +1 -1
- package/link/core/types.d.ts +15 -4
- package/link/error/index.d.ts +4 -15
- package/link/error/index.js +14 -29
- package/link/error/index.js.map +1 -1
- package/link/http/HttpLink.d.ts +128 -3
- package/link/http/HttpLink.js.map +1 -1
- package/link/http/checkFetcher.js +1 -1
- package/link/http/createHttpLink.d.ts +2 -2
- package/link/http/createHttpLink.js +1 -1
- package/link/http/createHttpLink.js.map +1 -1
- package/link/http/index.d.ts +0 -1
- package/link/http/index.js.map +1 -1
- package/link/http/parseAndCheckHttpResponse.js +1 -1
- package/link/http/rewriteURIForGET.d.ts +2 -2
- package/link/http/rewriteURIForGET.js.map +1 -1
- package/link/http/selectHttpOptionsAndBody.d.ts +7 -82
- package/link/http/selectHttpOptionsAndBody.js.map +1 -1
- package/link/http/serializeFetchParameter.js +1 -1
- package/link/persisted-queries/index.d.ts +2 -2
- package/link/persisted-queries/index.js +3 -3
- package/link/persisted-queries/index.js.map +1 -1
- package/link/remove-typename/removeTypenameFromVariables.js.map +1 -1
- package/link/retry/index.d.ts +1 -1
- package/link/retry/index.js +1 -1
- package/link/retry/index.js.map +1 -1
- package/link/subscriptions/index.js +3 -1
- package/link/subscriptions/index.js.map +1 -1
- package/link/utils/createOperation.d.ts +2 -2
- package/link/utils/createOperation.js +5 -1
- package/link/utils/createOperation.js.map +1 -1
- package/link/utils/validateOperation.js +1 -1
- package/masking/maskDefinition.d.ts +1 -1
- package/masking/maskDefinition.js +2 -2
- package/masking/maskDefinition.js.map +1 -1
- package/masking/maskFragment.d.ts +2 -2
- package/masking/maskFragment.js +2 -2
- package/masking/maskFragment.js.map +1 -1
- package/masking/maskOperation.d.ts +2 -2
- package/masking/maskOperation.js +1 -1
- package/masking/maskOperation.js.map +1 -1
- package/masking/utils.js +1 -1
- package/package.json +20 -40
- package/react/context/ApolloConsumer.d.ts +7 -4
- package/react/context/ApolloConsumer.js +1 -1
- package/react/context/ApolloConsumer.js.map +1 -1
- package/react/context/ApolloContext.d.ts +4 -4
- package/react/context/ApolloContext.js +1 -1
- package/react/context/ApolloContext.js.map +1 -1
- package/react/context/ApolloProvider.d.ts +7 -5
- package/react/context/ApolloProvider.js +1 -1
- package/react/context/ApolloProvider.js.map +1 -1
- package/react/hooks/internal/validateSuspenseHookOptions.d.ts +3 -0
- package/react/hooks/internal/validateSuspenseHookOptions.js +22 -0
- package/react/hooks/internal/validateSuspenseHookOptions.js.map +1 -0
- package/react/hooks/internal/wrapHook.d.ts +7 -5
- package/react/hooks/internal/wrapHook.js +24 -5
- package/react/hooks/internal/wrapHook.js.map +1 -1
- package/react/hooks/useApolloClient.d.ts +2 -2
- package/react/hooks/useApolloClient.js +1 -1
- package/react/hooks/useApolloClient.js.map +1 -1
- package/react/hooks/useBackgroundQuery.d.ts +143 -46
- package/react/hooks/useBackgroundQuery.js +2 -2
- package/react/hooks/useBackgroundQuery.js.map +1 -1
- package/react/hooks/useFragment.d.ts +51 -26
- package/react/hooks/useFragment.js.map +1 -1
- package/react/hooks/useLazyQuery.d.ts +278 -276
- package/react/hooks/useLazyQuery.js +30 -31
- package/react/hooks/useLazyQuery.js.map +1 -1
- package/react/hooks/useLoadableQuery.d.ts +106 -34
- package/react/hooks/useLoadableQuery.js +21 -2
- package/react/hooks/useLoadableQuery.js.map +1 -1
- package/react/hooks/useMutation.d.ts +231 -4
- package/react/hooks/useMutation.js +14 -21
- package/react/hooks/useMutation.js.map +1 -1
- package/react/hooks/useQuery.d.ts +274 -4
- package/react/hooks/useQuery.js +86 -205
- package/react/hooks/useQuery.js.map +1 -1
- package/react/hooks/useQueryRefHandlers.d.ts +23 -22
- package/react/hooks/useQueryRefHandlers.js.map +1 -1
- package/react/hooks/useReactiveVar.d.ts +1 -1
- package/react/hooks/useReactiveVar.js.map +1 -1
- package/react/hooks/useReadQuery.d.ts +27 -25
- package/react/hooks/useReadQuery.js.map +1 -1
- package/react/hooks/useSubscription.d.ts +94 -9
- package/react/hooks/useSubscription.js +8 -56
- package/react/hooks/useSubscription.js.map +1 -1
- package/react/hooks/useSuspenseFragment.d.ts +40 -38
- package/react/hooks/useSuspenseFragment.js.map +1 -1
- package/react/hooks/useSuspenseQuery.d.ts +199 -38
- package/react/hooks/useSuspenseQuery.js +5 -26
- package/react/hooks/useSuspenseQuery.js.map +1 -1
- package/react/hooks/useSyncExternalStore.js +1 -1
- package/react/index.d.ts +22 -6
- package/react/index.js +18 -3
- package/react/index.js.map +1 -1
- package/react/index.react-server.d.ts +0 -1
- package/react/index.react-server.js +0 -1
- package/react/index.react-server.js.map +1 -1
- package/react/internal/cache/FragmentReference.d.ts +3 -3
- package/react/internal/cache/FragmentReference.js.map +1 -1
- package/react/internal/cache/QueryReference.d.ts +5 -5
- package/react/internal/cache/QueryReference.js +3 -14
- package/react/internal/cache/QueryReference.js.map +1 -1
- package/react/internal/cache/SuspenseCache.d.ts +3 -3
- package/react/internal/cache/SuspenseCache.js.map +1 -1
- package/react/internal/cache/getSuspenseCache.d.ts +3 -3
- package/react/internal/cache/getSuspenseCache.js.map +1 -1
- package/react/internal/index.d.ts +2 -0
- package/react/internal/index.js +2 -1
- package/react/internal/index.js.map +1 -1
- package/react/internal/types.d.ts +9 -0
- package/react/query-preloader/createQueryPreloader.d.ts +6 -45
- package/react/query-preloader/createQueryPreloader.js +1 -0
- package/react/query-preloader/createQueryPreloader.js.map +1 -1
- package/react/ssr/getDataFromTree.d.ts +12 -1
- package/react/ssr/getDataFromTree.js +24 -29
- package/react/ssr/getDataFromTree.js.map +1 -1
- package/react/ssr/index.d.ts +1 -1
- package/react/ssr/index.js +1 -1
- package/react/ssr/index.js.map +1 -1
- package/react/ssr/prerenderStatic.d.ts +122 -0
- package/react/ssr/prerenderStatic.js +147 -0
- package/react/ssr/prerenderStatic.js.map +1 -0
- package/react/ssr/renderToStringWithData.d.ts +5 -0
- package/react/ssr/renderToStringWithData.js +11 -5
- package/react/ssr/renderToStringWithData.js.map +1 -1
- package/react/ssr/useSSRQuery.d.ts +5 -0
- package/react/ssr/useSSRQuery.js +56 -0
- package/react/ssr/useSSRQuery.js.map +1 -0
- package/react/types/deprecated.d.ts +75 -0
- package/react/types/deprecated.js +2 -0
- package/react/types/deprecated.js.map +1 -0
- package/react/types/types.documentation.d.ts +6 -34
- package/testing/core/index.d.ts +3 -3
- package/testing/core/index.js +2 -2
- package/testing/core/index.js.map +1 -1
- package/testing/core/mocking/mockClient.d.ts +2 -3
- package/testing/core/mocking/mockClient.js +2 -3
- package/testing/core/mocking/mockClient.js.map +1 -1
- package/testing/core/mocking/mockLink.d.ts +26 -7
- package/testing/core/mocking/mockLink.js +117 -113
- package/testing/core/mocking/mockLink.js.map +1 -1
- package/testing/experimental/createSchemaFetch.js +2 -2
- package/testing/experimental/createSchemaFetch.js.map +1 -1
- package/testing/experimental/createTestSchema.d.ts +1 -1
- package/testing/experimental/createTestSchema.js.map +1 -1
- package/testing/index.d.ts +2 -1
- package/testing/index.js +1 -1
- package/testing/index.js.map +1 -1
- package/testing/internal/disposables/spyOnConsole.d.ts +0 -1
- package/testing/internal/disposables/spyOnConsole.js +0 -1
- package/testing/internal/disposables/spyOnConsole.js.map +1 -1
- package/testing/internal/incremental.d.ts +1 -1
- package/testing/internal/incremental.js.map +1 -1
- package/testing/internal/index.d.ts +5 -3
- package/testing/internal/index.js +5 -3
- package/testing/internal/index.js.map +1 -1
- package/testing/internal/link.d.ts +5 -0
- package/testing/internal/link.js +12 -0
- package/testing/internal/link.js.map +1 -0
- package/testing/internal/renderHelpers.d.ts +3 -3
- package/testing/internal/renderHelpers.js.map +1 -1
- package/testing/internal/resetApolloContext.d.ts +10 -0
- package/testing/internal/resetApolloContext.js +20 -0
- package/testing/internal/resetApolloContext.js.map +1 -0
- package/testing/internal/scenarios/index.d.ts +6 -8
- package/testing/internal/scenarios/index.js +4 -2
- package/testing/internal/scenarios/index.js.map +1 -1
- package/testing/matchers/arrayWithLength.d.ts +3 -0
- package/testing/matchers/arrayWithLength.js +11 -0
- package/testing/matchers/arrayWithLength.js.map +1 -0
- package/testing/matchers/index.js +6 -18
- package/testing/matchers/index.js.map +1 -1
- package/testing/matchers/isSameClient.d.ts +3 -0
- package/testing/matchers/isSameClient.js +15 -0
- package/testing/matchers/isSameClient.js.map +1 -0
- package/testing/matchers/isSameObservableQuery.d.ts +3 -0
- package/testing/matchers/isSameObservableQuery.js +15 -0
- package/testing/matchers/isSameObservableQuery.js.map +1 -0
- package/testing/matchers/toComplete.js.map +1 -1
- package/testing/matchers/toEmitAnything.js.map +1 -1
- package/testing/matchers/toEmitError.js.map +1 -1
- package/testing/matchers/toEmitNext.js.map +1 -1
- package/testing/matchers/{toEmitValueStrict.d.ts → toEmitTypedValue.d.ts} +2 -2
- package/testing/matchers/{toEmitFetchResult.js → toEmitTypedValue.js} +7 -5
- package/testing/matchers/toEmitTypedValue.js.map +1 -0
- package/testing/matchers/toHaveSuspenseCacheEntryUsing.d.ts +1 -1
- package/testing/matchers/toHaveSuspenseCacheEntryUsing.js +1 -1
- package/testing/matchers/toHaveSuspenseCacheEntryUsing.js.map +1 -1
- package/testing/matchers/toMatchDocument.d.ts +1 -1
- package/testing/matchers/toMatchDocument.js.map +1 -1
- package/testing/matchers/toStrictEqualTyped.d.ts +8 -0
- package/testing/matchers/toStrictEqualTyped.js +28 -0
- package/testing/matchers/toStrictEqualTyped.js.map +1 -0
- package/testing/matchers/utils/getSerializableProperties.d.ts +4 -0
- package/testing/matchers/utils/getSerializableProperties.js +21 -0
- package/testing/matchers/utils/getSerializableProperties.js.map +1 -0
- package/testing/react/MockedProvider.d.ts +8 -6
- package/testing/react/MockedProvider.js +8 -4
- package/testing/react/MockedProvider.js.map +1 -1
- package/utilities/caching/sizes.d.ts +2 -20
- package/utilities/caching/sizes.js +2 -2
- package/utilities/caching/sizes.js.map +1 -1
- package/utilities/common/mergeOptions.d.ts +1 -1
- package/utilities/common/mergeOptions.js.map +1 -1
- package/utilities/graphql/getFromAST.d.ts +2 -2
- package/utilities/graphql/getFromAST.js +15 -6
- package/utilities/graphql/getFromAST.js.map +1 -1
- package/utilities/graphql/operations.d.ts +1 -1
- package/utilities/graphql/operations.js.map +1 -1
- package/utilities/graphql/storeUtils.js +1 -1
- package/utilities/graphql/transform.js +2 -2
- package/utilities/index.d.ts +16 -15
- package/utilities/index.js +12 -12
- package/utilities/index.js.map +1 -1
- package/utilities/internal/getMemoryInternals.d.ts +0 -1
- package/utilities/internal/getMemoryInternals.js +0 -2
- package/utilities/internal/getMemoryInternals.js.map +1 -1
- package/utilities/internal/index.d.ts +1 -0
- package/utilities/internal/index.js +2 -1
- package/utilities/internal/index.js.map +1 -1
- package/utilities/internal/index.production.js +1 -0
- package/utilities/internal/index.production.js.map +1 -1
- package/utilities/internal/toQueryResult.d.ts +3 -0
- package/utilities/internal/toQueryResult.js +10 -0
- package/utilities/internal/toQueryResult.js.map +1 -0
- package/utilities/invariant/index.development.js +1 -0
- package/utilities/invariant/index.development.js.map +1 -1
- package/utilities/subscriptions/relay/index.d.ts +1 -1
- package/utilities/subscriptions/relay/index.js +1 -1
- package/utilities/subscriptions/relay/index.js.map +1 -1
- package/utilities/types/NoInfer.d.ts +1 -1
- package/utilities/types/VariablesOption.d.ts +25 -0
- package/utilities/types/VariablesOption.js +2 -0
- package/utilities/types/VariablesOption.js.map +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/__cjs/cache/inmemory/object-canon.cjs +0 -180
- package/__cjs/cache/inmemory/object-canon.cjs.map +0 -1
- package/__cjs/cache/inmemory/object-canon.d.cts +0 -12
- package/__cjs/index.cjs +0 -8
- package/__cjs/index.cjs.map +0 -1
- package/__cjs/index.d.cts +0 -3
- package/__cjs/react/context/index.cjs +0 -10
- package/__cjs/react/context/index.cjs.map +0 -1
- package/__cjs/react/context/index.d.cts +0 -7
- package/__cjs/react/hooks/index.cjs +0 -27
- package/__cjs/react/hooks/index.cjs.map +0 -1
- package/__cjs/react/hooks/index.d.cts +0 -22
- package/__cjs/react/parser/index.cjs +0 -115
- package/__cjs/react/parser/index.cjs.map +0 -1
- package/__cjs/react/parser/index.d.cts +0 -18
- package/__cjs/react/ssr/RenderPromises.cjs +0 -104
- package/__cjs/react/ssr/RenderPromises.cjs.map +0 -1
- package/__cjs/react/ssr/RenderPromises.d.cts +0 -22
- package/__cjs/react/types/types.d.cts +0 -689
- package/__cjs/testing/matchers/toEmitApolloQueryResult.cjs +0 -40
- package/__cjs/testing/matchers/toEmitApolloQueryResult.cjs.map +0 -1
- package/__cjs/testing/matchers/toEmitApolloQueryResult.d.cts +0 -8
- package/__cjs/testing/matchers/toEmitFetchResult.cjs.map +0 -1
- package/__cjs/testing/matchers/toEmitFetchResult.d.cts +0 -8
- package/__cjs/testing/matchers/toEmitMatchedValue.cjs +0 -40
- package/__cjs/testing/matchers/toEmitMatchedValue.cjs.map +0 -1
- package/__cjs/testing/matchers/toEmitMatchedValue.d.cts +0 -7
- package/__cjs/testing/matchers/toEmitValue.cjs +0 -41
- package/__cjs/testing/matchers/toEmitValue.cjs.map +0 -1
- package/__cjs/testing/matchers/toEmitValue.d.cts +0 -4
- package/__cjs/testing/matchers/toEmitValueStrict.cjs +0 -46
- package/__cjs/testing/matchers/toEmitValueStrict.cjs.map +0 -1
- package/__cjs/testing/matchers/toEqualApolloQueryResult.cjs +0 -24
- package/__cjs/testing/matchers/toEqualApolloQueryResult.cjs.map +0 -1
- package/__cjs/testing/matchers/toEqualApolloQueryResult.d.cts +0 -6
- package/__cjs/testing/matchers/toEqualFetchResult.cjs +0 -24
- package/__cjs/testing/matchers/toEqualFetchResult.cjs.map +0 -1
- package/__cjs/testing/matchers/toEqualFetchResult.d.cts +0 -4
- package/__cjs/testing/matchers/toEqualLazyQueryResult.cjs +0 -40
- package/__cjs/testing/matchers/toEqualLazyQueryResult.cjs.map +0 -1
- package/__cjs/testing/matchers/toEqualLazyQueryResult.d.cts +0 -10
- package/__cjs/testing/matchers/toEqualQueryResult.cjs +0 -40
- package/__cjs/testing/matchers/toEqualQueryResult.cjs.map +0 -1
- package/__cjs/testing/matchers/toEqualQueryResult.d.cts +0 -9
- package/__cjs/utilities/types/OnlyRequiredProperties.cjs.map +0 -1
- package/__cjs/utilities/types/OnlyRequiredProperties.d.cts +0 -7
- package/__cjs/utilities/types/TODO.cjs.map +0 -1
- package/__cjs/utilities/types/TODO.d.cts +0 -3
- package/cache/inmemory/object-canon.d.ts +0 -12
- package/cache/inmemory/object-canon.js +0 -176
- package/cache/inmemory/object-canon.js.map +0 -1
- package/index.d.ts +0 -3
- package/index.js +0 -3
- package/index.js.map +0 -1
- package/legacyEntryPoints/react/context/context.cjs +0 -1
- package/legacyEntryPoints/react/context/context.d.cts +0 -1
- package/legacyEntryPoints/react/context/index.d.ts +0 -1
- package/legacyEntryPoints/react/context/index.js +0 -1
- package/legacyEntryPoints/react/hooks/hooks.cjs +0 -1
- package/legacyEntryPoints/react/hooks/hooks.d.cts +0 -1
- package/legacyEntryPoints/react/hooks/index.d.ts +0 -1
- package/legacyEntryPoints/react/hooks/index.js +0 -1
- package/legacyEntryPoints/react/parser/index.d.ts +0 -1
- package/legacyEntryPoints/react/parser/index.js +0 -1
- package/legacyEntryPoints/react/parser/parser.cjs +0 -1
- package/legacyEntryPoints/react/parser/parser.d.cts +0 -1
- package/react/context/index.d.ts +0 -7
- package/react/context/index.js +0 -4
- package/react/context/index.js.map +0 -1
- package/react/hooks/index.d.ts +0 -22
- package/react/hooks/index.js +0 -15
- package/react/hooks/index.js.map +0 -1
- package/react/parser/index.d.ts +0 -18
- package/react/parser/index.js +0 -109
- package/react/parser/index.js.map +0 -1
- package/react/ssr/RenderPromises.d.ts +0 -22
- package/react/ssr/RenderPromises.js +0 -100
- package/react/ssr/RenderPromises.js.map +0 -1
- package/react/types/types.d.ts +0 -689
- package/testing/matchers/toEmitApolloQueryResult.d.ts +0 -8
- package/testing/matchers/toEmitApolloQueryResult.js +0 -36
- package/testing/matchers/toEmitApolloQueryResult.js.map +0 -1
- package/testing/matchers/toEmitFetchResult.d.ts +0 -8
- package/testing/matchers/toEmitFetchResult.js.map +0 -1
- package/testing/matchers/toEmitMatchedValue.d.ts +0 -7
- package/testing/matchers/toEmitMatchedValue.js +0 -36
- package/testing/matchers/toEmitMatchedValue.js.map +0 -1
- package/testing/matchers/toEmitValue.d.ts +0 -4
- package/testing/matchers/toEmitValue.js +0 -37
- package/testing/matchers/toEmitValue.js.map +0 -1
- package/testing/matchers/toEmitValueStrict.js +0 -42
- package/testing/matchers/toEmitValueStrict.js.map +0 -1
- package/testing/matchers/toEqualApolloQueryResult.d.ts +0 -6
- package/testing/matchers/toEqualApolloQueryResult.js +0 -20
- package/testing/matchers/toEqualApolloQueryResult.js.map +0 -1
- package/testing/matchers/toEqualFetchResult.d.ts +0 -4
- package/testing/matchers/toEqualFetchResult.js +0 -20
- package/testing/matchers/toEqualFetchResult.js.map +0 -1
- package/testing/matchers/toEqualLazyQueryResult.d.ts +0 -10
- package/testing/matchers/toEqualLazyQueryResult.js +0 -36
- package/testing/matchers/toEqualLazyQueryResult.js.map +0 -1
- package/testing/matchers/toEqualQueryResult.d.ts +0 -9
- package/testing/matchers/toEqualQueryResult.js +0 -36
- package/testing/matchers/toEqualQueryResult.js.map +0 -1
- package/utilities/types/OnlyRequiredProperties.d.ts +0 -7
- package/utilities/types/OnlyRequiredProperties.js +0 -2
- package/utilities/types/OnlyRequiredProperties.js.map +0 -1
- package/utilities/types/TODO.d.ts +0 -3
- package/utilities/types/TODO.js +0 -2
- package/utilities/types/TODO.js.map +0 -1
- /package/__cjs/react/{types → internal}/types.cjs +0 -0
- /package/__cjs/react/{types → internal}/types.cjs.map +0 -0
- /package/react/{types → internal}/types.js +0 -0
- /package/react/{types → internal}/types.js.map +0 -0
package/invariantErrorCodes.js
CHANGED
|
@@ -71,12 +71,18 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
71
71
|
},
|
|
72
72
|
|
|
73
73
|
15: {
|
|
74
|
+
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
75
|
+
condition: "operations.length == 1 && operations[0].operation === expectedType",
|
|
76
|
+
message: `Running a %s requires a graphql ` + `%s, but a %s was used instead.`
|
|
77
|
+
},
|
|
78
|
+
|
|
79
|
+
16: {
|
|
74
80
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
75
81
|
condition: "queryDef && queryDef.operation === \"query\"",
|
|
76
82
|
message: "Must contain a query definition."
|
|
77
83
|
},
|
|
78
84
|
|
|
79
|
-
|
|
85
|
+
17: {
|
|
80
86
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
81
87
|
condition: "doc.kind === \"Document\"",
|
|
82
88
|
|
|
@@ -84,24 +90,24 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
84
90
|
string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
85
91
|
},
|
|
86
92
|
|
|
87
|
-
|
|
93
|
+
18: {
|
|
88
94
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
89
95
|
condition: "doc.definitions.length <= 1",
|
|
90
96
|
message: "Fragment must have exactly one definition."
|
|
91
97
|
},
|
|
92
98
|
|
|
93
|
-
|
|
99
|
+
19: {
|
|
94
100
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
95
101
|
condition: "fragmentDef.kind === \"FragmentDefinition\"",
|
|
96
102
|
message: "Must be a fragment definition."
|
|
97
103
|
},
|
|
98
104
|
|
|
99
|
-
|
|
105
|
+
20: {
|
|
100
106
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
101
107
|
message: "Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."
|
|
102
108
|
},
|
|
103
109
|
|
|
104
|
-
|
|
110
|
+
21: {
|
|
105
111
|
file: "@apollo/client/utilities/graphql/storeUtils.js",
|
|
106
112
|
|
|
107
113
|
message: `The inline argument "%s" of kind "%s"` +
|
|
@@ -109,58 +115,44 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
109
115
|
"overcome this limitation."
|
|
110
116
|
},
|
|
111
117
|
|
|
112
|
-
23: {
|
|
113
|
-
file: "@apollo/client/testing/core/mocking/mockLink.js",
|
|
114
|
-
condition: "queryWithoutClientOnlyDirectives",
|
|
115
|
-
message: "query is required"
|
|
116
|
-
},
|
|
117
|
-
|
|
118
118
|
24: {
|
|
119
119
|
file: "@apollo/client/testing/core/mocking/mockLink.js",
|
|
120
|
-
condition: "
|
|
121
|
-
message: `
|
|
120
|
+
condition: "max > min",
|
|
121
|
+
message: "realisticDelay: `min` must be less than `max`"
|
|
122
122
|
},
|
|
123
123
|
|
|
124
124
|
25: {
|
|
125
|
-
file: "@apollo/client/
|
|
126
|
-
condition: "
|
|
127
|
-
|
|
128
|
-
message: `Argument of %s passed to parser was not a valid GraphQL ` +
|
|
129
|
-
`DocumentNode. You may need to use 'graphql-tag' or another method ` +
|
|
130
|
-
`to convert your operation into a document`
|
|
125
|
+
file: "@apollo/client/testing/core/mocking/mockLink.js",
|
|
126
|
+
condition: "queryWithoutClientOnlyDirectives",
|
|
127
|
+
message: "query is required"
|
|
131
128
|
},
|
|
132
129
|
|
|
133
130
|
26: {
|
|
134
|
-
file: "@apollo/client/
|
|
135
|
-
condition: "
|
|
136
|
-
|
|
137
|
-
message: `Passing only a fragment to 'graphql' is not yet supported. ` +
|
|
138
|
-
`You must include a query, subscription or mutation as well`
|
|
131
|
+
file: "@apollo/client/testing/core/mocking/mockLink.js",
|
|
132
|
+
condition: "serverQuery",
|
|
133
|
+
message: "Cannot mock a client-only query. Mocked responses should contain at least one non-client field."
|
|
139
134
|
},
|
|
140
135
|
|
|
141
136
|
27: {
|
|
142
|
-
file: "@apollo/client/
|
|
143
|
-
condition: "
|
|
144
|
-
|
|
145
|
-
message: `react-apollo only supports a query, subscription, or a mutation per HOC. ` +
|
|
146
|
-
`%s had %s queries, %s ` +
|
|
147
|
-
`subscriptions and %s mutations. ` +
|
|
148
|
-
`You can use 'compose' to join multiple operation types to a component`
|
|
137
|
+
file: "@apollo/client/testing/core/mocking/mockLink.js",
|
|
138
|
+
condition: "(mock.maxUsageCount ?? 1) > 0",
|
|
139
|
+
message: "Mocked response `maxUsageCount` must be greater than 0. Given %s"
|
|
149
140
|
},
|
|
150
141
|
|
|
151
142
|
28: {
|
|
152
|
-
file: "@apollo/client/react/
|
|
153
|
-
condition: "
|
|
143
|
+
file: "@apollo/client/react/ssr/prerenderStatic.js",
|
|
144
|
+
condition: "renderCount <= maxRerenders",
|
|
154
145
|
|
|
155
|
-
message: `
|
|
156
|
-
|
|
157
|
-
|
|
146
|
+
message: `Exceeded maximum rerender count of %d.
|
|
147
|
+
This either means you have very deep \`useQuery\` waterfalls in your application
|
|
148
|
+
and need to increase the \`maxRerender\` option to \`prerenderStatic\`, or that
|
|
149
|
+
you have an infinite render loop in your application.`
|
|
158
150
|
},
|
|
159
151
|
|
|
160
152
|
29: {
|
|
161
|
-
file: "@apollo/client/react/
|
|
162
|
-
condition: "
|
|
163
|
-
message:
|
|
153
|
+
file: "@apollo/client/react/ssr/prerenderStatic.js",
|
|
154
|
+
condition: "!signal?.aborted",
|
|
155
|
+
message: "The operation was aborted before it could be attempted."
|
|
164
156
|
},
|
|
165
157
|
|
|
166
158
|
30: {
|
|
@@ -202,19 +194,19 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
202
194
|
message: "The query has not been loaded. Please load the query."
|
|
203
195
|
},
|
|
204
196
|
|
|
205
|
-
|
|
197
|
+
36: {
|
|
206
198
|
file: "@apollo/client/react/hooks/useSubscription.js",
|
|
207
199
|
condition: "!optionsRef.current.skip",
|
|
208
200
|
message: "A subscription that is skipped cannot be restarted."
|
|
209
201
|
},
|
|
210
202
|
|
|
211
|
-
|
|
212
|
-
file: "@apollo/client/react/hooks/
|
|
203
|
+
38: {
|
|
204
|
+
file: "@apollo/client/react/hooks/internal/validateSuspenseHookOptions.js",
|
|
213
205
|
condition: "supportedFetchPolicies.includes(fetchPolicy)",
|
|
214
206
|
message: `The fetch policy \`%s\` is not supported with suspense.`
|
|
215
207
|
},
|
|
216
208
|
|
|
217
|
-
|
|
209
|
+
40: {
|
|
218
210
|
file: "@apollo/client/react/context/ApolloConsumer.js",
|
|
219
211
|
condition: "context && context.client",
|
|
220
212
|
|
|
@@ -222,7 +214,7 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
222
214
|
"Wrap the root component in an <ApolloProvider>."
|
|
223
215
|
},
|
|
224
216
|
|
|
225
|
-
|
|
217
|
+
41: {
|
|
226
218
|
file: "@apollo/client/react/context/ApolloContext.js",
|
|
227
219
|
condition: "\"createContext\" in React",
|
|
228
220
|
|
|
@@ -233,7 +225,7 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
233
225
|
"For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components"
|
|
234
226
|
},
|
|
235
227
|
|
|
236
|
-
|
|
228
|
+
42: {
|
|
237
229
|
file: "@apollo/client/react/context/ApolloProvider.js",
|
|
238
230
|
condition: "context.client",
|
|
239
231
|
|
|
@@ -241,36 +233,36 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
241
233
|
'sure you pass in your client via the "client" prop.'
|
|
242
234
|
},
|
|
243
235
|
|
|
244
|
-
|
|
236
|
+
43: {
|
|
245
237
|
file: "@apollo/client/masking/maskDefinition.js",
|
|
246
238
|
condition: "fragment",
|
|
247
239
|
message: "Could not find fragment with name '%s'."
|
|
248
240
|
},
|
|
249
241
|
|
|
250
|
-
|
|
242
|
+
45: {
|
|
251
243
|
file: "@apollo/client/masking/maskFragment.js",
|
|
252
244
|
condition: "fragments.length === 1",
|
|
253
245
|
message: `Found %s fragments. \`fragmentName\` must be provided when there is not exactly 1 fragment.`
|
|
254
246
|
},
|
|
255
247
|
|
|
256
|
-
|
|
248
|
+
46: {
|
|
257
249
|
file: "@apollo/client/masking/maskFragment.js",
|
|
258
250
|
condition: "!!fragment",
|
|
259
251
|
message: `Could not find fragment with name "%s".`
|
|
260
252
|
},
|
|
261
253
|
|
|
262
|
-
|
|
254
|
+
47: {
|
|
263
255
|
file: "@apollo/client/masking/maskOperation.js",
|
|
264
256
|
condition: "definition",
|
|
265
257
|
message: "Expected a parsed GraphQL document with a query, mutation, or subscription."
|
|
266
258
|
},
|
|
267
259
|
|
|
268
|
-
|
|
260
|
+
49: {
|
|
269
261
|
file: "@apollo/client/link/utils/validateOperation.js",
|
|
270
262
|
message: `illegal argument: %s`
|
|
271
263
|
},
|
|
272
264
|
|
|
273
|
-
|
|
265
|
+
50: {
|
|
274
266
|
file: "@apollo/client/link/persisted-queries/index.js",
|
|
275
267
|
condition: "options &&\n (typeof options.sha256 === \"function\" ||\n typeof options.generateHash === \"function\")",
|
|
276
268
|
|
|
@@ -279,13 +271,13 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
279
271
|
"parameter."
|
|
280
272
|
},
|
|
281
273
|
|
|
282
|
-
|
|
274
|
+
51: {
|
|
283
275
|
file: "@apollo/client/link/persisted-queries/index.js",
|
|
284
276
|
condition: "forward",
|
|
285
277
|
message: "PersistedQueryLink cannot be the last link in the chain."
|
|
286
278
|
},
|
|
287
279
|
|
|
288
|
-
|
|
280
|
+
52: {
|
|
289
281
|
file: "@apollo/client/link/http/checkFetcher.js",
|
|
290
282
|
condition: "fetcher || typeof fetch !== \"undefined\"",
|
|
291
283
|
|
|
@@ -303,23 +295,23 @@ const client = new ApolloClient({
|
|
|
303
295
|
`
|
|
304
296
|
},
|
|
305
297
|
|
|
306
|
-
|
|
298
|
+
54: {
|
|
307
299
|
file: "@apollo/client/link/http/parseAndCheckHttpResponse.js",
|
|
308
300
|
condition: "response.body && typeof response.body.getReader === \"function\"",
|
|
309
301
|
message: "Unknown type for `response.body`. Please use a `fetch` implementation that is WhatWG-compliant and that uses WhatWG ReadableStreams for `body`."
|
|
310
302
|
},
|
|
311
303
|
|
|
312
|
-
|
|
304
|
+
55: {
|
|
313
305
|
file: "@apollo/client/link/http/serializeFetchParameter.js",
|
|
314
306
|
message: `Network request failed. %s is not serializable: %s`
|
|
315
307
|
},
|
|
316
308
|
|
|
317
|
-
|
|
309
|
+
57: {
|
|
318
310
|
file: "@apollo/client/link/core/ApolloLink.js",
|
|
319
311
|
message: "request is not implemented"
|
|
320
312
|
},
|
|
321
313
|
|
|
322
|
-
|
|
314
|
+
58: {
|
|
323
315
|
file: "@apollo/client/core/ApolloClient.js",
|
|
324
316
|
|
|
325
317
|
message: "To initialize Apollo Client, you must specify a 'cache' property " +
|
|
@@ -327,7 +319,7 @@ const client = new ApolloClient({
|
|
|
327
319
|
"For more information, please visit: https://go.apollo.dev/c/docs"
|
|
328
320
|
},
|
|
329
321
|
|
|
330
|
-
|
|
322
|
+
59: {
|
|
331
323
|
file: "@apollo/client/core/ApolloClient.js",
|
|
332
324
|
condition: "options.fetchPolicy !== \"cache-and-network\"",
|
|
333
325
|
|
|
@@ -337,130 +329,151 @@ const client = new ApolloClient({
|
|
|
337
329
|
"using a different fetchPolicy, such as cache-first or network-only."
|
|
338
330
|
},
|
|
339
331
|
|
|
332
|
+
60: {
|
|
333
|
+
file: "@apollo/client/core/ApolloClient.js",
|
|
334
|
+
condition: "options.fetchPolicy !== \"standby\"",
|
|
335
|
+
|
|
336
|
+
message: "The standby fetchPolicy does not work with client.query, because " +
|
|
337
|
+
"standby does not fetch. Consider using a different fetchPolicy, such " +
|
|
338
|
+
"as cache-first or network-only."
|
|
339
|
+
},
|
|
340
|
+
|
|
341
|
+
61: {
|
|
342
|
+
file: "@apollo/client/core/ApolloClient.js",
|
|
343
|
+
condition: "options.query",
|
|
344
|
+
|
|
345
|
+
message: "query option is required. You must specify your GraphQL document " +
|
|
346
|
+
"in the query option."
|
|
347
|
+
},
|
|
348
|
+
|
|
349
|
+
62: {
|
|
350
|
+
file: "@apollo/client/core/ApolloClient.js",
|
|
351
|
+
condition: "options.query.kind === \"Document\"",
|
|
352
|
+
message: 'You must wrap the query string in a "gql" tag.'
|
|
353
|
+
},
|
|
354
|
+
|
|
355
|
+
63: {
|
|
356
|
+
file: "@apollo/client/core/ApolloClient.js",
|
|
357
|
+
condition: "!options.returnPartialData",
|
|
358
|
+
message: "returnPartialData option only supported on watchQuery."
|
|
359
|
+
},
|
|
360
|
+
|
|
361
|
+
64: {
|
|
362
|
+
file: "@apollo/client/core/ApolloClient.js",
|
|
363
|
+
condition: "!options.pollInterval",
|
|
364
|
+
message: "pollInterval option only supported on watchQuery."
|
|
365
|
+
},
|
|
366
|
+
|
|
340
367
|
65: {
|
|
368
|
+
file: "@apollo/client/core/ApolloClient.js",
|
|
369
|
+
condition: "!options.notifyOnNetworkStatusChange",
|
|
370
|
+
message: "notifyOnNetworkStatusChange option only supported on watchQuery."
|
|
371
|
+
},
|
|
372
|
+
|
|
373
|
+
67: {
|
|
341
374
|
file: "@apollo/client/core/LocalState.js",
|
|
342
375
|
condition: "fragment",
|
|
343
376
|
message: `No fragment named %s`
|
|
344
377
|
},
|
|
345
378
|
|
|
346
|
-
|
|
379
|
+
68: {
|
|
347
380
|
file: "@apollo/client/core/LocalState.js",
|
|
348
381
|
condition: "fragment",
|
|
349
382
|
message: `No fragment named %s`
|
|
350
383
|
},
|
|
351
384
|
|
|
352
|
-
|
|
385
|
+
70: {
|
|
353
386
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
354
387
|
condition: "updateQuery",
|
|
355
388
|
message: "You must provide an `updateQuery` function when using `fetchMore` with a `no-cache` fetch policy."
|
|
356
389
|
},
|
|
357
390
|
|
|
358
|
-
|
|
391
|
+
72: {
|
|
359
392
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
360
393
|
condition: "pollInterval",
|
|
361
394
|
message: "Attempted to start a polling query without a polling interval."
|
|
362
395
|
},
|
|
363
396
|
|
|
364
|
-
|
|
397
|
+
74: {
|
|
365
398
|
file: "@apollo/client/core/QueryManager.js",
|
|
366
399
|
message: "QueryManager stopped while query was in flight"
|
|
367
400
|
},
|
|
368
401
|
|
|
369
|
-
|
|
402
|
+
75: {
|
|
370
403
|
file: "@apollo/client/core/QueryManager.js",
|
|
371
404
|
condition: "mutation",
|
|
372
405
|
message: "mutation option is required. You must specify your GraphQL document in the mutation option."
|
|
373
406
|
},
|
|
374
407
|
|
|
375
|
-
|
|
408
|
+
76: {
|
|
376
409
|
file: "@apollo/client/core/QueryManager.js",
|
|
377
410
|
condition: "fetchPolicy === \"network-only\" || fetchPolicy === \"no-cache\"",
|
|
378
411
|
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."
|
|
379
412
|
},
|
|
380
413
|
|
|
381
|
-
75: {
|
|
382
|
-
file: "@apollo/client/core/QueryManager.js",
|
|
383
|
-
condition: "options.query",
|
|
384
|
-
|
|
385
|
-
message: "query option is required. You must specify your GraphQL document " +
|
|
386
|
-
"in the query option."
|
|
387
|
-
},
|
|
388
|
-
|
|
389
|
-
76: {
|
|
390
|
-
file: "@apollo/client/core/QueryManager.js",
|
|
391
|
-
condition: "options.query.kind === \"Document\"",
|
|
392
|
-
message: 'You must wrap the query string in a "gql" tag.'
|
|
393
|
-
},
|
|
394
|
-
|
|
395
414
|
77: {
|
|
396
415
|
file: "@apollo/client/core/QueryManager.js",
|
|
397
|
-
|
|
398
|
-
message: "returnPartialData option only supported on watchQuery."
|
|
399
|
-
},
|
|
400
|
-
|
|
401
|
-
78: {
|
|
402
|
-
file: "@apollo/client/core/QueryManager.js",
|
|
403
|
-
condition: "!options.pollInterval",
|
|
404
|
-
message: "pollInterval option only supported on watchQuery."
|
|
416
|
+
message: "Store reset while query was in flight (not completed in link chain)"
|
|
405
417
|
},
|
|
406
418
|
|
|
407
|
-
|
|
419
|
+
81: {
|
|
408
420
|
file: "@apollo/client/core/QueryManager.js",
|
|
409
|
-
|
|
421
|
+
condition: "didEmitValue",
|
|
422
|
+
message: "The link chain completed without emitting a value. This is likely unintentional and should be updated to emit a value before completing."
|
|
410
423
|
},
|
|
411
424
|
|
|
412
|
-
|
|
425
|
+
82: {
|
|
413
426
|
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
414
427
|
condition: "typeof dataId === \"string\"",
|
|
415
428
|
message: "store.merge expects a string ID"
|
|
416
429
|
},
|
|
417
430
|
|
|
418
|
-
|
|
431
|
+
85: {
|
|
419
432
|
file: "@apollo/client/cache/inmemory/key-extractor.js",
|
|
420
433
|
condition: "extracted !== void 0",
|
|
421
434
|
message: `Missing field '%s' while extracting keyFields from %s`
|
|
422
435
|
},
|
|
423
436
|
|
|
424
|
-
|
|
437
|
+
86: {
|
|
425
438
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
426
439
|
condition: "!old || old === which",
|
|
427
440
|
message: `Cannot change root %s __typename more than once`
|
|
428
441
|
},
|
|
429
442
|
|
|
430
|
-
|
|
443
|
+
89: {
|
|
431
444
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
432
445
|
message: "Cannot automatically merge arrays"
|
|
433
446
|
},
|
|
434
447
|
|
|
435
|
-
|
|
448
|
+
90: {
|
|
436
449
|
file: "@apollo/client/cache/inmemory/readFromStore.js",
|
|
437
450
|
message: `No fragment named %s`
|
|
438
451
|
},
|
|
439
452
|
|
|
440
|
-
|
|
453
|
+
91: {
|
|
441
454
|
file: "@apollo/client/cache/inmemory/readFromStore.js",
|
|
442
455
|
condition: "!isReference(value)",
|
|
443
456
|
message: `Missing selection set for object of type %s returned for query field %s`
|
|
444
457
|
},
|
|
445
458
|
|
|
446
|
-
|
|
459
|
+
92: {
|
|
447
460
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
448
461
|
message: `Could not identify object %s`
|
|
449
462
|
},
|
|
450
463
|
|
|
451
|
-
|
|
464
|
+
94: {
|
|
452
465
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
453
466
|
message: `No fragment named %s`
|
|
454
467
|
}
|
|
455
468
|
};
|
|
456
469
|
|
|
457
470
|
export const devDebug = {
|
|
458
|
-
|
|
471
|
+
66: {
|
|
459
472
|
file: "@apollo/client/core/ApolloClient.js",
|
|
460
473
|
message: `In client.refetchQueries, Promise.all promise rejected with error %o`
|
|
461
474
|
},
|
|
462
475
|
|
|
463
|
-
|
|
476
|
+
73: {
|
|
464
477
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
465
478
|
message: `Missing cache result fields: %o`
|
|
466
479
|
}
|
|
@@ -484,81 +497,61 @@ export const devWarn = {
|
|
|
484
497
|
message: "@unmask 'mode' argument does not recognize value '%s'."
|
|
485
498
|
},
|
|
486
499
|
|
|
487
|
-
|
|
500
|
+
23: {
|
|
488
501
|
file: "@apollo/client/utilities/graphql/transform.js",
|
|
489
502
|
|
|
490
503
|
message: "Removing an @connection directive even though it does not have a key. " +
|
|
491
504
|
"You may want to use the key parameter to specify a store key."
|
|
492
505
|
},
|
|
493
506
|
|
|
494
|
-
36: {
|
|
495
|
-
file: "@apollo/client/react/hooks/useSubscription.js",
|
|
496
|
-
message: "'useSubscription' supports only the 'onSubscriptionData' or 'onData' option, but not both. Only the 'onData' option will be used."
|
|
497
|
-
},
|
|
498
|
-
|
|
499
|
-
37: {
|
|
500
|
-
file: "@apollo/client/react/hooks/useSubscription.js",
|
|
501
|
-
message: "'onSubscriptionData' is deprecated and will be removed in a future major version. Please use the 'onData' option instead."
|
|
502
|
-
},
|
|
503
|
-
|
|
504
|
-
38: {
|
|
505
|
-
file: "@apollo/client/react/hooks/useSubscription.js",
|
|
506
|
-
message: "'useSubscription' supports only the 'onSubscriptionComplete' or 'onComplete' option, but not both. Only the 'onComplete' option will be used."
|
|
507
|
-
},
|
|
508
|
-
|
|
509
507
|
39: {
|
|
510
|
-
file: "@apollo/client/react/hooks/
|
|
511
|
-
message: "'onSubscriptionComplete' is deprecated and will be removed in a future major version. Please use the 'onComplete' option instead."
|
|
512
|
-
},
|
|
513
|
-
|
|
514
|
-
42: {
|
|
515
|
-
file: "@apollo/client/react/hooks/useSuspenseQuery.js",
|
|
508
|
+
file: "@apollo/client/react/hooks/internal/validateSuspenseHookOptions.js",
|
|
516
509
|
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."
|
|
517
510
|
},
|
|
518
511
|
|
|
519
|
-
|
|
512
|
+
44: {
|
|
520
513
|
file: "@apollo/client/masking/maskDefinition.js",
|
|
521
514
|
message: "Accessing unmasked field on %s at path '%s'. This field will not be available when masking is enabled. Please read the field from the fragment instead."
|
|
522
515
|
},
|
|
523
516
|
|
|
524
|
-
|
|
517
|
+
48: {
|
|
525
518
|
file: "@apollo/client/masking/utils.js",
|
|
526
519
|
message: "The configured cache does not support data masking which effectively disables it. Please use a cache that supports data masking or disable data masking to silence this warning."
|
|
527
520
|
},
|
|
528
521
|
|
|
529
|
-
|
|
522
|
+
53: {
|
|
530
523
|
file: "@apollo/client/link/http/createHttpLink.js",
|
|
531
524
|
message: "Multipart-subscriptions do not support @defer"
|
|
532
525
|
},
|
|
533
526
|
|
|
534
|
-
|
|
527
|
+
56: {
|
|
535
528
|
file: "@apollo/client/link/core/ApolloLink.js",
|
|
536
529
|
message: `You are calling concat on a terminating link, which will have no effect %o`
|
|
537
530
|
},
|
|
538
531
|
|
|
539
|
-
|
|
532
|
+
69: {
|
|
540
533
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
541
534
|
|
|
542
535
|
message: `Called refetch(%o) for query %o, which does not declare a $variables variable.
|
|
543
536
|
Did you mean to call refetch(variables) instead of refetch({ variables })?`
|
|
544
537
|
},
|
|
545
538
|
|
|
546
|
-
|
|
539
|
+
78: {
|
|
547
540
|
file: "@apollo/client/core/QueryManager.js",
|
|
548
541
|
message: `Unknown query named "%s" requested in refetchQueries options.include array`
|
|
549
542
|
},
|
|
550
543
|
|
|
551
|
-
|
|
544
|
+
79: {
|
|
552
545
|
file: "@apollo/client/core/QueryManager.js",
|
|
553
546
|
message: `Unknown anonymous query requested in refetchQueries options.include array`
|
|
554
547
|
},
|
|
555
548
|
|
|
556
|
-
|
|
549
|
+
80: {
|
|
557
550
|
file: "@apollo/client/core/QueryManager.js",
|
|
558
551
|
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.'
|
|
559
552
|
},
|
|
560
553
|
|
|
561
|
-
|
|
554
|
+
83: {
|
|
562
555
|
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
563
556
|
|
|
564
557
|
message: "cache.modify: You are trying to write a Reference that is not part of the store: %o\n" +
|
|
@@ -566,24 +559,24 @@ Did you mean to call refetch(variables) instead of refetch({ variables })?`
|
|
|
566
559
|
"`toReference(object, true)`"
|
|
567
560
|
},
|
|
568
561
|
|
|
569
|
-
|
|
562
|
+
84: {
|
|
570
563
|
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
571
564
|
|
|
572
565
|
message: "cache.modify: Writing an array with a mix of both References and Objects will not result in the Objects being normalized correctly.\n" +
|
|
573
566
|
"Please convert the object instance %o to a Reference before writing it to the cache by calling `toReference(object, true)`."
|
|
574
567
|
},
|
|
575
568
|
|
|
576
|
-
|
|
569
|
+
87: {
|
|
577
570
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
578
571
|
message: `Inferring subtype %s of supertype %s`
|
|
579
572
|
},
|
|
580
573
|
|
|
581
|
-
|
|
574
|
+
88: {
|
|
582
575
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
583
576
|
message: `Undefined 'from' passed to readField with arguments %s`
|
|
584
577
|
},
|
|
585
578
|
|
|
586
|
-
|
|
579
|
+
95: {
|
|
587
580
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
588
581
|
|
|
589
582
|
message: `Cache data may be lost when replacing the %s field of a %s object.
|
|
@@ -602,29 +595,29 @@ For more information about these options, please refer to the documentation:
|
|
|
602
595
|
`
|
|
603
596
|
},
|
|
604
597
|
|
|
605
|
-
|
|
598
|
+
96: {
|
|
606
599
|
file: "@apollo/client/cache/core/cache.js",
|
|
607
600
|
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."
|
|
608
601
|
}
|
|
609
602
|
};
|
|
610
603
|
|
|
611
604
|
export const devError = {
|
|
612
|
-
|
|
605
|
+
22: {
|
|
613
606
|
file: "@apollo/client/utilities/graphql/transform.js",
|
|
614
607
|
message: `Could not find operation or fragment`
|
|
615
608
|
},
|
|
616
609
|
|
|
617
|
-
|
|
610
|
+
37: {
|
|
618
611
|
file: "@apollo/client/react/hooks/useSyncExternalStore.js",
|
|
619
612
|
message: "The result of getSnapshot should be cached to avoid an infinite loop"
|
|
620
613
|
},
|
|
621
614
|
|
|
622
|
-
|
|
615
|
+
71: {
|
|
623
616
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
624
617
|
message: "Unhandled GraphQL subscription error"
|
|
625
618
|
},
|
|
626
619
|
|
|
627
|
-
|
|
620
|
+
93: {
|
|
628
621
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
629
622
|
message: `Missing field '%s' while writing result %o`
|
|
630
623
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@apollo/client/testing/internal";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@apollo/client/testing/internal";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("@apollo/client/testing/internal");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@apollo/client/testing/internal";
|
package/link/batch/index.d.ts
CHANGED
package/link/batch/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BatchLink, OperationBatcher } from "./batchLink.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/link/batch/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/link/batch/index.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/link/batch/index.ts"],"sourcesContent":["export type { BatchableRequest, BatchHandler } from \"./batchLink.js\";\nexport { BatchLink, OperationBatcher } from \"./batchLink.js\";\n"],"names":[],"mappings":"AACA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAoB,CAApB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAA4C,CAA5C,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;"}
|
|
@@ -2,9 +2,10 @@ import { Observable } from "rxjs";
|
|
|
2
2
|
import { BatchLink } from "@apollo/client/link/batch";
|
|
3
3
|
import type { FetchResult, Operation } from "@apollo/client/link/core";
|
|
4
4
|
import { ApolloLink } from "@apollo/client/link/core";
|
|
5
|
-
import type {
|
|
5
|
+
import type { HttpLink } from "@apollo/client/link/http";
|
|
6
6
|
export declare namespace BatchHttpLink {
|
|
7
|
-
type Options = Pick<BatchLink.Options, "batchMax" | "batchDebounce" | "batchInterval" | "batchKey"> & Omit<
|
|
7
|
+
type Options = Pick<BatchLink.Options, "batchMax" | "batchDebounce" | "batchInterval" | "batchKey"> & Omit<HttpLink.Options, "useGETForQueries">;
|
|
8
|
+
type ContextOptions = HttpLink.ContextOptions;
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* Transforms Operation for into HTTP results.
|