Skip to content

Commit

Permalink
Version Packages (alpha) (#12073)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 1, 2024
1 parent d236309 commit a0329e9
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
"initialVersions": {
"@apollo/client": "3.11.5"
},
"changesets": []
"changesets": [
"nasty-camels-pay"
]
}
4 changes: 2 additions & 2 deletions .size-limits.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"dist/apollo-client.min.cjs": 41438,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 34206
"dist/apollo-client.min.cjs": 41445,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 34213
}
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# @apollo/client

## 3.12.0-alpha.0

### Minor Changes

- [#12042](https://github.com/apollographql/apollo-client/pull/12042) [`1c0ecbf`](https://github.com/apollographql/apollo-client/commit/1c0ecbf3c0454056853dd3dcb493dfd5fa1a96b1) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Introduces data masking into Apollo Client. Data masking allows components to access only the data they asked for through GraphQL fragments. This prevents coupling between components that might otherwise implicitly rely on fields not requested by the component. Data masking also provides the benefit that masked fields only rerender components that ask for the field.

To enable data masking in Apollo Client, set the `dataMasking` option to `true`.

```ts
new ApolloClient({
dataMasking: true,
// ... other options
});
```

You can selectively disable data masking using the `@unmask` directive. Apply this to any named fragment to receive all fields requested by the fragment.

```graphql
query {
user {
id
...UserFields @unmask
}
}
```

To help with migration, use the `@unmask` migrate mode which will add warnings when accessing fields that would otherwise be masked.

```graphql
query {
user {
id
...UserFields @unmask(mode: "migrate")
}
}
```

## 3.11.8

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/client",
"version": "3.11.8",
"version": "3.12.0-alpha.0",
"description": "A fully-featured caching GraphQL client.",
"private": true,
"keywords": [
Expand Down

0 comments on commit a0329e9

Please sign in to comment.