@apollo/client 3.13.3 → 3.13.4

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @apollo/client
2
2
 
3
+ ## 3.13.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#12420](https://github.com/apollographql/apollo-client/pull/12420) [`fee9368`](https://github.com/apollographql/apollo-client/commit/fee9368750e242ea03dea8d1557683506d411d8d) Thanks [@jorenbroekema](https://github.com/jorenbroekema)! - Use import star from `rehackt` to prevent issues with importing named exports from external CJS modules.
8
+
3
9
  ## 3.13.3
4
10
 
5
11
  ### Patch Changes
package/apollo-client.cjs CHANGED
@@ -30,9 +30,8 @@ function _interopNamespace(e) {
30
30
 
31
31
  var equal__default = /*#__PURE__*/_interopDefaultLegacy(equal);
32
32
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
33
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
34
33
 
35
- var version = "3.13.3";
34
+ var version = "3.13.4";
36
35
 
37
36
  function maybe(thunk) {
38
37
  try {
@@ -9230,14 +9229,14 @@ function useSuspenseFragment_(options) {
9230
9229
  var client = useApolloClient(options.client);
9231
9230
  var from = options.from, variables = options.variables;
9232
9231
  var cache = client.cache;
9233
- var id = React.useMemo(function () {
9232
+ var id = React__namespace.useMemo(function () {
9234
9233
  return typeof from === "string" ? from
9235
9234
  : from === null ? null
9236
9235
  : cache.identify(from);
9237
9236
  }, [cache, from]);
9238
9237
  var fragmentRef = id === null ? null : (getSuspenseCache(client).getFragmentRef([id, options.fragment, canonicalStringify(variables)], client, tslib.__assign(tslib.__assign({}, options), { variables: variables, from: id })));
9239
- var _a = React__default.useState(fragmentRef === null ? NULL_PLACEHOLDER : ([fragmentRef.key, fragmentRef.promise])), current = _a[0], setPromise = _a[1];
9240
- React__default.useEffect(function () {
9238
+ var _a = React__namespace.useState(fragmentRef === null ? NULL_PLACEHOLDER : ([fragmentRef.key, fragmentRef.promise])), current = _a[0], setPromise = _a[1];
9239
+ React__namespace.useEffect(function () {
9241
9240
  if (fragmentRef === null) {
9242
9241
  return;
9243
9242
  }