@apollo/client 3.9.7 → 3.10.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.changeset/flat-singers-kiss.md +5 -0
- package/.changeset/pre.json +11 -0
- package/.changeset/tasty-pillows-ring.md +5 -0
- package/CHANGELOG.md +12 -0
- package/apollo-client.cjs +46 -10
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/cache/cache.cjs +27 -0
- package/cache/cache.cjs.map +1 -1
- package/cache/cache.cjs.native.js +27 -0
- package/cache/core/cache.d.ts +83 -1
- package/cache/core/cache.js +30 -1
- package/cache/core/cache.js.map +1 -1
- package/core/ApolloClient.d.ts +26 -8
- package/core/ApolloClient.js +26 -7
- package/core/ApolloClient.js.map +1 -1
- package/core/core.cjs +4 -1
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +4 -1
- package/core/watchQueryOptions.d.ts +3 -3
- package/dev/dev.cjs +1 -1
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +1 -1
- package/package.json +17 -17
- package/react/hooks/hooks.cjs +26 -17
- package/react/hooks/hooks.cjs.map +1 -1
- package/react/hooks/hooks.cjs.native.js +26 -17
- package/react/hooks/useFragment.d.ts +1 -1
- package/react/hooks/useFragment.js +22 -14
- package/react/hooks/useFragment.js.map +1 -1
- package/react/internal/cache/QueryReference.d.ts +2 -2
- package/react/internal/cache/QueryReference.js.map +1 -1
- package/react/query-preloader/createQueryPreloader.d.ts +6 -6
- package/react/query-preloader/createQueryPreloader.js.map +1 -1
- package/react/types/types.d.ts +3 -3
- package/react/types/types.documentation.d.ts +4 -4
- package/react/types/types.documentation.js.map +1 -1
- 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/version.js +1 -1
package/core/core.cjs
CHANGED
|
@@ -20,7 +20,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
20
20
|
|
|
21
21
|
var equal__default = /*#__PURE__*/_interopDefaultLegacy(equal);
|
|
22
22
|
|
|
23
|
-
var version = "3.
|
|
23
|
+
var version = "3.10.0-alpha.1";
|
|
24
24
|
|
|
25
25
|
function isNonNullObject(obj) {
|
|
26
26
|
return obj !== null && typeof obj === "object";
|
|
@@ -2489,6 +2489,9 @@ var ApolloClient = (function () {
|
|
|
2489
2489
|
if (optimistic === void 0) { optimistic = false; }
|
|
2490
2490
|
return this.cache.readQuery(options, optimistic);
|
|
2491
2491
|
};
|
|
2492
|
+
ApolloClient.prototype.watchFragment = function (options) {
|
|
2493
|
+
return this.cache.watchFragment(options);
|
|
2494
|
+
};
|
|
2492
2495
|
ApolloClient.prototype.readFragment = function (options, optimistic) {
|
|
2493
2496
|
if (optimistic === void 0) { optimistic = false; }
|
|
2494
2497
|
return this.cache.readFragment(options, optimistic);
|