@apollo/client 3.9.0 → 3.9.2

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,21 @@
1
1
  # @apollo/client
2
2
 
3
+ ## 3.9.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#11552](https://github.com/apollographql/apollo-client/pull/11552) [`6ac2b0c`](https://github.com/apollographql/apollo-client/commit/6ac2b0ce4d999c63478d85b40ad56ccda9624797) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix import in `useLazyRef` causing import issues in the nextjs package.
8
+
9
+ ## 3.9.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#11516](https://github.com/apollographql/apollo-client/pull/11516) [`8390fea`](https://github.com/apollographql/apollo-client/commit/8390fea13175bada8361ba5f0df2e43197085aba) Thanks [@phryneas](https://github.com/phryneas)! - Fix an incorrect string substitution in a warning message.
14
+
15
+ - [#11515](https://github.com/apollographql/apollo-client/pull/11515) [`c9bf93b`](https://github.com/apollographql/apollo-client/commit/c9bf93bdc2816f7fdba96961e1435f463f440bd1) Thanks [@vladar](https://github.com/vladar)! - Avoid redundant refetchQueries call for mutation with no-cache policy (fixes #10238)
16
+
17
+ - [#11545](https://github.com/apollographql/apollo-client/pull/11545) [`84a6bea`](https://github.com/apollographql/apollo-client/commit/84a6beaeae69acdffea49ba6b8242752cc188172) Thanks [@alessbell](https://github.com/alessbell)! - Remove error thrown by `inFlightLinkObservables` intended to be removed before 3.9 release.
18
+
3
19
  ## 3.9.0
4
20
 
5
21
  ### Minor Changes
package/apollo-client.cjs CHANGED
@@ -13,7 +13,6 @@ var optimism = require('optimism');
13
13
  var trie = require('@wry/trie');
14
14
  var graphqlTag = require('graphql-tag');
15
15
  var React = require('rehackt');
16
- var React$1 = require('react');
17
16
 
18
17
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
19
18
 
@@ -31,9 +30,8 @@ function _interopNamespace(e) {
31
30
 
32
31
  var equal__default = /*#__PURE__*/_interopDefaultLegacy(equal);
33
32
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
34
- var React__namespace$1 = /*#__PURE__*/_interopNamespace(React$1);
35
33
 
36
- var version = "3.9.0";
34
+ var version = "3.9.2";
37
35
 
38
36
  function maybe(thunk) {
39
37
  try {
@@ -6026,11 +6024,6 @@ var QueryManager = (function () {
6026
6024
  if ((this.onBroadcast = onBroadcast)) {
6027
6025
  this.mutationStore = Object.create(null);
6028
6026
  }
6029
- Object.defineProperty(this.inFlightLinkObservables, "get", {
6030
- value: function () {
6031
- throw new Error("This version of Apollo Client requires at least @apollo/experimental-nextjs-app-support version 0.5.2.");
6032
- },
6033
- });
6034
6027
  }
6035
6028
  QueryManager.prototype.stop = function () {
6036
6029
  var _this = this;
@@ -6217,7 +6210,7 @@ var QueryManager = (function () {
6217
6210
  }
6218
6211
  }
6219
6212
  if (cacheWrites.length > 0 ||
6220
- mutation.refetchQueries ||
6213
+ (mutation.refetchQueries || "").length > 0 ||
6221
6214
  mutation.update ||
6222
6215
  mutation.onQueryUpdated ||
6223
6216
  mutation.removeOptimistic) {
@@ -8000,7 +7993,7 @@ function useRenderGuard() {
8000
7993
 
8001
7994
  var INIT = {};
8002
7995
  function useLazyRef(getInitialValue) {
8003
- var ref = React__namespace$1.useRef(INIT);
7996
+ var ref = React__namespace.useRef(INIT);
8004
7997
  if (ref.current === INIT) {
8005
7998
  ref.current = getInitialValue();
8006
7999
  }