@apollo/client 3.11.7 → 3.11.9

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 (58) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/apollo-client.cjs +5 -5
  3. package/apollo-client.cjs.map +1 -1
  4. package/apollo-client.min.cjs +1 -1
  5. package/config/jest/setup.js +5 -0
  6. package/config/jest/setup.js.map +1 -1
  7. package/core/core.cjs +1 -1
  8. package/core/core.cjs.map +1 -1
  9. package/core/core.cjs.native.js +1 -1
  10. package/dev/dev.cjs +1 -1
  11. package/dev/dev.cjs.map +1 -1
  12. package/dev/dev.cjs.native.js +1 -1
  13. package/link/http/http.cjs +3 -3
  14. package/link/http/http.cjs.map +1 -1
  15. package/link/http/http.cjs.native.js +3 -3
  16. package/link/http/selectHttpOptionsAndBody.js +3 -3
  17. package/link/http/selectHttpOptionsAndBody.js.map +1 -1
  18. package/package.json +4 -2
  19. package/react/internal/cache/QueryReference.js +1 -1
  20. package/react/internal/cache/QueryReference.js.map +1 -1
  21. package/react/internal/internal.cjs +2 -2
  22. package/react/internal/internal.cjs.map +1 -1
  23. package/react/internal/internal.cjs.native.js +2 -2
  24. package/testing/internal/ObservableStream.d.ts +11 -15
  25. package/testing/internal/ObservableStream.js +18 -62
  26. package/testing/internal/ObservableStream.js.map +1 -1
  27. package/testing/internal/index.d.ts +1 -2
  28. package/testing/internal/index.js +1 -2
  29. package/testing/internal/index.js.map +1 -1
  30. package/testing/internal/renderHelpers.d.ts +13 -2
  31. package/testing/internal/renderHelpers.js +20 -12
  32. package/testing/internal/renderHelpers.js.map +1 -1
  33. package/testing/matchers/index.js +0 -3
  34. package/testing/matchers/index.js.map +1 -1
  35. package/utilities/globals/globals.cjs +1 -1
  36. package/utilities/globals/globals.cjs.map +1 -1
  37. package/utilities/globals/globals.cjs.native.js +1 -1
  38. package/utilities/subscriptions/relay/relay.cjs.map +1 -1
  39. package/utilities/subscriptions/urql/urql.cjs.map +1 -1
  40. package/version.js +1 -1
  41. package/testing/internal/profile/Render.d.ts +0 -69
  42. package/testing/internal/profile/Render.js +0 -144
  43. package/testing/internal/profile/Render.js.map +0 -1
  44. package/testing/internal/profile/context.d.ts +0 -10
  45. package/testing/internal/profile/context.js +0 -14
  46. package/testing/internal/profile/context.js.map +0 -1
  47. package/testing/internal/profile/index.d.ts +0 -4
  48. package/testing/internal/profile/index.js +0 -2
  49. package/testing/internal/profile/index.js.map +0 -1
  50. package/testing/internal/profile/profile.d.ts +0 -109
  51. package/testing/internal/profile/profile.js +0 -304
  52. package/testing/internal/profile/profile.js.map +0 -1
  53. package/testing/internal/profile/traces.d.ts +0 -7
  54. package/testing/internal/profile/traces.js +0 -30
  55. package/testing/internal/profile/traces.js.map +0 -1
  56. package/testing/matchers/ProfiledComponent.d.ts +0 -8
  57. package/testing/matchers/ProfiledComponent.js +0 -110
  58. package/testing/matchers/ProfiledComponent.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @apollo/client
2
2
 
3
+ ## 3.11.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#12110](https://github.com/apollographql/apollo-client/pull/12110) [`a3f95c6`](https://github.com/apollographql/apollo-client/commit/a3f95c6f7623060bbf68b418b0ab268fabc0c9b6) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix an issue where errors returned from a `fetchMore` call from a Suspense hook would cause a Suspense boundary to be shown indefinitely.
8
+
9
+ ## 3.11.8
10
+
11
+ ### Patch Changes
12
+
13
+ - [#12054](https://github.com/apollographql/apollo-client/pull/12054) [`35cf186`](https://github.com/apollographql/apollo-client/commit/35cf186ed9237e41735f150e0cbf4edd995ab0d9) Thanks [@phryneas](https://github.com/phryneas)! - Fixed a bug where incorrect object access in some Safari extensions could cause a crash.
14
+
3
15
  ## 3.11.7
4
16
 
5
17
  ### Patch Changes
package/apollo-client.cjs CHANGED
@@ -31,7 +31,7 @@ function _interopNamespace(e) {
31
31
  var equal__default = /*#__PURE__*/_interopDefaultLegacy(equal);
32
32
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
33
33
 
34
- var version = "3.11.7";
34
+ var version = "3.11.9";
35
35
 
36
36
  function maybe(thunk) {
37
37
  try {
@@ -2170,20 +2170,20 @@ function selectHttpOptionsAndBodyInternal(operation, printer) {
2170
2170
  }
2171
2171
  function removeDuplicateHeaders(headers, preserveHeaderCase) {
2172
2172
  if (!preserveHeaderCase) {
2173
- var normalizedHeaders_1 = Object.create(null);
2173
+ var normalizedHeaders_1 = {};
2174
2174
  Object.keys(Object(headers)).forEach(function (name) {
2175
2175
  normalizedHeaders_1[name.toLowerCase()] = headers[name];
2176
2176
  });
2177
2177
  return normalizedHeaders_1;
2178
2178
  }
2179
- var headerData = Object.create(null);
2179
+ var headerData = {};
2180
2180
  Object.keys(Object(headers)).forEach(function (name) {
2181
2181
  headerData[name.toLowerCase()] = {
2182
2182
  originalName: name,
2183
2183
  value: headers[name],
2184
2184
  };
2185
2185
  });
2186
- var normalizedHeaders = Object.create(null);
2186
+ var normalizedHeaders = {};
2187
2187
  Object.keys(headerData).forEach(function (name) {
2188
2188
  normalizedHeaders[headerData[name].originalName] = headerData[name].value;
2189
2189
  });
@@ -8458,7 +8458,7 @@ var InternalQueryReference = (function () {
8458
8458
  }
8459
8459
  });
8460
8460
  })
8461
- .catch(function () { });
8461
+ .catch(function (error) { var _a; return (_a = _this.reject) === null || _a === void 0 ? void 0 : _a.call(_this, error); });
8462
8462
  return returnedPromise;
8463
8463
  };
8464
8464
  InternalQueryReference.prototype.subscribeToQuery = function () {