Update to changesets v3 packages (#673)

* Update to changesets v3 packages

* Dedupe

* Fix test

* Fix test 2

* update more

---------

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
This commit is contained in:
Bjorn Lu
2026-06-25 10:58:02 +00:00
committed by GitHub
co-authored by Mateusz Burzyński
parent b12c36a7bf
commit 823cf741ca
9 changed files with 299 additions and 720 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@changesets/action": major
---
Update to Changesets v3 packages
+9 -9
View File
@@ -21,12 +21,12 @@
"@actions/core": "^3.0.1",
"@actions/exec": "^3.0.0",
"@actions/github": "^9.1.1",
"@changesets/get-release-plan": "^4.0.16",
"@changesets/get-release-plan": "^5.0.0-next.6",
"@changesets/ghcommit": "^2.1.1",
"@changesets/git": "^3.0.4",
"@changesets/pre": "^2.0.2",
"@changesets/read": "^0.6.7",
"@manypkg/get-packages": "^1.1.3",
"@changesets/git": "^4.0.0-next.5",
"@changesets/pre": "^3.0.0-next.5",
"@changesets/read": "^1.0.0-next.6",
"@manypkg/get-packages": "^3.1.0",
"@octokit/core": "^7.0.6",
"@octokit/plugin-throttling": "^11.0.3",
"human-id": "^4.1.3",
@@ -35,10 +35,10 @@
"tinyexec": "^1.2.4"
},
"devDependencies": {
"@changesets/changelog-github": "^0.7.0",
"@changesets/cli": "^2.31.0",
"@changesets/types": "^6.1.0",
"@changesets/write": "^0.4.0",
"@changesets/changelog-github": "^1.0.0-next.5",
"@changesets/cli": "^3.0.0-next.6",
"@changesets/types": "^7.0.0-next.5",
"@changesets/write": "^1.0.0-next.5",
"@tsconfig/node24": "^24.0.4",
"@types/node": "^24.12.4",
"@types/semver": "^7.7.1",
+266 -705
View File
File diff suppressed because it is too large Load Diff
+11 -1
View File
@@ -3,7 +3,17 @@ dedupePeers: true
dedupePeerDependents: true
minimumReleaseAge: 10080
minimumReleaseAgeExclude:
- "@changesets/ghcommit@2.1.1"
- "@changesets/apply-release-plan@8.0.0-next.6"
- "@changesets/assemble-release-plan@7.0.0-next.6"
- "@changesets/changelog-github@1.0.0-next.5"
- "@changesets/cli@3.0.0-next.6"
- "@changesets/get-release-plan@5.0.0-next.6"
- "@changesets/git@4.0.0-next.5"
- "@changesets/parse@1.0.0-next.6"
- "@changesets/pre@3.0.0-next.5"
- "@changesets/read@1.0.0-next.6"
- "@changesets/types@7.0.0-next.5"
- "@changesets/write@1.0.0-next.5"
overrides:
lightningcss: "-" # we do not bundle any css
+1 -1
View File
@@ -1,5 +1,5 @@
import * as github from "@actions/github";
import getReleasePlan from "@changesets/get-release-plan";
import { getReleasePlan } from "@changesets/get-release-plan";
import type {
ComprehensiveRelease,
ReleasePlan,
+2 -1
View File
@@ -1,6 +1,6 @@
import { pathToFileURL } from "node:url";
import type * as github from "@actions/github";
import getReleasePlan from "@changesets/get-release-plan";
import { getReleasePlan } from "@changesets/get-release-plan";
import { createFixture } from "fs-fixture";
import { exec } from "tinyexec";
import { describe, expect, it } from "vitest";
@@ -28,6 +28,7 @@ describe("getPullRequestWorktree", () => {
private: true,
workspaces: ["packages/*"],
}),
"package-lock.json": "",
"packages/pkg-a/package.json": JSON.stringify({
name: "pkg-a",
version: "1.0.0",
+1 -1
View File
@@ -1,5 +1,5 @@
import { readPreState } from "@changesets/pre";
import readChangesets from "@changesets/read";
import { readChangesets } from "@changesets/read";
import type { PreState, NewChangeset } from "@changesets/types";
export type ChangesetState = {
+3 -1
View File
@@ -1,6 +1,6 @@
import path from "node:path";
import type { Changeset } from "@changesets/types";
import writeChangeset from "@changesets/write";
import { writeChangeset } from "@changesets/write";
import { createFixture } from "fs-fixture";
import { beforeEach, describe, expect, it, vi } from "vitest";
import { GitHub } from "./github.ts";
@@ -56,6 +56,7 @@ function createSimpleProjectFixture() {
private: true,
workspaces: ["packages/*"],
}),
"package-lock.json": "",
});
}
@@ -82,6 +83,7 @@ function createIgnoredPackageFixture() {
private: true,
workspaces: ["packages/*"],
}),
"package-lock.json": "",
});
}
+1 -1
View File
@@ -117,7 +117,7 @@ export async function runPublish({
let { packages, tool } = await getPackages(cwd);
let releasedPackages: Package[] = [];
if (tool !== "root") {
if (tool.type !== "root") {
let newTagRegex = /New tag:\s+(@[^/]+\/[^@]+|[^/]+)@([^\s]+)/;
let packagesByName = new Map(packages.map((x) => [x.packageJson.name, x]));