@apollo/client 4.0.0-alpha.21 → 4.0.0-alpha.23
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 +341 -2
- package/__cjs/cache/core/cache.cjs +1 -1
- package/__cjs/cache/inmemory/entityStore.cjs +3 -3
- package/__cjs/cache/inmemory/key-extractor.cjs +1 -1
- package/__cjs/cache/inmemory/key-extractor.cjs.map +1 -1
- package/__cjs/cache/inmemory/policies.cjs +4 -4
- package/__cjs/cache/inmemory/policies.cjs.map +1 -1
- package/__cjs/cache/inmemory/readFromStore.cjs +2 -2
- package/__cjs/cache/inmemory/writeToStore.cjs +4 -4
- package/__cjs/core/ApolloClient.cjs +24 -19
- package/__cjs/core/ApolloClient.cjs.map +1 -1
- package/__cjs/core/ApolloClient.d.cts +15 -11
- package/__cjs/core/ObservableQuery.cjs +52 -48
- package/__cjs/core/ObservableQuery.cjs.map +1 -1
- package/__cjs/core/ObservableQuery.d.cts +48 -14
- package/__cjs/core/QueryInfo.cjs +146 -168
- package/__cjs/core/QueryInfo.cjs.map +1 -1
- package/__cjs/core/QueryInfo.d.cts +14 -11
- package/__cjs/core/QueryManager.cjs +138 -123
- package/__cjs/core/QueryManager.cjs.map +1 -1
- package/__cjs/core/QueryManager.d.cts +17 -6
- package/__cjs/core/index.cjs +2 -1
- package/__cjs/core/index.cjs.map +1 -1
- package/__cjs/core/index.d.cts +4 -4
- package/__cjs/core/types.d.cts +72 -18
- package/__cjs/core/watchQueryOptions.d.cts +2 -24
- package/__cjs/dev/setErrorMessageHandler.cjs.map +1 -1
- package/__cjs/errors/CombinedGraphQLErrors.cjs +6 -3
- package/__cjs/errors/CombinedGraphQLErrors.cjs.map +1 -1
- package/__cjs/errors/CombinedGraphQLErrors.d.cts +7 -2
- package/__cjs/errors/index.cjs +1 -1
- package/__cjs/errors/index.cjs.map +1 -1
- package/__cjs/errors/index.d.cts +1 -3
- package/__cjs/incremental/handlers/defer20220824.cjs +102 -0
- package/__cjs/incremental/handlers/defer20220824.cjs.map +1 -0
- package/__cjs/incremental/handlers/defer20220824.d.cts +55 -0
- package/__cjs/incremental/handlers/notImplemented.cjs +19 -0
- package/__cjs/incremental/handlers/notImplemented.cjs.map +1 -0
- package/__cjs/incremental/handlers/notImplemented.d.cts +9 -0
- package/__cjs/incremental/index.cjs +9 -0
- package/__cjs/incremental/index.cjs.map +1 -0
- package/__cjs/incremental/index.d.cts +4 -0
- package/__cjs/incremental/types.cjs +3 -0
- package/__cjs/incremental/types.cjs.map +1 -0
- package/__cjs/incremental/types.d.cts +24 -0
- package/__cjs/invariantErrorCodes.cjs +131 -114
- package/__cjs/link/batch-http/batchHttpLink.cjs +14 -14
- package/__cjs/link/batch-http/batchHttpLink.cjs.map +1 -1
- package/__cjs/link/batch-http/batchHttpLink.d.cts +4 -0
- package/__cjs/link/batch-http/index.cjs +2 -1
- package/__cjs/link/batch-http/index.cjs.map +1 -1
- package/__cjs/link/batch-http/index.d.cts +1 -1
- package/__cjs/link/client-awareness/ClientAwarenessLink.cjs +45 -0
- package/__cjs/link/client-awareness/ClientAwarenessLink.cjs.map +1 -0
- package/__cjs/link/client-awareness/ClientAwarenessLink.d.cts +62 -0
- package/__cjs/link/client-awareness/index.cjs +6 -0
- package/__cjs/link/client-awareness/index.cjs.map +1 -0
- package/__cjs/link/client-awareness/index.d.cts +2 -0
- package/__cjs/link/context/index.cjs +36 -25
- package/__cjs/link/context/index.cjs.map +1 -1
- package/__cjs/link/context/index.d.cts +8 -1
- package/__cjs/link/core/types.d.cts +5 -38
- package/__cjs/link/error/index.cjs +68 -65
- package/__cjs/link/error/index.cjs.map +1 -1
- package/__cjs/link/error/index.d.cts +15 -14
- package/__cjs/link/http/BaseHttpLink.cjs +111 -0
- package/__cjs/link/http/BaseHttpLink.cjs.map +1 -0
- package/__cjs/link/http/BaseHttpLink.d.cts +6 -0
- package/__cjs/link/http/HttpLink.cjs +12 -5
- package/__cjs/link/http/HttpLink.cjs.map +1 -1
- package/__cjs/link/http/HttpLink.d.cts +20 -4
- package/__cjs/link/http/checkFetcher.cjs +1 -1
- package/__cjs/link/http/index.cjs +4 -3
- package/__cjs/link/http/index.cjs.map +1 -1
- package/__cjs/link/http/index.d.cts +2 -2
- package/__cjs/link/http/parseAndCheckHttpResponse.cjs +45 -57
- package/__cjs/link/http/parseAndCheckHttpResponse.cjs.map +1 -1
- package/__cjs/link/http/selectHttpOptionsAndBody.cjs +6 -5
- package/__cjs/link/http/selectHttpOptionsAndBody.cjs.map +1 -1
- package/__cjs/link/index.cjs.map +1 -1
- package/__cjs/link/index.d.cts +1 -1
- package/__cjs/link/persisted-queries/index.cjs +159 -141
- package/__cjs/link/persisted-queries/index.cjs.map +1 -1
- package/__cjs/link/persisted-queries/index.d.cts +19 -19
- package/__cjs/link/remove-typename/index.cjs +2 -1
- package/__cjs/link/remove-typename/index.cjs.map +1 -1
- package/__cjs/link/remove-typename/index.d.cts +1 -1
- package/__cjs/link/remove-typename/removeTypenameFromVariables.cjs +34 -23
- package/__cjs/link/remove-typename/removeTypenameFromVariables.cjs.map +1 -1
- package/__cjs/link/remove-typename/removeTypenameFromVariables.d.cts +8 -9
- package/__cjs/link/utils/validateOperation.cjs +1 -1
- package/__cjs/local-state/LocalState.cjs +10 -18
- package/__cjs/local-state/LocalState.cjs.map +1 -1
- package/__cjs/local-state/LocalState.d.cts +3 -4
- package/__cjs/masking/maskDefinition.cjs +2 -2
- package/__cjs/masking/maskFragment.cjs +2 -2
- package/__cjs/masking/maskOperation.cjs +1 -1
- package/__cjs/masking/types.d.cts +6 -5
- package/__cjs/masking/utils.cjs +3 -3
- package/__cjs/react/context/ApolloConsumer.cjs +1 -1
- package/__cjs/react/context/ApolloContext.cjs +1 -1
- package/__cjs/react/context/ApolloProvider.cjs +1 -1
- package/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs +2 -2
- package/__cjs/react/hooks/useApolloClient.cjs +1 -1
- package/__cjs/react/hooks/useBackgroundQuery.cjs +1 -0
- package/__cjs/react/hooks/useBackgroundQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useFragment.cjs +1 -0
- package/__cjs/react/hooks/useFragment.cjs.map +1 -1
- package/__cjs/react/hooks/useLazyQuery.cjs +4 -4
- package/__cjs/react/hooks/useLazyQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useLazyQuery.d.cts +2 -7
- package/__cjs/react/hooks/useLoadableQuery.cjs +2 -2
- package/__cjs/react/hooks/useLoadableQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useMutation.cjs.map +1 -1
- package/__cjs/react/hooks/useMutation.d.cts +2 -2
- package/__cjs/react/hooks/useQuery.cjs +23 -21
- package/__cjs/react/hooks/useQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useQuery.d.cts +3 -8
- package/__cjs/react/hooks/useQueryRefHandlers.cjs +1 -0
- package/__cjs/react/hooks/useQueryRefHandlers.cjs.map +1 -1
- package/__cjs/react/hooks/useReadQuery.cjs +1 -0
- package/__cjs/react/hooks/useReadQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useSubscription.cjs +1 -1
- package/__cjs/react/hooks/useSuspenseFragment.cjs +1 -0
- package/__cjs/react/hooks/useSuspenseFragment.cjs.map +1 -1
- package/__cjs/react/hooks/useSuspenseQuery.cjs +1 -0
- package/__cjs/react/hooks/useSuspenseQuery.cjs.map +1 -1
- package/__cjs/react/hooks/useSyncExternalStore.cjs +1 -1
- package/__cjs/react/internal/cache/QueryReference.cjs +5 -5
- package/__cjs/react/internal/cache/QueryReference.cjs.map +1 -1
- package/__cjs/react/internal/cache/QueryReference.d.cts +2 -3
- package/__cjs/react/internal/types.d.cts +2 -7
- package/__cjs/react/ssr/prerenderStatic.cjs +2 -2
- package/__cjs/testing/core/mocking/mockLink.cjs +4 -4
- package/__cjs/utilities/caching/sizes.cjs.map +1 -1
- package/__cjs/utilities/caching/sizes.d.cts +6 -0
- package/__cjs/utilities/graphql/DocumentTransform.cjs +1 -1
- package/__cjs/utilities/graphql/isFormattedExecutionResult.cjs +9 -0
- package/__cjs/utilities/graphql/isFormattedExecutionResult.cjs.map +1 -0
- package/__cjs/utilities/graphql/isFormattedExecutionResult.d.cts +3 -0
- package/__cjs/utilities/index.cjs +3 -1
- package/__cjs/utilities/index.cjs.map +1 -1
- package/__cjs/utilities/index.d.cts +1 -0
- package/__cjs/utilities/internal/checkDocument.cjs +47 -13
- package/__cjs/utilities/internal/checkDocument.cjs.map +1 -1
- package/__cjs/utilities/internal/checkDocument.d.cts +1 -1
- package/__cjs/utilities/internal/getFragmentDefinition.cjs +3 -3
- package/__cjs/utilities/internal/getFragmentFromSelection.cjs +1 -1
- package/__cjs/utilities/internal/getFragmentQueryDocument.cjs +2 -2
- package/__cjs/utilities/internal/getGraphQLErrorsFromResult.cjs +1 -12
- package/__cjs/utilities/internal/getGraphQLErrorsFromResult.cjs.map +1 -1
- package/__cjs/utilities/internal/getGraphQLErrorsFromResult.d.cts +4 -2
- package/__cjs/utilities/internal/getMainDefinition.cjs +1 -1
- package/__cjs/utilities/internal/getMemoryInternals.cjs +1 -0
- package/__cjs/utilities/internal/getMemoryInternals.cjs.map +1 -1
- package/__cjs/utilities/internal/getMemoryInternals.d.cts +0 -1
- package/__cjs/utilities/internal/getQueryDefinition.cjs +1 -1
- package/__cjs/utilities/internal/graphQLResultHasError.cjs +1 -4
- package/__cjs/utilities/internal/graphQLResultHasError.cjs.map +1 -1
- package/__cjs/utilities/internal/graphQLResultHasError.d.cts +2 -2
- package/__cjs/utilities/internal/index.cjs +2 -10
- package/__cjs/utilities/internal/index.cjs.map +1 -1
- package/__cjs/utilities/internal/index.d.cts +0 -4
- package/__cjs/utilities/internal/removeDirectivesFromDocument.cjs +1 -1
- package/__cjs/utilities/internal/shouldInclude.cjs +4 -4
- package/__cjs/utilities/internal/valueToObjectRepresentation.cjs +1 -1
- package/__cjs/version.cjs +3 -2
- package/__cjs/version.cjs.map +1 -1
- package/__cjs/version.d.cts +1 -0
- package/cache/core/cache.js +1 -1
- package/cache/inmemory/entityStore.js +3 -3
- package/cache/inmemory/key-extractor.js +1 -1
- package/cache/inmemory/key-extractor.js.map +1 -1
- 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.js +4 -4
- package/core/ApolloClient.d.ts +15 -11
- package/core/ApolloClient.js +25 -20
- package/core/ApolloClient.js.map +1 -1
- package/core/ObservableQuery.d.ts +48 -14
- package/core/ObservableQuery.js +53 -49
- package/core/ObservableQuery.js.map +1 -1
- package/core/QueryInfo.d.ts +14 -11
- package/core/QueryInfo.js +147 -169
- package/core/QueryInfo.js.map +1 -1
- package/core/QueryManager.d.ts +17 -6
- package/core/QueryManager.js +140 -125
- package/core/QueryManager.js.map +1 -1
- package/core/index.d.ts +4 -4
- package/core/index.js +1 -1
- package/core/index.js.map +1 -1
- package/core/types.d.ts +72 -18
- package/core/watchQueryOptions.d.ts +2 -24
- package/dev/setErrorMessageHandler.js.map +1 -1
- package/errors/CombinedGraphQLErrors.d.ts +7 -2
- package/errors/CombinedGraphQLErrors.js +6 -3
- package/errors/CombinedGraphQLErrors.js.map +1 -1
- package/errors/index.d.ts +1 -3
- package/errors/index.js +1 -1
- package/errors/index.js.map +1 -1
- package/incremental/handlers/defer20220824.d.ts +55 -0
- package/incremental/handlers/defer20220824.js +97 -0
- package/incremental/handlers/defer20220824.js.map +1 -0
- package/incremental/handlers/notImplemented.d.ts +9 -0
- package/incremental/handlers/notImplemented.js +15 -0
- package/incremental/handlers/notImplemented.js.map +1 -0
- package/incremental/index.d.ts +4 -0
- package/incremental/index.js +3 -0
- package/incremental/index.js.map +1 -0
- package/incremental/types.d.ts +24 -0
- package/incremental/types.js +2 -0
- package/incremental/types.js.map +1 -0
- package/invariantErrorCodes.js +132 -118
- package/legacyEntryPoints/incremental/incremental.cjs +1 -0
- package/legacyEntryPoints/incremental/incremental.d.cts +1 -0
- package/legacyEntryPoints/incremental/index.d.ts +1 -0
- package/legacyEntryPoints/incremental/index.js +1 -0
- package/legacyEntryPoints/link/client-awareness/client-awareness.cjs +1 -0
- package/legacyEntryPoints/link/client-awareness/client-awareness.d.cts +1 -0
- package/legacyEntryPoints/link/client-awareness/index.d.ts +1 -0
- package/legacyEntryPoints/link/client-awareness/index.js +1 -0
- package/link/batch-http/batchHttpLink.d.ts +4 -0
- package/link/batch-http/batchHttpLink.js +11 -12
- package/link/batch-http/batchHttpLink.js.map +1 -1
- package/link/batch-http/index.d.ts +1 -1
- package/link/batch-http/index.js +1 -1
- package/link/batch-http/index.js.map +1 -1
- package/link/client-awareness/ClientAwarenessLink.d.ts +62 -0
- package/link/client-awareness/ClientAwarenessLink.js +41 -0
- package/link/client-awareness/ClientAwarenessLink.js.map +1 -0
- package/link/client-awareness/index.d.ts +2 -0
- package/link/client-awareness/index.js +2 -0
- package/link/client-awareness/index.js.map +1 -0
- package/link/context/index.d.ts +8 -1
- package/link/context/index.js +34 -25
- package/link/context/index.js.map +1 -1
- package/link/core/types.d.ts +5 -38
- package/link/error/index.d.ts +15 -14
- package/link/error/index.js +68 -65
- package/link/error/index.js.map +1 -1
- package/link/http/BaseHttpLink.d.ts +6 -0
- package/link/http/BaseHttpLink.js +107 -0
- package/link/http/BaseHttpLink.js.map +1 -0
- package/link/http/HttpLink.d.ts +20 -4
- package/link/http/HttpLink.js +10 -4
- package/link/http/HttpLink.js.map +1 -1
- package/link/http/checkFetcher.js +1 -1
- package/link/http/index.d.ts +2 -2
- package/link/http/index.js +2 -2
- package/link/http/index.js.map +1 -1
- package/link/http/parseAndCheckHttpResponse.js +45 -57
- package/link/http/parseAndCheckHttpResponse.js.map +1 -1
- package/link/http/selectHttpOptionsAndBody.js +6 -5
- package/link/http/selectHttpOptionsAndBody.js.map +1 -1
- package/link/index.d.ts +1 -1
- package/link/index.js.map +1 -1
- package/link/persisted-queries/index.d.ts +19 -19
- package/link/persisted-queries/index.js +157 -140
- package/link/persisted-queries/index.js.map +1 -1
- package/link/remove-typename/index.d.ts +1 -1
- package/link/remove-typename/index.js +1 -1
- package/link/remove-typename/index.js.map +1 -1
- package/link/remove-typename/removeTypenameFromVariables.d.ts +8 -9
- package/link/remove-typename/removeTypenameFromVariables.js +32 -22
- package/link/remove-typename/removeTypenameFromVariables.js.map +1 -1
- package/link/utils/validateOperation.js +1 -1
- package/local-state/LocalState.d.ts +3 -4
- package/local-state/LocalState.js +10 -18
- package/local-state/LocalState.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.d.ts +6 -5
- package/masking/utils.js +3 -3
- package/package.json +15 -2
- package/react/context/ApolloConsumer.js +1 -1
- package/react/context/ApolloContext.js +1 -1
- package/react/context/ApolloProvider.js +1 -1
- package/react/hooks/internal/validateSuspenseHookOptions.js +2 -2
- package/react/hooks/useApolloClient.js +15 -2
- package/react/hooks/useApolloClient.js.map +1 -1
- package/react/hooks/useBackgroundQuery.js +7 -6
- package/react/hooks/useBackgroundQuery.js.map +1 -1
- package/react/hooks/useFragment.js +12 -11
- package/react/hooks/useFragment.js.map +1 -1
- package/react/hooks/useLazyQuery.d.ts +2 -7
- package/react/hooks/useLazyQuery.js +17 -17
- package/react/hooks/useLazyQuery.js.map +1 -1
- package/react/hooks/useLoadableQuery.js +229 -69
- package/react/hooks/useLoadableQuery.js.map +1 -1
- package/react/hooks/useMutation.d.ts +2 -2
- package/react/hooks/useMutation.js +191 -81
- package/react/hooks/useMutation.js.map +1 -1
- package/react/hooks/useQuery.d.ts +3 -8
- package/react/hooks/useQuery.js +243 -70
- package/react/hooks/useQuery.js.map +1 -1
- package/react/hooks/useQueryRefHandlers.js +64 -23
- package/react/hooks/useQueryRefHandlers.js.map +1 -1
- package/react/hooks/useReadQuery.js +3 -2
- package/react/hooks/useReadQuery.js.map +1 -1
- package/react/hooks/useSubscription.js +5 -5
- package/react/hooks/useSubscription.js.map +1 -1
- package/react/hooks/useSuspenseFragment.js +1 -0
- package/react/hooks/useSuspenseFragment.js.map +1 -1
- package/react/hooks/useSuspenseQuery.js +59 -33
- package/react/hooks/useSuspenseQuery.js.map +1 -1
- package/react/hooks/useSyncExternalStore.js +1 -1
- package/react/internal/cache/QueryReference.d.ts +2 -3
- package/react/internal/cache/QueryReference.js +5 -5
- package/react/internal/cache/QueryReference.js.map +1 -1
- package/react/internal/types.d.ts +2 -7
- package/react/ssr/prerenderStatic.js +2 -2
- package/testing/core/mocking/mockLink.js +4 -4
- package/utilities/caching/sizes.d.ts +6 -0
- package/utilities/caching/sizes.js.map +1 -1
- package/utilities/graphql/DocumentTransform.js +1 -1
- package/utilities/graphql/isFormattedExecutionResult.d.ts +3 -0
- package/utilities/graphql/isFormattedExecutionResult.js +6 -0
- package/utilities/graphql/isFormattedExecutionResult.js.map +1 -0
- package/utilities/index.d.ts +1 -0
- package/utilities/index.js +1 -0
- package/utilities/index.js.map +1 -1
- package/utilities/internal/checkDocument.d.ts +1 -1
- package/utilities/internal/checkDocument.js +46 -12
- package/utilities/internal/checkDocument.js.map +1 -1
- package/utilities/internal/getFragmentDefinition.js +3 -3
- package/utilities/internal/getFragmentFromSelection.js +1 -1
- package/utilities/internal/getFragmentQueryDocument.js +2 -2
- package/utilities/internal/getGraphQLErrorsFromResult.d.ts +4 -2
- package/utilities/internal/getGraphQLErrorsFromResult.js +1 -12
- package/utilities/internal/getGraphQLErrorsFromResult.js.map +1 -1
- package/utilities/internal/getMainDefinition.js +1 -1
- package/utilities/internal/getMemoryInternals.d.ts +0 -1
- package/utilities/internal/getMemoryInternals.js +1 -0
- package/utilities/internal/getMemoryInternals.js.map +1 -1
- package/utilities/internal/getQueryDefinition.js +1 -1
- package/utilities/internal/graphQLResultHasError.d.ts +2 -2
- package/utilities/internal/graphQLResultHasError.js +1 -4
- package/utilities/internal/graphQLResultHasError.js.map +1 -1
- package/utilities/internal/index.d.ts +0 -4
- package/utilities/internal/index.js +0 -4
- package/utilities/internal/index.js.map +1 -1
- package/utilities/internal/removeDirectivesFromDocument.js +1 -1
- package/utilities/internal/shouldInclude.js +4 -4
- package/utilities/internal/valueToObjectRepresentation.js +1 -1
- package/version.d.ts +1 -0
- package/version.js +2 -1
- package/version.js.map +1 -1
- package/__cjs/link/http/createHttpLink.cjs +0 -151
- package/__cjs/link/http/createHttpLink.cjs.map +0 -1
- package/__cjs/link/http/createHttpLink.d.cts +0 -4
- package/__cjs/utilities/internal/isExecutionPatchIncrementalResult.cjs +0 -12
- package/__cjs/utilities/internal/isExecutionPatchIncrementalResult.cjs.map +0 -1
- package/__cjs/utilities/internal/isExecutionPatchIncrementalResult.d.cts +0 -8
- package/__cjs/utilities/internal/isExecutionPatchIninitialResult.cjs +0 -12
- package/__cjs/utilities/internal/isExecutionPatchIninitialResult.cjs.map +0 -1
- package/__cjs/utilities/internal/isExecutionPatchIninitialResult.d.cts +0 -8
- package/__cjs/utilities/internal/isExecutionPatchResult.cjs +0 -15
- package/__cjs/utilities/internal/isExecutionPatchResult.cjs.map +0 -1
- package/__cjs/utilities/internal/isExecutionPatchResult.d.cts +0 -8
- package/__cjs/utilities/internal/mergeIncrementalData.cjs +0 -30
- package/__cjs/utilities/internal/mergeIncrementalData.cjs.map +0 -1
- package/__cjs/utilities/internal/mergeIncrementalData.d.cts +0 -8
- package/link/http/createHttpLink.d.ts +0 -4
- package/link/http/createHttpLink.js +0 -143
- package/link/http/createHttpLink.js.map +0 -1
- package/utilities/internal/isExecutionPatchIncrementalResult.d.ts +0 -8
- package/utilities/internal/isExecutionPatchIncrementalResult.js +0 -9
- package/utilities/internal/isExecutionPatchIncrementalResult.js.map +0 -1
- package/utilities/internal/isExecutionPatchIninitialResult.d.ts +0 -8
- package/utilities/internal/isExecutionPatchIninitialResult.js +0 -9
- package/utilities/internal/isExecutionPatchIninitialResult.js.map +0 -1
- package/utilities/internal/isExecutionPatchResult.d.ts +0 -8
- package/utilities/internal/isExecutionPatchResult.js +0 -12
- package/utilities/internal/isExecutionPatchResult.js.map +0 -1
- package/utilities/internal/mergeIncrementalData.d.ts +0 -8
- package/utilities/internal/mergeIncrementalData.js +0 -27
- package/utilities/internal/mergeIncrementalData.js.map +0 -1
|
@@ -28,6 +28,11 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
28
28
|
},
|
|
29
29
|
|
|
30
30
|
5: {
|
|
31
|
+
file: "@apollo/client/__cjs/utilities/internal/checkDocument.cjs",
|
|
32
|
+
message: '`%s` is a forbidden field alias name in the selection set for field `%s` in %s "%s".'
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
6: {
|
|
31
36
|
file: "@apollo/client/__cjs/utilities/internal/getFragmentDefinition.cjs",
|
|
32
37
|
condition: "doc.kind === \"Document\"",
|
|
33
38
|
|
|
@@ -35,73 +40,73 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
35
40
|
string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
36
41
|
},
|
|
37
42
|
|
|
38
|
-
|
|
43
|
+
7: {
|
|
39
44
|
file: "@apollo/client/__cjs/utilities/internal/getFragmentDefinition.cjs",
|
|
40
45
|
condition: "doc.definitions.length <= 1",
|
|
41
46
|
message: "Fragment must have exactly one definition."
|
|
42
47
|
},
|
|
43
48
|
|
|
44
|
-
|
|
49
|
+
8: {
|
|
45
50
|
file: "@apollo/client/__cjs/utilities/internal/getFragmentDefinition.cjs",
|
|
46
51
|
condition: "fragmentDef.kind === \"FragmentDefinition\"",
|
|
47
52
|
message: "Must be a fragment definition."
|
|
48
53
|
},
|
|
49
54
|
|
|
50
|
-
|
|
55
|
+
9: {
|
|
51
56
|
file: "@apollo/client/__cjs/utilities/internal/getFragmentFromSelection.cjs",
|
|
52
57
|
condition: "fragment",
|
|
53
58
|
message: `No fragment named %s`
|
|
54
59
|
},
|
|
55
60
|
|
|
56
|
-
|
|
61
|
+
10: {
|
|
57
62
|
file: "@apollo/client/__cjs/utilities/internal/getFragmentQueryDocument.cjs",
|
|
58
63
|
|
|
59
64
|
message: `Found a %s operation%s. ` +
|
|
60
65
|
"No operations are allowed when using a fragment as a query. Only fragments are allowed."
|
|
61
66
|
},
|
|
62
67
|
|
|
63
|
-
|
|
68
|
+
11: {
|
|
64
69
|
file: "@apollo/client/__cjs/utilities/internal/getFragmentQueryDocument.cjs",
|
|
65
70
|
condition: "fragments.length === 1",
|
|
66
71
|
message: `Found %s fragments. \`fragmentName\` must be provided when there is not exactly 1 fragment.`
|
|
67
72
|
},
|
|
68
73
|
|
|
69
|
-
|
|
74
|
+
12: {
|
|
70
75
|
file: "@apollo/client/__cjs/utilities/internal/getMainDefinition.cjs",
|
|
71
76
|
message: "Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."
|
|
72
77
|
},
|
|
73
78
|
|
|
74
|
-
|
|
79
|
+
13: {
|
|
75
80
|
file: "@apollo/client/__cjs/utilities/internal/getQueryDefinition.cjs",
|
|
76
81
|
condition: "queryDef && queryDef.operation === \"query\"",
|
|
77
82
|
message: "Must contain a query definition."
|
|
78
83
|
},
|
|
79
84
|
|
|
80
|
-
|
|
85
|
+
15: {
|
|
81
86
|
file: "@apollo/client/__cjs/utilities/internal/shouldInclude.cjs",
|
|
82
87
|
condition: "evaledValue !== void 0",
|
|
83
88
|
message: `Invalid variable referenced in @%s directive.`
|
|
84
89
|
},
|
|
85
90
|
|
|
86
|
-
|
|
91
|
+
16: {
|
|
87
92
|
file: "@apollo/client/__cjs/utilities/internal/shouldInclude.cjs",
|
|
88
93
|
condition: "directiveArguments && directiveArguments.length === 1",
|
|
89
94
|
message: `Incorrect number of arguments for the @%s directive.`
|
|
90
95
|
},
|
|
91
96
|
|
|
92
|
-
|
|
97
|
+
17: {
|
|
93
98
|
file: "@apollo/client/__cjs/utilities/internal/shouldInclude.cjs",
|
|
94
99
|
condition: "ifArgument.name && ifArgument.name.value === \"if\"",
|
|
95
100
|
message: `Invalid argument for the @%s directive.`
|
|
96
101
|
},
|
|
97
102
|
|
|
98
|
-
|
|
103
|
+
18: {
|
|
99
104
|
file: "@apollo/client/__cjs/utilities/internal/shouldInclude.cjs",
|
|
100
105
|
condition: "ifValue &&\n (ifValue.kind === \"Variable\" || ifValue.kind === \"BooleanValue\")",
|
|
101
106
|
message: `Argument for the @%s directive must be a variable or a boolean value.`
|
|
102
107
|
},
|
|
103
108
|
|
|
104
|
-
|
|
109
|
+
19: {
|
|
105
110
|
file: "@apollo/client/__cjs/utilities/internal/valueToObjectRepresentation.cjs",
|
|
106
111
|
|
|
107
112
|
message: `The inline argument "%s" of kind "%s"` +
|
|
@@ -109,37 +114,37 @@ string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql`
|
|
|
109
114
|
"overcome this limitation."
|
|
110
115
|
},
|
|
111
116
|
|
|
112
|
-
|
|
117
|
+
20: {
|
|
113
118
|
file: "@apollo/client/__cjs/utilities/graphql/DocumentTransform.cjs",
|
|
114
119
|
condition: "Array.isArray(cacheKeys)",
|
|
115
120
|
message: "`getCacheKey` must return an array or undefined"
|
|
116
121
|
},
|
|
117
122
|
|
|
118
|
-
|
|
123
|
+
21: {
|
|
119
124
|
file: "@apollo/client/__cjs/testing/core/mocking/mockLink.cjs",
|
|
120
125
|
condition: "max > min",
|
|
121
126
|
message: "realisticDelay: `min` must be less than `max`"
|
|
122
127
|
},
|
|
123
128
|
|
|
124
|
-
|
|
129
|
+
22: {
|
|
125
130
|
file: "@apollo/client/__cjs/testing/core/mocking/mockLink.cjs",
|
|
126
131
|
condition: "queryWithoutClientOnlyDirectives",
|
|
127
132
|
message: "query is required"
|
|
128
133
|
},
|
|
129
134
|
|
|
130
|
-
|
|
135
|
+
23: {
|
|
131
136
|
file: "@apollo/client/__cjs/testing/core/mocking/mockLink.cjs",
|
|
132
137
|
condition: "serverQuery",
|
|
133
138
|
message: "Cannot mock a client-only query. Mocked responses should contain at least one non-client field."
|
|
134
139
|
},
|
|
135
140
|
|
|
136
|
-
|
|
141
|
+
24: {
|
|
137
142
|
file: "@apollo/client/__cjs/testing/core/mocking/mockLink.cjs",
|
|
138
143
|
condition: "(mock.maxUsageCount ?? 1) > 0",
|
|
139
144
|
message: "Mocked response `maxUsageCount` must be greater than 0. Given %s"
|
|
140
145
|
},
|
|
141
146
|
|
|
142
|
-
|
|
147
|
+
25: {
|
|
143
148
|
file: "@apollo/client/__cjs/react/ssr/prerenderStatic.cjs",
|
|
144
149
|
condition: "renderCount <= maxRerenders",
|
|
145
150
|
|
|
@@ -149,19 +154,19 @@ and need to increase the \`maxRerender\` option to \`prerenderStatic\`, or that
|
|
|
149
154
|
you have an infinite render loop in your application.`
|
|
150
155
|
},
|
|
151
156
|
|
|
152
|
-
|
|
157
|
+
26: {
|
|
153
158
|
file: "@apollo/client/__cjs/react/ssr/prerenderStatic.cjs",
|
|
154
159
|
condition: "!signal?.aborted",
|
|
155
160
|
message: "The operation was aborted before it could be attempted."
|
|
156
161
|
},
|
|
157
162
|
|
|
158
|
-
|
|
163
|
+
27: {
|
|
159
164
|
file: "@apollo/client/__cjs/react/internal/cache/QueryReference.cjs",
|
|
160
165
|
condition: "!queryRef || QUERY_REFERENCE_SYMBOL in queryRef",
|
|
161
166
|
message: "Expected a QueryRef object, but got something else instead."
|
|
162
167
|
},
|
|
163
168
|
|
|
164
|
-
|
|
169
|
+
28: {
|
|
165
170
|
file: "@apollo/client/__cjs/react/hooks/useApolloClient.cjs",
|
|
166
171
|
condition: "!!client",
|
|
167
172
|
|
|
@@ -170,43 +175,43 @@ you have an infinite render loop in your application.`
|
|
|
170
175
|
"instance in via options."
|
|
171
176
|
},
|
|
172
177
|
|
|
173
|
-
|
|
178
|
+
29: {
|
|
174
179
|
file: "@apollo/client/__cjs/react/hooks/useLazyQuery.cjs",
|
|
175
180
|
condition: "resultRef.current",
|
|
176
181
|
message: "useLazyQuery: '%s' cannot be called before executing the query."
|
|
177
182
|
},
|
|
178
183
|
|
|
179
|
-
|
|
184
|
+
30: {
|
|
180
185
|
file: "@apollo/client/__cjs/react/hooks/useLazyQuery.cjs",
|
|
181
186
|
condition: "!calledDuringRender()",
|
|
182
187
|
message: "useLazyQuery: 'execute' should not be called during render. To start a query during render, use the 'useQuery' hook."
|
|
183
188
|
},
|
|
184
189
|
|
|
185
|
-
|
|
190
|
+
31: {
|
|
186
191
|
file: "@apollo/client/__cjs/react/hooks/useLoadableQuery.cjs",
|
|
187
192
|
condition: "!calledDuringRender()",
|
|
188
193
|
message: "useLoadableQuery: 'loadQuery' should not be called during render. To start a query during render, use the 'useBackgroundQuery' hook."
|
|
189
194
|
},
|
|
190
195
|
|
|
191
|
-
|
|
196
|
+
32: {
|
|
192
197
|
file: "@apollo/client/__cjs/react/hooks/useLoadableQuery.cjs",
|
|
193
198
|
condition: "internalQueryRef",
|
|
194
199
|
message: "The query has not been loaded. Please load the query."
|
|
195
200
|
},
|
|
196
201
|
|
|
197
|
-
|
|
202
|
+
33: {
|
|
198
203
|
file: "@apollo/client/__cjs/react/hooks/useSubscription.cjs",
|
|
199
204
|
condition: "!optionsRef.current.skip",
|
|
200
205
|
message: "A subscription that is skipped cannot be restarted."
|
|
201
206
|
},
|
|
202
207
|
|
|
203
|
-
|
|
208
|
+
35: {
|
|
204
209
|
file: "@apollo/client/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs",
|
|
205
210
|
condition: "supportedFetchPolicies.includes(fetchPolicy)",
|
|
206
211
|
message: `The fetch policy \`%s\` is not supported with suspense.`
|
|
207
212
|
},
|
|
208
213
|
|
|
209
|
-
|
|
214
|
+
37: {
|
|
210
215
|
file: "@apollo/client/__cjs/react/context/ApolloConsumer.cjs",
|
|
211
216
|
condition: "context && context.client",
|
|
212
217
|
|
|
@@ -214,7 +219,7 @@ you have an infinite render loop in your application.`
|
|
|
214
219
|
"Wrap the root component in an <ApolloProvider>."
|
|
215
220
|
},
|
|
216
221
|
|
|
217
|
-
|
|
222
|
+
38: {
|
|
218
223
|
file: "@apollo/client/__cjs/react/context/ApolloContext.cjs",
|
|
219
224
|
condition: "\"createContext\" in React",
|
|
220
225
|
|
|
@@ -225,7 +230,7 @@ you have an infinite render loop in your application.`
|
|
|
225
230
|
"For more information, see https://nextjs.org/docs/getting-started/react-essentials#client-components"
|
|
226
231
|
},
|
|
227
232
|
|
|
228
|
-
|
|
233
|
+
39: {
|
|
229
234
|
file: "@apollo/client/__cjs/react/context/ApolloProvider.cjs",
|
|
230
235
|
condition: "context.client",
|
|
231
236
|
|
|
@@ -233,71 +238,71 @@ you have an infinite render loop in your application.`
|
|
|
233
238
|
'sure you pass in your client via the "client" prop.'
|
|
234
239
|
},
|
|
235
240
|
|
|
236
|
-
|
|
241
|
+
40: {
|
|
237
242
|
file: "@apollo/client/__cjs/masking/maskDefinition.cjs",
|
|
238
243
|
condition: "fragment",
|
|
239
244
|
message: "Could not find fragment with name '%s'."
|
|
240
245
|
},
|
|
241
246
|
|
|
242
|
-
|
|
247
|
+
42: {
|
|
243
248
|
file: "@apollo/client/__cjs/masking/maskFragment.cjs",
|
|
244
249
|
condition: "fragments.length === 1",
|
|
245
250
|
message: `Found %s fragments. \`fragmentName\` must be provided when there is not exactly 1 fragment.`
|
|
246
251
|
},
|
|
247
252
|
|
|
248
|
-
|
|
253
|
+
43: {
|
|
249
254
|
file: "@apollo/client/__cjs/masking/maskFragment.cjs",
|
|
250
255
|
condition: "!!fragment",
|
|
251
256
|
message: `Could not find fragment with name "%s".`
|
|
252
257
|
},
|
|
253
258
|
|
|
254
|
-
|
|
259
|
+
44: {
|
|
255
260
|
file: "@apollo/client/__cjs/masking/maskOperation.cjs",
|
|
256
261
|
condition: "definition",
|
|
257
262
|
message: "Expected a parsed GraphQL document with a query, mutation, or subscription."
|
|
258
263
|
},
|
|
259
264
|
|
|
260
|
-
|
|
265
|
+
48: {
|
|
261
266
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
262
267
|
condition: "(0, internal_1.hasDirectives)([\"client\"], document)",
|
|
263
268
|
message: "Expected document to contain `@client` fields."
|
|
264
269
|
},
|
|
265
270
|
|
|
266
|
-
|
|
271
|
+
49: {
|
|
267
272
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
268
273
|
condition: "(0, internal_1.hasDirectives)([\"client\"], document)",
|
|
269
274
|
message: "Expected document to contain `@client` fields."
|
|
270
275
|
},
|
|
271
276
|
|
|
272
|
-
|
|
277
|
+
50: {
|
|
273
278
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
274
279
|
condition: "fragment",
|
|
275
280
|
message: "No fragment named %s"
|
|
276
281
|
},
|
|
277
282
|
|
|
278
|
-
|
|
283
|
+
55: {
|
|
279
284
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
280
285
|
message: "Could not resolve __typename on object %o returned from resolver '%s'. '__typename' needs to be returned to properly resolve child fields."
|
|
281
286
|
},
|
|
282
287
|
|
|
283
|
-
|
|
288
|
+
56: {
|
|
284
289
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
285
290
|
condition: "fragment",
|
|
286
291
|
message: `No fragment named %s`
|
|
287
292
|
},
|
|
288
293
|
|
|
289
|
-
|
|
294
|
+
57: {
|
|
290
295
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
291
296
|
condition: "cache.fragmentMatches",
|
|
292
297
|
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`."
|
|
293
298
|
},
|
|
294
299
|
|
|
295
|
-
|
|
300
|
+
58: {
|
|
296
301
|
file: "@apollo/client/__cjs/link/utils/validateOperation.cjs",
|
|
297
302
|
message: `illegal argument: %s`
|
|
298
303
|
},
|
|
299
304
|
|
|
300
|
-
|
|
305
|
+
59: {
|
|
301
306
|
file: "@apollo/client/__cjs/link/persisted-queries/index.cjs",
|
|
302
307
|
condition: "options &&\n (typeof options.sha256 === \"function\" ||\n typeof options.generateHash === \"function\")",
|
|
303
308
|
|
|
@@ -306,13 +311,13 @@ you have an infinite render loop in your application.`
|
|
|
306
311
|
"parameter."
|
|
307
312
|
},
|
|
308
313
|
|
|
309
|
-
|
|
314
|
+
60: {
|
|
310
315
|
file: "@apollo/client/__cjs/link/persisted-queries/index.cjs",
|
|
311
316
|
condition: "forward",
|
|
312
317
|
message: "PersistedQueryLink cannot be the last link in the chain."
|
|
313
318
|
},
|
|
314
319
|
|
|
315
|
-
|
|
320
|
+
61: {
|
|
316
321
|
file: "@apollo/client/__cjs/link/http/checkFetcher.cjs",
|
|
317
322
|
condition: "fetcher || typeof fetch !== \"undefined\"",
|
|
318
323
|
|
|
@@ -347,6 +352,12 @@ const client = new ApolloClient({
|
|
|
347
352
|
},
|
|
348
353
|
|
|
349
354
|
66: {
|
|
355
|
+
file: "@apollo/client/__cjs/incremental/handlers/notImplemented.cjs",
|
|
356
|
+
condition: "!(0, internal_1.hasDirectives)([\"defer\"], request.query)",
|
|
357
|
+
message: "`@defer` is not supported without specifying an incremental handler. Please pass a handler as the `incrementalHandler` option to the `ApolloClient` constructor."
|
|
358
|
+
},
|
|
359
|
+
|
|
360
|
+
67: {
|
|
350
361
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
351
362
|
condition: "options.cache",
|
|
352
363
|
|
|
@@ -355,7 +366,7 @@ const client = new ApolloClient({
|
|
|
355
366
|
"For more information, please visit: https://go.apollo.dev/c/docs"
|
|
356
367
|
},
|
|
357
368
|
|
|
358
|
-
|
|
369
|
+
68: {
|
|
359
370
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
360
371
|
condition: "options.link",
|
|
361
372
|
|
|
@@ -364,7 +375,7 @@ const client = new ApolloClient({
|
|
|
364
375
|
"For more information, please visit: https://go.apollo.dev/c/docs"
|
|
365
376
|
},
|
|
366
377
|
|
|
367
|
-
|
|
378
|
+
69: {
|
|
368
379
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
369
380
|
condition: "options.fetchPolicy !== \"cache-and-network\"",
|
|
370
381
|
|
|
@@ -374,7 +385,7 @@ const client = new ApolloClient({
|
|
|
374
385
|
"using a different fetchPolicy, such as cache-first or network-only."
|
|
375
386
|
},
|
|
376
387
|
|
|
377
|
-
|
|
388
|
+
70: {
|
|
378
389
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
379
390
|
condition: "options.fetchPolicy !== \"standby\"",
|
|
380
391
|
|
|
@@ -383,7 +394,7 @@ const client = new ApolloClient({
|
|
|
383
394
|
"as cache-first or network-only."
|
|
384
395
|
},
|
|
385
396
|
|
|
386
|
-
|
|
397
|
+
71: {
|
|
387
398
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
388
399
|
condition: "options.query",
|
|
389
400
|
|
|
@@ -391,152 +402,158 @@ const client = new ApolloClient({
|
|
|
391
402
|
"in the query option."
|
|
392
403
|
},
|
|
393
404
|
|
|
394
|
-
|
|
405
|
+
72: {
|
|
395
406
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
396
407
|
condition: "options.query.kind === \"Document\"",
|
|
397
408
|
message: 'You must wrap the query string in a "gql" tag.'
|
|
398
409
|
},
|
|
399
410
|
|
|
400
|
-
|
|
411
|
+
73: {
|
|
401
412
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
402
413
|
condition: "!options.returnPartialData",
|
|
403
414
|
message: "returnPartialData option only supported on watchQuery."
|
|
404
415
|
},
|
|
405
416
|
|
|
406
|
-
|
|
417
|
+
74: {
|
|
407
418
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
408
419
|
condition: "!options.pollInterval",
|
|
409
420
|
message: "pollInterval option only supported on watchQuery."
|
|
410
421
|
},
|
|
411
422
|
|
|
412
|
-
|
|
423
|
+
75: {
|
|
413
424
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
414
425
|
condition: "!options.notifyOnNetworkStatusChange",
|
|
415
426
|
message: "notifyOnNetworkStatusChange option only supported on watchQuery."
|
|
416
427
|
},
|
|
417
428
|
|
|
429
|
+
76: {
|
|
430
|
+
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
431
|
+
condition: "optionsWithDefaults.mutation",
|
|
432
|
+
message: "The `mutation` option is required. Please provide a GraphQL document in the `mutation` option."
|
|
433
|
+
},
|
|
434
|
+
|
|
418
435
|
77: {
|
|
419
|
-
file: "@apollo/client/__cjs/core/
|
|
420
|
-
condition: "
|
|
421
|
-
message: "
|
|
436
|
+
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
437
|
+
condition: "optionsWithDefaults.fetchPolicy === \"network-only\" ||\n optionsWithDefaults.fetchPolicy === \"no-cache\"",
|
|
438
|
+
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."
|
|
422
439
|
},
|
|
423
440
|
|
|
424
|
-
|
|
441
|
+
80: {
|
|
425
442
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
426
|
-
condition: "
|
|
427
|
-
message: "
|
|
443
|
+
condition: "this.options.fetchPolicy !== \"cache-only\"",
|
|
444
|
+
message: "Cannot execute `fetchMore` for 'cache-only' query '%s'. Please use a different fetch policy."
|
|
428
445
|
},
|
|
429
446
|
|
|
430
447
|
81: {
|
|
431
|
-
file: "@apollo/client/__cjs/core/
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
82: {
|
|
436
|
-
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
437
|
-
condition: "mutation",
|
|
438
|
-
message: "mutation option is required. You must specify your GraphQL document in the mutation option."
|
|
448
|
+
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
449
|
+
condition: "updateQuery",
|
|
450
|
+
message: "You must provide an `updateQuery` function when using `fetchMore` with a `no-cache` fetch policy."
|
|
439
451
|
},
|
|
440
452
|
|
|
441
|
-
|
|
453
|
+
85: {
|
|
442
454
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
443
|
-
|
|
444
|
-
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."
|
|
455
|
+
message: "QueryManager stopped while query was in flight"
|
|
445
456
|
},
|
|
446
457
|
|
|
447
|
-
|
|
458
|
+
86: {
|
|
448
459
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
449
460
|
condition: "this.localState",
|
|
450
461
|
message: "Mutation '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
|
|
451
462
|
},
|
|
452
463
|
|
|
453
|
-
|
|
464
|
+
87: {
|
|
454
465
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
455
466
|
message: "Store reset while query was in flight (not completed in link chain)"
|
|
456
467
|
},
|
|
457
468
|
|
|
458
|
-
|
|
469
|
+
90: {
|
|
459
470
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
460
471
|
condition: "!this.getDocumentInfo(query).hasClientExports || this.localState",
|
|
461
472
|
message: "Subscription '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
|
|
462
473
|
},
|
|
463
474
|
|
|
464
|
-
|
|
475
|
+
91: {
|
|
465
476
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
466
477
|
condition: "this.localState",
|
|
467
478
|
message: "%s '%s' contains `@client` fields but local state has not been configured."
|
|
468
479
|
},
|
|
469
480
|
|
|
470
|
-
|
|
481
|
+
92: {
|
|
482
|
+
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
483
|
+
condition: "!hasIncrementalDirective",
|
|
484
|
+
message: "%s '%s' contains `@client` and `@defer` directives. These cannot be used together."
|
|
485
|
+
},
|
|
486
|
+
|
|
487
|
+
93: {
|
|
471
488
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
472
489
|
condition: "this.localState",
|
|
473
490
|
message: "Query '%s' contains `@client` fields with variables provided by `@export` but local state has not been configured."
|
|
474
491
|
},
|
|
475
492
|
|
|
476
|
-
|
|
493
|
+
95: {
|
|
477
494
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
478
495
|
condition: "this.localState",
|
|
479
496
|
message: "Query '%s' contains `@client` fields but local state has not been configured."
|
|
480
497
|
},
|
|
481
498
|
|
|
482
|
-
|
|
499
|
+
96: {
|
|
483
500
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
484
501
|
condition: "didEmitValue",
|
|
485
502
|
message: "The link chain completed without emitting a value. This is likely unintentional and should be updated to emit a value before completing."
|
|
486
503
|
},
|
|
487
504
|
|
|
488
|
-
|
|
505
|
+
97: {
|
|
489
506
|
file: "@apollo/client/__cjs/cache/inmemory/entityStore.cjs",
|
|
490
507
|
condition: "typeof dataId === \"string\"",
|
|
491
508
|
message: "store.merge expects a string ID"
|
|
492
509
|
},
|
|
493
510
|
|
|
494
|
-
|
|
511
|
+
100: {
|
|
495
512
|
file: "@apollo/client/__cjs/cache/inmemory/key-extractor.cjs",
|
|
496
513
|
condition: "extracted !== void 0",
|
|
497
514
|
message: `Missing field '%s' while extracting keyFields from %s`
|
|
498
515
|
},
|
|
499
516
|
|
|
500
|
-
|
|
517
|
+
101: {
|
|
501
518
|
file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
|
|
502
519
|
condition: "!old || old === which",
|
|
503
520
|
message: `Cannot change root %s __typename more than once`
|
|
504
521
|
},
|
|
505
522
|
|
|
506
|
-
|
|
523
|
+
104: {
|
|
507
524
|
file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
|
|
508
525
|
message: "Cannot automatically merge arrays"
|
|
509
526
|
},
|
|
510
527
|
|
|
511
|
-
|
|
528
|
+
105: {
|
|
512
529
|
file: "@apollo/client/__cjs/cache/inmemory/readFromStore.cjs",
|
|
513
530
|
message: `No fragment named %s`
|
|
514
531
|
},
|
|
515
532
|
|
|
516
|
-
|
|
533
|
+
106: {
|
|
517
534
|
file: "@apollo/client/__cjs/cache/inmemory/readFromStore.cjs",
|
|
518
535
|
condition: "!(0, utilities_1.isReference)(value)",
|
|
519
536
|
message: `Missing selection set for object of type %s returned for query field %s`
|
|
520
537
|
},
|
|
521
538
|
|
|
522
|
-
|
|
539
|
+
107: {
|
|
523
540
|
file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
|
|
524
541
|
message: `Could not identify object %s`
|
|
525
542
|
},
|
|
526
543
|
|
|
527
|
-
|
|
544
|
+
109: {
|
|
528
545
|
file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
|
|
529
546
|
message: `No fragment named %s`
|
|
530
547
|
}
|
|
531
548
|
};
|
|
532
549
|
|
|
533
550
|
export const devDebug = {
|
|
534
|
-
|
|
551
|
+
78: {
|
|
535
552
|
file: "@apollo/client/__cjs/core/ApolloClient.cjs",
|
|
536
553
|
message: `In client.refetchQueries, Promise.all promise rejected with error %o`
|
|
537
554
|
},
|
|
538
555
|
|
|
539
|
-
|
|
556
|
+
84: {
|
|
540
557
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
541
558
|
message: `Missing cache result fields: %o`
|
|
542
559
|
}
|
|
@@ -545,84 +562,84 @@ export const devDebug = {
|
|
|
545
562
|
export const devLog = {};
|
|
546
563
|
|
|
547
564
|
export const devWarn = {
|
|
548
|
-
|
|
565
|
+
36: {
|
|
549
566
|
file: "@apollo/client/__cjs/react/hooks/internal/validateSuspenseHookOptions.cjs",
|
|
550
567
|
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."
|
|
551
568
|
},
|
|
552
569
|
|
|
553
|
-
|
|
570
|
+
41: {
|
|
554
571
|
file: "@apollo/client/__cjs/masking/maskDefinition.cjs",
|
|
555
572
|
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."
|
|
556
573
|
},
|
|
557
574
|
|
|
558
|
-
|
|
575
|
+
45: {
|
|
559
576
|
file: "@apollo/client/__cjs/masking/utils.cjs",
|
|
560
577
|
message: "@unmask 'mode' argument does not support variables."
|
|
561
578
|
},
|
|
562
579
|
|
|
563
|
-
|
|
580
|
+
46: {
|
|
564
581
|
file: "@apollo/client/__cjs/masking/utils.cjs",
|
|
565
582
|
message: "@unmask 'mode' argument must be of type string."
|
|
566
583
|
},
|
|
567
584
|
|
|
568
|
-
|
|
585
|
+
47: {
|
|
569
586
|
file: "@apollo/client/__cjs/masking/utils.cjs",
|
|
570
587
|
message: "@unmask 'mode' argument does not recognize value '%s'."
|
|
571
588
|
},
|
|
572
589
|
|
|
573
|
-
|
|
590
|
+
51: {
|
|
574
591
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
575
592
|
message: "Could not find a resolver for the '%s' field. The field value has been set to `null`."
|
|
576
593
|
},
|
|
577
594
|
|
|
578
|
-
|
|
595
|
+
52: {
|
|
579
596
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
580
597
|
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."
|
|
581
598
|
},
|
|
582
599
|
|
|
583
|
-
|
|
600
|
+
53: {
|
|
584
601
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
585
602
|
message: "The '%s' field had no cached value and only forced resolvers were run. The value was set to `null`."
|
|
586
603
|
},
|
|
587
604
|
|
|
588
|
-
|
|
605
|
+
54: {
|
|
589
606
|
file: "@apollo/client/__cjs/local-state/LocalState.cjs",
|
|
590
607
|
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."
|
|
591
608
|
},
|
|
592
609
|
|
|
593
|
-
61: {
|
|
594
|
-
file: "@apollo/client/__cjs/link/http/createHttpLink.cjs",
|
|
595
|
-
message: "Multipart-subscriptions do not support @defer"
|
|
596
|
-
},
|
|
597
|
-
|
|
598
610
|
64: {
|
|
599
611
|
file: "@apollo/client/__cjs/link/core/ApolloLink.cjs",
|
|
600
612
|
message: `You are calling concat on a terminating link, which will have no effect %o`
|
|
601
613
|
},
|
|
602
614
|
|
|
603
|
-
|
|
615
|
+
79: {
|
|
604
616
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
605
617
|
|
|
606
618
|
message: `Called refetch(%o) for query %o, which does not declare a $variables variable.
|
|
607
619
|
Did you mean to call refetch(variables) instead of refetch({ variables })?`
|
|
608
620
|
},
|
|
609
621
|
|
|
610
|
-
|
|
622
|
+
83: {
|
|
623
|
+
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
624
|
+
message: "Cannot poll on 'cache-only' query '%s' and as such, polling is disabled. Please use a different fetch policy."
|
|
625
|
+
},
|
|
626
|
+
|
|
627
|
+
88: {
|
|
611
628
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
612
629
|
message: `Unknown query named "%s" requested in refetchQueries options.include array`
|
|
613
630
|
},
|
|
614
631
|
|
|
615
|
-
|
|
632
|
+
89: {
|
|
616
633
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
617
634
|
message: `Unknown anonymous query requested in refetchQueries options.include array`
|
|
618
635
|
},
|
|
619
636
|
|
|
620
|
-
|
|
637
|
+
94: {
|
|
621
638
|
file: "@apollo/client/__cjs/core/QueryManager.cjs",
|
|
622
639
|
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.'
|
|
623
640
|
},
|
|
624
641
|
|
|
625
|
-
|
|
642
|
+
98: {
|
|
626
643
|
file: "@apollo/client/__cjs/cache/inmemory/entityStore.cjs",
|
|
627
644
|
|
|
628
645
|
message: "cache.modify: You are trying to write a Reference that is not part of the store: %o\n" +
|
|
@@ -630,24 +647,24 @@ Did you mean to call refetch(variables) instead of refetch({ variables })?`
|
|
|
630
647
|
"`toReference(object, true)`"
|
|
631
648
|
},
|
|
632
649
|
|
|
633
|
-
|
|
650
|
+
99: {
|
|
634
651
|
file: "@apollo/client/__cjs/cache/inmemory/entityStore.cjs",
|
|
635
652
|
|
|
636
653
|
message: "cache.modify: Writing an array with a mix of both References and Objects will not result in the Objects being normalized correctly.\n" +
|
|
637
654
|
"Please convert the object instance %o to a Reference before writing it to the cache by calling `toReference(object, true)`."
|
|
638
655
|
},
|
|
639
656
|
|
|
640
|
-
|
|
657
|
+
102: {
|
|
641
658
|
file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
|
|
642
659
|
message: `Inferring subtype %s of supertype %s`
|
|
643
660
|
},
|
|
644
661
|
|
|
645
|
-
|
|
662
|
+
103: {
|
|
646
663
|
file: "@apollo/client/__cjs/cache/inmemory/policies.cjs",
|
|
647
664
|
message: `Undefined 'from' passed to readField with arguments %s`
|
|
648
665
|
},
|
|
649
666
|
|
|
650
|
-
|
|
667
|
+
110: {
|
|
651
668
|
file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
|
|
652
669
|
|
|
653
670
|
message: `Cache data may be lost when replacing the %s field of a %s object.
|
|
@@ -666,29 +683,29 @@ For more information about these options, please refer to the documentation:
|
|
|
666
683
|
`
|
|
667
684
|
},
|
|
668
685
|
|
|
669
|
-
|
|
686
|
+
111: {
|
|
670
687
|
file: "@apollo/client/__cjs/cache/core/cache.cjs",
|
|
671
688
|
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."
|
|
672
689
|
}
|
|
673
690
|
};
|
|
674
691
|
|
|
675
692
|
export const devError = {
|
|
676
|
-
|
|
693
|
+
14: {
|
|
677
694
|
file: "@apollo/client/__cjs/utilities/internal/removeDirectivesFromDocument.cjs",
|
|
678
695
|
message: `Could not find operation or fragment`
|
|
679
696
|
},
|
|
680
697
|
|
|
681
|
-
|
|
698
|
+
34: {
|
|
682
699
|
file: "@apollo/client/__cjs/react/hooks/useSyncExternalStore.cjs",
|
|
683
700
|
message: "The result of getSnapshot should be cached to avoid an infinite loop"
|
|
684
701
|
},
|
|
685
702
|
|
|
686
|
-
|
|
703
|
+
82: {
|
|
687
704
|
file: "@apollo/client/__cjs/core/ObservableQuery.cjs",
|
|
688
705
|
message: "Unhandled GraphQL subscription error"
|
|
689
706
|
},
|
|
690
707
|
|
|
691
|
-
|
|
708
|
+
108: {
|
|
692
709
|
file: "@apollo/client/__cjs/cache/inmemory/writeToStore.cjs",
|
|
693
710
|
message: `Missing field '%s' while writing result %o`
|
|
694
711
|
}
|