Skip to content

Commit a537759

Browse files
Version Packages (rc)
1 parent 7c49fdc commit a537759

4 files changed

Lines changed: 26 additions & 3 deletions

File tree

.changeset/pre.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,14 @@
129129
"many-papayas-hide",
130130
"many-seas-call",
131131
"mean-beans-agree",
132+
"mean-doors-clap",
132133
"mean-lizards-think",
133134
"metal-needles-search",
134135
"mighty-buckets-hide",
135136
"mighty-carrots-bathe",
136137
"mighty-jobs-drum",
137138
"mighty-penguins-wink",
139+
"mighty-spies-mix",
138140
"modern-feet-do",
139141
"moody-lobsters-listen",
140142
"nasty-mayflies-smoke",

CHANGELOG.md

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

3+
## 4.0.0-rc.10
4+
5+
### Major Changes
6+
7+
- [#12837](https://github.com/apollographql/apollo-client/pull/12837) [`7c49fdc`](https://github.com/apollographql/apollo-client/commit/7c49fdce2f40571d92c83602bbb1b5bd891f626b) Thanks [@jerelmiller](https://github.com/jerelmiller)! - You must now opt in to use GraphQL Codegen data masking types when using Apollo Client's data masking feature. By default, Apollo Client now uses an identity type to apply to masked/unmasked types.
8+
9+
If you're using GraphQL Codegen to generate masked types, opt into the GraphQL Codegen masked types using declaration merging on the `TypeOverides` interface.
10+
11+
```ts title="apollo-client.d.ts
12+
import { GraphQLCodegenDataMasking } from "@apollo/client/masking";
13+
14+
declare module "@apollo/client" {
15+
export interface TypeOverrides
16+
extends GraphQLCodegenDataMasking.TypeOverrides {}
17+
}
18+
```
19+
20+
- [#12837](https://github.com/apollographql/apollo-client/pull/12837) [`7c49fdc`](https://github.com/apollographql/apollo-client/commit/7c49fdce2f40571d92c83602bbb1b5bd891f626b) Thanks [@jerelmiller](https://github.com/jerelmiller)! - The types mode for data masking has been removed. Adding a types mode to the `DataMasking` interface has no effect. Remove the `mode` key in the module where you declare the `DataMasking` type for the `@apollo/client` module.
21+
22+
As a result, the `Masked` and `MaskedDocumentNode` types have also been removed since these have no effect when types are preserved.
23+
324
## 4.0.0-rc.9
425

526
### Minor Changes

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": "4.0.0-rc.9",
3+
"version": "4.0.0-rc.10",
44
"description": "A fully-featured caching GraphQL client.",
55
"private": true,
66
"keywords": [

0 commit comments

Comments
 (0)