@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.
Files changed (41) hide show
  1. package/.changeset/flat-singers-kiss.md +5 -0
  2. package/.changeset/pre.json +11 -0
  3. package/.changeset/tasty-pillows-ring.md +5 -0
  4. package/CHANGELOG.md +12 -0
  5. package/apollo-client.cjs +46 -10
  6. package/apollo-client.cjs.map +1 -1
  7. package/apollo-client.min.cjs +1 -1
  8. package/cache/cache.cjs +27 -0
  9. package/cache/cache.cjs.map +1 -1
  10. package/cache/cache.cjs.native.js +27 -0
  11. package/cache/core/cache.d.ts +83 -1
  12. package/cache/core/cache.js +30 -1
  13. package/cache/core/cache.js.map +1 -1
  14. package/core/ApolloClient.d.ts +26 -8
  15. package/core/ApolloClient.js +26 -7
  16. package/core/ApolloClient.js.map +1 -1
  17. package/core/core.cjs +4 -1
  18. package/core/core.cjs.map +1 -1
  19. package/core/core.cjs.native.js +4 -1
  20. package/core/watchQueryOptions.d.ts +3 -3
  21. package/dev/dev.cjs +1 -1
  22. package/dev/dev.cjs.map +1 -1
  23. package/dev/dev.cjs.native.js +1 -1
  24. package/package.json +17 -17
  25. package/react/hooks/hooks.cjs +26 -17
  26. package/react/hooks/hooks.cjs.map +1 -1
  27. package/react/hooks/hooks.cjs.native.js +26 -17
  28. package/react/hooks/useFragment.d.ts +1 -1
  29. package/react/hooks/useFragment.js +22 -14
  30. package/react/hooks/useFragment.js.map +1 -1
  31. package/react/internal/cache/QueryReference.d.ts +2 -2
  32. package/react/internal/cache/QueryReference.js.map +1 -1
  33. package/react/query-preloader/createQueryPreloader.d.ts +6 -6
  34. package/react/query-preloader/createQueryPreloader.js.map +1 -1
  35. package/react/types/types.d.ts +3 -3
  36. package/react/types/types.documentation.d.ts +4 -4
  37. package/react/types/types.documentation.js.map +1 -1
  38. package/utilities/globals/globals.cjs +1 -1
  39. package/utilities/globals/globals.cjs.map +1 -1
  40. package/utilities/globals/globals.cjs.native.js +1 -1
  41. 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.9.7";
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);