@apollo/client 4.0.0-rc.5 → 4.0.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +40 -40
- package/__cjs/cache/core/cache.cjs +2 -6
- package/__cjs/cache/core/cache.cjs.map +1 -1
- package/__cjs/cache/core/cache.d.cts +65 -64
- package/__cjs/cache/core/types/Cache.cjs +0 -4
- package/__cjs/cache/core/types/Cache.cjs.map +1 -1
- package/__cjs/cache/core/types/Cache.d.cts +200 -15
- package/__cjs/cache/{core/types/DataProxy.cjs → deprecated.cjs} +1 -1
- package/__cjs/cache/deprecated.cjs.map +1 -0
- package/__cjs/cache/deprecated.d.cts +6 -0
- package/__cjs/cache/index.cjs.map +1 -1
- package/__cjs/cache/index.d.cts +2 -2
- package/__cjs/cache/inmemory/entityStore.cjs +25 -28
- package/__cjs/cache/inmemory/entityStore.cjs.map +1 -1
- package/__cjs/cache/inmemory/entityStore.d.cts +17 -16
- package/__cjs/cache/inmemory/inMemoryCache.cjs.map +1 -1
- package/__cjs/cache/inmemory/inMemoryCache.d.cts +4 -4
- package/__cjs/cache/inmemory/key-extractor.cjs +1 -1
- package/__cjs/cache/inmemory/policies.cjs +4 -4
- package/__cjs/cache/inmemory/policies.cjs.map +1 -1
- package/__cjs/cache/inmemory/policies.d.cts +3 -2
- package/__cjs/cache/inmemory/readFromStore.cjs +2 -2
- 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/core/ApolloClient.cjs +92 -110
- package/__cjs/core/ApolloClient.cjs.map +1 -1
- package/__cjs/core/ApolloClient.d.cts +774 -180
- package/__cjs/core/ObservableQuery.cjs +10 -10
- package/__cjs/core/ObservableQuery.cjs.map +1 -1
- package/__cjs/core/ObservableQuery.d.cts +120 -68
- package/__cjs/core/QueryInfo.cjs.map +1 -1
- package/__cjs/core/QueryInfo.d.cts +5 -4
- package/__cjs/core/QueryManager.cjs +15 -13
- package/__cjs/core/QueryManager.cjs.map +1 -1
- package/__cjs/core/QueryManager.d.cts +17 -17
- package/__cjs/core/deprecated.cjs +3 -0
- package/__cjs/core/deprecated.cjs.map +1 -0
- package/__cjs/core/deprecated.d.cts +29 -0
- package/__cjs/core/index.cjs.map +1 -1
- package/__cjs/core/index.d.cts +9 -5
- package/__cjs/core/types.d.cts +29 -129
- package/__cjs/core/watchQueryOptions.d.cts +8 -297
- package/__cjs/dev/setErrorMessageHandler.cjs.map +1 -1
- package/__cjs/dev/setErrorMessageHandler.d.cts +4 -4
- package/__cjs/errors/CombinedGraphQLErrors.cjs +59 -11
- package/__cjs/errors/CombinedGraphQLErrors.cjs.map +1 -1
- package/__cjs/errors/CombinedGraphQLErrors.d.cts +146 -11
- package/__cjs/errors/CombinedProtocolErrors.cjs +48 -1
- package/__cjs/errors/CombinedProtocolErrors.cjs.map +1 -1
- package/__cjs/errors/CombinedProtocolErrors.d.cts +126 -2
- package/__cjs/errors/LinkError.cjs +45 -2
- package/__cjs/errors/LinkError.cjs.map +1 -1
- package/__cjs/errors/LinkError.d.cts +45 -2
- package/__cjs/errors/LocalStateError.cjs +35 -5
- package/__cjs/errors/LocalStateError.cjs.map +1 -1
- package/__cjs/errors/LocalStateError.d.cts +41 -5
- package/__cjs/errors/ServerError.cjs +50 -8
- package/__cjs/errors/ServerError.cjs.map +1 -1
- package/__cjs/errors/ServerError.d.cts +70 -11
- package/__cjs/errors/ServerParseError.cjs +45 -8
- package/__cjs/errors/ServerParseError.cjs.map +1 -1
- package/__cjs/errors/ServerParseError.d.cts +71 -16
- package/__cjs/errors/UnconventionalError.cjs +46 -2
- package/__cjs/errors/UnconventionalError.cjs.map +1 -1
- package/__cjs/errors/UnconventionalError.d.cts +46 -2
- package/__cjs/incremental/handlers/notImplemented.cjs +1 -1
- package/__cjs/invariantErrorCodes.cjs +72 -80
- package/__cjs/link/batch/batchLink.cjs.map +1 -1
- package/__cjs/link/batch-http/batchHttpLink.cjs +2 -2
- package/__cjs/link/batch-http/batchHttpLink.cjs.map +1 -1
- package/__cjs/link/client-awareness/ClientAwarenessLink.cjs.map +1 -1
- package/__cjs/link/client-awareness/ClientAwarenessLink.d.cts +4 -4
- package/__cjs/link/context/index.cjs +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 -2
- package/__cjs/link/core/types.d.cts +2 -2
- package/__cjs/link/error/index.cjs.map +1 -1
- package/__cjs/link/error/index.d.cts +16 -1
- package/__cjs/link/http/HttpLink.cjs.map +1 -1
- package/__cjs/link/http/HttpLink.d.cts +2 -1
- package/__cjs/link/http/checkFetcher.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/persisted-queries/index.d.cts +11 -11
- package/__cjs/link/retry/delayFunction.cjs.map +1 -1
- package/__cjs/link/retry/delayFunction.d.cts +1 -1
- package/__cjs/link/retry/retryFunction.cjs.map +1 -1
- package/__cjs/link/retry/retryFunction.d.cts +1 -1
- package/__cjs/link/retry/retryLink.cjs.map +1 -1
- package/__cjs/link/schema/index.cjs.map +1 -1
- package/__cjs/link/utils/validateOperation.cjs +1 -1
- package/__cjs/link/ws/index.cjs.map +1 -1
- package/__cjs/local-state/LocalState.cjs +55 -9
- package/__cjs/local-state/LocalState.cjs.map +1 -1
- package/__cjs/local-state/LocalState.d.cts +94 -0
- package/__cjs/masking/GraphQLCodegenDataMasking.d.cts +6 -7
- package/__cjs/masking/internal/types.d.cts +70 -70
- 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 +3 -3
- package/__cjs/react/context/ApolloContext.cjs +1 -1
- package/__cjs/react/context/ApolloProvider.cjs +1 -1
- package/__cjs/react/hooks/internal/useDeepMemo.cjs +0 -3
- package/__cjs/react/hooks/internal/useDeepMemo.cjs.map +1 -1
- package/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs.map +1 -1
- package/__cjs/react/hooks/internal/validateSuspenseHookOptions.d.cts +2 -2
- package/__cjs/react/hooks/internal/wrapHook.cjs +1 -0
- package/__cjs/react/hooks/internal/wrapHook.cjs.map +1 -1
- package/__cjs/react/hooks/internal/wrapHook.d.cts +8 -7
- package/__cjs/react/hooks/useApolloClient.cjs +2 -2
- package/__cjs/react/hooks/useApolloClient.cjs.map +1 -1
- package/__cjs/react/hooks/useApolloClient.d.cts +2 -2
- package/__cjs/react/hooks/useBackgroundQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useBackgroundQuery.d.cts +814 -86
- package/__cjs/react/hooks/useFragment.cjs +7 -0
- package/__cjs/react/hooks/useFragment.cjs.map +1 -1
- package/__cjs/react/hooks/useFragment.d.cts +53 -2
- package/__cjs/react/hooks/useLazyQuery.cjs +0 -38
- package/__cjs/react/hooks/useLazyQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useLazyQuery.d.cts +309 -119
- package/__cjs/react/hooks/useLoadableQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useLoadableQuery.d.cts +113 -126
- package/__cjs/react/hooks/useMutation.cjs +6 -7
- package/__cjs/react/hooks/useMutation.cjs.map +1 -1
- package/__cjs/react/hooks/useMutation.d.cts +57 -17
- package/__cjs/react/hooks/useQuery.cjs +1 -35
- package/__cjs/react/hooks/useQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useQuery.d.cts +163 -18
- package/__cjs/react/hooks/useQueryRefHandlers.cjs +2 -1
- package/__cjs/react/hooks/useQueryRefHandlers.cjs.map +1 -1
- package/__cjs/react/hooks/useQueryRefHandlers.d.cts +21 -1
- package/__cjs/react/hooks/useReactiveVar.cjs +2 -1
- package/__cjs/react/hooks/useReactiveVar.cjs.map +1 -1
- package/__cjs/react/hooks/useReactiveVar.d.cts +2 -1
- package/__cjs/react/hooks/useReadQuery.cjs +29 -0
- package/__cjs/react/hooks/useReadQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useReadQuery.d.cts +95 -16
- package/__cjs/react/hooks/useSubscription.cjs +8 -9
- package/__cjs/react/hooks/useSubscription.cjs.map +1 -1
- package/__cjs/react/hooks/useSubscription.d.cts +99 -32
- package/__cjs/react/hooks/useSuspenseFragment.cjs.map +1 -1
- package/__cjs/react/hooks/useSuspenseFragment.d.cts +61 -29
- package/__cjs/react/hooks/useSuspenseQuery.cjs +4 -1
- package/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useSuspenseQuery.d.cts +438 -17
- package/__cjs/react/index.cjs +1 -3
- package/__cjs/react/index.cjs.map +1 -1
- package/__cjs/react/index.d.cts +0 -1
- package/__cjs/react/index.react-server.cjs +1 -3
- 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 +2 -3
- package/__cjs/react/internal/cache/QueryReference.cjs.map +1 -1
- package/__cjs/react/internal/cache/QueryReference.d.cts +11 -11
- package/__cjs/react/internal/cache/SuspenseCache.cjs.map +1 -1
- package/__cjs/react/internal/cache/SuspenseCache.d.cts +2 -2
- package/__cjs/react/internal/cache/getSuspenseCache.cjs.map +1 -1
- package/__cjs/react/internal/cache/getSuspenseCache.d.cts +6 -4
- package/__cjs/react/internal/index.cjs +1 -0
- package/__cjs/react/internal/index.cjs.map +1 -1
- package/__cjs/react/internal/index.d.cts +1 -1
- package/__cjs/react/internal/types.d.cts +3 -3
- package/__cjs/react/query-preloader/createQueryPreloader.cjs +1 -1
- package/__cjs/react/query-preloader/createQueryPreloader.cjs.map +1 -1
- package/__cjs/react/query-preloader/createQueryPreloader.d.cts +31 -31
- package/__cjs/react/ssr/prerenderStatic.cjs +5 -4
- package/__cjs/react/ssr/prerenderStatic.cjs.map +1 -1
- package/__cjs/react/ssr/prerenderStatic.d.cts +11 -9
- package/__cjs/react/ssr/useSSRQuery.cjs.map +1 -1
- package/__cjs/react/types/deprecated.d.cts +1 -1
- package/__cjs/react/types/types.documentation.d.cts +10 -10
- package/__cjs/testing/core/mocking/mockLink.cjs.map +1 -1
- package/__cjs/testing/core/mocking/mockLink.d.cts +3 -2
- package/__cjs/testing/core/types/deprecated.d.cts +3 -2
- package/__cjs/testing/react/MockedProvider.cjs.map +1 -1
- package/__cjs/testing/react/MockedProvider.d.cts +2 -3
- package/__cjs/utilities/HKT.d.cts +8 -7
- package/__cjs/utilities/caching/sizes.cjs +3 -3
- package/__cjs/utilities/caching/sizes.cjs.map +1 -1
- package/__cjs/utilities/caching/sizes.d.cts +4 -6
- package/__cjs/utilities/graphql/DocumentTransform.cjs +2 -2
- package/__cjs/utilities/graphql/DocumentTransform.cjs.map +1 -1
- package/__cjs/utilities/index.cjs +2 -3
- package/__cjs/utilities/index.cjs.map +1 -1
- package/__cjs/utilities/index.d.cts +1 -2
- package/__cjs/utilities/{shared → internal}/canonicalStringify.cjs +5 -7
- package/__cjs/utilities/internal/canonicalStringify.cjs.map +1 -0
- package/__cjs/utilities/{shared → internal}/canonicalStringify.d.cts +1 -1
- package/__cjs/utilities/internal/checkDocument.cjs +2 -2
- package/__cjs/utilities/internal/checkDocument.cjs.map +1 -1
- package/__cjs/utilities/internal/createFragmentMap.cjs.map +1 -1
- package/__cjs/{core → utilities/internal}/equalByQuery.cjs +13 -7
- package/__cjs/utilities/internal/equalByQuery.cjs.map +1 -0
- package/__cjs/utilities/internal/equalByQuery.d.cts +5 -0
- package/__cjs/utilities/internal/getFragmentQueryDocument.cjs +13 -3
- package/__cjs/utilities/internal/getFragmentQueryDocument.cjs.map +1 -1
- package/__cjs/utilities/internal/getFragmentQueryDocument.d.cts +13 -3
- package/__cjs/utilities/internal/getMemoryInternals.cjs.map +1 -1
- package/__cjs/utilities/internal/getStoreKeyName.cjs +1 -2
- package/__cjs/utilities/internal/getStoreKeyName.cjs.map +1 -1
- package/__cjs/utilities/internal/index.cjs +6 -2
- package/__cjs/utilities/internal/index.cjs.map +1 -1
- package/__cjs/utilities/internal/index.d.cts +2 -0
- package/__cjs/utilities/internal/mergeOptions.cjs.map +1 -1
- package/__cjs/utilities/internal/mergeOptions.d.cts +2 -2
- package/__cjs/utilities/internal/toQueryResult.cjs.map +1 -1
- package/__cjs/utilities/internal/toQueryResult.d.cts +2 -2
- package/__cjs/utilities/internal/types/DocumentationTypes.d.cts +16 -2
- package/__cjs/utilities/internal/types/NoInfer.d.cts +31 -25
- package/__cjs/utilities/subscriptions/relay/index.cjs +2 -0
- package/__cjs/utilities/subscriptions/relay/index.cjs.map +1 -1
- package/__cjs/version.cjs +1 -1
- package/cache/core/cache.d.ts +65 -64
- package/cache/core/cache.js +3 -7
- package/cache/core/cache.js.map +1 -1
- package/cache/core/types/Cache.d.ts +200 -15
- package/cache/core/types/Cache.js +1 -3
- package/cache/core/types/Cache.js.map +1 -1
- package/cache/deprecated.d.ts +6 -0
- package/cache/deprecated.js +2 -0
- package/cache/deprecated.js.map +1 -0
- package/cache/index.d.ts +2 -2
- package/cache/index.js.map +1 -1
- package/cache/inmemory/entityStore.d.ts +17 -16
- package/cache/inmemory/entityStore.js +25 -28
- package/cache/inmemory/entityStore.js.map +1 -1
- package/cache/inmemory/inMemoryCache.d.ts +4 -4
- package/cache/inmemory/inMemoryCache.js.map +1 -1
- package/cache/inmemory/key-extractor.js +1 -1
- package/cache/inmemory/policies.d.ts +3 -2
- package/cache/inmemory/policies.js +4 -4
- package/cache/inmemory/policies.js.map +1 -1
- package/cache/inmemory/readFromStore.js +2 -2
- package/cache/inmemory/writeToStore.d.ts +1 -1
- package/cache/inmemory/writeToStore.js +4 -4
- package/cache/inmemory/writeToStore.js.map +1 -1
- package/core/ApolloClient.d.ts +774 -180
- package/core/ApolloClient.js +92 -110
- package/core/ApolloClient.js.map +1 -1
- package/core/ObservableQuery.d.ts +120 -68
- package/core/ObservableQuery.js +10 -10
- package/core/ObservableQuery.js.map +1 -1
- package/core/QueryInfo.d.ts +5 -4
- package/core/QueryInfo.js.map +1 -1
- package/core/QueryManager.d.ts +17 -17
- package/core/QueryManager.js +15 -13
- package/core/QueryManager.js.map +1 -1
- package/core/deprecated.d.ts +29 -0
- package/core/deprecated.js +2 -0
- package/core/deprecated.js.map +1 -0
- package/core/index.d.ts +9 -5
- package/core/index.js.map +1 -1
- package/core/types.d.ts +29 -129
- package/core/types.js.map +1 -1
- package/core/watchQueryOptions.d.ts +9 -298
- package/core/watchQueryOptions.js.map +1 -1
- package/dev/setErrorMessageHandler.d.ts +4 -4
- package/dev/setErrorMessageHandler.js.map +1 -1
- package/errors/CombinedGraphQLErrors.d.ts +147 -12
- package/errors/CombinedGraphQLErrors.js +60 -12
- package/errors/CombinedGraphQLErrors.js.map +1 -1
- package/errors/CombinedProtocolErrors.d.ts +127 -3
- package/errors/CombinedProtocolErrors.js +49 -2
- package/errors/CombinedProtocolErrors.js.map +1 -1
- package/errors/LinkError.d.ts +45 -2
- package/errors/LinkError.js +45 -2
- package/errors/LinkError.js.map +1 -1
- package/errors/LocalStateError.d.ts +42 -6
- package/errors/LocalStateError.js +36 -6
- package/errors/LocalStateError.js.map +1 -1
- package/errors/ServerError.d.ts +71 -12
- package/errors/ServerError.js +51 -9
- package/errors/ServerError.js.map +1 -1
- package/errors/ServerParseError.d.ts +72 -17
- package/errors/ServerParseError.js +46 -9
- package/errors/ServerParseError.js.map +1 -1
- package/errors/UnconventionalError.d.ts +46 -2
- package/errors/UnconventionalError.js +46 -2
- package/errors/UnconventionalError.js.map +1 -1
- package/incremental/handlers/notImplemented.js +1 -1
- package/invariantErrorCodes.js +72 -80
- package/link/batch/batchLink.js.map +1 -1
- package/link/batch-http/batchHttpLink.js +1 -1
- package/link/batch-http/batchHttpLink.js.map +1 -1
- package/link/client-awareness/ClientAwarenessLink.d.ts +4 -4
- package/link/client-awareness/ClientAwarenessLink.js.map +1 -1
- package/link/context/index.d.ts +1 -1
- package/link/context/index.js +1 -1
- package/link/context/index.js.map +1 -1
- package/link/core/ApolloLink.js +2 -2
- package/link/core/types.d.ts +2 -2
- package/link/core/types.js.map +1 -1
- package/link/error/index.d.ts +16 -1
- package/link/error/index.js.map +1 -1
- package/link/http/HttpLink.d.ts +2 -1
- package/link/http/HttpLink.js.map +1 -1
- package/link/http/checkFetcher.js +1 -1
- package/link/http/parseAndCheckHttpResponse.js +1 -1
- package/link/http/serializeFetchParameter.js +1 -1
- package/link/persisted-queries/index.d.ts +11 -11
- package/link/persisted-queries/index.js +2 -2
- package/link/persisted-queries/index.js.map +1 -1
- package/link/retry/delayFunction.d.ts +1 -1
- package/link/retry/delayFunction.js.map +1 -1
- package/link/retry/retryFunction.d.ts +1 -1
- package/link/retry/retryFunction.js.map +1 -1
- package/link/retry/retryLink.js.map +1 -1
- package/link/schema/index.js.map +1 -1
- package/link/utils/validateOperation.js +1 -1
- package/link/ws/index.js.map +1 -1
- package/local-state/LocalState.d.ts +94 -0
- package/local-state/LocalState.js +55 -9
- package/local-state/LocalState.js.map +1 -1
- package/masking/GraphQLCodegenDataMasking.d.ts +6 -7
- package/masking/GraphQLCodegenDataMasking.js.map +1 -1
- package/masking/internal/types.d.ts +70 -70
- package/masking/internal/types.js.map +1 -1
- package/masking/maskDefinition.js +2 -2
- package/masking/maskFragment.js +2 -2
- package/masking/maskOperation.js +1 -1
- package/masking/types.js.map +1 -1
- package/masking/utils.js +3 -3
- package/package.json +1 -1
- package/react/context/ApolloContext.js +1 -1
- package/react/context/ApolloProvider.js +1 -1
- package/react/hooks/internal/useDeepMemo.js +0 -3
- package/react/hooks/internal/useDeepMemo.js.map +1 -1
- package/react/hooks/internal/validateSuspenseHookOptions.d.ts +2 -2
- package/react/hooks/internal/validateSuspenseHookOptions.js.map +1 -1
- package/react/hooks/internal/wrapHook.d.ts +8 -7
- package/react/hooks/internal/wrapHook.js +1 -0
- package/react/hooks/internal/wrapHook.js.map +1 -1
- package/react/hooks/useApolloClient.d.ts +2 -2
- package/react/hooks/useApolloClient.js +2 -2
- package/react/hooks/useApolloClient.js.map +1 -1
- package/react/hooks/useBackgroundQuery.d.ts +814 -86
- package/react/hooks/useBackgroundQuery.js.map +1 -1
- package/react/hooks/useFragment.d.ts +54 -3
- package/react/hooks/useFragment.js +7 -0
- package/react/hooks/useFragment.js.map +1 -1
- package/react/hooks/useLazyQuery.d.ts +309 -119
- package/react/hooks/useLazyQuery.js +0 -38
- package/react/hooks/useLazyQuery.js.map +1 -1
- package/react/hooks/useLoadableQuery.d.ts +113 -126
- package/react/hooks/useLoadableQuery.js.map +1 -1
- package/react/hooks/useMutation.d.ts +57 -17
- package/react/hooks/useMutation.js +6 -7
- package/react/hooks/useMutation.js.map +1 -1
- package/react/hooks/useQuery.d.ts +163 -18
- package/react/hooks/useQuery.js +1 -35
- package/react/hooks/useQuery.js.map +1 -1
- package/react/hooks/useQueryRefHandlers.d.ts +21 -1
- package/react/hooks/useQueryRefHandlers.js +2 -1
- package/react/hooks/useQueryRefHandlers.js.map +1 -1
- package/react/hooks/useReactiveVar.d.ts +2 -1
- package/react/hooks/useReactiveVar.js +2 -1
- package/react/hooks/useReactiveVar.js.map +1 -1
- package/react/hooks/useReadQuery.d.ts +96 -17
- package/react/hooks/useReadQuery.js +29 -0
- package/react/hooks/useReadQuery.js.map +1 -1
- package/react/hooks/useSubscription.d.ts +99 -32
- package/react/hooks/useSubscription.js +8 -9
- package/react/hooks/useSubscription.js.map +1 -1
- package/react/hooks/useSuspenseFragment.d.ts +62 -30
- package/react/hooks/useSuspenseFragment.js.map +1 -1
- package/react/hooks/useSuspenseQuery.d.ts +438 -17
- package/react/hooks/useSuspenseQuery.js +4 -1
- package/react/hooks/useSuspenseQuery.js.map +1 -1
- package/react/hooks-compiled/internal/useDeepMemo.js +0 -3
- package/react/hooks-compiled/internal/useDeepMemo.js.map +1 -1
- package/react/hooks-compiled/internal/validateSuspenseHookOptions.d.ts +2 -2
- package/react/hooks-compiled/internal/validateSuspenseHookOptions.js.map +1 -1
- package/react/hooks-compiled/internal/wrapHook.d.ts +8 -7
- package/react/hooks-compiled/internal/wrapHook.js +1 -0
- package/react/hooks-compiled/internal/wrapHook.js.map +1 -1
- package/react/hooks-compiled/useApolloClient.d.ts +2 -2
- package/react/hooks-compiled/useApolloClient.js +2 -2
- package/react/hooks-compiled/useApolloClient.js.map +1 -1
- package/react/hooks-compiled/useBackgroundQuery.d.ts +814 -86
- package/react/hooks-compiled/useBackgroundQuery.js.map +1 -1
- package/react/hooks-compiled/useFragment.d.ts +54 -3
- package/react/hooks-compiled/useFragment.js +7 -0
- package/react/hooks-compiled/useFragment.js.map +1 -1
- package/react/hooks-compiled/useLazyQuery.d.ts +309 -119
- package/react/hooks-compiled/useLazyQuery.js +0 -38
- package/react/hooks-compiled/useLazyQuery.js.map +1 -1
- package/react/hooks-compiled/useLoadableQuery.d.ts +113 -126
- package/react/hooks-compiled/useLoadableQuery.js.map +1 -1
- package/react/hooks-compiled/useMutation.d.ts +57 -17
- package/react/hooks-compiled/useMutation.js +6 -7
- package/react/hooks-compiled/useMutation.js.map +1 -1
- package/react/hooks-compiled/useQuery.d.ts +163 -18
- package/react/hooks-compiled/useQuery.js +1 -35
- package/react/hooks-compiled/useQuery.js.map +1 -1
- package/react/hooks-compiled/useQueryRefHandlers.d.ts +21 -1
- package/react/hooks-compiled/useQueryRefHandlers.js +2 -1
- package/react/hooks-compiled/useQueryRefHandlers.js.map +1 -1
- package/react/hooks-compiled/useReactiveVar.d.ts +2 -1
- package/react/hooks-compiled/useReactiveVar.js +2 -1
- package/react/hooks-compiled/useReactiveVar.js.map +1 -1
- package/react/hooks-compiled/useReadQuery.d.ts +96 -17
- package/react/hooks-compiled/useReadQuery.js +29 -0
- package/react/hooks-compiled/useReadQuery.js.map +1 -1
- package/react/hooks-compiled/useSubscription.d.ts +99 -32
- package/react/hooks-compiled/useSubscription.js +8 -9
- package/react/hooks-compiled/useSubscription.js.map +1 -1
- package/react/hooks-compiled/useSuspenseFragment.d.ts +62 -30
- package/react/hooks-compiled/useSuspenseFragment.js.map +1 -1
- package/react/hooks-compiled/useSuspenseQuery.d.ts +438 -17
- package/react/hooks-compiled/useSuspenseQuery.js.map +1 -1
- package/react/index.compiled.d.ts +0 -1
- package/react/index.compiled.js +0 -1
- package/react/index.compiled.js.map +1 -1
- package/react/index.d.ts +0 -1
- package/react/index.js +0 -1
- package/react/index.js.map +1 -1
- package/react/index.react-server.d.ts +0 -1
- package/react/index.react-server.js +0 -2
- package/react/index.react-server.js.map +1 -1
- package/react/internal/cache/FragmentReference.d.ts +2 -3
- package/react/internal/cache/FragmentReference.js.map +1 -1
- package/react/internal/cache/QueryReference.d.ts +11 -11
- package/react/internal/cache/QueryReference.js.map +1 -1
- package/react/internal/cache/SuspenseCache.d.ts +2 -2
- package/react/internal/cache/SuspenseCache.js.map +1 -1
- package/react/internal/cache/getSuspenseCache.d.ts +6 -4
- package/react/internal/cache/getSuspenseCache.js.map +1 -1
- package/react/internal/index.d.ts +1 -1
- package/react/internal/index.js +1 -0
- package/react/internal/index.js.map +1 -1
- package/react/internal/types.d.ts +3 -3
- package/react/internal/types.js.map +1 -1
- package/react/query-preloader/createQueryPreloader.d.ts +31 -31
- package/react/query-preloader/createQueryPreloader.js +1 -1
- package/react/query-preloader/createQueryPreloader.js.map +1 -1
- package/react/ssr/prerenderStatic.d.ts +11 -9
- package/react/ssr/prerenderStatic.js +5 -4
- package/react/ssr/prerenderStatic.js.map +1 -1
- package/react/ssr/useSSRQuery.js.map +1 -1
- package/react/types/deprecated.d.ts +1 -1
- package/react/types/deprecated.js.map +1 -1
- package/react/types/types.documentation.d.ts +10 -10
- package/react/types/types.documentation.js.map +1 -1
- package/testing/core/mocking/mockLink.d.ts +3 -2
- package/testing/core/mocking/mockLink.js.map +1 -1
- package/testing/core/types/deprecated.d.ts +3 -2
- package/testing/core/types/deprecated.js.map +1 -1
- package/testing/react/MockedProvider.d.ts +2 -3
- package/testing/react/MockedProvider.js.map +1 -1
- package/utilities/HKT.d.ts +8 -7
- package/utilities/HKT.js.map +1 -1
- package/utilities/caching/sizes.d.ts +4 -6
- package/utilities/caching/sizes.js +3 -3
- package/utilities/caching/sizes.js.map +1 -1
- package/utilities/graphql/DocumentTransform.js +1 -1
- package/utilities/graphql/DocumentTransform.js.map +1 -1
- package/utilities/index.d.ts +1 -2
- package/utilities/index.js +1 -2
- package/utilities/index.js.map +1 -1
- package/utilities/{shared → internal}/canonicalStringify.d.ts +1 -1
- package/utilities/{shared → internal}/canonicalStringify.js +4 -6
- package/utilities/internal/canonicalStringify.js.map +1 -0
- package/utilities/internal/checkDocument.js +1 -1
- package/utilities/internal/checkDocument.js.map +1 -1
- package/utilities/internal/createFragmentMap.js.map +1 -1
- package/utilities/internal/equalByQuery.d.ts +5 -0
- package/{core → utilities/internal}/equalByQuery.js +7 -1
- package/utilities/internal/equalByQuery.js.map +1 -0
- package/utilities/internal/getFragmentQueryDocument.d.ts +13 -3
- package/utilities/internal/getFragmentQueryDocument.js +13 -3
- package/utilities/internal/getFragmentQueryDocument.js.map +1 -1
- package/utilities/internal/getMemoryInternals.js.map +1 -1
- package/utilities/internal/getStoreKeyName.js +1 -2
- package/utilities/internal/getStoreKeyName.js.map +1 -1
- package/utilities/internal/index.d.ts +2 -0
- package/utilities/internal/index.js +2 -0
- package/utilities/internal/index.js.map +1 -1
- package/utilities/internal/mergeOptions.d.ts +2 -2
- package/utilities/internal/mergeOptions.js.map +1 -1
- package/utilities/internal/toQueryResult.d.ts +2 -2
- package/utilities/internal/toQueryResult.js.map +1 -1
- package/utilities/internal/types/DocumentationTypes.d.ts +16 -2
- package/utilities/internal/types/DocumentationTypes.js.map +1 -1
- package/utilities/internal/types/NoInfer.d.ts +31 -25
- package/utilities/internal/types/NoInfer.js.map +1 -1
- package/utilities/subscriptions/relay/index.js +2 -0
- package/utilities/subscriptions/relay/index.js.map +1 -1
- package/version.js +1 -1
- package/__cjs/cache/core/types/DataProxy.cjs.map +0 -1
- package/__cjs/cache/core/types/DataProxy.d.cts +0 -140
- package/__cjs/core/equalByQuery.cjs.map +0 -1
- package/__cjs/core/equalByQuery.d.cts +0 -4
- package/__cjs/react/context/ApolloConsumer.cjs +0 -16
- package/__cjs/react/context/ApolloConsumer.cjs.map +0 -1
- package/__cjs/react/context/ApolloConsumer.d.cts +0 -10
- package/__cjs/utilities/shared/canonicalStringify.cjs.map +0 -1
- package/cache/core/types/DataProxy.d.ts +0 -140
- package/cache/core/types/DataProxy.js +0 -2
- package/cache/core/types/DataProxy.js.map +0 -1
- package/core/equalByQuery.d.ts +0 -4
- package/core/equalByQuery.js.map +0 -1
- package/react/context/ApolloConsumer.d.ts +0 -10
- package/react/context/ApolloConsumer.js +0 -11
- package/react/context/ApolloConsumer.js.map +0 -1
- package/utilities/shared/canonicalStringify.js.map +0 -1
|
@@ -212,14 +212,6 @@ you have an infinite render loop in your application.`
|
|
|
212
212
|
},
|
|
213
213
|
|
|
214
214
|
37: {
|
|
215
|
-
file: "@apollo/client/__cjs/react/context/ApolloConsumer.cjs",
|
|
216
|
-
condition: "context && context.client",
|
|
217
|
-
|
|
218
|
-
message: 'Could not find "client" in the context of ApolloConsumer. ' +
|
|
219
|
-
"Wrap the root component in an <ApolloProvider>."
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
38: {
|
|
223
215
|
file: "@apollo/client/__cjs/react/context/ApolloContext.cjs",
|
|
224
216
|
condition: "\"createContext\" in React",
|
|
225
217
|
|
|
@@ -230,7 +222,7 @@ you have an infinite render loop in your application.`
|
|
|
230
222
|
"For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components"
|
|
231
223
|
},
|
|
232
224
|
|
|
233
|
-
|
|
225
|
+
38: {
|
|
234
226
|
file: "@apollo/client/__cjs/react/context/ApolloProvider.cjs",
|
|
235
227
|
condition: "context.client",
|
|
236
228
|
|
|
@@ -238,71 +230,71 @@ you have an infinite render loop in your application.`
|
|
|
238
230
|
'sure you pass in your client via the "client" prop.'
|
|
239
231
|
},
|
|
240
232
|
|
|
241
|
-
|
|
233
|
+
39: {
|
|
242
234
|
file: "@apollo/client/__cjs/masking/maskDefinition.cjs",
|
|
243
235
|
condition: "fragment",
|
|
244
236
|
message: "Could not find fragment with name '%s'."
|
|
245
237
|
},
|
|
246
238
|
|
|
247
|
-
|
|
239
|
+
41: {
|
|
248
240
|
file: "@apollo/client/__cjs/masking/maskFragment.cjs",
|
|
249
241
|
condition: "fragments.length === 1",
|
|
250
242
|
message: `Found %s fragments. \`fragmentName\` must be provided when there is not exactly 1 fragment.`
|
|
251
243
|
},
|
|
252
244
|
|
|
253
|
-
|
|
245
|
+
42: {
|
|
254
246
|
file: "@apollo/client/__cjs/masking/maskFragment.cjs",
|
|
255
247
|
condition: "!!fragment",
|
|
256
248
|
message: `Could not find fragment with name "%s".`
|
|
257
249
|
},
|
|
258
250
|
|
|
259
|
-
|
|
251
|
+
43: {
|
|
260
252
|
file: "@apollo/client/__cjs/masking/maskOperation.cjs",
|
|
261
253
|
condition: "definition",
|
|
262
254
|
message: "Expected a parsed GraphQL document with a query, mutation, or subscription."
|
|
263
255
|
},
|
|
264
256
|
|
|
265
|
-
|
|
257
|
+
47: {
|
|
266
258
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
267
259
|
condition: "(0, internal_1.hasDirectives)([\"client\"], document)",
|
|
268
260
|
message: "Expected document to contain `@client` fields."
|
|
269
261
|
},
|
|
270
262
|
|
|
271
|
-
|
|
263
|
+
48: {
|
|
272
264
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
273
265
|
condition: "(0, internal_1.hasDirectives)([\"client\"], document)",
|
|
274
266
|
message: "Expected document to contain `@client` fields."
|
|
275
267
|
},
|
|
276
268
|
|
|
277
|
-
|
|
269
|
+
49: {
|
|
278
270
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
279
271
|
condition: "fragment",
|
|
280
272
|
message: "No fragment named %s"
|
|
281
273
|
},
|
|
282
274
|
|
|
283
|
-
|
|
275
|
+
53: {
|
|
284
276
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
285
277
|
message: "Could not resolve __typename on object %o returned from resolver '%s'. '__typename' needs to be returned to properly resolve child fields."
|
|
286
278
|
},
|
|
287
279
|
|
|
288
|
-
|
|
280
|
+
54: {
|
|
289
281
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
290
282
|
condition: "fragment",
|
|
291
283
|
message: `No fragment named %s`
|
|
292
284
|
},
|
|
293
285
|
|
|
294
|
-
|
|
286
|
+
55: {
|
|
295
287
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
296
288
|
condition: "cache.fragmentMatches",
|
|
297
289
|
message: "The configured cache does not support fragment matching which will lead to incorrect results when executing local resolvers. Please use a cache that implements `fragmetMatches`."
|
|
298
290
|
},
|
|
299
291
|
|
|
300
|
-
|
|
292
|
+
56: {
|
|
301
293
|
file: "@apollo/client/__cjs/link/utils/validateOperation.cjs",
|
|
302
294
|
message: `illegal argument: %s`
|
|
303
295
|
},
|
|
304
296
|
|
|
305
|
-
|
|
297
|
+
57: {
|
|
306
298
|
file: "@apollo/client/__cjs/link/persisted-queries/index.cjs",
|
|
307
299
|
condition: "options &&\n (typeof options.sha256 === \"function\" ||\n typeof options.generateHash === \"function\")",
|
|
308
300
|
|
|
@@ -311,13 +303,13 @@ you have an infinite render loop in your application.`
|
|
|
311
303
|
"parameter."
|
|
312
304
|
},
|
|
313
305
|
|
|
314
|
-
|
|
306
|
+
58: {
|
|
315
307
|
file: "@apollo/client/__cjs/link/persisted-queries/index.cjs",
|
|
316
308
|
condition: "forward",
|
|
317
309
|
message: "PersistedQueryLink cannot be the last link in the chain."
|
|
318
310
|
},
|
|
319
311
|
|
|
320
|
-
|
|
312
|
+
59: {
|
|
321
313
|
file: "@apollo/client/__cjs/link/http/checkFetcher.cjs",
|
|
322
314
|
condition: "fetcher || typeof fetch !== \"undefined\"",
|
|
323
315
|
|
|
@@ -335,29 +327,29 @@ const client = new ApolloClient({
|
|
|
335
327
|
`
|
|
336
328
|
},
|
|
337
329
|
|
|
338
|
-
|
|
330
|
+
60: {
|
|
339
331
|
file: "@apollo/client/__cjs/link/http/parseAndCheckHttpResponse.cjs",
|
|
340
332
|
condition: "response.body && typeof response.body.getReader === \"function\"",
|
|
341
333
|
message: "Unknown type for `response.body`. Please use a `fetch` implementation that is WhatWG-compliant and that uses WhatWG ReadableStreams for `body`."
|
|
342
334
|
},
|
|
343
335
|
|
|
344
|
-
|
|
336
|
+
61: {
|
|
345
337
|
file: "@apollo/client/__cjs/link/http/serializeFetchParameter.cjs",
|
|
346
338
|
message: `Network request failed. %s is not serializable: %s`
|
|
347
339
|
},
|
|
348
340
|
|
|
349
|
-
|
|
341
|
+
63: {
|
|
350
342
|
file: "@apollo/client/__cjs/link/core/ApolloLink.cjs",
|
|
351
343
|
message: "request is not implemented"
|
|
352
344
|
},
|
|
353
345
|
|
|
354
|
-
|
|
346
|
+
64: {
|
|
355
347
|
file: "@apollo/client/__cjs/incremental/handlers/notImplemented.cjs",
|
|
356
348
|
condition: "!(0, internal_1.hasDirectives)([\"defer\"], request.query)",
|
|
357
349
|
message: "`@defer` is not supported without specifying an incremental handler. Please pass a handler as the `incrementalHandler` option to the `ApolloClient` constructor."
|
|
358
350
|
},
|
|
359
351
|
|
|
360
|
-
|
|
352
|
+
65: {
|
|
361
353
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
362
354
|
condition: "options.cache",
|
|
363
355
|
|
|
@@ -366,7 +358,7 @@ const client = new ApolloClient({
|
|
|
366
358
|
"For more information, please visit: https://go.apollo.dev/c/docs"
|
|
367
359
|
},
|
|
368
360
|
|
|
369
|
-
|
|
361
|
+
66: {
|
|
370
362
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
371
363
|
condition: "options.link",
|
|
372
364
|
|
|
@@ -375,7 +367,7 @@ const client = new ApolloClient({
|
|
|
375
367
|
"For more information, please visit: https://go.apollo.dev/c/docs"
|
|
376
368
|
},
|
|
377
369
|
|
|
378
|
-
|
|
370
|
+
67: {
|
|
379
371
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
380
372
|
condition: "options.fetchPolicy !== \"cache-and-network\"",
|
|
381
373
|
|
|
@@ -385,7 +377,7 @@ const client = new ApolloClient({
|
|
|
385
377
|
"using a different fetchPolicy, such as cache-first or network-only."
|
|
386
378
|
},
|
|
387
379
|
|
|
388
|
-
|
|
380
|
+
68: {
|
|
389
381
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
390
382
|
condition: "options.fetchPolicy !== \"standby\"",
|
|
391
383
|
|
|
@@ -394,7 +386,7 @@ const client = new ApolloClient({
|
|
|
394
386
|
"as cache-first or network-only."
|
|
395
387
|
},
|
|
396
388
|
|
|
397
|
-
|
|
389
|
+
69: {
|
|
398
390
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
399
391
|
condition: "options.query",
|
|
400
392
|
|
|
@@ -402,158 +394,158 @@ const client = new ApolloClient({
|
|
|
402
394
|
"in the query option."
|
|
403
395
|
},
|
|
404
396
|
|
|
405
|
-
|
|
397
|
+
70: {
|
|
406
398
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
407
399
|
condition: "options.query.kind === \"Document\"",
|
|
408
400
|
message: 'You must wrap the query string in a "gql" tag.'
|
|
409
401
|
},
|
|
410
402
|
|
|
411
|
-
|
|
403
|
+
71: {
|
|
412
404
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
413
405
|
condition: "!options.returnPartialData",
|
|
414
406
|
message: "returnPartialData option only supported on watchQuery."
|
|
415
407
|
},
|
|
416
408
|
|
|
417
|
-
|
|
409
|
+
72: {
|
|
418
410
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
419
411
|
condition: "!options.pollInterval",
|
|
420
412
|
message: "pollInterval option only supported on watchQuery."
|
|
421
413
|
},
|
|
422
414
|
|
|
423
|
-
|
|
415
|
+
73: {
|
|
424
416
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
425
417
|
condition: "!options.notifyOnNetworkStatusChange",
|
|
426
418
|
message: "notifyOnNetworkStatusChange option only supported on watchQuery."
|
|
427
419
|
},
|
|
428
420
|
|
|
429
|
-
|
|
421
|
+
74: {
|
|
430
422
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
431
423
|
condition: "optionsWithDefaults.mutation",
|
|
432
424
|
message: "The `mutation` option is required. Please provide a GraphQL document in the `mutation` option."
|
|
433
425
|
},
|
|
434
426
|
|
|
435
|
-
|
|
427
|
+
75: {
|
|
436
428
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
437
429
|
condition: "optionsWithDefaults.fetchPolicy === \"network-only\" ||\n optionsWithDefaults.fetchPolicy === \"no-cache\"",
|
|
438
430
|
message: "Mutations only support 'network-only' or 'no-cache' fetch policies. The default 'network-only' behavior automatically writes mutation results to the cache. Passing 'no-cache' skips the cache write."
|
|
439
431
|
},
|
|
440
432
|
|
|
441
|
-
|
|
433
|
+
78: {
|
|
442
434
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
443
435
|
condition: "this.options.fetchPolicy !== \"cache-only\"",
|
|
444
436
|
message: "Cannot execute `fetchMore` for 'cache-only' query '%s'. Please use a different fetch policy."
|
|
445
437
|
},
|
|
446
438
|
|
|
447
|
-
|
|
439
|
+
79: {
|
|
448
440
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
449
441
|
condition: "updateQuery",
|
|
450
442
|
message: "You must provide an `updateQuery` function when using `fetchMore` with a `no-cache` fetch policy."
|
|
451
443
|
},
|
|
452
444
|
|
|
453
|
-
|
|
445
|
+
83: {
|
|
454
446
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
455
447
|
message: "QueryManager stopped while query was in flight"
|
|
456
448
|
},
|
|
457
449
|
|
|
458
|
-
|
|
450
|
+
84: {
|
|
459
451
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
460
452
|
condition: "this.localState",
|
|
461
453
|
message: "Mutation '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
|
|
462
454
|
},
|
|
463
455
|
|
|
464
|
-
|
|
456
|
+
85: {
|
|
465
457
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
466
458
|
message: "Store reset while query was in flight (not completed in link chain)"
|
|
467
459
|
},
|
|
468
460
|
|
|
469
|
-
|
|
461
|
+
88: {
|
|
470
462
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
471
463
|
condition: "!this.getDocumentInfo(query).hasClientExports || this.localState",
|
|
472
464
|
message: "Subscription '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
|
|
473
465
|
},
|
|
474
466
|
|
|
475
|
-
|
|
467
|
+
89: {
|
|
476
468
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
477
469
|
condition: "this.localState",
|
|
478
470
|
message: "%s '%s' contains `@client` fields but local state has not been configured."
|
|
479
471
|
},
|
|
480
472
|
|
|
481
|
-
|
|
473
|
+
90: {
|
|
482
474
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
483
475
|
condition: "!hasIncrementalDirective",
|
|
484
476
|
message: "%s '%s' contains `@client` and `@defer` directives. These cannot be used together."
|
|
485
477
|
},
|
|
486
478
|
|
|
487
|
-
|
|
479
|
+
91: {
|
|
488
480
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
489
481
|
condition: "this.localState",
|
|
490
482
|
message: "Query '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
|
|
491
483
|
},
|
|
492
484
|
|
|
493
|
-
|
|
485
|
+
93: {
|
|
494
486
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
495
487
|
condition: "this.localState",
|
|
496
488
|
message: "Query '%s' contains `@client` fields but local state has not been configured."
|
|
497
489
|
},
|
|
498
490
|
|
|
499
|
-
|
|
491
|
+
94: {
|
|
500
492
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
501
493
|
condition: "didEmitValue",
|
|
502
494
|
message: "The link chain completed without emitting a value. This is likely unintentional and should be updated to emit a value before completing."
|
|
503
495
|
},
|
|
504
496
|
|
|
505
|
-
|
|
497
|
+
95: {
|
|
506
498
|
file: "@apollo/client/__cjs/cache/inmemory/entityStore.cjs",
|
|
507
499
|
condition: "typeof dataId === \"string\"",
|
|
508
500
|
message: "store.merge expects a string ID"
|
|
509
501
|
},
|
|
510
502
|
|
|
511
|
-
|
|
503
|
+
98: {
|
|
512
504
|
file: "@apollo/client/__cjs/cache/inmemory/key-extractor.cjs",
|
|
513
505
|
condition: "extracted !== void 0",
|
|
514
506
|
message: `Missing field '%s' while extracting keyFields from %s`
|
|
515
507
|
},
|
|
516
508
|
|
|
517
|
-
|
|
509
|
+
99: {
|
|
518
510
|
file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
|
|
519
511
|
condition: "!old || old === which",
|
|
520
512
|
message: `Cannot change root %s __typename more than once`
|
|
521
513
|
},
|
|
522
514
|
|
|
523
|
-
|
|
515
|
+
102: {
|
|
524
516
|
file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
|
|
525
517
|
message: "Cannot automatically merge arrays"
|
|
526
518
|
},
|
|
527
519
|
|
|
528
|
-
|
|
520
|
+
103: {
|
|
529
521
|
file: "@apollo/client/__cjs/cache/inmemory/readFromStore.cjs",
|
|
530
522
|
message: `No fragment named %s`
|
|
531
523
|
},
|
|
532
524
|
|
|
533
|
-
|
|
525
|
+
104: {
|
|
534
526
|
file: "@apollo/client/__cjs/cache/inmemory/readFromStore.cjs",
|
|
535
527
|
condition: "!(0, utilities_1.isReference)(value)",
|
|
536
528
|
message: `Missing selection set for object of type %s returned for query field %s`
|
|
537
529
|
},
|
|
538
530
|
|
|
539
|
-
|
|
531
|
+
105: {
|
|
540
532
|
file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
|
|
541
533
|
message: `Could not identify object %s`
|
|
542
534
|
},
|
|
543
535
|
|
|
544
|
-
|
|
536
|
+
107: {
|
|
545
537
|
file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
|
|
546
538
|
message: `No fragment named %s`
|
|
547
539
|
}
|
|
548
540
|
};
|
|
549
541
|
|
|
550
542
|
export const devDebug = {
|
|
551
|
-
|
|
543
|
+
76: {
|
|
552
544
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
553
545
|
message: `In client.refetchQueries, Promise.all promise rejected with error %o`
|
|
554
546
|
},
|
|
555
547
|
|
|
556
|
-
|
|
548
|
+
82: {
|
|
557
549
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
558
550
|
message: `Missing cache result fields: %o`
|
|
559
551
|
}
|
|
@@ -567,74 +559,74 @@ export const devWarn = {
|
|
|
567
559
|
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."
|
|
568
560
|
},
|
|
569
561
|
|
|
570
|
-
|
|
562
|
+
40: {
|
|
571
563
|
file: "@apollo/client/__cjs/masking/maskDefinition.cjs",
|
|
572
564
|
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."
|
|
573
565
|
},
|
|
574
566
|
|
|
575
|
-
|
|
567
|
+
44: {
|
|
576
568
|
file: "@apollo/client/__cjs/masking/utils.cjs",
|
|
577
569
|
message: "@unmask 'mode' argument does not support variables."
|
|
578
570
|
},
|
|
579
571
|
|
|
580
|
-
|
|
572
|
+
45: {
|
|
581
573
|
file: "@apollo/client/__cjs/masking/utils.cjs",
|
|
582
574
|
message: "@unmask 'mode' argument must be of type string."
|
|
583
575
|
},
|
|
584
576
|
|
|
585
|
-
|
|
577
|
+
46: {
|
|
586
578
|
file: "@apollo/client/__cjs/masking/utils.cjs",
|
|
587
579
|
message: "@unmask 'mode' argument does not recognize value '%s'."
|
|
588
580
|
},
|
|
589
581
|
|
|
590
|
-
|
|
582
|
+
50: {
|
|
591
583
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
592
584
|
message: "The '%s' resolver returned `undefined` instead of a value. This is likely a bug in the resolver. If you didn't mean to return a value, return `null` instead."
|
|
593
585
|
},
|
|
594
586
|
|
|
595
|
-
|
|
587
|
+
51: {
|
|
596
588
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
597
589
|
message: "The '%s' field had no cached value and only forced resolvers were run. The value was set to `null`."
|
|
598
590
|
},
|
|
599
591
|
|
|
600
|
-
|
|
592
|
+
52: {
|
|
601
593
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
602
594
|
message: "The '%s' field on object %o returned `undefined` instead of a value. The parent resolver did not include the property in the returned value and there was no resolver defined for the field."
|
|
603
595
|
},
|
|
604
596
|
|
|
605
|
-
|
|
597
|
+
62: {
|
|
606
598
|
file: "@apollo/client/__cjs/link/core/ApolloLink.cjs",
|
|
607
599
|
message: `You are calling concat on a terminating link, which will have no effect %o`
|
|
608
600
|
},
|
|
609
601
|
|
|
610
|
-
|
|
602
|
+
77: {
|
|
611
603
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
612
604
|
|
|
613
605
|
message: `Called refetch(%o) for query %o, which does not declare a $variables variable.
|
|
614
606
|
Did you mean to call refetch(variables) instead of refetch({ variables })?`
|
|
615
607
|
},
|
|
616
608
|
|
|
617
|
-
|
|
609
|
+
81: {
|
|
618
610
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
619
611
|
message: "Cannot poll on 'cache-only' query '%s' and as such, polling is disabled. Please use a different fetch policy."
|
|
620
612
|
},
|
|
621
613
|
|
|
622
|
-
|
|
614
|
+
86: {
|
|
623
615
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
624
616
|
message: `Unknown query named "%s" requested in refetchQueries options.include array`
|
|
625
617
|
},
|
|
626
618
|
|
|
627
|
-
|
|
619
|
+
87: {
|
|
628
620
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
629
621
|
message: `Unknown anonymous query requested in refetchQueries options.include array`
|
|
630
622
|
},
|
|
631
623
|
|
|
632
|
-
|
|
624
|
+
92: {
|
|
633
625
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
634
626
|
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.'
|
|
635
627
|
},
|
|
636
628
|
|
|
637
|
-
|
|
629
|
+
96: {
|
|
638
630
|
file: "@apollo/client/__cjs/cache/inmemory/entityStore.cjs",
|
|
639
631
|
|
|
640
632
|
message: "cache.modify: You are trying to write a Reference that is not part of the store: %o\n" +
|
|
@@ -642,24 +634,24 @@ Did you mean to call refetch(variables) instead of refetch({ variables })?`
|
|
|
642
634
|
"`toReference(object, true)`"
|
|
643
635
|
},
|
|
644
636
|
|
|
645
|
-
|
|
637
|
+
97: {
|
|
646
638
|
file: "@apollo/client/__cjs/cache/inmemory/entityStore.cjs",
|
|
647
639
|
|
|
648
640
|
message: "cache.modify: Writing an array with a mix of both References and Objects will not result in the Objects being normalized correctly.\n" +
|
|
649
641
|
"Please convert the object instance %o to a Reference before writing it to the cache by calling `toReference(object, true)`."
|
|
650
642
|
},
|
|
651
643
|
|
|
652
|
-
|
|
644
|
+
100: {
|
|
653
645
|
file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
|
|
654
646
|
message: `Inferring subtype %s of supertype %s`
|
|
655
647
|
},
|
|
656
648
|
|
|
657
|
-
|
|
649
|
+
101: {
|
|
658
650
|
file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
|
|
659
651
|
message: `Undefined 'from' passed to readField with arguments %s`
|
|
660
652
|
},
|
|
661
653
|
|
|
662
|
-
|
|
654
|
+
108: {
|
|
663
655
|
file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
|
|
664
656
|
|
|
665
657
|
message: `Cache data may be lost when replacing the %s field of a %s object.
|
|
@@ -678,7 +670,7 @@ For more information about these options, please refer to the documentation:
|
|
|
678
670
|
`
|
|
679
671
|
},
|
|
680
672
|
|
|
681
|
-
|
|
673
|
+
109: {
|
|
682
674
|
file: "@apollo/client/__cjs/cache/core/cache.cjs",
|
|
683
675
|
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."
|
|
684
676
|
}
|
|
@@ -695,12 +687,12 @@ export const devError = {
|
|
|
695
687
|
message: "The result of getSnapshot should be cached to avoid an infinite loop"
|
|
696
688
|
},
|
|
697
689
|
|
|
698
|
-
|
|
690
|
+
80: {
|
|
699
691
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
700
692
|
message: "Unhandled GraphQL subscription error"
|
|
701
693
|
},
|
|
702
694
|
|
|
703
|
-
|
|
695
|
+
106: {
|
|
704
696
|
file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
|
|
705
697
|
message: `Missing field '%s' while writing result %o`
|
|
706
698
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batchLink.cjs","sources":["../../../../src/link/batch/batchLink.ts"],"sourcesContent":["import type { Observable } from \"rxjs\";\n\nimport type { FetchResult, NextLink, Operation } from \"@apollo/client/link\";\nimport { ApolloLink } from \"@apollo/client/link\";\n\nimport type { BatchHandler } from \"./batching.js\";\nimport { OperationBatcher } from \"./batching.js\";\nexport type { BatchableRequest, BatchHandler } from \"./batching.js\";\nexport { OperationBatcher } from \"./batching.js\";\n\nexport namespace BatchLink {\n export interface Options {\n /**\n * The interval at which to batch, in milliseconds.\n *\n * Defaults to 10.\n */\n batchInterval?: number;\n\n /**\n * \"batchInterval\" is a throttling behavior by default, if you instead wish\n * to debounce outbound requests, set \"batchDebounce\" to true. More useful\n * for mutations than queries.\n */\n batchDebounce?: boolean;\n\n /**\n * The maximum number of operations to include in one fetch.\n *\n * Defaults to 0 (infinite operations within the interval).\n */\n batchMax?: number;\n\n /**\n * The handler that should execute a batch of operations.\n */\n batchHandler?: BatchHandler;\n\n /**\n * creates the key for a batch\n */\n batchKey?: (operation: Operation) => string;\n }\n}\n\nexport class BatchLink extends ApolloLink {\n private batcher: OperationBatcher;\n\n constructor(fetchParams?: BatchLink.Options) {\n super();\n\n const {\n batchDebounce,\n batchInterval = 10,\n batchMax = 0,\n batchHandler = () => null,\n batchKey = () => \"\",\n } = fetchParams || {};\n\n this.batcher = new OperationBatcher({\n batchDebounce,\n batchInterval,\n batchMax,\n batchHandler,\n batchKey,\n });\n\n //make this link terminating\n if (fetchParams!.batchHandler!.length <= 1) {\n this.request = (operation) => this.batcher.enqueueRequest({ operation });\n }\n }\n\n public request(\n operation: Operation,\n forward?: NextLink\n ): Observable<FetchResult> | null {\n return this.batcher.enqueueRequest({\n operation,\n forward,\n });\n }\n}\n"],"names":[],"mappings":";;;AAGA,CAAA,CAAA,CAAA,CAAA,EAAA,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;AAGA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,iBAAA,CAAA;AAEA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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AAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAsC,CAAC;YACjC,CAAN,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe;YACT,CAAN,CAAA,CAAA,CAAA,CAAA,CAAA,CAAa;QACb,CAAK,CAAC;IACJ;AACF;AArCA,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;"}
|
|
1
|
+
{"version":3,"file":"batchLink.cjs","sources":["../../../../src/link/batch/batchLink.ts"],"sourcesContent":["import type { Observable } from \"rxjs\";\n\nimport type { FetchResult, NextLink, Operation } from \"@apollo/client/link\";\nimport { ApolloLink } from \"@apollo/client/link\";\n\nimport type { BatchHandler } from \"./batching.js\";\nimport { OperationBatcher } from \"./batching.js\";\nexport type { BatchableRequest, BatchHandler } from \"./batching.js\";\nexport { OperationBatcher } from \"./batching.js\";\n\nexport declare namespace BatchLink {\n export interface Options {\n /**\n * The interval at which to batch, in milliseconds.\n *\n * Defaults to 10.\n */\n batchInterval?: number;\n\n /**\n * \"batchInterval\" is a throttling behavior by default, if you instead wish\n * to debounce outbound requests, set \"batchDebounce\" to true. More useful\n * for mutations than queries.\n */\n batchDebounce?: boolean;\n\n /**\n * The maximum number of operations to include in one fetch.\n *\n * Defaults to 0 (infinite operations within the interval).\n */\n batchMax?: number;\n\n /**\n * The handler that should execute a batch of operations.\n */\n batchHandler?: BatchHandler;\n\n /**\n * creates the key for a batch\n */\n batchKey?: (operation: Operation) => string;\n }\n}\n\nexport class BatchLink extends ApolloLink {\n private batcher: OperationBatcher;\n\n constructor(fetchParams?: BatchLink.Options) {\n super();\n\n const {\n batchDebounce,\n batchInterval = 10,\n batchMax = 0,\n batchHandler = () => null,\n batchKey = () => \"\",\n } = fetchParams || {};\n\n this.batcher = new OperationBatcher({\n batchDebounce,\n batchInterval,\n batchMax,\n batchHandler,\n batchKey,\n });\n\n //make this link terminating\n if (fetchParams!.batchHandler!.length <= 1) {\n this.request = (operation) => this.batcher.enqueueRequest({ operation });\n }\n }\n\n public request(\n operation: Operation,\n forward?: NextLink\n ): Observable<FetchResult> | null {\n return this.batcher.enqueueRequest({\n operation,\n forward,\n });\n }\n}\n"],"names":[],"mappings":";;;AAGA,CAAA,CAAA,CAAA,CAAA,EAAA,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;AAGA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,iBAAA,CAAA;AAEA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,iBAAA,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,CAAA,CAAA,CAAA,EAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,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require("@apollo/client/link");
|
|
|
6
6
|
const batch_1 = require("@apollo/client/link/batch");
|
|
7
7
|
const client_awareness_1 = require("@apollo/client/link/client-awareness");
|
|
8
8
|
const http_1 = require("@apollo/client/link/http");
|
|
9
|
+
const utils_1 = require("@apollo/client/link/utils");
|
|
9
10
|
const environment_1 = require("@apollo/client/utilities/environment");
|
|
10
11
|
const internal_1 = require("@apollo/client/utilities/internal");
|
|
11
12
|
const globals_1 = require("@apollo/client/utilities/internal/globals");
|
|
12
|
-
const filterOperationVariables_js_1 = require("../utils/filterOperationVariables.cjs");
|
|
13
13
|
const backupFetch = (0, globals_1.maybe)(() => fetch);
|
|
14
14
|
/**
|
|
15
15
|
* Transforms Operation for into HTTP results.
|
|
@@ -60,7 +60,7 @@ class BaseBatchHttpLink extends link_1.ApolloLink {
|
|
|
60
60
|
const optsAndBody = operations.map((operation) => {
|
|
61
61
|
const result = (0, http_1.selectHttpOptionsAndBodyInternal)(operation, print, http_1.fallbackHttpConfig, linkConfig, contextConfig);
|
|
62
62
|
if (result.body.variables && !includeUnusedVariables) {
|
|
63
|
-
result.body.variables = (0,
|
|
63
|
+
result.body.variables = (0, utils_1.filterOperationVariables)(result.body.variables, operation.query);
|
|
64
64
|
}
|
|
65
65
|
return result;
|
|
66
66
|
});
|