@apollo/client 3.12.6 → 3.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/apollo-client.cjs +19 -14
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/cache/cache.cjs +2 -1
- package/cache/cache.cjs.map +1 -1
- package/cache/cache.cjs.native.js +2 -1
- package/cache/core/cache.js +4 -1
- package/cache/core/cache.js.map +1 -1
- package/cache/index.d.ts +1 -1
- package/cache/index.js +0 -1
- package/cache/index.js.map +1 -1
- package/core/core.cjs +1 -1
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +1 -1
- package/core/index.d.ts +2 -2
- package/core/index.js +0 -2
- package/core/index.js.map +1 -1
- package/dev/dev.cjs +1 -1
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +1 -1
- package/errors/index.js.map +1 -1
- package/link/core/index.d.ts +1 -1
- package/link/core/index.js +0 -1
- package/link/core/index.js.map +1 -1
- package/link/core/types.d.ts +2 -2
- package/link/core/types.js.map +1 -1
- package/link/error/error.cjs +17 -8
- package/link/error/error.cjs.map +1 -1
- package/link/error/error.cjs.native.js +17 -8
- package/link/error/index.d.ts +17 -1
- package/link/error/index.js +17 -8
- package/link/error/index.js.map +1 -1
- package/link/persisted-queries/index.d.ts +2 -2
- package/package.json +28 -24
- package/react/components/index.d.ts +1 -1
- package/react/components/index.js +0 -1
- package/react/components/index.js.map +1 -1
- package/react/hoc/index.d.ts +1 -1
- package/react/hoc/index.js +0 -1
- package/react/hoc/index.js.map +1 -1
- package/react/hooks/hooks.cjs +16 -12
- package/react/hooks/hooks.cjs.map +1 -1
- package/react/hooks/hooks.cjs.native.js +16 -12
- package/react/hooks/internal/useDeepMemo.js +1 -0
- package/react/hooks/internal/useDeepMemo.js.map +1 -1
- package/react/hooks/useBackgroundQuery.js +4 -2
- package/react/hooks/useBackgroundQuery.js.map +1 -1
- package/react/hooks/useFragment.js +4 -2
- package/react/hooks/useFragment.js.map +1 -1
- package/react/hooks/useMutation.js +1 -0
- package/react/hooks/useMutation.js.map +1 -1
- package/react/hooks/useQuery.js +5 -2
- package/react/hooks/useQuery.js.map +1 -1
- package/react/hooks/useQueryRefHandlers.js +2 -2
- package/react/hooks/useQueryRefHandlers.js.map +1 -1
- package/react/hooks/useReadQuery.js +2 -2
- package/react/hooks/useReadQuery.js.map +1 -1
- package/react/hooks/useSubscription.js +1 -0
- package/react/hooks/useSubscription.js.map +1 -1
- package/react/hooks/useSuspenseQuery.js +5 -2
- package/react/hooks/useSuspenseQuery.js.map +1 -1
- package/react/index.d.ts +1 -1
- package/react/index.js +0 -1
- package/react/index.js.map +1 -1
- package/react/internal/internal.cjs +1 -1
- package/react/internal/internal.cjs.map +1 -1
- package/react/internal/internal.cjs.native.js +1 -1
- package/testing/internal/ObservableStream.d.ts +3 -0
- package/testing/internal/ObservableStream.js +30 -1
- package/testing/internal/ObservableStream.js.map +1 -1
- package/testing/internal/incremental.d.ts +23 -0
- package/testing/internal/incremental.js +124 -0
- package/testing/internal/incremental.js.map +1 -0
- package/testing/internal/index.d.ts +1 -0
- package/testing/internal/index.js +1 -0
- package/testing/internal/index.js.map +1 -1
- package/testing/internal/scenarios/index.d.ts +1 -0
- package/testing/internal/scenarios/index.js.map +1 -1
- package/testing/matchers/index.js +4 -0
- package/testing/matchers/index.js.map +1 -1
- package/testing/matchers/toEmitAnything.js +1 -1
- package/testing/matchers/toEmitAnything.js.map +1 -1
- package/testing/matchers/toEqualApolloQueryResult.d.ts +6 -0
- package/testing/matchers/toEqualApolloQueryResult.js +20 -0
- package/testing/matchers/toEqualApolloQueryResult.js.map +1 -0
- package/testing/matchers/toEqualQueryResult.d.ts +9 -0
- package/testing/matchers/toEqualQueryResult.js +40 -0
- package/testing/matchers/toEqualQueryResult.js.map +1 -0
- package/utilities/globals/globals.cjs +1 -1
- package/utilities/globals/globals.cjs.map +1 -1
- package/utilities/globals/globals.cjs.native.js +1 -1
- package/utilities/index.d.ts +1 -1
- package/utilities/index.js +0 -1
- package/utilities/index.js.map +1 -1
- package/version.js +1 -1
package/cache/cache.cjs
CHANGED
|
@@ -193,7 +193,8 @@ var ApolloCache = (function () {
|
|
|
193
193
|
: diff.result;
|
|
194
194
|
if (
|
|
195
195
|
latestDiff &&
|
|
196
|
-
equalByQuery(query, { data: latestDiff
|
|
196
|
+
equalByQuery(query, { data: latestDiff.result }, { data: data },
|
|
197
|
+
options.variables)) {
|
|
197
198
|
return;
|
|
198
199
|
}
|
|
199
200
|
var result = {
|