@apollo/client 3.9.1 → 3.9.3
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 +14 -0
- package/apollo-client.cjs +3 -5
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/core/ApolloClient.d.ts +2 -1
- package/core/ApolloClient.js +2 -1
- package/core/ApolloClient.js.map +1 -1
- package/core/core.cjs +1 -1
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +1 -1
- package/dev/dev.cjs +1 -1
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +1 -1
- package/link/core/types.js.map +1 -1
- package/package.json +13 -13
- package/react/hooks/hooks.cjs +2 -4
- package/react/hooks/hooks.cjs.map +1 -1
- package/react/hooks/hooks.cjs.native.js +2 -4
- package/react/hooks/internal/useLazyRef.d.ts +2 -1
- package/react/hooks/internal/useLazyRef.js +1 -1
- package/react/hooks/internal/useLazyRef.js.map +1 -1
- package/react/hooks/useFragment.d.ts +10 -1
- package/react/hooks/useFragment.js +1 -1
- package/react/hooks/useFragment.js.map +1 -1
- package/react/types/types.d.ts +8 -8
- package/react/types/types.js.map +1 -1
- package/utilities/globals/globals.cjs +1 -1
- package/utilities/globals/globals.cjs.map +1 -1
- package/utilities/globals/globals.cjs.native.js +1 -1
- package/version.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @apollo/client
|
|
2
2
|
|
|
3
|
+
## 3.9.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#11525](https://github.com/apollographql/apollo-client/pull/11525) [`dce923a`](https://github.com/apollographql/apollo-client/commit/dce923ae57eb6b6d889e2980635cb90e2c6cbca3) Thanks [@vezaynk](https://github.com/vezaynk)! - Allows passing in client via options to useFragment
|
|
8
|
+
|
|
9
|
+
- [#11558](https://github.com/apollographql/apollo-client/pull/11558) [`8cba16f`](https://github.com/apollographql/apollo-client/commit/8cba16f041609443111ecf5fb58faea1b3e79569) Thanks [@alessbell](https://github.com/alessbell)! - Fix [`unbound-method`](https://github.com/apollographql/apollo-client/issues/11554) linter error on ObservableQuery methods exposed on useQuery's QueryResult object.
|
|
10
|
+
|
|
11
|
+
## 3.9.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#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.
|
|
16
|
+
|
|
3
17
|
## 3.9.1
|
|
4
18
|
|
|
5
19
|
### Patch 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.
|
|
34
|
+
var version = "3.9.3";
|
|
37
35
|
|
|
38
36
|
function maybe(thunk) {
|
|
39
37
|
try {
|
|
@@ -7995,7 +7993,7 @@ function useRenderGuard() {
|
|
|
7995
7993
|
|
|
7996
7994
|
var INIT = {};
|
|
7997
7995
|
function useLazyRef(getInitialValue) {
|
|
7998
|
-
var ref = React__namespace
|
|
7996
|
+
var ref = React__namespace.useRef(INIT);
|
|
7999
7997
|
if (ref.current === INIT) {
|
|
8000
7998
|
ref.current = getInitialValue();
|
|
8001
7999
|
}
|
|
@@ -8018,7 +8016,7 @@ var __use = realHook ||
|
|
|
8018
8016
|
};
|
|
8019
8017
|
|
|
8020
8018
|
function useFragment(options) {
|
|
8021
|
-
var cache = useApolloClient().cache;
|
|
8019
|
+
var cache = useApolloClient(options.client).cache;
|
|
8022
8020
|
var diffOptions = useDeepMemo(function () {
|
|
8023
8021
|
var fragment = options.fragment, fragmentName = options.fragmentName, from = options.from, _a = options.optimistic, optimistic = _a === void 0 ? true : _a, rest = tslib.__rest(options, ["fragment", "fragmentName", "from", "optimistic"]);
|
|
8024
8022
|
return tslib.__assign(tslib.__assign({}, rest), { returnPartialData: true, id: typeof from === "string" ? from : cache.identify(from), query: cache["getFragmentDoc"](fragment, fragmentName), optimistic: optimistic });
|