diff --git a/.agents/skills/cliparr-git-workflow/SKILL.md b/.agents/skills/cliparr-git-workflow/SKILL.md index 4f75eebc..e9253fc7 100644 --- a/.agents/skills/cliparr-git-workflow/SKILL.md +++ b/.agents/skills/cliparr-git-workflow/SKILL.md @@ -22,6 +22,8 @@ Compatibility protects users and self-hosters, including widely used undocumente Examples: renaming environment variables; changing required deployment configuration; forcing reauthentication; removing export formats; raising minimum browser, Plex, or Jellyfin requirements. Security fixes follow the same rule when they invalidate supported setups or workflows. +Raising the minimum Node.js security patch within the same supported major is a patch release, with an explicit source-installation upgrade notice. Keep the secure minimum enforced; do not mark these updates with `!`. Node major changes and other incompatible runtime requirements still require a breaking-change review. Historical misclassifications are corrected by exact commit in `tools/release/corrections.mjs`, without rewriting main. + Transparent automatic migrations preserving data and behavior, internal refactors, and coordinated frontend/server changes are not inherently breaking. `/api` and workspace packages are internal; changing them alone does not require `!`. Judge user/operator impact, not code churn or whether behavior was documented. For breaking changes, use `!` in commit/PR titles and explicitly warn affected users: explain the old/new behavior and required upgrade actions or lost capabilities. Do not add compatibility aliases or fallbacks. diff --git a/tools/release/corrections.mjs b/tools/release/corrections.mjs new file mode 100644 index 00000000..a1dc5698 --- /dev/null +++ b/tools/release/corrections.mjs @@ -0,0 +1,16 @@ +// Historical classification corrections are pinned to an exact commit and title. +// PR #357 raises the Node security patch floor within the supported Node major; +// it is a patch release with an upgrade notice, not an app major release. +const nodeSecurityPatchCommit = "669d43fb7cf51b305127b16055fb2e96d89c6331"; +const nodeSecurityPatchTitle = + "build(deps)!: update Node.js to 26.13.1 security release"; + +export function correctReleaseTitle(sha, title) { + if (sha !== nodeSecurityPatchCommit) { + return title; + } + if (title !== nodeSecurityPatchTitle) { + throw new Error(`Release correction title mismatch for ${sha}.`); + } + return "build(deps): update Node.js to 26.13.1 security release"; +} diff --git a/tools/release/corrections.test.mjs b/tools/release/corrections.test.mjs new file mode 100644 index 00000000..af768cdd --- /dev/null +++ b/tools/release/corrections.test.mjs @@ -0,0 +1,36 @@ +import assert from "node:assert/strict"; +import test from "node:test"; + +import { summarizeChanges } from "#release/conventional.mjs"; +import { correctReleaseTitle } from "#release/corrections.mjs"; + +const sha = "669d43fb7cf51b305127b16055fb2e96d89c6331"; +const title = "build(deps)!: update Node.js to 26.13.1 security release"; + +void test("classifies the historical Node security patch as a patch", () => { + assert.equal( + summarizeChanges([correctReleaseTitle(sha, title)]).releaseType, + "patch", + ); +}); + +void test("does not suppress other breaking changes or similarly titled commits", () => { + assert.equal( + summarizeChanges([correctReleaseTitle("other", title)]).releaseType, + "major", + ); + assert.equal( + summarizeChanges([ + correctReleaseTitle(sha, title), + correctReleaseTitle("other", "feat(server)!: change authentication"), + ]).releaseType, + "major", + ); +}); + +void test("rejects a correction when the pinned commit title does not match", () => { + assert.throws( + () => correctReleaseTitle(sha, "fix: different change"), + /title mismatch/u, + ); +}); diff --git a/tools/release/notes/v3.1.3.md b/tools/release/notes/v3.1.3.md new file mode 100644 index 00000000..7268b172 --- /dev/null +++ b/tools/release/notes/v3.1.3.md @@ -0,0 +1,16 @@ +## Upgrade notice + +Source installations and external build environments must upgrade from Node.js +26.13.0 to **26.13.1 or a later compatible 26.x release**. Container images +include the updated runtime. This same-major security patch requirement is +classified as a patch release; the secure minimum remains enforced. + +## Highlights + +- Keep the final video preview frame visible when playback ends. +- Update Mediabunny and its codec packages to 1.66.5. +- Refresh Node and distroless images and patch container libraries, including + zlib and zstd in development and capture images. +- Update application and build dependencies, resolve stricter lint errors, and + correct the website test JSX configuration. +- Improve homepage demos and setup guidance. diff --git a/tools/release/plan-release.mjs b/tools/release/plan-release.mjs index 38b616cb..200c83d3 100644 --- a/tools/release/plan-release.mjs +++ b/tools/release/plan-release.mjs @@ -16,6 +16,7 @@ import { parseSemverTag, summarizeChanges, } from "#release/conventional.mjs"; +import { correctReleaseTitle } from "#release/corrections.mjs"; import { writeGithubOutput } from "#release/github-output.mjs"; const validChannels = new Set(["stable", "rc", "beta"]); @@ -79,10 +80,21 @@ function getTags(target) { return output ? output.split("\n").filter(Boolean) : []; } -function getCommitMessages(fromTag, target) { +function getCommits(fromTag, target) { const range = fromTag ? `${fromTag}..${target}` : target; - const output = git(["log", "--first-parent", range, "--format=%x1e%B%x1f"]); - return parseGitLogMessages(output); + const output = git([ + "log", + "--first-parent", + range, + "--format=%x1e%H%n%B%x1f", + ]); + return parseGitLogMessages(output).map((record) => { + const separator = record.indexOf("\n"); + return { + sha: record.slice(0, separator), + message: record.slice(separator + 1), + }; + }); } function getShortSha(target) { @@ -127,9 +139,9 @@ export function planRelease(arguments_) { ); } - const messages = getCommitMessages(previousStableTag, arguments_.target); - const titles = messages.map((message) => - extractReleaseTitleFromCommitMessage(message), + const commits = getCommits(previousStableTag, arguments_.target); + const titles = commits.map(({ sha, message }) => + correctReleaseTitle(sha, extractReleaseTitleFromCommitMessage(message)), ); const summary = summarizeChanges(titles); @@ -167,7 +179,7 @@ export function planRelease(arguments_) { isPrerelease ? arguments_.channel : "rc", ); const changesSincePrerelease = previousPrereleaseTag - ? getCommitMessages(previousPrereleaseTag, target).length + ? getCommits(previousPrereleaseTag, target).length : undefined; if (isPrerelease && changesSincePrerelease === 0) { throw new Error(`No new commits since ${previousPrereleaseTag}.`);