@apollo/client 4.0.0-alpha.6 → 4.0.0-alpha.8
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-moons-arrive.md +5 -0
- package/.changeset/beige-mirrors-talk.md +15 -0
- package/.changeset/dirty-eagles-poke.md +5 -0
- package/.changeset/early-eggs-develop.md +22 -0
- package/.changeset/giant-apes-thank.md +5 -0
- package/.changeset/nice-dots-matter.md +5 -0
- package/.changeset/ninety-bags-bake.md +17 -0
- package/.changeset/perfect-vans-give.md +7 -0
- package/.changeset/pre.json +13 -0
- package/.changeset/purple-bears-flash.md +5 -0
- package/.changeset/shaggy-pugs-add.md +52 -0
- package/.changeset/short-months-complain.md +5 -0
- package/.changeset/swift-rivers-share.md +13 -0
- package/.changeset/wicked-forks-double.md +33 -0
- package/CHANGELOG.md +178 -0
- package/__cjs/cache/core/cache.cjs +1 -1
- package/__cjs/cache/core/cache.cjs.map +1 -1
- package/__cjs/cache/core/cache.d.cts +1 -1
- package/__cjs/cache/core/types/Cache.cjs.map +1 -1
- package/__cjs/cache/core/types/Cache.d.cts +1 -1
- package/__cjs/cache/core/types/DataProxy.d.cts +1 -1
- 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 +7 -4
- package/__cjs/cache/inmemory/entityStore.cjs.map +1 -1
- package/__cjs/cache/inmemory/entityStore.d.cts +1 -0
- package/__cjs/cache/inmemory/fragmentRegistry.cjs.map +1 -1
- package/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
- package/__cjs/cache/inmemory/inMemoryCache.d.cts +1 -1
- package/__cjs/cache/inmemory/key-extractor.cjs +1 -1
- package/__cjs/cache/inmemory/policies.cjs +4 -4
- package/__cjs/cache/inmemory/reactiveVars.cjs.map +1 -1
- package/__cjs/cache/inmemory/reactiveVars.d.cts +1 -1
- package/__cjs/cache/inmemory/readFromStore.cjs +2 -2
- package/__cjs/cache/inmemory/readFromStore.cjs.map +1 -1
- package/__cjs/cache/inmemory/types.d.cts +1 -1
- package/__cjs/cache/inmemory/writeToStore.cjs +4 -4
- package/__cjs/cache/inmemory/writeToStore.cjs.map +1 -1
- package/__cjs/cache/inmemory/writeToStore.d.cts +1 -1
- package/__cjs/config/jest/areCombinedGraphQLErrorsEqual.cjs +2 -3
- package/__cjs/config/jest/areCombinedGraphQLErrorsEqual.cjs.map +1 -1
- package/__cjs/config/jest/areCombinedProtocolErrorsEqual.cjs +2 -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 +21 -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 +12 -1
- package/__cjs/config/jest/setup.cjs.map +1 -1
- package/__cjs/core/ApolloClient.cjs +7 -9
- package/__cjs/core/ApolloClient.cjs.map +1 -1
- package/__cjs/core/ApolloClient.d.cts +0 -2
- package/__cjs/core/LocalState.cjs +2 -2
- package/__cjs/core/ObservableQuery.cjs +105 -38
- package/__cjs/core/ObservableQuery.cjs.map +1 -1
- package/__cjs/core/ObservableQuery.d.cts +18 -1
- package/__cjs/core/QueryInfo.cjs +4 -78
- package/__cjs/core/QueryInfo.cjs.map +1 -1
- package/__cjs/core/QueryInfo.d.cts +0 -10
- package/__cjs/core/QueryManager.cjs +34 -53
- package/__cjs/core/QueryManager.cjs.map +1 -1
- package/__cjs/core/QueryManager.d.cts +3 -3
- package/__cjs/core/index.cjs +41 -21
- package/__cjs/core/index.cjs.map +1 -1
- package/__cjs/core/index.d.cts +13 -11
- package/__cjs/errors/CombinedGraphQLErrors.cjs.map +1 -1
- package/__cjs/errors/CombinedGraphQLErrors.d.cts +1 -1
- package/__cjs/errors/index.cjs +21 -2
- package/__cjs/errors/index.cjs.map +1 -1
- package/__cjs/errors/index.d.cts +2 -0
- package/__cjs/invariantErrorCodes.cjs +95 -119
- 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/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 +1 -1
- package/__cjs/link/core/ApolloLink.cjs +2 -20
- package/__cjs/link/core/ApolloLink.cjs.map +1 -1
- package/__cjs/link/core/ApolloLink.d.cts +1 -3
- 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 +1 -1
- 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/checkFetcher.cjs +1 -1
- package/__cjs/link/http/createHttpLink.cjs +1 -1
- package/__cjs/link/http/parseAndCheckHttpResponse.cjs +1 -1
- package/__cjs/link/http/serializeFetchParameter.cjs +1 -1
- package/__cjs/link/persisted-queries/index.cjs +2 -2
- package/__cjs/link/persisted-queries/index.cjs.map +1 -1
- package/__cjs/link/remove-typename/removeTypenameFromVariables.cjs.map +1 -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/utils/validateOperation.cjs +1 -1
- package/__cjs/masking/maskDefinition.cjs +2 -2
- package/__cjs/masking/maskFragment.cjs +2 -2
- package/__cjs/masking/maskFragment.cjs.map +1 -1
- package/__cjs/masking/maskFragment.d.cts +1 -1
- package/__cjs/masking/maskOperation.cjs +1 -1
- package/__cjs/masking/maskOperation.cjs.map +1 -1
- package/__cjs/masking/maskOperation.d.cts +1 -1
- 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 +1 -1
- 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/wrapHook.cjs.map +1 -1
- package/__cjs/react/hooks/internal/wrapHook.d.cts +3 -3
- package/__cjs/react/hooks/useApolloClient.cjs +3 -3
- package/__cjs/react/hooks/useApolloClient.cjs.map +1 -1
- package/__cjs/react/hooks/useApolloClient.d.cts +1 -1
- package/__cjs/react/hooks/useBackgroundQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useBackgroundQuery.d.cts +2 -2
- package/__cjs/react/hooks/useFragment.cjs.map +1 -1
- package/__cjs/react/hooks/useFragment.d.cts +1 -1
- package/__cjs/react/hooks/useLazyQuery.cjs +4 -4
- package/__cjs/react/hooks/useLazyQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useLazyQuery.d.cts +2 -2
- package/__cjs/react/hooks/useLoadableQuery.cjs +2 -2
- package/__cjs/react/hooks/useLoadableQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useLoadableQuery.d.cts +2 -2
- package/__cjs/react/hooks/useMutation.cjs +0 -2
- package/__cjs/react/hooks/useMutation.cjs.map +1 -1
- package/__cjs/react/hooks/useMutation.d.cts +1 -2
- package/__cjs/react/hooks/useQuery.cjs +4 -6
- package/__cjs/react/hooks/useQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useQuery.d.cts +2 -3
- package/__cjs/react/hooks/useQueryRefHandlers.cjs.map +1 -1
- package/__cjs/react/hooks/useQueryRefHandlers.d.cts +2 -2
- 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 +1 -1
- package/__cjs/react/hooks/useSubscription.cjs +1 -3
- package/__cjs/react/hooks/useSubscription.cjs.map +1 -1
- package/__cjs/react/hooks/useSubscription.d.cts +1 -1
- package/__cjs/react/hooks/useSuspenseFragment.cjs.map +1 -1
- package/__cjs/react/hooks/useSuspenseFragment.d.cts +1 -1
- package/__cjs/react/hooks/useSuspenseQuery.cjs +5 -7
- package/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useSuspenseQuery.d.cts +3 -3
- package/__cjs/react/hooks/useSyncExternalStore.cjs +1 -1
- package/__cjs/react/index.cjs +35 -11
- package/__cjs/react/index.cjs.map +1 -1
- package/__cjs/react/index.d.cts +21 -7
- 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 +1 -1
- package/__cjs/react/internal/cache/QueryReference.cjs +1 -1
- package/__cjs/react/internal/cache/QueryReference.cjs.map +1 -1
- package/__cjs/react/internal/cache/QueryReference.d.cts +1 -1
- package/__cjs/react/internal/cache/SuspenseCache.cjs.map +1 -1
- package/__cjs/react/internal/cache/SuspenseCache.d.cts +1 -1
- package/__cjs/react/internal/cache/getSuspenseCache.cjs.map +1 -1
- package/__cjs/react/internal/cache/getSuspenseCache.d.cts +2 -2
- package/__cjs/react/internal/types.d.cts +1 -1
- package/__cjs/react/query-preloader/createQueryPreloader.cjs.map +1 -1
- package/__cjs/react/query-preloader/createQueryPreloader.d.cts +1 -1
- package/__cjs/react/ssr/prerenderStatic.cjs +4 -4
- package/__cjs/react/ssr/prerenderStatic.cjs.map +1 -1
- package/__cjs/react/ssr/prerenderStatic.d.cts +1 -1
- package/__cjs/react/ssr/useSSRQuery.cjs.map +1 -1
- package/__cjs/react/types/deprecated.d.cts +12 -2
- 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 +1 -1
- 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/incremental.cjs.map +1 -1
- package/__cjs/testing/internal/incremental.d.cts +1 -1
- package/__cjs/testing/internal/index.cjs +12 -8
- package/__cjs/testing/internal/index.cjs.map +1 -1
- package/__cjs/testing/internal/index.d.cts +3 -3
- package/__cjs/testing/internal/renderHelpers.cjs.map +1 -1
- package/__cjs/testing/internal/renderHelpers.d.cts +1 -1
- 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 +6 -8
- package/__cjs/testing/matchers/index.cjs +4 -22
- package/__cjs/testing/matchers/index.cjs.map +1 -1
- 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/{toEmitStrictTyped.cjs → toEmitTypedValue.cjs} +5 -5
- 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/{toEqualStrictTyped.cjs → toStrictEqualTyped.cjs} +5 -5
- package/__cjs/testing/matchers/{toEqualStrictTyped.cjs.map → toStrictEqualTyped.cjs.map} +1 -1
- package/__cjs/testing/matchers/toStrictEqualTyped.d.cts +3 -0
- package/__cjs/testing/matchers/utils/getSerializableProperties.cjs +2 -2
- package/__cjs/testing/matchers/utils/getSerializableProperties.cjs.map +1 -1
- package/__cjs/testing/react/MockedProvider.cjs +11 -7
- package/__cjs/testing/react/MockedProvider.cjs.map +1 -1
- package/__cjs/testing/react/MockedProvider.d.cts +5 -3
- 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/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 +15 -14
- package/__cjs/utilities/internal/getMemoryInternals.cjs +0 -2
- package/__cjs/utilities/internal/getMemoryInternals.cjs.map +1 -1
- package/__cjs/utilities/internal/getMemoryInternals.d.cts +0 -1
- 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.map +1 -1
- package/__cjs/utilities/internal/toQueryResult.d.cts +1 -1
- 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/version.cjs +1 -1
- package/__cjs/version.cjs.map +1 -1
- package/__cjs/version.d.cts +1 -1
- package/cache/core/cache.d.ts +1 -1
- package/cache/core/cache.js +1 -1
- package/cache/core/cache.js.map +1 -1
- package/cache/core/types/Cache.d.ts +1 -1
- package/cache/core/types/Cache.js.map +1 -1
- package/cache/core/types/DataProxy.d.ts +1 -1
- 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 +1 -0
- package/cache/inmemory/entityStore.js +7 -4
- 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/inMemoryCache.d.ts +1 -1
- package/cache/inmemory/inMemoryCache.js.map +1 -1
- package/cache/inmemory/key-extractor.js +1 -1
- package/cache/inmemory/policies.js +4 -4
- package/cache/inmemory/reactiveVars.d.ts +1 -1
- package/cache/inmemory/reactiveVars.js.map +1 -1
- package/cache/inmemory/readFromStore.js +2 -2
- package/cache/inmemory/readFromStore.js.map +1 -1
- package/cache/inmemory/types.d.ts +1 -1
- package/cache/inmemory/writeToStore.d.ts +1 -1
- package/cache/inmemory/writeToStore.js +4 -4
- package/cache/inmemory/writeToStore.js.map +1 -1
- package/config/jest/areCombinedGraphQLErrorsEqual.js +2 -3
- package/config/jest/areCombinedGraphQLErrorsEqual.js.map +1 -1
- package/config/jest/areCombinedProtocolErrorsEqual.js +2 -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 +17 -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 +13 -2
- package/config/jest/setup.js.map +1 -1
- package/core/ApolloClient.d.ts +0 -2
- package/core/ApolloClient.js +7 -9
- package/core/ApolloClient.js.map +1 -1
- package/core/LocalState.js +2 -2
- package/core/ObservableQuery.d.ts +18 -1
- package/core/ObservableQuery.js +104 -36
- package/core/ObservableQuery.js.map +1 -1
- package/core/QueryInfo.d.ts +0 -10
- package/core/QueryInfo.js +4 -78
- package/core/QueryInfo.js.map +1 -1
- package/core/QueryManager.d.ts +3 -3
- package/core/QueryManager.js +36 -55
- package/core/QueryManager.js.map +1 -1
- package/core/index.d.ts +13 -11
- package/core/index.js +9 -6
- package/core/index.js.map +1 -1
- package/errors/CombinedGraphQLErrors.d.ts +1 -1
- package/errors/CombinedGraphQLErrors.js.map +1 -1
- package/errors/index.d.ts +2 -0
- package/errors/index.js +18 -0
- package/errors/index.js.map +1 -1
- package/invariantErrorCodes.js +95 -119
- 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/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 +1 -1
- package/link/context/index.js.map +1 -1
- package/link/core/ApolloLink.d.ts +1 -3
- package/link/core/ApolloLink.js +2 -20
- 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 +1 -1
- 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/checkFetcher.js +1 -1
- package/link/http/createHttpLink.js +1 -1
- package/link/http/parseAndCheckHttpResponse.js +1 -1
- package/link/http/serializeFetchParameter.js +1 -1
- 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/utils/validateOperation.js +1 -1
- package/masking/maskDefinition.js +2 -2
- package/masking/maskFragment.d.ts +1 -1
- package/masking/maskFragment.js +2 -2
- package/masking/maskFragment.js.map +1 -1
- package/masking/maskOperation.d.ts +1 -1
- 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 +1 -1
- 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/wrapHook.d.ts +3 -3
- package/react/hooks/internal/wrapHook.js.map +1 -1
- package/react/hooks/useApolloClient.d.ts +1 -1
- package/react/hooks/useApolloClient.js +2 -2
- package/react/hooks/useApolloClient.js.map +1 -1
- package/react/hooks/useBackgroundQuery.d.ts +2 -2
- package/react/hooks/useBackgroundQuery.js.map +1 -1
- package/react/hooks/useFragment.d.ts +1 -1
- package/react/hooks/useFragment.js.map +1 -1
- package/react/hooks/useLazyQuery.d.ts +2 -2
- package/react/hooks/useLazyQuery.js +3 -3
- package/react/hooks/useLazyQuery.js.map +1 -1
- package/react/hooks/useLoadableQuery.d.ts +2 -2
- package/react/hooks/useLoadableQuery.js +2 -2
- package/react/hooks/useLoadableQuery.js.map +1 -1
- package/react/hooks/useMutation.d.ts +1 -2
- package/react/hooks/useMutation.js +0 -2
- package/react/hooks/useMutation.js.map +1 -1
- package/react/hooks/useQuery.d.ts +2 -3
- package/react/hooks/useQuery.js +2 -4
- package/react/hooks/useQuery.js.map +1 -1
- package/react/hooks/useQueryRefHandlers.d.ts +2 -2
- 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 +1 -1
- package/react/hooks/useReadQuery.js.map +1 -1
- package/react/hooks/useSubscription.d.ts +1 -1
- package/react/hooks/useSubscription.js +1 -3
- package/react/hooks/useSubscription.js.map +1 -1
- package/react/hooks/useSuspenseFragment.d.ts +1 -1
- package/react/hooks/useSuspenseFragment.js.map +1 -1
- package/react/hooks/useSuspenseQuery.d.ts +3 -3
- package/react/hooks/useSuspenseQuery.js +4 -6
- package/react/hooks/useSuspenseQuery.js.map +1 -1
- package/react/hooks/useSyncExternalStore.js +1 -1
- package/react/index.d.ts +21 -7
- package/react/index.js +17 -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 +1 -1
- package/react/internal/cache/FragmentReference.js.map +1 -1
- package/react/internal/cache/QueryReference.d.ts +1 -1
- package/react/internal/cache/QueryReference.js +1 -1
- package/react/internal/cache/QueryReference.js.map +1 -1
- package/react/internal/cache/SuspenseCache.d.ts +1 -1
- package/react/internal/cache/SuspenseCache.js.map +1 -1
- package/react/internal/cache/getSuspenseCache.d.ts +2 -2
- package/react/internal/cache/getSuspenseCache.js.map +1 -1
- package/react/internal/types.d.ts +1 -1
- package/react/query-preloader/createQueryPreloader.d.ts +1 -1
- package/react/query-preloader/createQueryPreloader.js.map +1 -1
- package/react/ssr/prerenderStatic.d.ts +1 -1
- package/react/ssr/prerenderStatic.js +3 -3
- package/react/ssr/prerenderStatic.js.map +1 -1
- package/react/ssr/useSSRQuery.js.map +1 -1
- package/react/types/deprecated.d.ts +12 -2
- 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 +1 -1
- 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 +3 -3
- package/testing/internal/index.js +2 -2
- package/testing/internal/index.js.map +1 -1
- package/testing/internal/renderHelpers.d.ts +1 -1
- package/testing/internal/renderHelpers.js.map +1 -1
- 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/index.js +4 -22
- package/testing/matchers/index.js.map +1 -1
- 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/{toEmitStrictTyped.js → toEmitTypedValue.js} +3 -3
- 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 +3 -0
- package/testing/matchers/{toEqualStrictTyped.js → toStrictEqualTyped.js} +3 -3
- package/testing/matchers/{toEqualStrictTyped.js.map → toStrictEqualTyped.js.map} +1 -1
- package/testing/matchers/utils/getSerializableProperties.js +1 -1
- package/testing/matchers/utils/getSerializableProperties.js.map +1 -1
- package/testing/react/MockedProvider.d.ts +5 -3
- 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 +15 -14
- 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.production.js +1 -0
- package/utilities/internal/index.production.js.map +1 -1
- package/utilities/internal/toQueryResult.d.ts +1 -1
- package/utilities/internal/toQueryResult.js.map +1 -1
- 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/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- 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 -32
- package/__cjs/react/hooks/index.cjs.map +0 -1
- package/__cjs/react/hooks/index.d.cts +0 -16
- 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/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 +0 -40
- 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/toEmitStrictTyped.cjs.map +0 -1
- package/__cjs/testing/matchers/toEmitStrictTyped.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 -39
- package/__cjs/testing/matchers/toEqualQueryResult.cjs.map +0 -1
- package/__cjs/testing/matchers/toEqualQueryResult.d.cts +0 -9
- package/__cjs/testing/matchers/toEqualStrictTyped.d.cts +0 -3
- 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 -16
- 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/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 +0 -36
- 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/toEmitStrictTyped.d.ts +0 -7
- package/testing/matchers/toEmitStrictTyped.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 -35
- package/testing/matchers/toEqualQueryResult.js.map +0 -1
- package/testing/matchers/toEqualStrictTyped.d.ts +0 -3
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,19 +115,31 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
109
115
|
"overcome this limitation."
|
|
110
116
|
},
|
|
111
117
|
|
|
112
|
-
|
|
118
|
+
24: {
|
|
119
|
+
file: "@apollo/client/testing/core/mocking/mockLink.js",
|
|
120
|
+
condition: "max > min",
|
|
121
|
+
message: "realisticDelay: `min` must be less than `max`"
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
25: {
|
|
113
125
|
file: "@apollo/client/testing/core/mocking/mockLink.js",
|
|
114
126
|
condition: "queryWithoutClientOnlyDirectives",
|
|
115
127
|
message: "query is required"
|
|
116
128
|
},
|
|
117
129
|
|
|
118
|
-
|
|
130
|
+
26: {
|
|
119
131
|
file: "@apollo/client/testing/core/mocking/mockLink.js",
|
|
120
|
-
condition: "
|
|
121
|
-
message:
|
|
132
|
+
condition: "serverQuery",
|
|
133
|
+
message: "Cannot mock a client-only query. Mocked responses should contain at least one non-client field."
|
|
122
134
|
},
|
|
123
135
|
|
|
124
|
-
|
|
136
|
+
27: {
|
|
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"
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
28: {
|
|
125
143
|
file: "@apollo/client/react/ssr/prerenderStatic.js",
|
|
126
144
|
condition: "renderCount <= maxRerenders",
|
|
127
145
|
|
|
@@ -131,61 +149,19 @@ and need to increase the \`maxRerender\` option to \`prerenderStatic\`, or that
|
|
|
131
149
|
you have an infinite render loop in your application.`
|
|
132
150
|
},
|
|
133
151
|
|
|
134
|
-
|
|
152
|
+
29: {
|
|
135
153
|
file: "@apollo/client/react/ssr/prerenderStatic.js",
|
|
136
154
|
condition: "!signal?.aborted",
|
|
137
155
|
message: "The operation was aborted before it could be attempted."
|
|
138
156
|
},
|
|
139
157
|
|
|
140
|
-
27: {
|
|
141
|
-
file: "@apollo/client/react/parser/index.js",
|
|
142
|
-
condition: "!!document && !!document.kind",
|
|
143
|
-
|
|
144
|
-
message: `Argument of %s passed to parser was not a valid GraphQL ` +
|
|
145
|
-
`DocumentNode. You may need to use 'graphql-tag' or another method ` +
|
|
146
|
-
`to convert your operation into a document`
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
28: {
|
|
150
|
-
file: "@apollo/client/react/parser/index.js",
|
|
151
|
-
condition: "!fragments.length ||\n queries.length ||\n mutations.length ||\n subscriptions.length",
|
|
152
|
-
|
|
153
|
-
message: `Passing only a fragment to 'graphql' is not yet supported. ` +
|
|
154
|
-
`You must include a query, subscription or mutation as well`
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
29: {
|
|
158
|
-
file: "@apollo/client/react/parser/index.js",
|
|
159
|
-
condition: "queries.length + mutations.length + subscriptions.length <= 1",
|
|
160
|
-
|
|
161
|
-
message: `react-apollo only supports a query, subscription, or a mutation per HOC. ` +
|
|
162
|
-
`%s had %s queries, %s ` +
|
|
163
|
-
`subscriptions and %s mutations. ` +
|
|
164
|
-
`You can use 'compose' to join multiple operation types to a component`
|
|
165
|
-
},
|
|
166
|
-
|
|
167
158
|
30: {
|
|
168
|
-
file: "@apollo/client/react/parser/index.js",
|
|
169
|
-
condition: "definitions.length === 1",
|
|
170
|
-
|
|
171
|
-
message: `react-apollo only supports one definition per HOC. %s had ` +
|
|
172
|
-
`%s definitions. ` +
|
|
173
|
-
`You can use 'compose' to join multiple operation types to a component`
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
31: {
|
|
177
|
-
file: "@apollo/client/react/parser/index.js",
|
|
178
|
-
condition: "operation.type === type",
|
|
179
|
-
message: `Running a %s requires a graphql ` + `%s, but a %s was used instead.`
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
32: {
|
|
183
159
|
file: "@apollo/client/react/internal/cache/QueryReference.js",
|
|
184
160
|
condition: "!queryRef || QUERY_REFERENCE_SYMBOL in queryRef",
|
|
185
161
|
message: "Expected a QueryRef object, but got something else instead."
|
|
186
162
|
},
|
|
187
163
|
|
|
188
|
-
|
|
164
|
+
31: {
|
|
189
165
|
file: "@apollo/client/react/hooks/useApolloClient.js",
|
|
190
166
|
condition: "!!client",
|
|
191
167
|
|
|
@@ -194,43 +170,43 @@ you have an infinite render loop in your application.`
|
|
|
194
170
|
"instance in via options."
|
|
195
171
|
},
|
|
196
172
|
|
|
197
|
-
|
|
173
|
+
32: {
|
|
198
174
|
file: "@apollo/client/react/hooks/useLazyQuery.js",
|
|
199
175
|
condition: "resultRef.current",
|
|
200
176
|
message: "useLazyQuery: '%s' cannot be called before executing the query."
|
|
201
177
|
},
|
|
202
178
|
|
|
203
|
-
|
|
179
|
+
33: {
|
|
204
180
|
file: "@apollo/client/react/hooks/useLazyQuery.js",
|
|
205
181
|
condition: "!calledDuringRender()",
|
|
206
182
|
message: "useLazyQuery: 'execute' should not be called during render. To start a query during render, use the 'useQuery' hook."
|
|
207
183
|
},
|
|
208
184
|
|
|
209
|
-
|
|
185
|
+
34: {
|
|
210
186
|
file: "@apollo/client/react/hooks/useLoadableQuery.js",
|
|
211
187
|
condition: "!calledDuringRender()",
|
|
212
188
|
message: "useLoadableQuery: 'loadQuery' should not be called during render. To start a query during render, use the 'useBackgroundQuery' hook."
|
|
213
189
|
},
|
|
214
190
|
|
|
215
|
-
|
|
191
|
+
35: {
|
|
216
192
|
file: "@apollo/client/react/hooks/useLoadableQuery.js",
|
|
217
193
|
condition: "internalQueryRef",
|
|
218
194
|
message: "The query has not been loaded. Please load the query."
|
|
219
195
|
},
|
|
220
196
|
|
|
221
|
-
|
|
197
|
+
36: {
|
|
222
198
|
file: "@apollo/client/react/hooks/useSubscription.js",
|
|
223
199
|
condition: "!optionsRef.current.skip",
|
|
224
200
|
message: "A subscription that is skipped cannot be restarted."
|
|
225
201
|
},
|
|
226
202
|
|
|
227
|
-
|
|
203
|
+
37: {
|
|
228
204
|
file: "@apollo/client/react/hooks/useSuspenseQuery.js",
|
|
229
205
|
condition: "supportedFetchPolicies.includes(fetchPolicy)",
|
|
230
206
|
message: `The fetch policy \`%s\` is not supported with suspense.`
|
|
231
207
|
},
|
|
232
208
|
|
|
233
|
-
|
|
209
|
+
40: {
|
|
234
210
|
file: "@apollo/client/react/context/ApolloConsumer.js",
|
|
235
211
|
condition: "context && context.client",
|
|
236
212
|
|
|
@@ -238,7 +214,7 @@ you have an infinite render loop in your application.`
|
|
|
238
214
|
"Wrap the root component in an <ApolloProvider>."
|
|
239
215
|
},
|
|
240
216
|
|
|
241
|
-
|
|
217
|
+
41: {
|
|
242
218
|
file: "@apollo/client/react/context/ApolloContext.js",
|
|
243
219
|
condition: "\"createContext\" in React",
|
|
244
220
|
|
|
@@ -249,7 +225,7 @@ you have an infinite render loop in your application.`
|
|
|
249
225
|
"For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components"
|
|
250
226
|
},
|
|
251
227
|
|
|
252
|
-
|
|
228
|
+
42: {
|
|
253
229
|
file: "@apollo/client/react/context/ApolloProvider.js",
|
|
254
230
|
condition: "context.client",
|
|
255
231
|
|
|
@@ -257,36 +233,36 @@ you have an infinite render loop in your application.`
|
|
|
257
233
|
'sure you pass in your client via the "client" prop.'
|
|
258
234
|
},
|
|
259
235
|
|
|
260
|
-
|
|
236
|
+
43: {
|
|
261
237
|
file: "@apollo/client/masking/maskDefinition.js",
|
|
262
238
|
condition: "fragment",
|
|
263
239
|
message: "Could not find fragment with name '%s'."
|
|
264
240
|
},
|
|
265
241
|
|
|
266
|
-
|
|
242
|
+
45: {
|
|
267
243
|
file: "@apollo/client/masking/maskFragment.js",
|
|
268
244
|
condition: "fragments.length === 1",
|
|
269
245
|
message: `Found %s fragments. \`fragmentName\` must be provided when there is not exactly 1 fragment.`
|
|
270
246
|
},
|
|
271
247
|
|
|
272
|
-
|
|
248
|
+
46: {
|
|
273
249
|
file: "@apollo/client/masking/maskFragment.js",
|
|
274
250
|
condition: "!!fragment",
|
|
275
251
|
message: `Could not find fragment with name "%s".`
|
|
276
252
|
},
|
|
277
253
|
|
|
278
|
-
|
|
254
|
+
47: {
|
|
279
255
|
file: "@apollo/client/masking/maskOperation.js",
|
|
280
256
|
condition: "definition",
|
|
281
257
|
message: "Expected a parsed GraphQL document with a query, mutation, or subscription."
|
|
282
258
|
},
|
|
283
259
|
|
|
284
|
-
|
|
260
|
+
49: {
|
|
285
261
|
file: "@apollo/client/link/utils/validateOperation.js",
|
|
286
262
|
message: `illegal argument: %s`
|
|
287
263
|
},
|
|
288
264
|
|
|
289
|
-
|
|
265
|
+
50: {
|
|
290
266
|
file: "@apollo/client/link/persisted-queries/index.js",
|
|
291
267
|
condition: "options &&\n (typeof options.sha256 === \"function\" ||\n typeof options.generateHash === \"function\")",
|
|
292
268
|
|
|
@@ -295,13 +271,13 @@ you have an infinite render loop in your application.`
|
|
|
295
271
|
"parameter."
|
|
296
272
|
},
|
|
297
273
|
|
|
298
|
-
|
|
274
|
+
51: {
|
|
299
275
|
file: "@apollo/client/link/persisted-queries/index.js",
|
|
300
276
|
condition: "forward",
|
|
301
277
|
message: "PersistedQueryLink cannot be the last link in the chain."
|
|
302
278
|
},
|
|
303
279
|
|
|
304
|
-
|
|
280
|
+
52: {
|
|
305
281
|
file: "@apollo/client/link/http/checkFetcher.js",
|
|
306
282
|
condition: "fetcher || typeof fetch !== \"undefined\"",
|
|
307
283
|
|
|
@@ -319,23 +295,23 @@ const client = new ApolloClient({
|
|
|
319
295
|
`
|
|
320
296
|
},
|
|
321
297
|
|
|
322
|
-
|
|
298
|
+
54: {
|
|
323
299
|
file: "@apollo/client/link/http/parseAndCheckHttpResponse.js",
|
|
324
300
|
condition: "response.body && typeof response.body.getReader === \"function\"",
|
|
325
301
|
message: "Unknown type for `response.body`. Please use a `fetch` implementation that is WhatWG-compliant and that uses WhatWG ReadableStreams for `body`."
|
|
326
302
|
},
|
|
327
303
|
|
|
328
|
-
|
|
304
|
+
55: {
|
|
329
305
|
file: "@apollo/client/link/http/serializeFetchParameter.js",
|
|
330
306
|
message: `Network request failed. %s is not serializable: %s`
|
|
331
307
|
},
|
|
332
308
|
|
|
333
|
-
|
|
309
|
+
57: {
|
|
334
310
|
file: "@apollo/client/link/core/ApolloLink.js",
|
|
335
311
|
message: "request is not implemented"
|
|
336
312
|
},
|
|
337
313
|
|
|
338
|
-
|
|
314
|
+
58: {
|
|
339
315
|
file: "@apollo/client/core/ApolloClient.js",
|
|
340
316
|
|
|
341
317
|
message: "To initialize Apollo Client, you must specify a 'cache' property " +
|
|
@@ -343,7 +319,7 @@ const client = new ApolloClient({
|
|
|
343
319
|
"For more information, please visit: https://go.apollo.dev/c/docs"
|
|
344
320
|
},
|
|
345
321
|
|
|
346
|
-
|
|
322
|
+
59: {
|
|
347
323
|
file: "@apollo/client/core/ApolloClient.js",
|
|
348
324
|
condition: "options.fetchPolicy !== \"cache-and-network\"",
|
|
349
325
|
|
|
@@ -353,7 +329,7 @@ const client = new ApolloClient({
|
|
|
353
329
|
"using a different fetchPolicy, such as cache-first or network-only."
|
|
354
330
|
},
|
|
355
331
|
|
|
356
|
-
|
|
332
|
+
60: {
|
|
357
333
|
file: "@apollo/client/core/ApolloClient.js",
|
|
358
334
|
condition: "options.query",
|
|
359
335
|
|
|
@@ -361,128 +337,128 @@ const client = new ApolloClient({
|
|
|
361
337
|
"in the query option."
|
|
362
338
|
},
|
|
363
339
|
|
|
364
|
-
|
|
340
|
+
61: {
|
|
365
341
|
file: "@apollo/client/core/ApolloClient.js",
|
|
366
342
|
condition: "options.query.kind === \"Document\"",
|
|
367
343
|
message: 'You must wrap the query string in a "gql" tag.'
|
|
368
344
|
},
|
|
369
345
|
|
|
370
|
-
|
|
346
|
+
62: {
|
|
371
347
|
file: "@apollo/client/core/ApolloClient.js",
|
|
372
348
|
condition: "!options.returnPartialData",
|
|
373
349
|
message: "returnPartialData option only supported on watchQuery."
|
|
374
350
|
},
|
|
375
351
|
|
|
376
|
-
|
|
352
|
+
63: {
|
|
377
353
|
file: "@apollo/client/core/ApolloClient.js",
|
|
378
354
|
condition: "!options.pollInterval",
|
|
379
355
|
message: "pollInterval option only supported on watchQuery."
|
|
380
356
|
},
|
|
381
357
|
|
|
382
|
-
|
|
358
|
+
65: {
|
|
383
359
|
file: "@apollo/client/core/LocalState.js",
|
|
384
360
|
condition: "fragment",
|
|
385
361
|
message: `No fragment named %s`
|
|
386
362
|
},
|
|
387
363
|
|
|
388
|
-
|
|
364
|
+
66: {
|
|
389
365
|
file: "@apollo/client/core/LocalState.js",
|
|
390
366
|
condition: "fragment",
|
|
391
367
|
message: `No fragment named %s`
|
|
392
368
|
},
|
|
393
369
|
|
|
394
|
-
|
|
370
|
+
68: {
|
|
395
371
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
396
372
|
condition: "updateQuery",
|
|
397
373
|
message: "You must provide an `updateQuery` function when using `fetchMore` with a `no-cache` fetch policy."
|
|
398
374
|
},
|
|
399
375
|
|
|
400
|
-
|
|
376
|
+
70: {
|
|
401
377
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
402
378
|
condition: "pollInterval",
|
|
403
379
|
message: "Attempted to start a polling query without a polling interval."
|
|
404
380
|
},
|
|
405
381
|
|
|
406
|
-
|
|
382
|
+
72: {
|
|
407
383
|
file: "@apollo/client/core/QueryManager.js",
|
|
408
384
|
message: "QueryManager stopped while query was in flight"
|
|
409
385
|
},
|
|
410
386
|
|
|
411
|
-
|
|
387
|
+
73: {
|
|
412
388
|
file: "@apollo/client/core/QueryManager.js",
|
|
413
389
|
condition: "mutation",
|
|
414
390
|
message: "mutation option is required. You must specify your GraphQL document in the mutation option."
|
|
415
391
|
},
|
|
416
392
|
|
|
417
|
-
|
|
393
|
+
74: {
|
|
418
394
|
file: "@apollo/client/core/QueryManager.js",
|
|
419
395
|
condition: "fetchPolicy === \"network-only\" || fetchPolicy === \"no-cache\"",
|
|
420
396
|
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."
|
|
421
397
|
},
|
|
422
398
|
|
|
423
|
-
|
|
399
|
+
75: {
|
|
424
400
|
file: "@apollo/client/core/QueryManager.js",
|
|
425
401
|
message: "Store reset while query was in flight (not completed in link chain)"
|
|
426
402
|
},
|
|
427
403
|
|
|
428
|
-
|
|
404
|
+
79: {
|
|
429
405
|
file: "@apollo/client/core/QueryManager.js",
|
|
430
406
|
condition: "didEmitValue",
|
|
431
407
|
message: "The link chain completed without emitting a value. This is likely unintentional and should be updated to emit a value before completing."
|
|
432
408
|
},
|
|
433
409
|
|
|
434
|
-
|
|
410
|
+
80: {
|
|
435
411
|
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
436
412
|
condition: "typeof dataId === \"string\"",
|
|
437
413
|
message: "store.merge expects a string ID"
|
|
438
414
|
},
|
|
439
415
|
|
|
440
|
-
|
|
416
|
+
83: {
|
|
441
417
|
file: "@apollo/client/cache/inmemory/key-extractor.js",
|
|
442
418
|
condition: "extracted !== void 0",
|
|
443
419
|
message: `Missing field '%s' while extracting keyFields from %s`
|
|
444
420
|
},
|
|
445
421
|
|
|
446
|
-
|
|
422
|
+
84: {
|
|
447
423
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
448
424
|
condition: "!old || old === which",
|
|
449
425
|
message: `Cannot change root %s __typename more than once`
|
|
450
426
|
},
|
|
451
427
|
|
|
452
|
-
|
|
428
|
+
87: {
|
|
453
429
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
454
430
|
message: "Cannot automatically merge arrays"
|
|
455
431
|
},
|
|
456
432
|
|
|
457
|
-
|
|
433
|
+
88: {
|
|
458
434
|
file: "@apollo/client/cache/inmemory/readFromStore.js",
|
|
459
435
|
message: `No fragment named %s`
|
|
460
436
|
},
|
|
461
437
|
|
|
462
|
-
|
|
438
|
+
89: {
|
|
463
439
|
file: "@apollo/client/cache/inmemory/readFromStore.js",
|
|
464
440
|
condition: "!isReference(value)",
|
|
465
441
|
message: `Missing selection set for object of type %s returned for query field %s`
|
|
466
442
|
},
|
|
467
443
|
|
|
468
|
-
|
|
444
|
+
90: {
|
|
469
445
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
470
446
|
message: `Could not identify object %s`
|
|
471
447
|
},
|
|
472
448
|
|
|
473
|
-
|
|
449
|
+
92: {
|
|
474
450
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
475
451
|
message: `No fragment named %s`
|
|
476
452
|
}
|
|
477
453
|
};
|
|
478
454
|
|
|
479
455
|
export const devDebug = {
|
|
480
|
-
|
|
456
|
+
64: {
|
|
481
457
|
file: "@apollo/client/core/ApolloClient.js",
|
|
482
458
|
message: `In client.refetchQueries, Promise.all promise rejected with error %o`
|
|
483
459
|
},
|
|
484
460
|
|
|
485
|
-
|
|
461
|
+
71: {
|
|
486
462
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
487
463
|
message: `Missing cache result fields: %o`
|
|
488
464
|
}
|
|
@@ -506,61 +482,61 @@ export const devWarn = {
|
|
|
506
482
|
message: "@unmask 'mode' argument does not recognize value '%s'."
|
|
507
483
|
},
|
|
508
484
|
|
|
509
|
-
|
|
485
|
+
23: {
|
|
510
486
|
file: "@apollo/client/utilities/graphql/transform.js",
|
|
511
487
|
|
|
512
488
|
message: "Removing an @connection directive even though it does not have a key. " +
|
|
513
489
|
"You may want to use the key parameter to specify a store key."
|
|
514
490
|
},
|
|
515
491
|
|
|
516
|
-
|
|
492
|
+
38: {
|
|
517
493
|
file: "@apollo/client/react/hooks/useSuspenseQuery.js",
|
|
518
494
|
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."
|
|
519
495
|
},
|
|
520
496
|
|
|
521
|
-
|
|
497
|
+
44: {
|
|
522
498
|
file: "@apollo/client/masking/maskDefinition.js",
|
|
523
499
|
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."
|
|
524
500
|
},
|
|
525
501
|
|
|
526
|
-
|
|
502
|
+
48: {
|
|
527
503
|
file: "@apollo/client/masking/utils.js",
|
|
528
504
|
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."
|
|
529
505
|
},
|
|
530
506
|
|
|
531
|
-
|
|
507
|
+
53: {
|
|
532
508
|
file: "@apollo/client/link/http/createHttpLink.js",
|
|
533
509
|
message: "Multipart-subscriptions do not support @defer"
|
|
534
510
|
},
|
|
535
511
|
|
|
536
|
-
|
|
512
|
+
56: {
|
|
537
513
|
file: "@apollo/client/link/core/ApolloLink.js",
|
|
538
514
|
message: `You are calling concat on a terminating link, which will have no effect %o`
|
|
539
515
|
},
|
|
540
516
|
|
|
541
|
-
|
|
517
|
+
67: {
|
|
542
518
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
543
519
|
|
|
544
520
|
message: `Called refetch(%o) for query %o, which does not declare a $variables variable.
|
|
545
521
|
Did you mean to call refetch(variables) instead of refetch({ variables })?`
|
|
546
522
|
},
|
|
547
523
|
|
|
548
|
-
|
|
524
|
+
76: {
|
|
549
525
|
file: "@apollo/client/core/QueryManager.js",
|
|
550
526
|
message: `Unknown query named "%s" requested in refetchQueries options.include array`
|
|
551
527
|
},
|
|
552
528
|
|
|
553
|
-
|
|
529
|
+
77: {
|
|
554
530
|
file: "@apollo/client/core/QueryManager.js",
|
|
555
531
|
message: `Unknown anonymous query requested in refetchQueries options.include array`
|
|
556
532
|
},
|
|
557
533
|
|
|
558
|
-
|
|
534
|
+
78: {
|
|
559
535
|
file: "@apollo/client/core/QueryManager.js",
|
|
560
536
|
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.'
|
|
561
537
|
},
|
|
562
538
|
|
|
563
|
-
|
|
539
|
+
81: {
|
|
564
540
|
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
565
541
|
|
|
566
542
|
message: "cache.modify: You are trying to write a Reference that is not part of the store: %o\n" +
|
|
@@ -568,24 +544,24 @@ Did you mean to call refetch(variables) instead of refetch({ variables })?`
|
|
|
568
544
|
"`toReference(object, true)`"
|
|
569
545
|
},
|
|
570
546
|
|
|
571
|
-
|
|
547
|
+
82: {
|
|
572
548
|
file: "@apollo/client/cache/inmemory/entityStore.js",
|
|
573
549
|
|
|
574
550
|
message: "cache.modify: Writing an array with a mix of both References and Objects will not result in the Objects being normalized correctly.\n" +
|
|
575
551
|
"Please convert the object instance %o to a Reference before writing it to the cache by calling `toReference(object, true)`."
|
|
576
552
|
},
|
|
577
553
|
|
|
578
|
-
|
|
554
|
+
85: {
|
|
579
555
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
580
556
|
message: `Inferring subtype %s of supertype %s`
|
|
581
557
|
},
|
|
582
558
|
|
|
583
|
-
|
|
559
|
+
86: {
|
|
584
560
|
file: "@apollo/client/cache/inmemory/policies.js",
|
|
585
561
|
message: `Undefined 'from' passed to readField with arguments %s`
|
|
586
562
|
},
|
|
587
563
|
|
|
588
|
-
|
|
564
|
+
93: {
|
|
589
565
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
590
566
|
|
|
591
567
|
message: `Cache data may be lost when replacing the %s field of a %s object.
|
|
@@ -604,29 +580,29 @@ For more information about these options, please refer to the documentation:
|
|
|
604
580
|
`
|
|
605
581
|
},
|
|
606
582
|
|
|
607
|
-
|
|
583
|
+
94: {
|
|
608
584
|
file: "@apollo/client/cache/core/cache.js",
|
|
609
585
|
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."
|
|
610
586
|
}
|
|
611
587
|
};
|
|
612
588
|
|
|
613
589
|
export const devError = {
|
|
614
|
-
|
|
590
|
+
22: {
|
|
615
591
|
file: "@apollo/client/utilities/graphql/transform.js",
|
|
616
592
|
message: `Could not find operation or fragment`
|
|
617
593
|
},
|
|
618
594
|
|
|
619
|
-
|
|
595
|
+
39: {
|
|
620
596
|
file: "@apollo/client/react/hooks/useSyncExternalStore.js",
|
|
621
597
|
message: "The result of getSnapshot should be cached to avoid an infinite loop"
|
|
622
598
|
},
|
|
623
599
|
|
|
624
|
-
|
|
600
|
+
69: {
|
|
625
601
|
file: "@apollo/client/core/ObservableQuery.js",
|
|
626
602
|
message: "Unhandled GraphQL subscription error"
|
|
627
603
|
},
|
|
628
604
|
|
|
629
|
-
|
|
605
|
+
91: {
|
|
630
606
|
file: "@apollo/client/cache/inmemory/writeToStore.js",
|
|
631
607
|
message: `Missing field '%s' while writing result %o`
|
|
632
608
|
}
|
|
@@ -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;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BatchHttpLink } from "./batchHttpLink.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/link/batch-http/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BatchHttpLink } from "./batchHttpLink.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/link/batch-http/index.ts"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/link/batch-http/index.ts"],"sourcesContent":["export { BatchHttpLink } from \"./batchHttpLink.js\";\n"],"names":[],"mappings":"AAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAS,CAAT,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,EAA8B,CAA9B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;"}
|
package/link/context/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DefaultContext } from "@apollo/client
|
|
1
|
+
import type { DefaultContext } from "@apollo/client";
|
|
2
2
|
import type { GraphQLRequest } from "@apollo/client/link/core";
|
|
3
3
|
import { ApolloLink } from "@apollo/client/link/core";
|
|
4
4
|
export type ContextSetter = (operation: GraphQLRequest, prevContext: DefaultContext) => Promise<DefaultContext> | DefaultContext;
|