From 6d37a7decd660fc908f0e2ac7e34df67a809e050 Mon Sep 17 00:00:00 2001 From: Eddy Nguyen Date: Thu, 18 Jun 2026 23:55:18 +1000 Subject: [PATCH 1/2] [visitor-plugin-common] Make ClientSideBaseVisitor fragments protected (#10874) * Make ClientSideBaseVisitor _fragments protected to make it available to children (mostly community packages) * Add changeset --- .changeset/yellow-baboons-grow.md | 5 +++++ .../visitor-plugin-common/src/client-side-base-visitor.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/yellow-baboons-grow.md diff --git a/.changeset/yellow-baboons-grow.md b/.changeset/yellow-baboons-grow.md new file mode 100644 index 00000000000..b3e3f781e3f --- /dev/null +++ b/.changeset/yellow-baboons-grow.md @@ -0,0 +1,5 @@ +--- +'@graphql-codegen/visitor-plugin-common': patch +--- + +Fix \_fragments to be protected instead of private diff --git a/packages/plugins/other/visitor-plugin-common/src/client-side-base-visitor.ts b/packages/plugins/other/visitor-plugin-common/src/client-side-base-visitor.ts index c5b377f7de0..6c6e18759d2 100644 --- a/packages/plugins/other/visitor-plugin-common/src/client-side-base-visitor.ts +++ b/packages/plugins/other/visitor-plugin-common/src/client-side-base-visitor.ts @@ -248,7 +248,7 @@ export class ClientSideBaseVisitor< private _onExecutableDocumentNode?: Unstable_OnExecutableDocumentNode; private _omitDefinitions?: boolean; - private readonly _fragments: ReadonlyMap; + protected readonly _fragments: ReadonlyMap; private readonly fragmentsGraph: DepGraph; constructor( From 2784ada257836190ded7ca8be290970e3c30fd69 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 18 Jun 2026 23:56:55 +1000 Subject: [PATCH 2/2] chore(release): update monorepo packages versions (#10875) Co-authored-by: github-actions[bot] --- .changeset/yellow-baboons-grow.md | 5 ----- .../plugins/other/visitor-plugin-common/CHANGELOG.md | 9 +++++++++ .../plugins/other/visitor-plugin-common/package.json | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) delete mode 100644 .changeset/yellow-baboons-grow.md diff --git a/.changeset/yellow-baboons-grow.md b/.changeset/yellow-baboons-grow.md deleted file mode 100644 index b3e3f781e3f..00000000000 --- a/.changeset/yellow-baboons-grow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-codegen/visitor-plugin-common': patch ---- - -Fix \_fragments to be protected instead of private diff --git a/packages/plugins/other/visitor-plugin-common/CHANGELOG.md b/packages/plugins/other/visitor-plugin-common/CHANGELOG.md index de7ecb05dde..f5c4448ec0d 100644 --- a/packages/plugins/other/visitor-plugin-common/CHANGELOG.md +++ b/packages/plugins/other/visitor-plugin-common/CHANGELOG.md @@ -1,5 +1,14 @@ # @graphql-codegen/visitor-plugin-common +## 7.1.1 + +### Patch Changes + +- [#10874](https://github.com/dotansimha/graphql-code-generator/pull/10874) + [`6d37a7d`](https://github.com/dotansimha/graphql-code-generator/commit/6d37a7decd660fc908f0e2ac7e34df67a809e050) + Thanks [@eddeee888](https://github.com/eddeee888)! - Fix \_fragments to be protected instead of + private + ## 7.1.0 ### Minor Changes diff --git a/packages/plugins/other/visitor-plugin-common/package.json b/packages/plugins/other/visitor-plugin-common/package.json index 5e3e5d1509d..563f5e46456 100644 --- a/packages/plugins/other/visitor-plugin-common/package.json +++ b/packages/plugins/other/visitor-plugin-common/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-codegen/visitor-plugin-common", - "version": "7.1.0", + "version": "7.1.1", "type": "module", "repository": { "type": "git",