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