Skip to content

Commit d9f9d15

Browse files
Version Packages (rc) (#11940)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 5688afd commit d9f9d15

File tree

4 files changed

+81
-9
lines changed

4 files changed

+81
-9
lines changed

.changeset/pre.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,21 @@
44
"initialVersions": {
55
"@apollo/client": "3.10.8"
66
},
7-
"changesets": []
8-
}
7+
"changesets": [
8+
"angry-ravens-mate",
9+
"angry-seals-jog",
10+
"chilly-dots-shake",
11+
"clever-bikes-admire",
12+
"flat-onions-guess",
13+
"fluffy-badgers-rush",
14+
"little-suits-return",
15+
"nasty-olives-act",
16+
"pink-ants-remember",
17+
"slimy-balloons-cheat",
18+
"slimy-berries-yawn",
19+
"tasty-chairs-dress",
20+
"thin-lies-begin",
21+
"unlucky-birds-press",
22+
"weak-ads-develop"
23+
]
24+
}

CHANGELOG.md

Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,61 @@
11
# @apollo/client
22

3+
## 3.11.0-rc.0
4+
5+
### Minor Changes
6+
7+
- [#11923](https://github.com/apollographql/apollo-client/pull/11923) [`d88c7f8`](https://github.com/apollographql/apollo-client/commit/d88c7f8909e3cb31532e8b1fc7dd06be12f35591) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add support for `subscribeToMore` function to `useQueryRefHandlers`.
8+
9+
- [#11854](https://github.com/apollographql/apollo-client/pull/11854) [`3812800`](https://github.com/apollographql/apollo-client/commit/3812800c6e4e5e3e64f473543babdba35ce100c2) Thanks [@jcostello-atlassian](https://github.com/jcostello-atlassian)! - Support extensions in useSubscription
10+
11+
- [#11923](https://github.com/apollographql/apollo-client/pull/11923) [`d88c7f8`](https://github.com/apollographql/apollo-client/commit/d88c7f8909e3cb31532e8b1fc7dd06be12f35591) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add support for `subscribeToMore` function to `useLoadableQuery`.
12+
13+
- [#11863](https://github.com/apollographql/apollo-client/pull/11863) [`98e44f7`](https://github.com/apollographql/apollo-client/commit/98e44f74cb7c7e93a81bdc7492c9218bf4a2dcd4) Thanks [@phryneas](https://github.com/phryneas)! - Reimplement `useSubscription` to fix rules of React violations.
14+
15+
- [#11869](https://github.com/apollographql/apollo-client/pull/11869) [`a69327c`](https://github.com/apollographql/apollo-client/commit/a69327cce1b36e8855258e9b19427511e0af8748) Thanks [@phryneas](https://github.com/phryneas)! - Rewrite big parts of `useQuery` and `useLazyQuery` to be more compliant with the Rules of React and React Compiler
16+
17+
- [#11936](https://github.com/apollographql/apollo-client/pull/11936) [`1b23337`](https://github.com/apollographql/apollo-client/commit/1b23337e5a9eec4ce3ed69531ca4f4afe8e897a6) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add the ability to specify a name for the client instance for use with Apollo Client Devtools. This is useful when instantiating multiple clients to identify the client instance more easily. This deprecates the `connectToDevtools` option in favor of a new `devtools` configuration.
18+
19+
```ts
20+
new ApolloClient({
21+
devtools: {
22+
enabled: true,
23+
name: "Test Client",
24+
},
25+
});
26+
```
27+
28+
This option is backwards-compatible with `connectToDevtools` and will be used in the absense of a `devtools` option.
29+
30+
- [#11923](https://github.com/apollographql/apollo-client/pull/11923) [`d88c7f8`](https://github.com/apollographql/apollo-client/commit/d88c7f8909e3cb31532e8b1fc7dd06be12f35591) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add support for `subscribeToMore` function to `useBackgroundQuery`.
31+
32+
- [#11789](https://github.com/apollographql/apollo-client/pull/11789) [`5793301`](https://github.com/apollographql/apollo-client/commit/579330147d6bd6f7167a35413a33746103e375cb) Thanks [@phryneas](https://github.com/phryneas)! - Changes usages of the `GraphQLError` type to `GraphQLFormattedError`.
33+
34+
This was a type bug - these errors were never `GraphQLError` instances
35+
to begin with, and the `GraphQLError` class has additional properties that can
36+
never be correctly rehydrated from a GraphQL result.
37+
The correct type to use here is `GraphQLFormattedError`.
38+
39+
Similarly, please ensure to use the type `FormattedExecutionResult`
40+
instead of `ExecutionResult` - the non-"Formatted" versions of these types
41+
are for use on the server only, but don't get transported over the network.
42+
43+
- [#11930](https://github.com/apollographql/apollo-client/pull/11930) [`a768575`](https://github.com/apollographql/apollo-client/commit/a768575ac1454587208aad63abc811b6a966fe72) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Deprecates experimental schema testing utilities introduced in 3.10 in favor of recommending [`@apollo/graphql-testing-library`](https://github.com/apollographql/graphql-testing-library).
44+
45+
### Patch Changes
46+
47+
- [#11927](https://github.com/apollographql/apollo-client/pull/11927) [`2941824`](https://github.com/apollographql/apollo-client/commit/2941824dd66cdd20eee5f2293373ad7a9cf991a4) Thanks [@phryneas](https://github.com/phryneas)! - Add `restart` function to `useSubscription`.
48+
49+
- [#11902](https://github.com/apollographql/apollo-client/pull/11902) [`96422ce`](https://github.com/apollographql/apollo-client/commit/96422ce95b923b560321a88acd2eec35cf2a1c18) Thanks [@phryneas](https://github.com/phryneas)! - Add `cause` field to `ApolloError`.
50+
51+
- [#11806](https://github.com/apollographql/apollo-client/pull/11806) [`8df6013`](https://github.com/apollographql/apollo-client/commit/8df6013b6b45452ec058fab3e068b5b6d6c493f7) Thanks [@phryneas](https://github.com/phryneas)! - MockLink: add query default variables if not specified in mock request
52+
53+
- [#11626](https://github.com/apollographql/apollo-client/pull/11626) [`228429a`](https://github.com/apollographql/apollo-client/commit/228429a1d36eae691473b24fb641ec3cd84c8a3d) Thanks [@phryneas](https://github.com/phryneas)! - Call `nextFetchPolicy` with "variables-changed" even if there is a `fetchPolicy` specified. (fixes #11365)
54+
55+
- [#11719](https://github.com/apollographql/apollo-client/pull/11719) [`09a6677`](https://github.com/apollographql/apollo-client/commit/09a6677ec1a0cffedeecb2cbac5cd3a3c8aa0fa1) Thanks [@phryneas](https://github.com/phryneas)! - Allow wrapping `createQueryPreloader`
56+
57+
- [#11921](https://github.com/apollographql/apollo-client/pull/11921) [`70406bf`](https://github.com/apollographql/apollo-client/commit/70406bfd2b9a645d781638569853d9b435e047df) Thanks [@phryneas](https://github.com/phryneas)! - add `ignoreResults` option to `useSubscription`
58+
359
## 3.10.8
460

561
### Patch Changes
@@ -457,7 +513,7 @@
457513
import { Environment, Network, RecordSource, Store } from "relay-runtime";
458514

459515
const fetchMultipartSubs = createFetchMultipartSubscription(
460-
"http://localhost:4000",
516+
"http://localhost:4000"
461517
);
462518

463519
const network = Network.create(fetchQuery, fetchMultipartSubs);
@@ -810,7 +866,7 @@
810866
return data.breeds.map(({ characteristics }) =>
811867
characteristics.map((characteristic) => (
812868
<div key={characteristic}>{characteristic}</div>
813-
)),
869+
))
814870
);
815871
}
816872
```
@@ -861,7 +917,7 @@
861917

862918
const { data } = useSuspenseQuery(
863919
query,
864-
id ? { variables: { id } } : skipToken,
920+
id ? { variables: { id } } : skipToken
865921
);
866922
```
867923

@@ -2816,7 +2872,7 @@ In upcoming v3.6.x and v3.7 (beta) releases, we will be completely overhauling o
28162872
fields: {
28172873
comments(comments: Reference[], { readField }) {
28182874
return comments.filter(
2819-
(comment) => idToRemove !== readField("id", comment),
2875+
(comment) => idToRemove !== readField("id", comment)
28202876
);
28212877
},
28222878
},

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apollo/client",
3-
"version": "3.10.8",
3+
"version": "3.11.0-rc.0",
44
"description": "A fully-featured caching GraphQL client.",
55
"private": true,
66
"keywords": [

0 commit comments

Comments
 (0)