Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .agents/skills/cliparr-git-workflow/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
16 changes: 16 additions & 0 deletions tools/release/corrections.mjs
Original file line number Diff line number Diff line change
@@ -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";
}
36 changes: 36 additions & 0 deletions tools/release/corrections.test.mjs
Original file line number Diff line number Diff line change
@@ -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,
);
});
16 changes: 16 additions & 0 deletions tools/release/notes/v3.1.3.md
Original file line number Diff line number Diff line change
@@ -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.
26 changes: 19 additions & 7 deletions tools/release/plan-release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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}.`);
Expand Down