From d5dc9fdd148b794b426505e213830da88229ec7f Mon Sep 17 00:00:00 2001 From: bluwy Date: Tue, 30 Jun 2026 10:21:35 +0800 Subject: [PATCH] Remove "private" type from `WrittenConfig.access` --- .changeset/light-friends-warn.md | 5 +++++ packages/types/src/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/light-friends-warn.md diff --git a/.changeset/light-friends-warn.md b/.changeset/light-friends-warn.md new file mode 100644 index 000000000..667ae1c91 --- /dev/null +++ b/.changeset/light-friends-warn.md @@ -0,0 +1,5 @@ +--- +"@changesets/types": major +--- + +Remove `"private"` type support for `WrittenConfig.access`. Only `"public"` and `"restricted"` are valid values. This change was also already made in [#2015](https://github.com/changesets/changesets/pull/2015) in the runtime. diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 1f4952e98..37c6eb3be 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -101,7 +101,7 @@ export type WrittenConfig = { commit?: boolean | readonly [string, null | Record] | string; fixed?: Fixed; linked?: Linked; - access?: AccessType | "private"; + access?: AccessType; baseBranch?: string; changedFilePatterns?: readonly string[]; format?: "auto" | "prettier" | "oxfmt" | "deno" | "dprint" | false;