Skip to content

release: v4.35.0 - scope the pre-commit check to staged files through… - #411

Merged
cldmv-bot[bot] merged 27 commits into
masterfrom
next
Nov 1, 2026
Merged

cldmv-bot[bot] merged 27 commits into
masterfrom
next

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

v4.35.0 — 2026-11-01

Minor release. Org bootstrap now creates the orphan badges branch, the pre-commit hook can check only staged files, and a new README template and format convention cover CLDMV packages. It also validates the label catalog before the org label sync touches any repo, stops routine Dependabot bumps from being redirected to hotfixes, and raises the default CI test floor to Node.js 22.22.0.

Added

  • Org bootstrap creates the badges branch. The branches step of org-bootstrap-repo now creates the orphan badges branch the coverage-badge job pushes to, holding only a short README, when the repo doesn't have one. An existing badges branch is never reset. Two new inputs control it: badges_branch (default badges) and create_badges_branch (default true). Under dry-run the step only logs what it would create. Fixes #403. (#413)
  • The pre-commit hook can check staged files only. examples/git-hooks/pre-commit (and this repo's .githooks/pre-commit) passes the staged paths to optional lint:staged and format:check:staged npm scripts when a repo defines them. Repos without them keep running the whole-repo lint and format:check. docs/conventions/lint-format-precommit.md documents the scripts, including a note that xargs may split a very large staged list across several runs. Fixes #401. (#414)
  • README template and format convention. examples/readme/README.template.md is the standard layout for a CLDMV package README, with the full badge set and placeholders for package name, default branch and content sections. docs/conventions/readme-format.md describes the sections and is linked from the README, examples/README.md and the release-flow doc. Wiring the template into scaffolding is listed there as follow-up. Fixes #404. (#415)

Fixed

  • The label catalog is validated before the org label sync starts. sync-org-labels checks every entry in data/github-labels.json first: name and description lengths against GitHub's limits, a six-digit hex colour, aliases as a list of strings, and no name or alias claimed by two labels. Any problem is reported as an error annotation and the job exits before a single repo is touched, instead of failing with HTTP 422 in every repo as the over-long description in v4.33.0 did. data/github-labels.test.mjs uses the same check. Fixes #402. (#412)
  • Routine Dependabot bumps stay on next when the body quotes a GHSA id. The hotfix redirector treated any GHSA id in a Dependabot PR body as a security update, and Dependabot copies upstream release notes into the body, which often name advisories. A routine @cldmv/vitest-runner bump was redirected to hotfixes that way. When the repo's routine Dependabot target is known, the PR's base branch alone now decides. The body is only checked when the target is unknown. Fixes #409. (#410)
  • The CI test matrix starts at Node.js 22.22.0. The min_node_version default in workflow-ci.yml, workflow-release.yml and reusable-build-and-test.yml, and in the ci.yml, publish.yml and release.yml templates, moves from 22.12.0 to 22.22.0, the fleet floor the dev toolchain needs. (#408)

Documentation

  • Package layout convention drops devcheck. docs/conventions/package-layout.md no longer describes a root devcheck.mjs: the <pkg>-dev condition picks src/ or dist/, and both are legitimate. It also sets engines.node to >=22.22.0 and shows building the vitest condition settings with devCondition(), passing the worker flag through test.execArgv. (#407)

Dependencies

  • Dev toolchain bumped to latest: eslint 10.14, prettier 3.9.10, @eslint/css 2, @eslint/json 2.1, globals 17.14 and the @cldmv jsonv packages. (#416)
  • overrides pin katex to >=0.19.1 <1.0.0 and minimatch to ^11.0.3, the patched versions of the transitive dependencies pulled in by the eslint and @eslint/markdown chain. (#417)

Upgrade notes

  • No breaking changes. Consumers get the bootstrap, redirector and CI changes through the rolling @v4 tag once v4 points at this release.
  • A repo that pins min_node_version in its own ci.yml keeps that value. Raise it to 22.22.0 to match the fleet floor.
  • To use staged-only pre-commit checks, copy the updated hook into the repo's .githooks/ and add lint:staged / format:check:staged scripts as shown in the convention doc.
👥 Contributors

Co-authored-by: Shinrai [email protected]

Shinrai and others added 9 commits November 1, 2026 09:57
…the worker flag through execArgv

test.nodeOptions isn't a Vitest option, so the documented block never reached the workers.
The dev toolchain (chokidar 6, tsup 9) needs Node 22.22, so packages can't test or claim anything older.
The CLDMV dev toolchain (chokidar 6, tsup 9) needs Node 22.22, so a matrix starting at 22.12 fails on its lowest job. Changes min_node_version in the reusable workflows and the core-cicd example callers.
…A id

The redirector treated any GHSA id in a Dependabot PR body as a security
update, even when the PR already targeted the routine target-branch.
Dependabot copies upstream release notes into the body, so a routine bump
whose upstream changelog names an advisory got moved to hotfixes. With a
known target-branch the base alone now decides; the body check only runs
when no target-branch is configured. Also runs the redirect tests in npm test.

Fixes #409
@cldmv-bot cldmv-bot Bot added ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: bug Something is broken or not behaving as expected area: core Touches core library / runtime source code type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments labels Nov 1, 2026
Shinrai and others added 9 commits November 1, 2026 14:07
…ptional lint:staged / format:check:staged scripts

The pre-commit hook now passes the staged paths (NUL-delimited, safe for spaces) to `lint:staged` and `format:check:staged` when package.json defines them, each independently replacing `lint` / `format:check`. Without them the whole-repo scripts run as before. Nothing staged skips the staged scripts. The hook stays check-only and `precommit:local` still runs last. The repo's own .githooks/pre-commit is kept identical to the example, and the lint-format-precommit convention doc describes the new scripts.

Closes #401
…step

The branches step now also creates the orphan badges branch the coverage badge job pushes to: a parentless commit holding a placeholder README, made through the Git Data API. An existing badges branch is left alone. New inputs badges_branch (default badges) and create_badges_branch (default true) allow renaming or opting out. dry_run is honoured.

Closes #403
…repo

The sync now checks data/github-labels.json against GitHub's label limits (name 50 and description 100 code points, 6-hex colour) and for a name or alias owned by two labels, and exits once with an annotated error before any API call. The catalog test uses the same validator, so the two can't drift.

The description fix and console logging from the issue already shipped in v4.34.0 (#398).

Closes #402
Adds examples/readme/README.template.md, the shared package README skeleton with the reference-style badge footer, and docs/conventions/readme-format.md describing the format.

Closes #404
All devDependencies moved to @latest, including @eslint/css 1.4.0 -> 2.0.1 and eslint 10.8.1 -> 10.14.0.

Alerts #6 (katex) and #7 (minimatch) remain: both are dev-only transitives of eslint and @eslint/markdown, and the patched minimatch 11 is a new major.
katex 0.19.1+ and minimatch 11.0.3+ clear the dev-only advisories that come in through eslint and @eslint/markdown; the same overrides fix-headers carries.
@cldmv-bot cldmv-bot Bot added the area: tests Touches test files, fixtures, or test infrastructure label Nov 1, 2026
@cldmv-bot cldmv-bot Bot changed the title release: v4.34.1 - default the Node.js test matrix to 22.22.0, the fleet… release: v4.35.0 - scope the pre-commit check to staged files through… Nov 1, 2026
@cldmv-bot cldmv-bot Bot added semver: minor This release adds new functionality in a backwards-compatible way type: feature Implements new functionality — a PR or issue that adds a feature and removed semver: patch This release contains only backwards-compatible bug fixes labels Nov 1, 2026
@cldmv-bot
cldmv-bot Bot merged commit 55c31d1 into master Nov 1, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: minor This release adds new functionality in a backwards-compatible way type: bug Something is broken or not behaving as expected type: ci Changes to CI workflows, actions, or build pipelines type: config Changes to repository or project configuration files type: documentation Relates to docs, README updates, guides, or inline code comments type: feature Implements new functionality — a PR or issue that adds a feature

Projects

None yet

1 participant