@apollo/client 3.10.7 → 3.11.0-rc.0
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/.changeset/angry-ravens-mate.md +5 -0
- package/.changeset/angry-seals-jog.md +5 -0
- package/.changeset/chilly-dots-shake.md +5 -0
- package/.changeset/clever-bikes-admire.md +5 -0
- package/.changeset/flat-onions-guess.md +5 -0
- package/.changeset/fluffy-badgers-rush.md +5 -0
- package/.changeset/little-suits-return.md +5 -0
- package/.changeset/nasty-olives-act.md +5 -0
- package/.changeset/pink-ants-remember.md +16 -0
- package/.changeset/pre.json +24 -0
- package/.changeset/slimy-balloons-cheat.md +5 -0
- package/.changeset/slimy-berries-yawn.md +14 -0
- package/.changeset/tasty-chairs-dress.md +5 -0
- package/.changeset/thin-lies-begin.md +5 -0
- package/.changeset/unlucky-birds-press.md +5 -0
- package/.changeset/weak-ads-develop.md +5 -0
- package/CHANGELOG.md +66 -4
- package/apollo-client.cjs +501 -410
- package/apollo-client.cjs.map +1 -1
- package/apollo-client.min.cjs +1 -1
- package/cache/core/types/common.d.ts +1 -1
- package/cache/core/types/common.js.map +1 -1
- package/core/ApolloClient.d.ts +24 -2
- package/core/ApolloClient.js +9 -8
- package/core/ApolloClient.js.map +1 -1
- package/core/ObservableQuery.js +5 -1
- package/core/ObservableQuery.js.map +1 -1
- package/core/QueryInfo.d.ts +2 -2
- package/core/QueryInfo.js.map +1 -1
- package/core/QueryManager.d.ts +1 -1
- package/core/QueryManager.js +5 -4
- package/core/QueryManager.js.map +1 -1
- package/core/core.cjs +18 -11
- package/core/core.cjs.map +1 -1
- package/core/core.cjs.native.js +18 -11
- package/core/types.d.ts +2 -2
- package/core/types.js.map +1 -1
- package/core/watchQueryOptions.d.ts +4 -0
- package/core/watchQueryOptions.js.map +1 -1
- package/dev/dev.cjs +40 -34
- package/dev/dev.cjs.map +1 -1
- package/dev/dev.cjs.native.js +40 -34
- package/errors/errors.cjs +4 -0
- package/errors/errors.cjs.map +1 -1
- package/errors/errors.cjs.native.js +4 -0
- package/errors/index.d.ts +18 -3
- package/errors/index.js +7 -2
- package/errors/index.js.map +1 -1
- package/invariantErrorCodes.js +41 -34
- package/link/core/types.d.ts +6 -4
- package/link/core/types.js.map +1 -1
- package/link/error/index.d.ts +4 -4
- package/link/error/index.js.map +1 -1
- package/link/persisted-queries/index.d.ts +3 -3
- package/link/persisted-queries/index.js.map +1 -1
- package/link/subscriptions/index.js +1 -0
- package/link/subscriptions/index.js.map +1 -1
- package/link/subscriptions/subscriptions.cjs.map +1 -1
- package/package.json +29 -29
- package/react/hooks/hooks.cjs +445 -368
- package/react/hooks/hooks.cjs.map +1 -1
- package/react/hooks/hooks.cjs.native.js +445 -368
- package/react/hooks/internal/wrapHook.d.ts +2 -0
- package/react/hooks/internal/wrapHook.js.map +1 -1
- package/react/hooks/useBackgroundQuery.d.ts +15 -1
- package/react/hooks/useBackgroundQuery.js +5 -1
- package/react/hooks/useBackgroundQuery.js.map +1 -1
- package/react/hooks/useLazyQuery.js +54 -12
- package/react/hooks/useLazyQuery.js.map +1 -1
- package/react/hooks/useLoadableQuery.d.ts +7 -1
- package/react/hooks/useLoadableQuery.js +5 -1
- package/react/hooks/useLoadableQuery.js.map +1 -1
- package/react/hooks/useQuery.d.ts +34 -47
- package/react/hooks/useQuery.js +387 -388
- package/react/hooks/useQuery.js.map +1 -1
- package/react/hooks/useQueryRefHandlers.d.ts +7 -1
- package/react/hooks/useQueryRefHandlers.js +5 -1
- package/react/hooks/useQueryRefHandlers.js.map +1 -1
- package/react/hooks/useSubscription.d.ts +13 -10
- package/react/hooks/useSubscription.js +130 -98
- package/react/hooks/useSubscription.js.map +1 -1
- package/react/hooks/useSuspenseQuery.js +3 -3
- package/react/hooks/useSuspenseQuery.js.map +1 -1
- package/react/hooks/useSyncExternalStore.js +1 -1
- package/react/internal/cache/QueryReference.js +1 -1
- package/react/internal/internal.cjs +2 -2
- package/react/internal/internal.cjs.map +1 -1
- package/react/internal/internal.cjs.native.js +2 -2
- package/react/parser/index.js +5 -5
- package/react/parser/parser.cjs +5 -5
- package/react/parser/parser.cjs.map +1 -1
- package/react/parser/parser.cjs.native.js +5 -5
- package/react/query-preloader/createQueryPreloader.js +5 -1
- package/react/query-preloader/createQueryPreloader.js.map +1 -1
- package/react/react.cjs +12 -1
- package/react/react.cjs.map +1 -1
- package/react/react.cjs.native.js +12 -1
- package/react/types/types.d.ts +19 -0
- package/react/types/types.documentation.d.ts +10 -0
- package/react/types/types.documentation.js.map +1 -1
- package/react/types/types.js.map +1 -1
- package/testing/core/core.cjs +6 -5
- package/testing/core/core.cjs.map +1 -1
- package/testing/core/core.cjs.native.js +6 -5
- package/testing/core/mocking/mockLink.js +8 -7
- package/testing/core/mocking/mockLink.js.map +1 -1
- package/testing/experimental/createSchemaFetch.d.ts +2 -0
- package/testing/experimental/createSchemaFetch.js +12 -1
- package/testing/experimental/createSchemaFetch.js.map +1 -1
- package/testing/experimental/createTestSchema.d.ts +2 -0
- package/testing/experimental/createTestSchema.js +2 -0
- package/testing/experimental/createTestSchema.js.map +1 -1
- package/testing/experimental/experimental.cjs +5 -1
- package/testing/experimental/experimental.cjs.map +1 -1
- package/testing/experimental/experimental.cjs.native.js +5 -1
- package/testing/internal/disposables/enableFakeTimers.d.ts +7 -0
- package/testing/internal/disposables/enableFakeTimers.js +16 -0
- package/testing/internal/disposables/enableFakeTimers.js.map +1 -0
- package/testing/internal/disposables/index.d.ts +1 -0
- package/testing/internal/disposables/index.js +1 -0
- package/testing/internal/disposables/index.js.map +1 -1
- package/utilities/common/errorHandling.d.ts +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/graphql/DocumentTransform.js +1 -1
- package/utilities/graphql/directives.js +4 -4
- package/utilities/graphql/fragments.js +3 -3
- package/utilities/graphql/getFromAST.js +8 -8
- package/utilities/graphql/storeUtils.js +1 -1
- package/utilities/graphql/transform.js +2 -2
- package/utilities/utilities.cjs +19 -19
- package/utilities/utilities.cjs.map +1 -1
- package/utilities/utilities.cjs.native.js +19 -19
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollo/client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.0-rc.0",
|
|
4
4
|
"description": "A fully-featured caching GraphQL client.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"keywords": [
|
|
@@ -68,18 +68,18 @@
|
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@arethetypeswrong/cli": "0.15.3",
|
|
71
|
-
"@babel/parser": "7.24.
|
|
71
|
+
"@babel/parser": "7.24.7",
|
|
72
72
|
"@changesets/changelog-github": "0.5.0",
|
|
73
|
-
"@changesets/cli": "2.27.
|
|
74
|
-
"@graphql-tools/merge": "9.0.
|
|
75
|
-
"@graphql-tools/schema": "10.0.
|
|
76
|
-
"@graphql-tools/utils": "10.
|
|
73
|
+
"@changesets/cli": "2.27.7",
|
|
74
|
+
"@graphql-tools/merge": "9.0.4",
|
|
75
|
+
"@graphql-tools/schema": "10.0.4",
|
|
76
|
+
"@graphql-tools/utils": "10.3.1",
|
|
77
77
|
"@microsoft/api-extractor": "7.47.0",
|
|
78
78
|
"@rollup/plugin-node-resolve": "11.2.1",
|
|
79
|
-
"@size-limit/esbuild-why": "11.1.
|
|
80
|
-
"@size-limit/preset-small-lib": "11.1.
|
|
81
|
-
"@testing-library/jest-dom": "6.4.
|
|
82
|
-
"@testing-library/react": "15.0.
|
|
79
|
+
"@size-limit/esbuild-why": "11.1.4",
|
|
80
|
+
"@size-limit/preset-small-lib": "11.1.4",
|
|
81
|
+
"@testing-library/jest-dom": "6.4.6",
|
|
82
|
+
"@testing-library/react": "15.0.7",
|
|
83
83
|
"@testing-library/react-12": "npm:@testing-library/react@^12",
|
|
84
84
|
"@testing-library/user-event": "14.5.2",
|
|
85
85
|
"@tsconfig/node20": "20.1.4",
|
|
@@ -88,19 +88,19 @@
|
|
|
88
88
|
"@types/glob": "8.1.0",
|
|
89
89
|
"@types/hoist-non-react-statics": "3.3.5",
|
|
90
90
|
"@types/jest": "29.5.12",
|
|
91
|
-
"@types/lodash": "4.17.
|
|
92
|
-
"@types/node": "20.
|
|
91
|
+
"@types/lodash": "4.17.6",
|
|
92
|
+
"@types/node": "20.14.10",
|
|
93
93
|
"@types/node-fetch": "2.6.11",
|
|
94
|
-
"@types/react": "18.3.
|
|
94
|
+
"@types/react": "18.3.3",
|
|
95
95
|
"@types/react-dom": "18.3.0",
|
|
96
|
-
"@types/relay-runtime": "14.1.
|
|
96
|
+
"@types/relay-runtime": "14.1.24",
|
|
97
97
|
"@types/use-sync-external-store": "0.0.6",
|
|
98
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
99
|
-
"@typescript-eslint/parser": "7.
|
|
100
|
-
"@typescript-eslint/rule-tester": "7.
|
|
101
|
-
"@typescript-eslint/types": "7.
|
|
102
|
-
"@typescript-eslint/utils": "7.
|
|
103
|
-
"acorn": "8.
|
|
98
|
+
"@typescript-eslint/eslint-plugin": "7.15.0",
|
|
99
|
+
"@typescript-eslint/parser": "7.15.0",
|
|
100
|
+
"@typescript-eslint/rule-tester": "7.15.0",
|
|
101
|
+
"@typescript-eslint/types": "7.15.0",
|
|
102
|
+
"@typescript-eslint/utils": "7.15.0",
|
|
103
|
+
"acorn": "8.12.1",
|
|
104
104
|
"ajv": "8.16.0",
|
|
105
105
|
"blob-polyfill": "7.0.20220408",
|
|
106
106
|
"bytes": "3.1.2",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"expect-type": "0.19.0",
|
|
116
116
|
"fetch-mock": "9.11.0",
|
|
117
117
|
"glob": "8.1.0",
|
|
118
|
-
"graphql": "16.
|
|
118
|
+
"graphql": "16.9.0",
|
|
119
119
|
"graphql-ws": "5.16.0",
|
|
120
120
|
"jest": "29.7.0",
|
|
121
121
|
"jest-environment-jsdom": "29.7.0",
|
|
@@ -125,28 +125,28 @@
|
|
|
125
125
|
"prettier": "3.1.1",
|
|
126
126
|
"react": "18.3.1",
|
|
127
127
|
"react-17": "npm:react@^17",
|
|
128
|
-
"react-19": "npm:react@19.0.0-rc-
|
|
128
|
+
"react-19": "npm:react@19.0.0-rc-fb9a90fa48-20240614",
|
|
129
129
|
"react-dom": "18.3.1",
|
|
130
130
|
"react-dom-17": "npm:react-dom@^17",
|
|
131
|
-
"react-dom-19": "npm:react-dom@19.0.0-rc-
|
|
131
|
+
"react-dom-19": "npm:react-dom@19.0.0-rc-fb9a90fa48-20240614",
|
|
132
132
|
"react-error-boundary": "4.0.13",
|
|
133
|
-
"recast": "0.23.
|
|
133
|
+
"recast": "0.23.9",
|
|
134
134
|
"resolve": "1.22.8",
|
|
135
|
-
"rimraf": "5.0.
|
|
135
|
+
"rimraf": "5.0.8",
|
|
136
136
|
"rollup": "2.79.1",
|
|
137
137
|
"rollup-plugin-cleanup": "3.2.1",
|
|
138
138
|
"rollup-plugin-terser": "7.0.2",
|
|
139
139
|
"rxjs": "7.8.1",
|
|
140
|
-
"size-limit": "11.1.
|
|
140
|
+
"size-limit": "11.1.4",
|
|
141
141
|
"subscriptions-transport-ws": "0.11.0",
|
|
142
|
-
"terser": "5.31.
|
|
142
|
+
"terser": "5.31.1",
|
|
143
143
|
"ts-api-utils": "1.3.0",
|
|
144
|
-
"ts-jest": "29.1.
|
|
144
|
+
"ts-jest": "29.1.5",
|
|
145
145
|
"ts-jest-resolver": "2.0.1",
|
|
146
146
|
"ts-morph": "22.0.0",
|
|
147
147
|
"ts-node": "10.9.2",
|
|
148
148
|
"typedoc": "0.25.0",
|
|
149
|
-
"typescript": "5.5.
|
|
149
|
+
"typescript": "5.5.3",
|
|
150
150
|
"wait-for-observables": "1.0.3",
|
|
151
151
|
"web-streams-polyfill": "4.0.0",
|
|
152
152
|
"whatwg-fetch": "3.6.20"
|