@apollo/client 3.11.3 → 3.11.5

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 (44) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/apollo-client.cjs +17 -25
  3. package/apollo-client.cjs.map +1 -1
  4. package/apollo-client.min.cjs +1 -1
  5. package/cache/core/types/common.d.ts +5 -3
  6. package/cache/core/types/common.js.map +1 -1
  7. package/cache/inmemory/entityStore.js.map +1 -1
  8. package/core/ObservableQuery.d.ts +1 -1
  9. package/core/ObservableQuery.js +7 -0
  10. package/core/ObservableQuery.js.map +1 -1
  11. package/core/core.cjs +4 -1
  12. package/core/core.cjs.map +1 -1
  13. package/core/core.cjs.native.js +4 -1
  14. package/dev/dev.cjs +1 -1
  15. package/dev/dev.cjs.map +1 -1
  16. package/dev/dev.cjs.native.js +1 -1
  17. package/package.json +4 -4
  18. package/react/hooks/hooks.cjs +12 -23
  19. package/react/hooks/hooks.cjs.map +1 -1
  20. package/react/hooks/hooks.cjs.native.js +12 -23
  21. package/react/hooks/internal/index.d.ts +0 -1
  22. package/react/hooks/internal/index.js +0 -1
  23. package/react/hooks/internal/index.js.map +1 -1
  24. package/react/hooks/useFragment.js +21 -15
  25. package/react/hooks/useFragment.js.map +1 -1
  26. package/react/internal/internal.cjs +1 -1
  27. package/react/internal/internal.cjs.map +1 -1
  28. package/react/internal/internal.cjs.native.js +1 -1
  29. package/react/types/types.d.ts +1 -1
  30. package/react/types/types.js.map +1 -1
  31. package/utilities/caching/sizes.d.ts +2 -2
  32. package/utilities/caching/sizes.js.map +1 -1
  33. package/utilities/globals/globals.cjs +1 -1
  34. package/utilities/globals/globals.cjs.map +1 -1
  35. package/utilities/globals/globals.cjs.native.js +1 -1
  36. package/utilities/observables/Concast.js +1 -1
  37. package/utilities/observables/Concast.js.map +1 -1
  38. package/utilities/utilities.cjs +1 -1
  39. package/utilities/utilities.cjs.map +1 -1
  40. package/utilities/utilities.cjs.native.js +1 -1
  41. package/version.js +1 -1
  42. package/react/hooks/internal/useLazyRef.d.ts +0 -3
  43. package/react/hooks/internal/useLazyRef.js +0 -10
  44. package/react/hooks/internal/useLazyRef.js.map +0 -1
@@ -1447,7 +1447,7 @@ var Concast = (function (_super) {
1447
1447
  _this.cancel = function (reason) {
1448
1448
  _this.reject(reason);
1449
1449
  _this.sources = [];
1450
- _this.handlers.complete();
1450
+ _this.handlers.error(reason);
1451
1451
  };
1452
1452
  _this.promise.catch(function (_) { });
1453
1453
  if (typeof sources === "function") {
package/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export var version = "3.11.3";
1
+ export var version = "3.11.5";
2
2
  //# sourceMappingURL=version.js.map
@@ -1,3 +0,0 @@
1
- import * as React from "rehackt";
2
- export declare function useLazyRef<T>(getInitialValue: () => T): React.MutableRefObject<T>;
3
- //# sourceMappingURL=useLazyRef.d.ts.map
@@ -1,10 +0,0 @@
1
- import * as React from "rehackt";
2
- var INIT = {};
3
- export function useLazyRef(getInitialValue) {
4
- var ref = React.useRef(INIT);
5
- if (ref.current === INIT) {
6
- ref.current = getInitialValue();
7
- }
8
- return ref;
9
- }
10
- //# sourceMappingURL=useLazyRef.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useLazyRef.js","sourceRoot":"","sources":["../../../../src/react/hooks/internal/useLazyRef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,IAAM,IAAI,GAAG,EAAE,CAAC;AAEhB,MAAM,UAAU,UAAU,CAAI,eAAwB;IACpD,IAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAI,IAAoB,CAAC,CAAC;IAElD,IAAI,GAAG,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;QACzB,GAAG,CAAC,OAAO,GAAG,eAAe,EAAE,CAAC;IAClC,CAAC;IAED,OAAO,GAAG,CAAC;AACb,CAAC","sourcesContent":["import * as React from \"rehackt\";\n\nconst INIT = {};\n\nexport function useLazyRef<T>(getInitialValue: () => T) {\n const ref = React.useRef<T>(INIT as unknown as T);\n\n if (ref.current === INIT) {\n ref.current = getInitialValue();\n }\n\n return ref;\n}\n"]}