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