Skip to content

Commit 07c8e4a

Browse files
Version Packages (rc)
1 parent 0517163 commit 07c8e4a

File tree

6 files changed

+60
-5
lines changed

6 files changed

+60
-5
lines changed

.changeset/pre.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@
2525
"clean-sheep-hide",
2626
"clean-sloths-travel",
2727
"clever-islands-talk",
28+
"clever-wolves-fly",
2829
"clever-zebras-mate",
2930
"cool-bikes-shake",
3031
"cool-kiwis-hunt",
32+
"cool-mice-visit",
3133
"cuddly-spiders-tie",
3234
"curvy-flies-accept",
3335
"curvy-lamps-sing",
@@ -45,6 +47,7 @@
4547
"empty-rabbits-move",
4648
"empty-rats-cough",
4749
"few-crabs-move",
50+
"few-donuts-perform",
4851
"flat-readers-invite",
4952
"fluffy-shoes-applaud",
5053
"forty-hairs-occur",
@@ -73,6 +76,7 @@
7376
"gold-sloths-battle",
7477
"good-dolphins-peel",
7578
"gorgeous-chefs-tap",
79+
"great-peaches-design",
7680
"great-roses-jog",
7781
"great-scissors-jam",
7882
"grumpy-vans-type",
@@ -94,6 +98,7 @@
9498
"kind-fishes-develop",
9599
"kind-taxis-thank",
96100
"large-plants-know",
101+
"late-bottles-add",
97102
"late-trainers-peel",
98103
"lazy-baboons-rescue",
99104
"lemon-pans-sit",
@@ -113,6 +118,7 @@
113118
"mean-lizards-think",
114119
"metal-needles-search",
115120
"mighty-carrots-bathe",
121+
"mighty-jobs-drum",
116122
"mighty-penguins-wink",
117123
"modern-feet-do",
118124
"moody-lobsters-listen",

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
# @apollo/client
22

3+
## 4.0.0-rc.5
4+
5+
### Major Changes
6+
7+
- [#12776](https://github.com/apollographql/apollo-client/pull/12776) [`bce9b74`](https://github.com/apollographql/apollo-client/commit/bce9b7448a226b109cbe8f14911503fb09f37825) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Report masked fragments as complete even when a nested masked fragment contains partial data.
8+
9+
- [#12774](https://github.com/apollographql/apollo-client/pull/12774) [`511b4f3`](https://github.com/apollographql/apollo-client/commit/511b4f3e792a75aa5aa27b335e8119dbc2a9c254) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Apply document transforms before reading data from the cache for `client.readQuery`, `client.readFragment`, `client.watchFragment`, `useFragment`, and `useSuspenseFragment`.
10+
11+
NOTE: This change does not affect the equivalent `cache.*` APIs. To read data from the cache without first running document transforms, run `cache.readQuery`, `cache.readFragment`, etc.
12+
13+
### Minor Changes
14+
15+
- [#12776](https://github.com/apollographql/apollo-client/pull/12776) [`bce9b74`](https://github.com/apollographql/apollo-client/commit/bce9b7448a226b109cbe8f14911503fb09f37825) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add `dataState` to the value emitted from `client.watchFragment`.
16+
17+
### Patch Changes
18+
19+
- [#12776](https://github.com/apollographql/apollo-client/pull/12776) [`bce9b74`](https://github.com/apollographql/apollo-client/commit/bce9b7448a226b109cbe8f14911503fb09f37825) Thanks [@jerelmiller](https://github.com/jerelmiller)! - `cache.watchFragment` now returns an `Unmasked<TData>` result since `cache.watchFragment` does not mask fragment spreads.
20+
21+
- [#12370](https://github.com/apollographql/apollo-client/pull/12370) [`0517163`](https://github.com/apollographql/apollo-client/commit/05171634404a44231329bf63eee960db52d08b25) Thanks [@phryneas](https://github.com/phryneas)! - `InMemoryCache`: Fields with an empty argument object are now saved the same way as fields without arguments.
22+
23+
Previously, it was possible that the reponses for these two queries would be stored differently in the cache:
24+
25+
```gql
26+
query PlainAccess {
27+
myField
28+
}
29+
```
30+
31+
would be stored as `myField`
32+
and
33+
34+
```gql
35+
query AccessWithoutOptionalArgument($optional: String) {
36+
myField(optional: $optional)
37+
}
38+
```
39+
40+
would be stored as `myField({"optional":"Foo"})` if called with `{optional: "Foo"}` and as `myField({})` if called without the optional argument.
41+
42+
The cases `myField` and `myField({})` are equivalent from the perspective of a GraphQL server, and so in the future both of these will be stored as `myField` in the cache.
43+
44+
- [#12775](https://github.com/apollographql/apollo-client/pull/12775) [`454ec78`](https://github.com/apollographql/apollo-client/commit/454ec78b751853da07243174a6f9bdc4535e7e8f) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Don't export `gql` from `@apollo/client/react` entrypoint. Import from `@apollo/client` instead.
45+
346
## 4.0.0-rc.4
447

548
### Minor Changes

package-lock.json

Lines changed: 3 additions & 3 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": "4.0.0-rc.4",
3+
"version": "4.0.0-rc.5",
44
"description": "A fully-featured caching GraphQL client.",
55
"private": true,
66
"keywords": [

scripts/codemods/ac3-to-ac4/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @apollo/client-codemod-migrate-3-to-4
22

3+
## 1.0.0-rc.1
4+
5+
### Patch Changes
6+
7+
- [#12775](https://github.com/apollographql/apollo-client/pull/12775) [`454ec78`](https://github.com/apollographql/apollo-client/commit/454ec78b751853da07243174a6f9bdc4535e7e8f) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Don't export `gql` from `@apollo/client/react` entrypoint. Import from `@apollo/client` instead.
8+
39
## 1.0.0-rc.0
410

511
### Major Changes

scripts/codemods/ac3-to-ac4/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-codemod-migrate-3-to-4",
3-
"version": "1.0.0-rc.0",
3+
"version": "1.0.0-rc.1",
44
"description": "Apollo Client Codemod to migrate from version 3 to version 4",
55
"keywords": [
66
"apollo",

0 commit comments

Comments
 (0)