From aae74442ea57013dfe52ffad2d5007a5a95fcfa7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 13 Nov 2024 17:34:36 +0000 Subject: [PATCH] Version Packages (alpha) --- .changeset/pre.json | 6 +++++- CHANGELOG.md | 22 ++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 30 insertions(+), 4 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 31859f8c453..17ca4a8a5bb 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -5,6 +5,10 @@ "@apollo/client": "3.11.5" }, "changesets": [ - "nasty-camels-pay" + "early-bobcats-eat", + "flat-beans-knock", + "kind-toys-tie", + "nasty-camels-pay", + "nervous-owls-hear" ] } diff --git a/CHANGELOG.md b/CHANGELOG.md index 45130ab1371..ca0bb14509e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # @apollo/client +## 3.12.0-alpha.1 + +### Patch Changes + +- [#12116](https://github.com/apollographql/apollo-client/pull/12116) [`8ae6e4e`](https://github.com/apollographql/apollo-client/commit/8ae6e4e5cec296c3910fdffb0ce51a0f5f06c5d3) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Prevent field accessor warnings when using `@unmask(mode: "migrate")` on objects that are passed into `cache.identify`. + +- [#12120](https://github.com/apollographql/apollo-client/pull/12120) [`6a98e76`](https://github.com/apollographql/apollo-client/commit/6a98e76af5c800a91a748c498611b55c33e02c68) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Provide a codemod that applies `@unmask` to all named fragments for all operations and fragments. To use the codemod, run the following command: + + ``` + npx jscodeshift -t node_modules/@apollo/client/scripts/codemods/data-masking/unmask.ts --extensions tsx --parser tsx path/to/app/ + ``` + + To customize the tag used to search for GraphQL operations, use the `--tag` option. By default the codemod looks for `gql` and `graphql` tags. + + To apply the directive in migrate mode in order to receive runtime warnings on potentially masked fields, use the `--mode migrate` option. + + For more information on the options that can be used with `jscodeshift`, check out the [`jscodeshift` documentation](https://github.com/facebook/jscodeshift). + +- [#12123](https://github.com/apollographql/apollo-client/pull/12123) [`8422a30`](https://github.com/apollographql/apollo-client/commit/8422a305eff861fc8f953731e92c860f555bd99a) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Warn when using data masking with "no-cache" operations. + +- [#12114](https://github.com/apollographql/apollo-client/pull/12114) [`1d4ce00`](https://github.com/apollographql/apollo-client/commit/1d4ce0034395147445165022f7d23f42ff638d8a) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix error when combining `@unmask` and `@defer` directives on a fragment spread when data masking is enabled. + ## 3.12.0-alpha.0 ### Minor Changes diff --git a/package-lock.json b/package-lock.json index 0b15b6f6802..a982a88ba46 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apollo/client", - "version": "3.12.0-alpha.0", + "version": "3.12.0-alpha.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apollo/client", - "version": "3.12.0-alpha.0", + "version": "3.12.0-alpha.1", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 573311e3476..3d64f223f8e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/client", - "version": "3.12.0-alpha.0", + "version": "3.12.0-alpha.1", "description": "A fully-featured caching GraphQL client.", "private": true, "keywords": [