@apollo/client 3.9.0-alpha.4 → 3.9.0-beta.0
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/README.md +8 -0
- package/.changeset/beige-geese-wink.md +5 -0
- package/.changeset/breezy-spiders-tap.md +38 -0
- package/.changeset/clean-items-smash.md +5 -0
- package/.changeset/cold-llamas-turn.md +8 -0
- package/.changeset/config.json +14 -0
- package/.changeset/dirty-kids-crash.md +5 -0
- package/.changeset/dirty-tigers-matter.md +13 -0
- package/.changeset/forty-cups-shop.md +5 -0
- package/.changeset/friendly-clouds-laugh.md +7 -0
- package/.changeset/hot-ducks-burn.md +5 -0
- package/.changeset/mighty-coats-check.md +47 -0
- package/.changeset/polite-avocados-warn.md +5 -0
- package/.changeset/pre.json +37 -0
- package/.changeset/quick-hats-marry.md +5 -0
- package/.changeset/rare-snakes-melt.md +24 -0
- package/.changeset/shaggy-ears-scream.md +5 -0
- package/.changeset/shaggy-sheep-pull.md +5 -0
- package/.changeset/sixty-boxes-rest.md +8 -0
- package/.changeset/sour-sheep-walk.md +7 -0
- package/.changeset/strong-terms-perform.md +46 -0
- package/.changeset/swift-zoos-collect.md +19 -0
- package/.changeset/thick-mice-collect.md +5 -0
- package/.changeset/thick-tips-cry.md +9 -0
- package/.changeset/thirty-ties-arrive.md +26 -0
- package/.changeset/tough-timers-begin.md +8 -0
- package/.changeset/unlucky-rats-decide.md +5 -0
- package/.changeset/violet-lions-draw.md +5 -0
- package/.changeset/wet-forks-rhyme.md +5 -0
- package/.changeset/wild-dolphins-jog.md +5 -0
- package/.changeset/yellow-flies-repeat.md +5 -0
- package/CHANGELOG.md +3649 -0
- package/apollo-client.cjs +775 -451
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/cache/cache.cjs +210 -156
- package/cache/cache.cjs.map +1 -1
- package/cache/cache.cjs.native.js +210 -156
- package/cache/core/cache.d.ts +19 -0
- package/cache/core/cache.js +28 -7
- package/cache/core/cache.js.map +1 -1
- package/cache/core/types/Cache.d.ts +8 -1
- package/cache/core/types/Cache.js.map +1 -1
- package/cache/core/types/DataProxy.d.ts +104 -0
- package/cache/core/types/DataProxy.js.map +1 -1
- package/cache/core/types/common.d.ts +5 -1
- package/cache/core/types/common.js +4 -1
- package/cache/core/types/common.js.map +1 -1
- package/cache/inmemory/entityStore.d.ts +10 -1
- package/cache/inmemory/entityStore.js +190 -29
- package/cache/inmemory/entityStore.js.map +1 -1
- package/cache/inmemory/fixPolyfills.js +9 -0
- package/cache/inmemory/fixPolyfills.js.map +1 -1
- package/cache/inmemory/fixPolyfills.native.js +12 -0
- package/cache/inmemory/fixPolyfills.native.js.map +1 -1
- package/cache/inmemory/fragmentRegistry.d.ts +1 -0
- package/cache/inmemory/fragmentRegistry.js +39 -14
- package/cache/inmemory/fragmentRegistry.js.map +1 -1
- package/cache/inmemory/helpers.js +20 -11
- package/cache/inmemory/helpers.js.map +1 -1
- package/cache/inmemory/inMemoryCache.d.ts +9 -0
- package/cache/inmemory/inMemoryCache.js +172 -10
- package/cache/inmemory/inMemoryCache.js.map +1 -1
- package/cache/inmemory/key-extractor.js +72 -4
- package/cache/inmemory/key-extractor.js.map +1 -1
- package/cache/inmemory/object-canon.js +87 -3
- package/cache/inmemory/object-canon.js.map +1 -1
- package/cache/inmemory/policies.js +190 -43
- package/cache/inmemory/policies.js.map +1 -1
- package/cache/inmemory/reactiveVars.js +20 -2
- package/cache/inmemory/reactiveVars.js.map +1 -1
- package/cache/inmemory/readFromStore.d.ts +4 -0
- package/cache/inmemory/readFromStore.js +65 -12
- package/cache/inmemory/readFromStore.js.map +1 -1
- package/cache/inmemory/types.d.ts +46 -0
- package/cache/inmemory/types.js.map +1 -1
- package/cache/inmemory/writeToStore.js +152 -25
- package/cache/inmemory/writeToStore.js.map +1 -1
- package/config/jest/setup.js +2 -0
- package/config/jest/setup.js.map +1 -1
- package/core/ApolloClient.d.ts +273 -3
- package/core/ApolloClient.js +239 -7
- package/core/ApolloClient.js.map +1 -1
- package/core/LocalState.d.ts +4 -6
- package/core/LocalState.js +56 -18
- package/core/LocalState.js.map +1 -1
- package/core/ObservableQuery.d.ts +27 -0
- package/core/ObservableQuery.js +246 -31
- package/core/ObservableQuery.js.map +1 -1
- package/core/QueryInfo.d.ts +4 -3
- package/core/QueryInfo.js +122 -13
- package/core/QueryInfo.js.map +1 -1
- package/core/QueryManager.d.ts +9 -2
- package/core/QueryManager.js +259 -53
- package/core/QueryManager.js.map +1 -1
- package/core/core.cjs +222 -122
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +222 -122
- package/core/equalByQuery.js +20 -1
- package/core/equalByQuery.js.map +1 -1
- package/core/index.d.ts +1 -1
- package/core/index.js +19 -0
- package/core/index.js.map +1 -1
- package/core/networkStatus.d.ts +39 -0
- package/core/networkStatus.js +39 -0
- package/core/networkStatus.js.map +1 -1
- package/core/types.d.ts +9 -0
- package/core/types.js.map +1 -1
- package/core/watchQueryOptions.d.ts +245 -2
- package/core/watchQueryOptions.js.map +1 -1
- package/dev/dev.cjs +10 -119
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +10 -119
- package/dev/loadErrorMessageHandler.js.map +1 -1
- package/errors/errors.cjs +1 -1
- package/errors/errors.cjs.map +1 -1
- package/errors/errors.cjs.native.js +1 -1
- package/errors/index.js +14 -1
- package/errors/index.js.map +1 -1
- package/invariantErrorCodes.js +6 -8
- package/link/batch/batch.cjs +2 -2
- package/link/batch/batch.cjs.map +1 -1
- package/link/batch/batch.cjs.native.js +2 -2
- package/link/batch/batchLink.d.ts +21 -0
- package/link/batch/batchLink.js +2 -1
- package/link/batch/batchLink.js.map +1 -1
- package/link/batch/batching.js +24 -1
- package/link/batch/batching.js.map +1 -1
- package/link/batch-http/batch-http.cjs +3 -2
- package/link/batch-http/batch-http.cjs.map +1 -1
- package/link/batch-http/batch-http.cjs.native.js +3 -2
- package/link/batch-http/batchHttpLink.d.ts +4 -0
- package/link/batch-http/batchHttpLink.js +53 -2
- package/link/batch-http/batchHttpLink.js.map +1 -1
- package/link/context/context.cjs.map +1 -1
- package/link/context/index.js +1 -0
- package/link/context/index.js.map +1 -1
- package/link/core/ApolloLink.d.ts +15 -0
- package/link/core/ApolloLink.js +20 -9
- package/link/core/ApolloLink.js.map +1 -1
- package/link/core/core.cjs +13 -9
- package/link/core/core.cjs.map +1 -1
- package/link/core/core.cjs.native.js +13 -9
- package/link/error/error.cjs +1 -1
- package/link/error/error.cjs.map +1 -1
- package/link/error/error.cjs.native.js +1 -1
- package/link/error/index.d.ts +3 -0
- package/link/error/index.js +4 -1
- package/link/error/index.js.map +1 -1
- package/link/http/HttpLink.d.ts +0 -2
- package/link/http/HttpLink.js +1 -1
- package/link/http/HttpLink.js.map +1 -1
- package/link/http/checkFetcher.js.map +1 -1
- package/link/http/createHttpLink.js +23 -1
- package/link/http/createHttpLink.js.map +1 -1
- package/link/http/createSignalIfSupported.d.ts +5 -0
- package/link/http/createSignalIfSupported.js +5 -0
- package/link/http/createSignalIfSupported.js.map +1 -1
- package/link/http/http.cjs +14 -12
- package/link/http/http.cjs.map +1 -1
- package/link/http/http.cjs.native.js +14 -12
- package/link/http/index.js +2 -1
- package/link/http/index.js.map +1 -1
- package/link/http/iterators/async.d.ts +4 -0
- package/link/http/iterators/async.js +4 -0
- package/link/http/iterators/async.js.map +1 -1
- package/link/http/iterators/nodeStream.d.ts +4 -0
- package/link/http/iterators/nodeStream.js +4 -0
- package/link/http/iterators/nodeStream.js.map +1 -1
- package/link/http/iterators/promise.d.ts +4 -0
- package/link/http/iterators/promise.js +4 -0
- package/link/http/iterators/promise.js.map +1 -1
- package/link/http/iterators/reader.d.ts +4 -0
- package/link/http/iterators/reader.js +4 -0
- package/link/http/iterators/reader.js.map +1 -1
- package/link/http/parseAndCheckHttpResponse.js +51 -10
- package/link/http/parseAndCheckHttpResponse.js.map +1 -1
- package/link/http/responseIterator.d.ts +4 -0
- package/link/http/responseIterator.js +6 -0
- package/link/http/responseIterator.js.map +1 -1
- package/link/http/rewriteURIForGET.d.ts +1 -1
- package/link/http/rewriteURIForGET.js +10 -0
- package/link/http/rewriteURIForGET.js.map +1 -1
- package/link/http/selectHttpOptionsAndBody.d.ts +45 -0
- package/link/http/selectHttpOptionsAndBody.js +23 -0
- package/link/http/selectHttpOptionsAndBody.js.map +1 -1
- package/link/http/selectURI.js.map +1 -1
- package/link/http/serializeFetchParameter.js.map +1 -1
- package/link/persisted-queries/index.d.ts +11 -1
- package/link/persisted-queries/index.js +62 -7
- package/link/persisted-queries/index.js.map +1 -1
- package/link/persisted-queries/persisted-queries.cjs +30 -7
- package/link/persisted-queries/persisted-queries.cjs.map +1 -1
- package/link/persisted-queries/persisted-queries.cjs.native.js +30 -7
- package/link/remove-typename/remove-typename.cjs +30 -11
- package/link/remove-typename/remove-typename.cjs.map +1 -1
- package/link/remove-typename/remove-typename.cjs.native.js +30 -11
- package/link/remove-typename/removeTypenameFromVariables.d.ts +9 -1
- package/link/remove-typename/removeTypenameFromVariables.js +31 -12
- package/link/remove-typename/removeTypenameFromVariables.js.map +1 -1
- package/link/retry/delayFunction.d.ts +29 -0
- package/link/retry/delayFunction.js +6 -0
- package/link/retry/delayFunction.js.map +1 -1
- package/link/retry/retry.cjs +5 -5
- package/link/retry/retry.cjs.map +1 -1
- package/link/retry/retry.cjs.native.js +5 -5
- package/link/retry/retryFunction.d.ts +20 -0
- package/link/retry/retryLink.d.ts +6 -0
- package/link/retry/retryLink.js +31 -6
- package/link/retry/retryLink.js.map +1 -1
- package/link/schema/index.d.ts +13 -0
- package/link/schema/index.js +3 -3
- package/link/schema/index.js.map +1 -1
- package/link/schema/schema.cjs +3 -3
- package/link/schema/schema.cjs.map +1 -1
- package/link/schema/schema.cjs.native.js +3 -3
- package/link/subscriptions/index.js +35 -2
- package/link/subscriptions/index.js.map +1 -1
- package/link/subscriptions/subscriptions.cjs +3 -2
- package/link/subscriptions/subscriptions.cjs.map +1 -1
- package/link/subscriptions/subscriptions.cjs.native.js +3 -2
- package/link/utils/createOperation.js.map +1 -1
- package/link/utils/filterOperationVariables.js +4 -0
- package/link/utils/filterOperationVariables.js.map +1 -1
- package/link/utils/toPromise.js.map +1 -1
- package/link/utils/transformOperation.js +3 -2
- package/link/utils/transformOperation.js.map +1 -1
- package/link/utils/utils.cjs +2 -2
- package/link/utils/utils.cjs.map +1 -1
- package/link/utils/utils.cjs.native.js +2 -2
- package/link/utils/validateOperation.js.map +1 -1
- package/link/ws/index.d.ts +12 -0
- package/link/ws/index.js +1 -1
- package/link/ws/index.js.map +1 -1
- package/link/ws/ws.cjs +1 -1
- package/link/ws/ws.cjs.map +1 -1
- package/link/ws/ws.cjs.native.js +1 -1
- package/package.json +53 -41
- package/react/cache/QueryReference.d.ts +27 -13
- package/react/cache/QueryReference.js +122 -42
- package/react/cache/QueryReference.js.map +1 -1
- package/react/cache/SuspenseCache.d.ts +10 -0
- package/react/cache/SuspenseCache.js +1 -2
- package/react/cache/SuspenseCache.js.map +1 -1
- package/react/cache/getSuspenseCache.js.map +1 -1
- package/react/cache/types.d.ts +3 -0
- package/react/cache/types.js.map +1 -1
- package/react/context/ApolloContext.d.ts +5 -0
- package/react/context/ApolloContext.js +10 -3
- package/react/context/ApolloContext.js.map +1 -1
- package/react/context/context.cjs +1 -3
- package/react/context/context.cjs.map +1 -1
- package/react/context/context.cjs.native.js +1 -3
- package/react/hoc/graphql.js.map +1 -1
- package/react/hoc/hoc-utils.js +3 -1
- package/react/hoc/hoc-utils.js.map +1 -1
- package/react/hoc/hoc.cjs +9 -17
- package/react/hoc/hoc.cjs.map +1 -1
- package/react/hoc/hoc.cjs.native.js +9 -17
- package/react/hoc/mutation-hoc.js +9 -4
- package/react/hoc/mutation-hoc.js.map +1 -1
- package/react/hoc/query-hoc.js +10 -4
- package/react/hoc/query-hoc.js.map +1 -1
- package/react/hoc/subscription-hoc.js +10 -4
- package/react/hoc/subscription-hoc.js.map +1 -1
- package/react/hoc/withApollo.js +3 -4
- package/react/hoc/withApollo.js.map +1 -1
- package/react/hooks/hooks.cjs +230 -98
- package/react/hooks/hooks.cjs.map +1 -1
- package/react/hooks/hooks.cjs.native.js +230 -98
- package/react/hooks/index.d.ts +4 -0
- package/react/hooks/index.js +2 -0
- package/react/hooks/index.js.map +1 -1
- package/react/hooks/internal/__use.js +5 -0
- package/react/hooks/internal/__use.js.map +1 -1
- package/react/hooks/internal/index.d.ts +1 -0
- package/react/hooks/internal/index.js +2 -0
- package/react/hooks/internal/index.js.map +1 -1
- package/react/hooks/internal/useDeepMemo.js.map +1 -1
- package/react/hooks/internal/useIsomorphicLayoutEffect.js +6 -3
- package/react/hooks/internal/useIsomorphicLayoutEffect.js.map +1 -1
- package/react/hooks/internal/useRenderGuard.d.ts +2 -0
- package/react/hooks/internal/useRenderGuard.js +17 -0
- package/react/hooks/internal/useRenderGuard.js.map +1 -0
- package/react/hooks/useBackgroundQuery.d.ts +12 -9
- package/react/hooks/useBackgroundQuery.js +14 -11
- package/react/hooks/useBackgroundQuery.js.map +1 -1
- package/react/hooks/useFragment.js +4 -3
- package/react/hooks/useFragment.js.map +1 -1
- package/react/hooks/useLazyQuery.js +13 -4
- package/react/hooks/useLazyQuery.js.map +1 -1
- package/react/hooks/useLoadableQuery.d.ts +30 -0
- package/react/hooks/useLoadableQuery.js +61 -0
- package/react/hooks/useLoadableQuery.js.map +1 -0
- package/react/hooks/useMutation.js +8 -3
- package/react/hooks/useMutation.js.map +1 -1
- package/react/hooks/useQuery.d.ts +11 -0
- package/react/hooks/useQuery.js +138 -6
- package/react/hooks/useQuery.js.map +1 -1
- package/react/hooks/useQueryRefHandlers.d.ts +35 -0
- package/react/hooks/useQueryRefHandlers.js +48 -0
- package/react/hooks/useQueryRefHandlers.js.map +1 -0
- package/react/hooks/useReactiveVar.js +5 -0
- package/react/hooks/useReactiveVar.js.map +1 -1
- package/react/hooks/useReadQuery.d.ts +19 -0
- package/react/hooks/useReadQuery.js +9 -9
- package/react/hooks/useReadQuery.js.map +1 -1
- package/react/hooks/useSubscription.js +5 -0
- package/react/hooks/useSubscription.js.map +1 -1
- package/react/hooks/useSuspenseQuery.js +22 -22
- package/react/hooks/useSuspenseQuery.js.map +1 -1
- package/react/hooks/useSyncExternalStore.js +53 -1
- package/react/hooks/useSyncExternalStore.js.map +1 -1
- package/react/index.d.ts +2 -0
- package/react/index.js +1 -0
- package/react/index.js.map +1 -1
- package/react/parser/index.d.ts +3 -0
- package/react/parser/index.js +16 -6
- package/react/parser/index.js.map +1 -1
- package/react/parser/parser.cjs +19 -5
- package/react/parser/parser.cjs.map +1 -1
- package/react/parser/parser.cjs.native.js +19 -5
- package/react/query-preloader/createQueryPreloader.d.ts +253 -0
- package/react/query-preloader/createQueryPreloader.js +29 -0
- package/react/query-preloader/createQueryPreloader.js.map +1 -0
- package/react/react.cjs +248 -1
- package/react/react.cjs.map +1 -1
- package/react/react.cjs.native.js +248 -1
- package/react/ssr/RenderPromises.js +21 -1
- package/react/ssr/RenderPromises.js.map +1 -1
- package/react/ssr/getDataFromTree.js +18 -3
- package/react/ssr/getDataFromTree.js.map +1 -1
- package/react/ssr/ssr.cjs +6 -4
- package/react/ssr/ssr.cjs.map +1 -1
- package/react/ssr/ssr.cjs.native.js +6 -4
- package/react/types/types.d.ts +129 -1
- package/react/types/types.js.map +1 -1
- package/testing/core/core.cjs +14 -11
- package/testing/core/core.cjs.map +1 -1
- package/testing/core/core.cjs.native.js +14 -11
- package/testing/core/itAsync.d.ts +1 -1
- package/testing/core/itAsync.js.map +1 -1
- package/testing/core/mocking/mockFetch.d.ts +2 -2
- package/testing/core/mocking/mockFetch.js +8 -4
- package/testing/core/mocking/mockFetch.js.map +1 -1
- package/testing/core/mocking/mockLink.d.ts +1 -1
- package/testing/core/mocking/mockLink.js +17 -7
- package/testing/core/mocking/mockLink.js.map +1 -1
- package/testing/core/mocking/mockQueryManager.js +2 -0
- package/testing/core/mocking/mockQueryManager.js.map +1 -1
- package/testing/core/mocking/mockSubscriptionLink.d.ts +1 -1
- package/testing/core/mocking/mockSubscriptionLink.js +1 -1
- package/testing/core/mocking/mockSubscriptionLink.js.map +1 -1
- package/testing/core/mocking/mockWatchQuery.js +1 -1
- package/testing/core/mocking/mockWatchQuery.js.map +1 -1
- package/testing/core/observableToPromise.d.ts +17 -3
- package/testing/core/observableToPromise.js +5 -0
- package/testing/core/observableToPromise.js.map +1 -1
- package/testing/core/subscribeAndCount.js +3 -0
- package/testing/core/subscribeAndCount.js.map +1 -1
- package/testing/core/wait.js +2 -2
- package/testing/core/wait.js.map +1 -1
- package/testing/core/withConsoleSpy.d.ts +3 -0
- package/testing/core/withConsoleSpy.js +7 -1
- package/testing/core/withConsoleSpy.js.map +1 -1
- package/testing/core/wrap.js +2 -0
- package/testing/core/wrap.js.map +1 -1
- package/testing/internal/ObservableStream.js +14 -14
- package/testing/internal/ObservableStream.js.map +1 -1
- package/testing/internal/disposables/disableActWarnings.d.ts +10 -0
- package/testing/internal/disposables/disableActWarnings.js +15 -0
- package/testing/internal/disposables/disableActWarnings.js.map +1 -0
- package/testing/internal/disposables/index.d.ts +1 -0
- package/testing/internal/disposables/index.js +1 -0
- package/testing/internal/disposables/index.js.map +1 -1
- package/testing/internal/disposables/spyOnConsole.d.ts +1 -0
- package/testing/internal/disposables/spyOnConsole.js +2 -0
- package/testing/internal/disposables/spyOnConsole.js.map +1 -1
- package/testing/internal/disposables/withCleanup.d.ts +1 -0
- package/testing/internal/disposables/withCleanup.js +3 -0
- package/testing/internal/disposables/withCleanup.js.map +1 -1
- package/testing/internal/index.d.ts +4 -0
- package/testing/internal/index.js +2 -0
- package/testing/internal/index.js.map +1 -1
- package/testing/internal/profile/Render.d.ts +32 -1
- package/testing/internal/profile/Render.js +14 -2
- package/testing/internal/profile/Render.js.map +1 -1
- package/testing/internal/profile/context.d.ts +10 -0
- package/testing/internal/profile/context.js +14 -0
- package/testing/internal/profile/context.js.map +1 -0
- package/testing/internal/profile/index.d.ts +2 -2
- package/testing/internal/profile/index.js +1 -1
- package/testing/internal/profile/index.js.map +1 -1
- package/testing/internal/profile/profile.d.ts +67 -13
- package/testing/internal/profile/profile.js +153 -79
- package/testing/internal/profile/profile.js.map +1 -1
- package/testing/internal/profile/traces.d.ts +4 -0
- package/testing/internal/profile/traces.js +9 -5
- package/testing/internal/profile/traces.js.map +1 -1
- package/testing/internal/renderHelpers.d.ts +12 -0
- package/testing/internal/renderHelpers.js +22 -0
- package/testing/internal/renderHelpers.js.map +1 -0
- package/testing/internal/scenarios/index.d.ts +41 -0
- package/testing/internal/scenarios/index.js +46 -0
- package/testing/internal/scenarios/index.js.map +1 -0
- package/testing/matchers/ProfiledComponent.js +29 -26
- package/testing/matchers/ProfiledComponent.js.map +1 -1
- package/testing/matchers/index.js +4 -0
- package/testing/matchers/index.js.map +1 -1
- package/testing/matchers/toBeDisposed.d.ts +3 -0
- package/testing/matchers/toBeDisposed.js +26 -0
- package/testing/matchers/toBeDisposed.js.map +1 -0
- package/testing/matchers/toBeGarbageCollected.d.ts +8 -0
- package/testing/matchers/toBeGarbageCollected.js +48 -0
- package/testing/matchers/toBeGarbageCollected.js.map +1 -0
- package/testing/matchers/toHaveSuspenseCacheEntryUsing.js.map +1 -1
- package/testing/matchers/toMatchDocument.js.map +1 -1
- package/testing/react/MockedProvider.d.ts +5 -1
- package/testing/react/MockedProvider.js +6 -2
- package/testing/react/MockedProvider.js.map +1 -1
- package/testing/testing.cjs +4 -2
- package/testing/testing.cjs.map +1 -1
- package/testing/testing.cjs.native.js +4 -2
- package/utilities/caching/caches.d.ts +34 -0
- package/utilities/caching/caches.js +64 -0
- package/utilities/caching/caches.js.map +1 -0
- package/utilities/caching/getMemoryInternals.d.ts +76 -0
- package/utilities/caching/getMemoryInternals.js +112 -0
- package/utilities/caching/getMemoryInternals.js.map +1 -0
- package/utilities/caching/index.d.ts +4 -0
- package/utilities/caching/index.js +3 -0
- package/utilities/caching/index.js.map +1 -0
- package/utilities/caching/sizes.d.ts +261 -0
- package/utilities/caching/sizes.js +27 -0
- package/utilities/caching/sizes.js.map +1 -0
- package/utilities/common/arrays.js +1 -0
- package/utilities/common/arrays.js.map +1 -1
- package/utilities/common/canUse.js +17 -2
- package/utilities/common/canUse.js.map +1 -1
- package/utilities/common/canonicalStringify.d.ts +17 -0
- package/utilities/common/canonicalStringify.js +49 -2
- package/utilities/common/canonicalStringify.js.map +1 -1
- package/utilities/common/cloneDeep.d.ts +3 -0
- package/utilities/common/cloneDeep.js +5 -0
- package/utilities/common/cloneDeep.js.map +1 -1
- package/utilities/common/compact.d.ts +4 -0
- package/utilities/common/compact.js +4 -0
- package/utilities/common/compact.js.map +1 -1
- package/utilities/common/errorHandling.js +1 -3
- package/utilities/common/errorHandling.js.map +1 -1
- package/utilities/common/incrementalResult.js +3 -0
- package/utilities/common/incrementalResult.js.map +1 -1
- package/utilities/common/makeUniqueId.js +2 -0
- package/utilities/common/makeUniqueId.js.map +1 -1
- package/utilities/common/maybeDeepFreeze.js +3 -0
- package/utilities/common/maybeDeepFreeze.js.map +1 -1
- package/utilities/common/mergeDeep.js +12 -1
- package/utilities/common/mergeDeep.js.map +1 -1
- package/utilities/common/mergeOptions.d.ts +1 -1
- package/utilities/common/mergeOptions.js.map +1 -1
- package/utilities/common/omitDeep.js.map +1 -1
- package/utilities/globals/global.js +7 -1
- package/utilities/globals/global.js.map +1 -1
- package/utilities/globals/globals.cjs +4 -5
- package/utilities/globals/globals.cjs.map +1 -1
- package/utilities/globals/globals.cjs.native.js +4 -5
- package/utilities/globals/index.d.ts +4 -0
- package/utilities/globals/index.js +7 -0
- package/utilities/globals/index.js.map +1 -1
- package/utilities/globals/invariantWrappers.d.ts +40 -0
- package/utilities/globals/invariantWrappers.js +11 -3
- package/utilities/globals/invariantWrappers.js.map +1 -1
- package/utilities/globals/maybe.js.map +1 -1
- package/utilities/graphql/DocumentTransform.d.ts +20 -6
- package/utilities/graphql/DocumentTransform.js +54 -29
- package/utilities/graphql/DocumentTransform.js.map +1 -1
- package/utilities/graphql/directives.js +3 -0
- package/utilities/graphql/directives.js.map +1 -1
- package/utilities/graphql/fragments.d.ts +25 -0
- package/utilities/graphql/fragments.js +36 -0
- package/utilities/graphql/fragments.js.map +1 -1
- package/utilities/graphql/getFromAST.d.ts +5 -0
- package/utilities/graphql/getFromAST.js +9 -0
- package/utilities/graphql/getFromAST.js.map +1 -1
- package/utilities/graphql/print.js +8 -5
- package/utilities/graphql/print.js.map +1 -1
- package/utilities/graphql/storeUtils.d.ts +14 -0
- package/utilities/graphql/storeUtils.js +8 -2
- package/utilities/graphql/storeUtils.js.map +1 -1
- package/utilities/graphql/transform.js +106 -7
- package/utilities/graphql/transform.js.map +1 -1
- package/utilities/index.d.ts +4 -0
- package/utilities/index.js +1 -0
- package/utilities/index.js.map +1 -1
- package/utilities/observables/Concast.d.ts +1 -1
- package/utilities/observables/Concast.js +85 -2
- package/utilities/observables/Concast.js.map +1 -1
- package/utilities/observables/Observable.js +6 -0
- package/utilities/observables/Observable.js.map +1 -1
- package/utilities/observables/asyncMap.js +12 -3
- package/utilities/observables/asyncMap.js.map +1 -1
- package/utilities/observables/iteration.js +3 -0
- package/utilities/observables/iteration.js.map +1 -1
- package/utilities/observables/subclassing.js +14 -0
- package/utilities/observables/subclassing.js.map +1 -1
- package/utilities/policies/pagination.js +47 -3
- package/utilities/policies/pagination.js.map +1 -1
- package/utilities/promises/decoration.js +1 -0
- package/utilities/promises/decoration.js.map +1 -1
- package/utilities/subscriptions/relay/index.js.map +1 -1
- package/utilities/subscriptions/relay/relay.cjs +9 -8
- package/utilities/subscriptions/relay/relay.cjs.map +1 -1
- package/utilities/subscriptions/relay/relay.cjs.native.js +9 -8
- package/utilities/subscriptions/urql/index.js.map +1 -1
- package/utilities/subscriptions/urql/urql.cjs +9 -8
- package/utilities/subscriptions/urql/urql.cjs.map +1 -1
- package/utilities/subscriptions/urql/urql.cjs.native.js +9 -8
- package/utilities/types/DeepOmit.js.map +1 -1
- package/utilities/types/DeepPartial.d.ts +1 -1
- package/utilities/types/DeepPartial.js +4 -0
- package/utilities/types/DeepPartial.js.map +1 -1
- package/utilities/types/IsStrictlyAny.js.map +1 -1
- package/utilities/types/OnlyRequiredProperties.d.ts +7 -0
- package/utilities/types/OnlyRequiredProperties.js +2 -0
- package/utilities/types/OnlyRequiredProperties.js.map +1 -0
- package/utilities/types/TODO.d.ts +3 -0
- package/utilities/types/TODO.js +2 -0
- package/utilities/types/TODO.js.map +1 -0
- package/utilities/utilities.cjs +114 -58
- package/utilities/utilities.cjs.map +1 -1
- package/utilities/utilities.cjs.native.js +114 -58
- package/version.js +1 -1
- package/cache/core/cache.d.ts.map +0 -1
- package/cache/core/types/Cache.d.ts.map +0 -1
- package/cache/core/types/DataProxy.d.ts.map +0 -1
- package/cache/core/types/common.d.ts.map +0 -1
- package/cache/index.d.ts.map +0 -1
- package/cache/inmemory/entityStore.d.ts.map +0 -1
- package/cache/inmemory/fixPolyfills.d.ts.map +0 -1
- package/cache/inmemory/fixPolyfills.native.d.ts.map +0 -1
- package/cache/inmemory/fragmentRegistry.d.ts.map +0 -1
- package/cache/inmemory/helpers.d.ts.map +0 -1
- package/cache/inmemory/inMemoryCache.d.ts.map +0 -1
- package/cache/inmemory/key-extractor.d.ts.map +0 -1
- package/cache/inmemory/object-canon.d.ts.map +0 -1
- package/cache/inmemory/policies.d.ts.map +0 -1
- package/cache/inmemory/reactiveVars.d.ts.map +0 -1
- package/cache/inmemory/readFromStore.d.ts.map +0 -1
- package/cache/inmemory/types.d.ts.map +0 -1
- package/cache/inmemory/writeToStore.d.ts.map +0 -1
- package/config/jest/setup.d.ts.map +0 -1
- package/core/ApolloClient.d.ts.map +0 -1
- package/core/LocalState.d.ts.map +0 -1
- package/core/ObservableQuery.d.ts.map +0 -1
- package/core/QueryInfo.d.ts.map +0 -1
- package/core/QueryManager.d.ts.map +0 -1
- package/core/equalByQuery.d.ts.map +0 -1
- package/core/index.d.ts.map +0 -1
- package/core/networkStatus.d.ts.map +0 -1
- package/core/types.d.ts.map +0 -1
- package/core/watchQueryOptions.d.ts.map +0 -1
- package/dev/index.d.ts.map +0 -1
- package/dev/loadDevMessages.d.ts.map +0 -1
- package/dev/loadErrorMessageHandler.d.ts.map +0 -1
- package/dev/loadErrorMessages.d.ts.map +0 -1
- package/errors/index.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
- package/invariantErrorCodes.d.ts.map +0 -1
- package/link/batch/batchLink.d.ts.map +0 -1
- package/link/batch/batching.d.ts.map +0 -1
- package/link/batch/index.d.ts.map +0 -1
- package/link/batch-http/batchHttpLink.d.ts.map +0 -1
- package/link/batch-http/index.d.ts.map +0 -1
- package/link/context/index.d.ts.map +0 -1
- package/link/core/ApolloLink.d.ts.map +0 -1
- package/link/core/concat.d.ts.map +0 -1
- package/link/core/empty.d.ts.map +0 -1
- package/link/core/execute.d.ts.map +0 -1
- package/link/core/from.d.ts.map +0 -1
- package/link/core/index.d.ts.map +0 -1
- package/link/core/split.d.ts.map +0 -1
- package/link/core/types.d.ts.map +0 -1
- package/link/error/index.d.ts.map +0 -1
- package/link/http/HttpLink.d.ts.map +0 -1
- package/link/http/checkFetcher.d.ts.map +0 -1
- package/link/http/createHttpLink.d.ts.map +0 -1
- package/link/http/createSignalIfSupported.d.ts.map +0 -1
- package/link/http/index.d.ts.map +0 -1
- package/link/http/iterators/async.d.ts.map +0 -1
- package/link/http/iterators/nodeStream.d.ts.map +0 -1
- package/link/http/iterators/promise.d.ts.map +0 -1
- package/link/http/iterators/reader.d.ts.map +0 -1
- package/link/http/parseAndCheckHttpResponse.d.ts.map +0 -1
- package/link/http/responseIterator.d.ts.map +0 -1
- package/link/http/rewriteURIForGET.d.ts.map +0 -1
- package/link/http/selectHttpOptionsAndBody.d.ts.map +0 -1
- package/link/http/selectURI.d.ts.map +0 -1
- package/link/http/serializeFetchParameter.d.ts.map +0 -1
- package/link/persisted-queries/index.d.ts.map +0 -1
- package/link/remove-typename/index.d.ts.map +0 -1
- package/link/remove-typename/removeTypenameFromVariables.d.ts.map +0 -1
- package/link/retry/delayFunction.d.ts.map +0 -1
- package/link/retry/index.d.ts.map +0 -1
- package/link/retry/retryFunction.d.ts.map +0 -1
- package/link/retry/retryLink.d.ts.map +0 -1
- package/link/schema/index.d.ts.map +0 -1
- package/link/subscriptions/index.d.ts.map +0 -1
- package/link/utils/createOperation.d.ts.map +0 -1
- package/link/utils/filterOperationVariables.d.ts.map +0 -1
- package/link/utils/fromError.d.ts.map +0 -1
- package/link/utils/fromPromise.d.ts.map +0 -1
- package/link/utils/index.d.ts.map +0 -1
- package/link/utils/throwServerError.d.ts.map +0 -1
- package/link/utils/toPromise.d.ts.map +0 -1
- package/link/utils/transformOperation.d.ts.map +0 -1
- package/link/utils/validateOperation.d.ts.map +0 -1
- package/link/ws/index.d.ts.map +0 -1
- package/react/cache/QueryReference.d.ts.map +0 -1
- package/react/cache/SuspenseCache.d.ts.map +0 -1
- package/react/cache/getSuspenseCache.d.ts.map +0 -1
- package/react/cache/index.d.ts.map +0 -1
- package/react/cache/types.d.ts.map +0 -1
- package/react/components/Mutation.d.ts.map +0 -1
- package/react/components/Query.d.ts.map +0 -1
- package/react/components/Subscription.d.ts.map +0 -1
- package/react/components/index.d.ts.map +0 -1
- package/react/components/types.d.ts.map +0 -1
- package/react/context/ApolloConsumer.d.ts.map +0 -1
- package/react/context/ApolloContext.d.ts.map +0 -1
- package/react/context/ApolloProvider.d.ts.map +0 -1
- package/react/context/index.d.ts.map +0 -1
- package/react/hoc/graphql.d.ts.map +0 -1
- package/react/hoc/hoc-utils.d.ts.map +0 -1
- package/react/hoc/index.d.ts.map +0 -1
- package/react/hoc/mutation-hoc.d.ts.map +0 -1
- package/react/hoc/query-hoc.d.ts.map +0 -1
- package/react/hoc/subscription-hoc.d.ts.map +0 -1
- package/react/hoc/types.d.ts.map +0 -1
- package/react/hoc/withApollo.d.ts.map +0 -1
- package/react/hooks/constants.d.ts.map +0 -1
- package/react/hooks/index.d.ts.map +0 -1
- package/react/hooks/internal/__use.d.ts.map +0 -1
- package/react/hooks/internal/index.d.ts.map +0 -1
- package/react/hooks/internal/useDeepMemo.d.ts.map +0 -1
- package/react/hooks/internal/useIsomorphicLayoutEffect.d.ts.map +0 -1
- package/react/hooks/useApolloClient.d.ts.map +0 -1
- package/react/hooks/useBackgroundQuery.d.ts.map +0 -1
- package/react/hooks/useFragment.d.ts.map +0 -1
- package/react/hooks/useLazyQuery.d.ts.map +0 -1
- package/react/hooks/useMutation.d.ts.map +0 -1
- package/react/hooks/useQuery.d.ts.map +0 -1
- package/react/hooks/useReactiveVar.d.ts.map +0 -1
- package/react/hooks/useReadQuery.d.ts.map +0 -1
- package/react/hooks/useSubscription.d.ts.map +0 -1
- package/react/hooks/useSuspenseQuery.d.ts.map +0 -1
- package/react/hooks/useSyncExternalStore.d.ts.map +0 -1
- package/react/index.d.ts.map +0 -1
- package/react/parser/index.d.ts.map +0 -1
- package/react/ssr/RenderPromises.d.ts.map +0 -1
- package/react/ssr/getDataFromTree.d.ts.map +0 -1
- package/react/ssr/index.d.ts.map +0 -1
- package/react/ssr/renderToStringWithData.d.ts.map +0 -1
- package/react/types/types.d.ts.map +0 -1
- package/testing/core/index.d.ts.map +0 -1
- package/testing/core/itAsync.d.ts.map +0 -1
- package/testing/core/mocking/mockClient.d.ts.map +0 -1
- package/testing/core/mocking/mockFetch.d.ts.map +0 -1
- package/testing/core/mocking/mockLink.d.ts.map +0 -1
- package/testing/core/mocking/mockQueryManager.d.ts.map +0 -1
- package/testing/core/mocking/mockSubscriptionLink.d.ts.map +0 -1
- package/testing/core/mocking/mockWatchQuery.d.ts.map +0 -1
- package/testing/core/observableToPromise.d.ts.map +0 -1
- package/testing/core/subscribeAndCount.d.ts.map +0 -1
- package/testing/core/wait.d.ts.map +0 -1
- package/testing/core/withConsoleSpy.d.ts.map +0 -1
- package/testing/core/wrap.d.ts.map +0 -1
- package/testing/index.d.ts.map +0 -1
- package/testing/internal/ObservableStream.d.ts.map +0 -1
- package/testing/internal/disposables/index.d.ts.map +0 -1
- package/testing/internal/disposables/spyOnConsole.d.ts.map +0 -1
- package/testing/internal/disposables/withCleanup.d.ts.map +0 -1
- package/testing/internal/index.d.ts.map +0 -1
- package/testing/internal/profile/Render.d.ts.map +0 -1
- package/testing/internal/profile/index.d.ts.map +0 -1
- package/testing/internal/profile/profile.d.ts.map +0 -1
- package/testing/internal/profile/traces.d.ts.map +0 -1
- package/testing/matchers/ProfiledComponent.d.ts.map +0 -1
- package/testing/matchers/index.d.ts.map +0 -1
- package/testing/matchers/toHaveSuspenseCacheEntryUsing.d.ts.map +0 -1
- package/testing/matchers/toMatchDocument.d.ts.map +0 -1
- package/testing/react/MockedProvider.d.ts.map +0 -1
- package/utilities/common/arrays.d.ts.map +0 -1
- package/utilities/common/canUse.d.ts.map +0 -1
- package/utilities/common/canonicalStringify.d.ts.map +0 -1
- package/utilities/common/cloneDeep.d.ts.map +0 -1
- package/utilities/common/compact.d.ts.map +0 -1
- package/utilities/common/errorHandling.d.ts.map +0 -1
- package/utilities/common/filterInPlace.d.ts +0 -2
- package/utilities/common/filterInPlace.d.ts.map +0 -1
- package/utilities/common/filterInPlace.js +0 -11
- package/utilities/common/filterInPlace.js.map +0 -1
- package/utilities/common/incrementalResult.d.ts.map +0 -1
- package/utilities/common/makeUniqueId.d.ts.map +0 -1
- package/utilities/common/maybeDeepFreeze.d.ts.map +0 -1
- package/utilities/common/mergeDeep.d.ts.map +0 -1
- package/utilities/common/mergeOptions.d.ts.map +0 -1
- package/utilities/common/objects.d.ts.map +0 -1
- package/utilities/common/omitDeep.d.ts.map +0 -1
- package/utilities/common/stringifyForDisplay.d.ts.map +0 -1
- package/utilities/common/stripTypename.d.ts.map +0 -1
- package/utilities/globals/global.d.ts.map +0 -1
- package/utilities/globals/index.d.ts.map +0 -1
- package/utilities/globals/invariantWrappers.d.ts.map +0 -1
- package/utilities/globals/maybe.d.ts.map +0 -1
- package/utilities/graphql/DocumentTransform.d.ts.map +0 -1
- package/utilities/graphql/directives.d.ts.map +0 -1
- package/utilities/graphql/fragments.d.ts.map +0 -1
- package/utilities/graphql/getFromAST.d.ts.map +0 -1
- package/utilities/graphql/operations.d.ts.map +0 -1
- package/utilities/graphql/print.d.ts.map +0 -1
- package/utilities/graphql/storeUtils.d.ts.map +0 -1
- package/utilities/graphql/transform.d.ts.map +0 -1
- package/utilities/index.d.ts.map +0 -1
- package/utilities/observables/Concast.d.ts.map +0 -1
- package/utilities/observables/Observable.d.ts.map +0 -1
- package/utilities/observables/asyncMap.d.ts.map +0 -1
- package/utilities/observables/iteration.d.ts.map +0 -1
- package/utilities/observables/subclassing.d.ts.map +0 -1
- package/utilities/policies/pagination.d.ts.map +0 -1
- package/utilities/promises/decoration.d.ts.map +0 -1
- package/utilities/subscriptions/relay/index.d.ts.map +0 -1
- package/utilities/subscriptions/shared.d.ts.map +0 -1
- package/utilities/subscriptions/urql/index.d.ts.map +0 -1
- package/utilities/types/DeepOmit.d.ts.map +0 -1
- package/utilities/types/DeepPartial.d.ts.map +0 -1
- package/utilities/types/IsStrictlyAny.d.ts.map +0 -1
- package/utilities/types/Primitive.d.ts.map +0 -1
- package/version.d.ts.map +0 -1
package/dev/dev.cjs
CHANGED
|
@@ -5,538 +5,430 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var globals = require('../utilities/globals');
|
|
6
6
|
var tsInvariant = require('ts-invariant');
|
|
7
7
|
|
|
8
|
-
const errorCodes =
|
|
9
|
-
// @apollo/client/includeErrors entry point.
|
|
10
|
-
// This file is not meant to be imported manually.
|
|
8
|
+
const errorCodes =
|
|
11
9
|
{
|
|
12
10
|
1: {
|
|
13
11
|
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
14
12
|
condition: "typeof dataId === \"string\"",
|
|
15
13
|
message: "store.merge expects a string ID"
|
|
16
14
|
},
|
|
17
|
-
|
|
18
15
|
4: {
|
|
19
16
|
file: "@apollo/client/cache/inmemory/key-extractor.js",
|
|
20
17
|
condition: "extracted !== void 0",
|
|
21
18
|
message: "Missing field '%s' while extracting keyFields from %s"
|
|
22
19
|
},
|
|
23
|
-
|
|
24
20
|
5: {
|
|
25
21
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
26
22
|
condition: "!old || old === which",
|
|
27
23
|
message: "Cannot change root %s __typename more than once"
|
|
28
24
|
},
|
|
29
|
-
|
|
30
25
|
8: {
|
|
31
26
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
32
27
|
message: "Cannot automatically merge arrays"
|
|
33
28
|
},
|
|
34
|
-
|
|
35
29
|
9: {
|
|
36
30
|
file: "@apollo/client/cache/inmemory/readFromStore.js",
|
|
37
31
|
message: "No fragment named %s"
|
|
38
32
|
},
|
|
39
|
-
|
|
40
33
|
10: {
|
|
41
34
|
file: "@apollo/client/cache/inmemory/readFromStore.js",
|
|
42
35
|
condition: "!isReference(value)",
|
|
43
36
|
message: "Missing selection set for object of type %s returned for query field %s"
|
|
44
37
|
},
|
|
45
|
-
|
|
46
38
|
11: {
|
|
47
39
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
48
40
|
message: "Could not identify object %s"
|
|
49
41
|
},
|
|
50
|
-
|
|
51
42
|
13: {
|
|
52
43
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
53
44
|
message: "No fragment named %s"
|
|
54
45
|
},
|
|
55
|
-
|
|
56
46
|
15: {
|
|
57
47
|
file: "@apollo/client/core/ApolloClient.js",
|
|
58
|
-
|
|
59
48
|
message: "To initialize Apollo Client, you must specify a 'cache' property " +
|
|
60
49
|
"in the options object. \n" +
|
|
61
50
|
"For more information, please visit: https://go.apollo.dev/c/docs"
|
|
62
51
|
},
|
|
63
|
-
|
|
64
52
|
16: {
|
|
65
53
|
file: "@apollo/client/core/ApolloClient.js",
|
|
66
54
|
condition: "options.fetchPolicy !== \"cache-and-network\"",
|
|
67
|
-
|
|
68
55
|
message: "The cache-and-network fetchPolicy does not work with client.query, because " +
|
|
69
56
|
"client.query can only return a single result. Please use client.watchQuery " +
|
|
70
57
|
"to receive multiple results from the cache and the network, or consider " +
|
|
71
58
|
"using a different fetchPolicy, such as cache-first or network-only."
|
|
72
59
|
},
|
|
73
|
-
|
|
74
60
|
18: {
|
|
75
61
|
file: "@apollo/client/core/LocalState.js",
|
|
76
62
|
condition: "fragment",
|
|
77
63
|
message: "No fragment named %s"
|
|
78
64
|
},
|
|
79
|
-
|
|
80
65
|
19: {
|
|
81
66
|
file: "@apollo/client/core/LocalState.js",
|
|
82
67
|
condition: "fragment",
|
|
83
68
|
message: "No fragment named %s"
|
|
84
69
|
},
|
|
85
|
-
|
|
86
70
|
22: {
|
|
87
71
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
88
72
|
condition: "pollInterval",
|
|
89
73
|
message: "Attempted to start a polling query without a polling interval."
|
|
90
74
|
},
|
|
91
|
-
|
|
92
75
|
25: {
|
|
93
76
|
file: "@apollo/client/core/QueryManager.js",
|
|
94
77
|
message: "QueryManager stopped while query was in flight"
|
|
95
78
|
},
|
|
96
|
-
|
|
97
79
|
26: {
|
|
98
80
|
file: "@apollo/client/core/QueryManager.js",
|
|
99
81
|
condition: "mutation",
|
|
100
82
|
message: "mutation option is required. You must specify your GraphQL document in the mutation option."
|
|
101
83
|
},
|
|
102
|
-
|
|
103
84
|
27: {
|
|
104
85
|
file: "@apollo/client/core/QueryManager.js",
|
|
105
86
|
condition: "fetchPolicy === \"network-only\" || fetchPolicy === \"no-cache\"",
|
|
106
87
|
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."
|
|
107
88
|
},
|
|
108
|
-
|
|
109
89
|
28: {
|
|
110
90
|
file: "@apollo/client/core/QueryManager.js",
|
|
111
91
|
condition: "options.query",
|
|
112
|
-
|
|
113
92
|
message: "query option is required. You must specify your GraphQL document " +
|
|
114
93
|
"in the query option."
|
|
115
94
|
},
|
|
116
|
-
|
|
117
95
|
29: {
|
|
118
96
|
file: "@apollo/client/core/QueryManager.js",
|
|
119
97
|
condition: "options.query.kind === \"Document\"",
|
|
120
98
|
message: 'You must wrap the query string in a "gql" tag.'
|
|
121
99
|
},
|
|
122
|
-
|
|
123
100
|
30: {
|
|
124
101
|
file: "@apollo/client/core/QueryManager.js",
|
|
125
102
|
condition: "!options.returnPartialData",
|
|
126
103
|
message: "returnPartialData option only supported on watchQuery."
|
|
127
104
|
},
|
|
128
|
-
|
|
129
105
|
31: {
|
|
130
106
|
file: "@apollo/client/core/QueryManager.js",
|
|
131
107
|
condition: "!options.pollInterval",
|
|
132
108
|
message: "pollInterval option only supported on watchQuery."
|
|
133
109
|
},
|
|
134
|
-
|
|
135
110
|
32: {
|
|
136
111
|
file: "@apollo/client/core/QueryManager.js",
|
|
137
112
|
message: "Store reset while query was in flight (not completed in link chain)"
|
|
138
113
|
},
|
|
139
|
-
|
|
140
114
|
36: {
|
|
141
115
|
file: "@apollo/client/link/core/ApolloLink.js",
|
|
142
116
|
message: "request is not implemented"
|
|
143
117
|
},
|
|
144
|
-
|
|
145
118
|
37: {
|
|
146
119
|
file: "@apollo/client/link/http/checkFetcher.js",
|
|
147
120
|
message: "\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "
|
|
148
121
|
},
|
|
149
|
-
|
|
150
122
|
39: {
|
|
151
123
|
file: "@apollo/client/link/http/serializeFetchParameter.js",
|
|
152
124
|
message: "Network request failed. %s is not serializable: %s"
|
|
153
125
|
},
|
|
154
|
-
|
|
155
126
|
40: {
|
|
156
127
|
file: "@apollo/client/link/persisted-queries/index.js",
|
|
157
128
|
condition: "options &&\n (typeof options.sha256 === \"function\" ||\n typeof options.generateHash === \"function\")",
|
|
158
|
-
|
|
159
129
|
message: 'Missing/invalid "sha256" or "generateHash" function. Please ' +
|
|
160
130
|
'configure one using the "createPersistedQueryLink(options)" options ' +
|
|
161
131
|
"parameter."
|
|
162
132
|
},
|
|
163
|
-
|
|
164
133
|
41: {
|
|
165
134
|
file: "@apollo/client/link/persisted-queries/index.js",
|
|
166
135
|
condition: "forward",
|
|
167
136
|
message: "PersistedQueryLink cannot be the last link in the chain."
|
|
168
137
|
},
|
|
169
|
-
|
|
170
138
|
43: {
|
|
171
139
|
file: "@apollo/client/link/utils/validateOperation.js",
|
|
172
140
|
message: "illegal argument: %s"
|
|
173
141
|
},
|
|
174
|
-
|
|
175
142
|
44: {
|
|
176
143
|
file: "@apollo/client/react/context/ApolloConsumer.js",
|
|
177
144
|
condition: "context && context.client",
|
|
178
|
-
|
|
179
145
|
message: 'Could not find "client" in the context of ApolloConsumer. ' +
|
|
180
146
|
"Wrap the root component in an <ApolloProvider>."
|
|
181
147
|
},
|
|
182
|
-
|
|
183
148
|
45: {
|
|
184
149
|
file: "@apollo/client/react/context/ApolloContext.js",
|
|
185
150
|
condition: "\"createContext\" in React",
|
|
186
|
-
|
|
187
151
|
message: "Invoking `getApolloContext` in an environment where `React.createContext` is not available.\n" +
|
|
188
152
|
"The Apollo Client functionality you are trying to use is only available in React Client Components.\n" +
|
|
189
153
|
'Please make sure to add "use client" at the top of your file.\n' +
|
|
190
154
|
"For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components"
|
|
191
155
|
},
|
|
192
|
-
|
|
193
156
|
46: {
|
|
194
157
|
file: "@apollo/client/react/context/ApolloProvider.js",
|
|
195
158
|
condition: "context.client",
|
|
196
|
-
|
|
197
159
|
message: "ApolloProvider was not passed a client instance. Make " +
|
|
198
160
|
'sure you pass in your client via the "client" prop.'
|
|
199
161
|
},
|
|
200
|
-
|
|
201
162
|
47: {
|
|
202
163
|
file: "@apollo/client/react/hoc/hoc-utils.js",
|
|
203
164
|
condition: "this.withRef",
|
|
204
|
-
|
|
205
165
|
message: "To access the wrapped instance, you need to specify " +
|
|
206
166
|
"{ withRef: true } in the options"
|
|
207
167
|
},
|
|
208
|
-
|
|
209
168
|
48: {
|
|
210
169
|
file: "@apollo/client/react/hoc/withApollo.js",
|
|
211
170
|
condition: "operationOptions.withRef",
|
|
212
|
-
|
|
213
171
|
message: "To access the wrapped instance, you need to specify " +
|
|
214
172
|
"{ withRef: true } in the options"
|
|
215
173
|
},
|
|
216
|
-
|
|
217
174
|
49: {
|
|
218
175
|
file: "@apollo/client/react/hooks/useApolloClient.js",
|
|
219
176
|
condition: "!!client",
|
|
220
|
-
|
|
221
177
|
message: 'Could not find "client" in the context or passed in as an option. ' +
|
|
222
178
|
"Wrap the root component in an <ApolloProvider>, or pass an ApolloClient " +
|
|
223
179
|
"instance in via options."
|
|
224
180
|
},
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
message: "It appears that `useReadQuery` was used outside of `useBackgroundQuery`. " +
|
|
231
|
-
"`useReadQuery` is only supported for use with `useBackgroundQuery`. " +
|
|
232
|
-
"Please ensure you are passing the `queryRef` returned from `useBackgroundQuery`."
|
|
181
|
+
50: {
|
|
182
|
+
file: "@apollo/client/react/hooks/useLoadableQuery.js",
|
|
183
|
+
condition: "!calledDuringRender()",
|
|
184
|
+
message: "useLoadableQuery: 'loadQuery' should not be called during render. To start a query during render, use the 'useBackgroundQuery' hook."
|
|
233
185
|
},
|
|
234
|
-
|
|
235
186
|
56: {
|
|
236
187
|
file: "@apollo/client/react/hooks/useSuspenseQuery.js",
|
|
237
188
|
condition: "supportedFetchPolicies.includes(fetchPolicy)",
|
|
238
189
|
message: "The fetch policy `%s` is not supported with suspense."
|
|
239
190
|
},
|
|
240
|
-
|
|
241
191
|
59: {
|
|
242
192
|
file: "@apollo/client/react/parser/index.js",
|
|
243
193
|
condition: "!!document && !!document.kind",
|
|
244
|
-
|
|
245
194
|
message: "Argument of %s passed to parser was not a valid GraphQL " +
|
|
246
195
|
"DocumentNode. You may need to use 'graphql-tag' or another method " +
|
|
247
196
|
"to convert your operation into a document"
|
|
248
197
|
},
|
|
249
|
-
|
|
250
198
|
60: {
|
|
251
199
|
file: "@apollo/client/react/parser/index.js",
|
|
252
200
|
condition: "!fragments.length ||\n queries.length ||\n mutations.length ||\n subscriptions.length",
|
|
253
|
-
|
|
254
201
|
message: "Passing only a fragment to 'graphql' is not yet supported. " +
|
|
255
202
|
"You must include a query, subscription or mutation as well"
|
|
256
203
|
},
|
|
257
|
-
|
|
258
204
|
61: {
|
|
259
205
|
file: "@apollo/client/react/parser/index.js",
|
|
260
206
|
condition: "queries.length + mutations.length + subscriptions.length <= 1",
|
|
261
|
-
|
|
262
207
|
message: "react-apollo only supports a query, subscription, or a mutation per HOC. " +
|
|
263
208
|
"%s had %s queries, %s " +
|
|
264
209
|
"subscriptions and %s mutations. " +
|
|
265
210
|
"You can use 'compose' to join multiple operation types to a component"
|
|
266
211
|
},
|
|
267
|
-
|
|
268
212
|
62: {
|
|
269
213
|
file: "@apollo/client/react/parser/index.js",
|
|
270
214
|
condition: "definitions.length === 1",
|
|
271
|
-
|
|
272
215
|
message: "react-apollo only supports one definition per HOC. %s had " +
|
|
273
216
|
"%s definitions. " +
|
|
274
217
|
"You can use 'compose' to join multiple operation types to a component"
|
|
275
218
|
},
|
|
276
|
-
|
|
277
219
|
63: {
|
|
278
220
|
file: "@apollo/client/react/parser/index.js",
|
|
279
221
|
condition: "operation.type === type",
|
|
280
222
|
message: "Running a %s requires a graphql " + "%s, but a %s was used instead."
|
|
281
223
|
},
|
|
282
|
-
|
|
283
224
|
64: {
|
|
284
225
|
file: "@apollo/client/testing/core/mocking/mockLink.js",
|
|
285
226
|
condition: "queryWithoutConnection",
|
|
286
227
|
message: "query is required"
|
|
287
228
|
},
|
|
288
|
-
|
|
289
229
|
65: {
|
|
290
230
|
file: "@apollo/client/testing/core/mocking/mockLink.js",
|
|
291
231
|
condition: "mockedResponse.maxUsageCount > 0",
|
|
292
232
|
message: "Mock response maxUsageCount must be greater than 0, %s given"
|
|
293
233
|
},
|
|
294
|
-
|
|
295
234
|
66: {
|
|
296
235
|
file: "@apollo/client/utilities/graphql/DocumentTransform.js",
|
|
297
236
|
condition: "Array.isArray(cacheKeys)",
|
|
298
237
|
message: "`getCacheKey` must return an array or undefined"
|
|
299
238
|
},
|
|
300
|
-
|
|
301
239
|
67: {
|
|
302
240
|
file: "@apollo/client/utilities/graphql/directives.js",
|
|
303
241
|
condition: "evaledValue !== void 0",
|
|
304
242
|
message: "Invalid variable referenced in @%s directive."
|
|
305
243
|
},
|
|
306
|
-
|
|
307
244
|
68: {
|
|
308
245
|
file: "@apollo/client/utilities/graphql/directives.js",
|
|
309
246
|
condition: "directiveArguments && directiveArguments.length === 1",
|
|
310
247
|
message: "Incorrect number of arguments for the @%s directive."
|
|
311
248
|
},
|
|
312
|
-
|
|
313
249
|
69: {
|
|
314
250
|
file: "@apollo/client/utilities/graphql/directives.js",
|
|
315
251
|
condition: "ifArgument.name && ifArgument.name.value === \"if\"",
|
|
316
252
|
message: "Invalid argument for the @%s directive."
|
|
317
253
|
},
|
|
318
|
-
|
|
319
254
|
70: {
|
|
320
255
|
file: "@apollo/client/utilities/graphql/directives.js",
|
|
321
256
|
condition: "ifValue &&\n (ifValue.kind === \"Variable\" || ifValue.kind === \"BooleanValue\")",
|
|
322
257
|
message: "Argument for the @%s directive must be a variable or a boolean value."
|
|
323
258
|
},
|
|
324
|
-
|
|
325
259
|
71: {
|
|
326
260
|
file: "@apollo/client/utilities/graphql/fragments.js",
|
|
327
|
-
|
|
328
261
|
message: "Found a %s operation%s. " +
|
|
329
262
|
"No operations are allowed when using a fragment as a query. Only fragments are allowed."
|
|
330
263
|
},
|
|
331
|
-
|
|
332
264
|
72: {
|
|
333
265
|
file: "@apollo/client/utilities/graphql/fragments.js",
|
|
334
266
|
condition: "fragments.length === 1",
|
|
335
267
|
message: "Found %s fragments. `fragmentName` must be provided when there is not exactly 1 fragment."
|
|
336
268
|
},
|
|
337
|
-
|
|
338
269
|
73: {
|
|
339
270
|
file: "@apollo/client/utilities/graphql/fragments.js",
|
|
340
271
|
condition: "fragment",
|
|
341
272
|
message: "No fragment named %s"
|
|
342
273
|
},
|
|
343
|
-
|
|
344
274
|
74: {
|
|
345
275
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
346
276
|
condition: "doc && doc.kind === \"Document\"",
|
|
347
277
|
message: "Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \"gql\" tag? http://docs.apollostack.com/apollo-client/core.html#gql"
|
|
348
278
|
},
|
|
349
|
-
|
|
350
279
|
75: {
|
|
351
280
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
352
281
|
message: "Schema type definitions not allowed in queries. Found: \"%s\""
|
|
353
282
|
},
|
|
354
|
-
|
|
355
283
|
76: {
|
|
356
284
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
357
285
|
condition: "operations.length <= 1",
|
|
358
286
|
message: "Ambiguous GraphQL document: contains %s operations"
|
|
359
287
|
},
|
|
360
|
-
|
|
361
288
|
77: {
|
|
362
289
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
363
290
|
condition: "queryDef && queryDef.operation === \"query\"",
|
|
364
291
|
message: "Must contain a query definition."
|
|
365
292
|
},
|
|
366
|
-
|
|
367
293
|
78: {
|
|
368
294
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
369
295
|
condition: "doc.kind === \"Document\"",
|
|
370
296
|
message: "Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a \"gql\" tag? http://docs.apollostack.com/apollo-client/core.html#gql"
|
|
371
297
|
},
|
|
372
|
-
|
|
373
298
|
79: {
|
|
374
299
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
375
300
|
condition: "doc.definitions.length <= 1",
|
|
376
301
|
message: "Fragment must have exactly one definition."
|
|
377
302
|
},
|
|
378
|
-
|
|
379
303
|
80: {
|
|
380
304
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
381
305
|
condition: "fragmentDef.kind === \"FragmentDefinition\"",
|
|
382
306
|
message: "Must be a fragment definition."
|
|
383
307
|
},
|
|
384
|
-
|
|
385
308
|
81: {
|
|
386
309
|
file: "@apollo/client/utilities/graphql/getFromAST.js",
|
|
387
310
|
message: "Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."
|
|
388
311
|
},
|
|
389
|
-
|
|
390
312
|
82: {
|
|
391
313
|
file: "@apollo/client/utilities/graphql/storeUtils.js",
|
|
392
|
-
|
|
393
314
|
message: "The inline argument \"%s\" of kind \"%s\"" +
|
|
394
315
|
"is not supported. Use variables instead of inline arguments to " +
|
|
395
316
|
"overcome this limitation."
|
|
396
317
|
}
|
|
397
318
|
};
|
|
398
|
-
|
|
399
319
|
const devDebug = {
|
|
400
320
|
17: {
|
|
401
321
|
file: "@apollo/client/core/ApolloClient.js",
|
|
402
322
|
message: "In client.refetchQueries, Promise.all promise rejected with error %o"
|
|
403
323
|
},
|
|
404
|
-
|
|
405
324
|
24: {
|
|
406
325
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
407
326
|
message: "Missing cache result fields: %o"
|
|
408
327
|
}
|
|
409
328
|
};
|
|
410
|
-
|
|
411
329
|
const devLog = {};
|
|
412
|
-
|
|
413
330
|
const devWarn = {
|
|
414
331
|
2: {
|
|
415
332
|
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
416
|
-
|
|
417
333
|
message: "cache.modify: You are trying to write a Reference that is not part of the store: %o\n" +
|
|
418
334
|
"Please make sure to set the `mergeIntoStore` parameter to `true` when creating a Reference that is not part of the store yet:\n" +
|
|
419
335
|
"`toReference(object, true)`"
|
|
420
336
|
},
|
|
421
|
-
|
|
422
337
|
3: {
|
|
423
338
|
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
424
|
-
|
|
425
339
|
message: "cache.modify: Writing an array with a mix of both References and Objects will not result in the Objects being normalized correctly.\n" +
|
|
426
340
|
"Please convert the object instance %o to a Reference before writing it to the cache by calling `toReference(object, true)`."
|
|
427
341
|
},
|
|
428
|
-
|
|
429
342
|
6: {
|
|
430
343
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
431
344
|
message: "Inferring subtype %s of supertype %s"
|
|
432
345
|
},
|
|
433
|
-
|
|
434
346
|
7: {
|
|
435
347
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
436
348
|
message: "Undefined 'from' passed to readField with arguments %s"
|
|
437
349
|
},
|
|
438
|
-
|
|
439
350
|
14: {
|
|
440
351
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
441
352
|
message: "Cache data may be lost when replacing the %s field of a %s object.\n\nThis could cause additional (usually avoidable) network requests to fetch data that were otherwise cached.\n\nTo address this problem (which is not a bug in Apollo Client), %sdefine a custom merge function for the %s field, so InMemoryCache can safely merge these objects:\n\n existing: %s\n incoming: %s\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"
|
|
442
353
|
},
|
|
443
|
-
|
|
444
354
|
20: {
|
|
445
355
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
446
356
|
message: "Called refetch(%o) for query %o, which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"
|
|
447
357
|
},
|
|
448
|
-
|
|
449
358
|
33: {
|
|
450
359
|
file: "@apollo/client/core/QueryManager.js",
|
|
451
360
|
message: "Unknown query named \"%s\" requested in refetchQueries options.include array"
|
|
452
361
|
},
|
|
453
|
-
|
|
454
362
|
34: {
|
|
455
363
|
file: "@apollo/client/core/QueryManager.js",
|
|
456
364
|
message: "Unknown query %s requested in refetchQueries options.include array"
|
|
457
365
|
},
|
|
458
|
-
|
|
459
366
|
35: {
|
|
460
367
|
file: "@apollo/client/link/core/ApolloLink.js",
|
|
461
368
|
message: "You are calling concat on a terminating link, which will have no effect %o"
|
|
462
369
|
},
|
|
463
|
-
|
|
464
370
|
38: {
|
|
465
371
|
file: "@apollo/client/link/http/createHttpLink.js",
|
|
466
372
|
message: "Multipart-subscriptions do not support @defer"
|
|
467
373
|
},
|
|
468
|
-
|
|
469
374
|
42: {
|
|
470
375
|
file: "@apollo/client/link/utils/toPromise.js",
|
|
471
376
|
message: "Promise Wrapper does not support multiple results from Observable"
|
|
472
377
|
},
|
|
473
|
-
|
|
474
|
-
50: {
|
|
378
|
+
51: {
|
|
475
379
|
file: "@apollo/client/react/hooks/useQuery.js",
|
|
476
380
|
message: "Calling default no-op implementation of InternalState#forceUpdate"
|
|
477
381
|
},
|
|
478
|
-
|
|
479
382
|
52: {
|
|
480
383
|
file: "@apollo/client/react/hooks/useSubscription.js",
|
|
481
384
|
message: "'useSubscription' supports only the 'onSubscriptionData' or 'onData' option, but not both. Only the 'onData' option will be used."
|
|
482
385
|
},
|
|
483
|
-
|
|
484
386
|
53: {
|
|
485
387
|
file: "@apollo/client/react/hooks/useSubscription.js",
|
|
486
388
|
message: "'onSubscriptionData' is deprecated and will be removed in a future major version. Please use the 'onData' option instead."
|
|
487
389
|
},
|
|
488
|
-
|
|
489
390
|
54: {
|
|
490
391
|
file: "@apollo/client/react/hooks/useSubscription.js",
|
|
491
392
|
message: "'useSubscription' supports only the 'onSubscriptionComplete' or 'onComplete' option, but not both. Only the 'onComplete' option will be used."
|
|
492
393
|
},
|
|
493
|
-
|
|
494
394
|
55: {
|
|
495
395
|
file: "@apollo/client/react/hooks/useSubscription.js",
|
|
496
396
|
message: "'onSubscriptionComplete' is deprecated and will be removed in a future major version. Please use the 'onComplete' option instead."
|
|
497
397
|
},
|
|
498
|
-
|
|
499
398
|
57: {
|
|
500
399
|
file: "@apollo/client/react/hooks/useSuspenseQuery.js",
|
|
501
400
|
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."
|
|
502
401
|
},
|
|
503
|
-
|
|
504
402
|
84: {
|
|
505
403
|
file: "@apollo/client/utilities/graphql/transform.js",
|
|
506
|
-
|
|
507
404
|
message: "Removing an @connection directive even though it does not have a key. " +
|
|
508
405
|
"You may want to use the key parameter to specify a store key."
|
|
509
406
|
}
|
|
510
407
|
};
|
|
511
|
-
|
|
512
408
|
const devError = {
|
|
513
409
|
12: {
|
|
514
410
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
515
411
|
message: "Missing field '%s' while writing result %o"
|
|
516
412
|
},
|
|
517
|
-
|
|
518
413
|
21: {
|
|
519
414
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
520
415
|
message: "Unhandled GraphQL subscription error"
|
|
521
416
|
},
|
|
522
|
-
|
|
523
417
|
23: {
|
|
524
418
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
525
419
|
message: "Unhandled error"
|
|
526
420
|
},
|
|
527
|
-
|
|
528
421
|
58: {
|
|
529
422
|
file: "@apollo/client/react/hooks/useSyncExternalStore.js",
|
|
530
423
|
message: "The result of getSnapshot should be cached to avoid an infinite loop"
|
|
531
424
|
},
|
|
532
|
-
|
|
533
425
|
83: {
|
|
534
426
|
file: "@apollo/client/utilities/graphql/transform.js",
|
|
535
427
|
message: "Could not find operation or fragment"
|
|
536
428
|
}
|
|
537
429
|
};
|
|
538
430
|
|
|
539
|
-
var version = "3.9.0-
|
|
431
|
+
var version = "3.9.0-beta.0";
|
|
540
432
|
|
|
541
433
|
function maybe(thunk) {
|
|
542
434
|
try {
|
|
@@ -548,7 +440,8 @@ function maybe(thunk) {
|
|
|
548
440
|
var global$1 = (maybe(function () { return globalThis; }) ||
|
|
549
441
|
maybe(function () { return window; }) ||
|
|
550
442
|
maybe(function () { return self; }) ||
|
|
551
|
-
maybe(function () { return global; }) ||
|
|
443
|
+
maybe(function () { return global; }) ||
|
|
444
|
+
maybe(function () {
|
|
552
445
|
return maybe.constructor("return this")();
|
|
553
446
|
}));
|
|
554
447
|
|
|
@@ -602,9 +495,7 @@ Object.assign(function invariant(condition, message) {
|
|
|
602
495
|
});
|
|
603
496
|
var ApolloErrorMessageHandler = Symbol.for("ApolloErrorMessageHandler_" + version);
|
|
604
497
|
function stringify(arg) {
|
|
605
|
-
return typeof arg == "string"
|
|
606
|
-
? arg
|
|
607
|
-
: stringifyForDisplay(arg, 2).slice(0, 1000);
|
|
498
|
+
return typeof arg == "string" ? arg : (stringifyForDisplay(arg, 2).slice(0, 1000));
|
|
608
499
|
}
|
|
609
500
|
function getHandledErrorMsg(message, messageArgs) {
|
|
610
501
|
if (messageArgs === void 0) { messageArgs = []; }
|