@apollo/client 3.11.0-rc.0 → 3.11.0-rc.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.
Files changed (64) hide show
  1. package/.changeset/breezy-deers-dream.md +5 -0
  2. package/.changeset/curly-vans-draw.md +5 -0
  3. package/.changeset/early-tips-vanish.md +5 -0
  4. package/.changeset/good-suns-happen.md +5 -0
  5. package/.changeset/hungry-rings-help.md +5 -0
  6. package/.changeset/pink-flowers-switch.md +5 -0
  7. package/.changeset/pre.json +7 -0
  8. package/.changeset/proud-humans-begin.md +5 -0
  9. package/CHANGELOG.md +22 -0
  10. package/README.md +5 -5
  11. package/apollo-client.cjs +1393 -1405
  12. package/apollo-client.cjs.map +1 -1
  13. package/apollo-client.min.cjs +1 -1
  14. package/cache/cache.cjs +2 -7
  15. package/cache/cache.cjs.map +1 -1
  16. package/cache/cache.cjs.native.js +2 -7
  17. package/cache/core/cache.d.ts +0 -11
  18. package/cache/core/cache.js +2 -7
  19. package/cache/core/cache.js.map +1 -1
  20. package/config/jest/areApolloErrorsEqual.d.ts +3 -0
  21. package/config/jest/areApolloErrorsEqual.js +23 -0
  22. package/config/jest/areApolloErrorsEqual.js.map +1 -0
  23. package/config/jest/areGraphQlErrorsEqual.d.ts +3 -0
  24. package/config/jest/areGraphQlErrorsEqual.js +7 -0
  25. package/config/jest/areGraphQlErrorsEqual.js.map +1 -0
  26. package/config/jest/setup.js +4 -0
  27. package/config/jest/setup.js.map +1 -1
  28. package/core/ApolloClient.js +1 -1
  29. package/core/ApolloClient.js.map +1 -1
  30. package/core/QueryManager.d.ts +15 -14
  31. package/core/QueryManager.js +12 -13
  32. package/core/QueryManager.js.map +1 -1
  33. package/core/core.cjs +806 -806
  34. package/core/core.cjs.map +1 -1
  35. package/core/core.cjs.native.js +806 -806
  36. package/core/watchQueryOptions.d.ts +1 -1
  37. package/core/watchQueryOptions.js.map +1 -1
  38. package/dev/dev.cjs +1 -1
  39. package/dev/dev.cjs.map +1 -1
  40. package/dev/dev.cjs.native.js +1 -1
  41. package/package.json +8 -5
  42. package/react/hooks/hooks.cjs +26 -33
  43. package/react/hooks/hooks.cjs.map +1 -1
  44. package/react/hooks/hooks.cjs.native.js +26 -33
  45. package/react/hooks/useQuery.d.ts +2 -5
  46. package/react/hooks/useQuery.js +42 -53
  47. package/react/hooks/useQuery.js.map +1 -1
  48. package/react/internal/internal.cjs +1 -1
  49. package/react/internal/internal.cjs.map +1 -1
  50. package/react/internal/internal.cjs.native.js +1 -1
  51. package/react/types/types.d.ts +6 -1
  52. package/react/types/types.js.map +1 -1
  53. package/testing/core/mocking/mockQueryManager.d.ts +15 -0
  54. package/testing/core/mocking/mockQueryManager.js +5 -2
  55. package/testing/core/mocking/mockQueryManager.js.map +1 -1
  56. package/testing/experimental/createSchemaFetch.js +5 -12
  57. package/testing/experimental/createSchemaFetch.js.map +1 -1
  58. package/testing/experimental/experimental.cjs +3 -5
  59. package/testing/experimental/experimental.cjs.map +1 -1
  60. package/testing/experimental/experimental.cjs.native.js +3 -5
  61. package/utilities/globals/globals.cjs +1 -1
  62. package/utilities/globals/globals.cjs.map +1 -1
  63. package/utilities/globals/globals.cjs.native.js +1 -1
  64. package/version.js +1 -1
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@apollo/client": patch
3
+ ---
4
+
5
+ add React 19 RC to `peerDependencies`
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@apollo/client": patch
3
+ ---
4
+
5
+ Remove deprecated `watchFragment` option, `canonizeResults`
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@apollo/client": patch
3
+ ---
4
+
5
+ `createSchemaFetch`: simulate serialized errors instead of an `ApolloError` instance
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@apollo/client": patch
3
+ ---
4
+
5
+ `watchFragment`: forward additional options to `diffOptions`
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@apollo/client": patch
3
+ ---
4
+
5
+ Fix issue where mutations were not accessible by Apollo Client Devtools in 3.11.0-rc.0.
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@apollo/client": patch
3
+ ---
4
+
5
+ Allow `IgnoreModifier` to be returned from a `optimisticResponse` function when inferring from a `TypedDocumentNode` when used with a generic argument.
@@ -7,13 +7,20 @@
7
7
  "changesets": [
8
8
  "angry-ravens-mate",
9
9
  "angry-seals-jog",
10
+ "breezy-deers-dream",
10
11
  "chilly-dots-shake",
11
12
  "clever-bikes-admire",
13
+ "curly-vans-draw",
14
+ "early-tips-vanish",
12
15
  "flat-onions-guess",
13
16
  "fluffy-badgers-rush",
17
+ "good-suns-happen",
18
+ "hungry-rings-help",
14
19
  "little-suits-return",
15
20
  "nasty-olives-act",
16
21
  "pink-ants-remember",
22
+ "pink-flowers-switch",
23
+ "proud-humans-begin",
17
24
  "slimy-balloons-cheat",
18
25
  "slimy-berries-yawn",
19
26
  "tasty-chairs-dress",
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@apollo/client": patch
3
+ ---
4
+
5
+ Document (and deprecate) the previously undocumented `errors` property on the `useQuery` `QueryResult` type.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @apollo/client
2
2
 
3
+ ## 3.11.0-rc.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#11951](https://github.com/apollographql/apollo-client/pull/11951) [`0de03af`](https://github.com/apollographql/apollo-client/commit/0de03af912a76c4e0111f21b4f90a073317b63b6) Thanks [@phryneas](https://github.com/phryneas)! - add React 19 RC to `peerDependencies`
8
+
9
+ - [#11937](https://github.com/apollographql/apollo-client/pull/11937) [`78332be`](https://github.com/apollographql/apollo-client/commit/78332be32a9af0da33eb3e4100e7a76c3eac2496) Thanks [@phryneas](https://github.com/phryneas)! - `createSchemaFetch`: simulate serialized errors instead of an `ApolloError` instance
10
+
11
+ - [#11944](https://github.com/apollographql/apollo-client/pull/11944) [`8f3d7eb`](https://github.com/apollographql/apollo-client/commit/8f3d7eb3bc2e0c2d79c5b1856655abe829390742) Thanks [@sneyderdev](https://github.com/sneyderdev)! - Allow `IgnoreModifier` to be returned from a `optimisticResponse` function when inferring from a `TypedDocumentNode` when used with a generic argument.
12
+
13
+ - [#11954](https://github.com/apollographql/apollo-client/pull/11954) [`4a6e86a`](https://github.com/apollographql/apollo-client/commit/4a6e86aeaf6685abf0dd23110784848c8b085735) Thanks [@phryneas](https://github.com/phryneas)! - Document (and deprecate) the previously undocumented `errors` property on the `useQuery` `QueryResult` type.
14
+
15
+ ## 3.11.0-rc.1
16
+
17
+ ### Patch Changes
18
+
19
+ - [#11949](https://github.com/apollographql/apollo-client/pull/11949) [`4528918`](https://github.com/apollographql/apollo-client/commit/45289186bcaaa33dfe904913eb6df31e2541c219) Thanks [@alessbell](https://github.com/alessbell)! - Remove deprecated `watchFragment` option, `canonizeResults`
20
+
21
+ - [#11926](https://github.com/apollographql/apollo-client/pull/11926) [`3dd6432`](https://github.com/apollographql/apollo-client/commit/3dd64324dc5156450cead27f8141ea93315ffe65) Thanks [@phryneas](https://github.com/phryneas)! - `watchFragment`: forward additional options to `diffOptions`
22
+
23
+ - [#11946](https://github.com/apollographql/apollo-client/pull/11946) [`7d833b8`](https://github.com/apollographql/apollo-client/commit/7d833b80119a991e6d2eb58f2c71074d697b8e63) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix issue where mutations were not accessible by Apollo Client Devtools in 3.11.0-rc.0.
24
+
3
25
  ## 3.11.0-rc.0
4
26
 
5
27
  ### Minor Changes
package/README.md CHANGED
@@ -39,12 +39,12 @@ Learn how to use Apollo Client with self-paced hands-on training on Odyssey, Apo
39
39
 
40
40
  ## Who is Apollo?
41
41
 
42
- [Apollo](https://apollographql.com/) builds open-source software and a graph platform to unify GraphQL across your apps and services. We help you ship faster with:
42
+ [Apollo](https://apollographql.com/) builds open-source tools and commercial services to make application development easier, better, and accessible to more people. We help you ship faster with:
43
43
 
44
- - [Apollo Studio](https://www.apollographql.com/studio/develop/) A free, end-to-end platform for managing your GraphQL lifecycle. Track your GraphQL schemas in a hosted registry to create a source of truth for everything in your graph. Studio provides an IDE (Apollo Explorer) so you can explore data, collaborate on queries, observe usage, and safely make schema changes.
45
- - [Apollo Federation](https://www.apollographql.com/apollo-federation) – The industry-standard open architecture for building a distributed graph. Use Apollo’s gateway to compose a unified graph from multiple subgraphs, determine a query plan, and route requests across your services.
46
- - [Apollo Client](https://www.apollographql.com/apollo-client/) – The most popular GraphQL client for the web. Apollo also builds and maintains [Apollo iOS](https://github.com/apollographql/apollo-ios) and [Apollo Kotlin](https://github.com/apollographql/apollo-kotlin).
47
- - [Apollo Server](https://www.apollographql.com/docs/apollo-server/) – A production-ready JavaScript GraphQL server that connects to any microservice, API, or database. Compatible with all popular JavaScript frameworks and deployable in serverless environments.
44
+ - [GraphOS](https://www.apollographql.com/graphos) - The platform for building, managing, and scaling a supergraph: a unified network of your organization's microservices and their data sources—all composed into a single distributed API.
45
+ - [Apollo Federation](https://www.apollographql.com/federation) – The industry-standard open architecture for building a distributed graph. Use Apollo’s gateway to compose a unified graph from multiple subgraphs, determine a query plan, and route requests across your services.
46
+ - [Apollo Client](https://github.com/apollographql/apollo-client) – The most popular GraphQL client for the web. Apollo also builds and maintains [Apollo iOS](https://github.com/apollographql/apollo-ios) and [Apollo Kotlin](https://github.com/apollographql/apollo-kotlin).
47
+ - [Apollo Server](https://github.com/apollographql/apollo-server) – A production-ready JavaScript GraphQL server that connects to any microservice, API, or database. Compatible with all popular JavaScript frameworks and deployable in serverless environments.
48
48
 
49
49
  ## Learn how to build with Apollo
50
50