@apollo/client 3.9.6 → 3.9.8
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 +20 -0
- package/apollo-client.cjs +41 -34
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/core/ApolloClient.d.ts +7 -7
- package/core/ApolloClient.js +6 -6
- package/core/ApolloClient.js.map +1 -1
- package/core/LocalState.js +13 -13
- package/core/LocalState.js.map +1 -1
- package/core/QueryManager.js +7 -7
- package/core/QueryManager.js.map +1 -1
- package/core/core.cjs +21 -21
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +21 -21
- package/core/watchQueryOptions.d.ts +3 -3
- package/dev/dev.cjs +18 -15
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +18 -15
- package/dev/index.d.ts +2 -0
- package/dev/index.js +1 -0
- package/dev/index.js.map +1 -1
- package/dev/loadErrorMessageHandler.d.ts +6 -1
- package/dev/loadErrorMessageHandler.js +17 -14
- package/dev/loadErrorMessageHandler.js.map +1 -1
- package/dev/setErrorMessageHandler.d.ts +34 -0
- package/dev/setErrorMessageHandler.js +9 -0
- package/dev/setErrorMessageHandler.js.map +1 -0
- package/link/http/http.cjs +11 -8
- package/link/http/http.cjs.map +1 -1
- package/link/http/http.cjs.native.js +11 -8
- package/link/http/parseAndCheckHttpResponse.js +11 -8
- package/link/http/parseAndCheckHttpResponse.js.map +1 -1
- package/package.json +24 -24
- package/react/hooks/hooks.cjs +4 -1
- package/react/hooks/hooks.cjs.map +1 -1
- package/react/hooks/hooks.cjs.native.js +4 -1
- package/react/hooks/internal/useRenderGuard.js +1 -1
- package/react/hooks/internal/useRenderGuard.js.map +1 -1
- package/react/hooks/useFragment.d.ts +1 -1
- package/react/hooks/useFragment.js +5 -0
- package/react/hooks/useFragment.js.map +1 -1
- package/react/internal/cache/QueryReference.d.ts +2 -2
- package/react/internal/cache/QueryReference.js +13 -4
- package/react/internal/cache/QueryReference.js.map +1 -1
- package/react/internal/internal.cjs +5 -4
- package/react/internal/internal.cjs.map +1 -1
- package/react/internal/internal.cjs.native.js +5 -4
- package/react/query-preloader/createQueryPreloader.d.ts +6 -6
- package/react/query-preloader/createQueryPreloader.js.map +1 -1
- package/react/types/types.d.ts +3 -3
- package/react/types/types.documentation.d.ts +4 -4
- package/react/types/types.documentation.js.map +1 -1
- package/testing/internal/ObservableStream.js +3 -3
- package/testing/internal/ObservableStream.js.map +1 -1
- package/testing/internal/profile/profile.js +6 -6
- package/testing/internal/profile/profile.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/utilities/globals/invariantWrappers.d.ts +1 -1
- package/utilities/globals/invariantWrappers.js.map +1 -1
- package/utilities/subscriptions/relay/relay.cjs +11 -8
- package/utilities/subscriptions/relay/relay.cjs.map +1 -1
- package/utilities/subscriptions/relay/relay.cjs.native.js +11 -8
- package/utilities/subscriptions/urql/urql.cjs +11 -8
- package/utilities/subscriptions/urql/urql.cjs.map +1 -1
- package/utilities/subscriptions/urql/urql.cjs.native.js +11 -8
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollo/client",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.8",
|
|
4
4
|
"description": "A fully-featured caching GraphQL client.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"keywords": [
|
|
@@ -67,15 +67,15 @@
|
|
|
67
67
|
"zen-observable-ts": "^1.2.5"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@arethetypeswrong/cli": "0.
|
|
71
|
-
"@babel/parser": "7.
|
|
70
|
+
"@arethetypeswrong/cli": "0.15.2",
|
|
71
|
+
"@babel/parser": "7.24.0",
|
|
72
72
|
"@changesets/changelog-github": "0.5.0",
|
|
73
73
|
"@changesets/cli": "2.27.1",
|
|
74
74
|
"@graphql-tools/schema": "10.0.3",
|
|
75
|
-
"@microsoft/api-extractor": "7.
|
|
75
|
+
"@microsoft/api-extractor": "7.42.3",
|
|
76
76
|
"@rollup/plugin-node-resolve": "11.2.1",
|
|
77
|
-
"@size-limit/esbuild-why": "11.
|
|
78
|
-
"@size-limit/preset-small-lib": "11.
|
|
77
|
+
"@size-limit/esbuild-why": "11.1.1",
|
|
78
|
+
"@size-limit/preset-small-lib": "11.1.1",
|
|
79
79
|
"@testing-library/jest-dom": "6.4.2",
|
|
80
80
|
"@testing-library/react": "14.2.1",
|
|
81
81
|
"@testing-library/react-12": "npm:@testing-library/react@^12",
|
|
@@ -86,28 +86,28 @@
|
|
|
86
86
|
"@types/glob": "8.1.0",
|
|
87
87
|
"@types/hoist-non-react-statics": "3.3.5",
|
|
88
88
|
"@types/jest": "29.5.12",
|
|
89
|
-
"@types/lodash": "4.
|
|
90
|
-
"@types/node": "20.11.
|
|
89
|
+
"@types/lodash": "4.17.0",
|
|
90
|
+
"@types/node": "20.11.28",
|
|
91
91
|
"@types/node-fetch": "2.6.11",
|
|
92
|
-
"@types/react": "18.2.
|
|
93
|
-
"@types/react-dom": "18.2.
|
|
92
|
+
"@types/react": "18.2.67",
|
|
93
|
+
"@types/react-dom": "18.2.22",
|
|
94
94
|
"@types/relay-runtime": "14.1.23",
|
|
95
95
|
"@types/use-sync-external-store": "0.0.6",
|
|
96
|
-
"@typescript-eslint/eslint-plugin": "7.0
|
|
97
|
-
"@typescript-eslint/parser": "7.0
|
|
98
|
-
"@typescript-eslint/rule-tester": "7.0
|
|
99
|
-
"@typescript-eslint/types": "7.0
|
|
100
|
-
"@typescript-eslint/utils": "7.0
|
|
96
|
+
"@typescript-eslint/eslint-plugin": "7.3.0",
|
|
97
|
+
"@typescript-eslint/parser": "7.3.0",
|
|
98
|
+
"@typescript-eslint/rule-tester": "7.3.0",
|
|
99
|
+
"@typescript-eslint/types": "7.3.0",
|
|
100
|
+
"@typescript-eslint/utils": "7.3.0",
|
|
101
101
|
"acorn": "8.11.3",
|
|
102
102
|
"blob-polyfill": "7.0.20220408",
|
|
103
103
|
"bytes": "3.1.2",
|
|
104
104
|
"cross-fetch": "4.0.0",
|
|
105
|
-
"eslint": "8.
|
|
105
|
+
"eslint": "8.57.0",
|
|
106
106
|
"eslint-import-resolver-typescript": "3.6.1",
|
|
107
107
|
"eslint-plugin-import": "npm:@phryneas/eslint-plugin-import@2.27.5-pr.2813.2817.199971c",
|
|
108
108
|
"eslint-plugin-local-rules": "2.0.1",
|
|
109
109
|
"eslint-plugin-testing-library": "6.2.0",
|
|
110
|
-
"expect-type": "0.
|
|
110
|
+
"expect-type": "0.18.0",
|
|
111
111
|
"fetch-mock": "9.11.0",
|
|
112
112
|
"glob": "8.1.0",
|
|
113
113
|
"graphql": "16.8.1",
|
|
@@ -123,25 +123,25 @@
|
|
|
123
123
|
"react-dom": "18.2.0",
|
|
124
124
|
"react-dom-17": "npm:react-dom@^17",
|
|
125
125
|
"react-error-boundary": "4.0.13",
|
|
126
|
-
"recast": "0.23.
|
|
126
|
+
"recast": "0.23.6",
|
|
127
127
|
"resolve": "1.22.8",
|
|
128
128
|
"rimraf": "5.0.5",
|
|
129
129
|
"rollup": "2.79.1",
|
|
130
130
|
"rollup-plugin-cleanup": "3.2.1",
|
|
131
131
|
"rollup-plugin-terser": "7.0.2",
|
|
132
132
|
"rxjs": "7.8.1",
|
|
133
|
-
"size-limit": "11.
|
|
133
|
+
"size-limit": "11.1.1",
|
|
134
134
|
"subscriptions-transport-ws": "0.11.0",
|
|
135
|
-
"terser": "5.
|
|
136
|
-
"ts-api-utils": "1.
|
|
135
|
+
"terser": "5.29.2",
|
|
136
|
+
"ts-api-utils": "1.3.0",
|
|
137
137
|
"ts-jest": "29.1.2",
|
|
138
138
|
"ts-jest-resolver": "2.0.1",
|
|
139
|
-
"ts-morph": "
|
|
139
|
+
"ts-morph": "22.0.0",
|
|
140
140
|
"ts-node": "10.9.2",
|
|
141
141
|
"typedoc": "0.25.0",
|
|
142
|
-
"typescript": "5.
|
|
142
|
+
"typescript": "5.4.2",
|
|
143
143
|
"wait-for-observables": "1.0.3",
|
|
144
|
-
"web-streams-polyfill": "
|
|
144
|
+
"web-streams-polyfill": "4.0.0",
|
|
145
145
|
"whatwg-fetch": "3.6.20"
|
|
146
146
|
},
|
|
147
147
|
"publishConfig": {
|
package/react/hooks/hooks.cjs
CHANGED
|
@@ -100,7 +100,7 @@ var RenderDispatcher = null;
|
|
|
100
100
|
function useRenderGuard() {
|
|
101
101
|
RenderDispatcher = getRenderDispatcher();
|
|
102
102
|
return React__namespace.useCallback(function () {
|
|
103
|
-
return (RenderDispatcher
|
|
103
|
+
return (RenderDispatcher != null && RenderDispatcher === getRenderDispatcher());
|
|
104
104
|
}, []);
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -758,6 +758,9 @@ function _useFragment(options) {
|
|
|
758
758
|
var resultRef = useLazyRef(function () {
|
|
759
759
|
return diffToResult(cache.diff(diffOptions));
|
|
760
760
|
});
|
|
761
|
+
React__namespace.useMemo(function () {
|
|
762
|
+
resultRef.current = diffToResult(cache.diff(diffOptions));
|
|
763
|
+
}, [diffOptions, cache]);
|
|
761
764
|
var getSnapshot = React__namespace.useCallback(function () { return resultRef.current; }, []);
|
|
762
765
|
return useSyncExternalStore(React__namespace.useCallback(function (forceUpdate) {
|
|
763
766
|
var lastTimeout = 0;
|