Skip to content

Releases

v1.6.0

Choose a tag to compare

@cldmv-bot cldmv-bot released this 01 Dec 18:55
v1.6.0
7c98197

@cldmv/configs v1.6.0 Changelog

Release Date: December 2026
Release Type: Minor
Branch: next → master


Overview

A new cldmv-configs types command builds and checks a separate <pkg>-types declarations package. With it, a fleet package can move its TypeScript declarations into an optional peer that only TypeScript users install, and keep small re-export stubs in its own types/stub/. types build writes the stubs and the carved package. types check proves that a consumer resolves the declarations and type-checks through both packages.

The package also ships its first ESLint plugin, @cldmv/configs/eslint-plugin.mjs, with one rule: cldmv/no-regex-in-tomatchobject. It flags a regex inside toMatchObject(...), which Vitest treats as matching anything, so the assertion checks nothing there. One import turns it on for a repository's test files.

The shared configs are unchanged: fix-headers.json, prettier.json, prettierignore, eslint.config.mjs and vitest.config.mjs. So are init, check and sync. The plugin is opt-in, so nothing changes for a repository until it adds it. The package still has no runtime engines field.


✨ Features

cldmv-configs types build and types check (#64)

npx cldmv-configs types build   # stubs into types/stub/, the carved package into dist-packages/<pkg>-types/
npx cldmv-configs types check   # resolution checks, then the tsc consumer check

Run types build after the repository's own types:build (tsc). The usual wiring is "build:subpackages": "cldmv-configs types build" and "test:types": "cldmv-configs types check", both in build:ci. Neither command publishes or touches the network; publishing stays in CI.

types build reads these inputs:

  • every types target in the root exports and imports, at any condition depth;
  • a required packaging/<pkg>-types/package.json;
  • an optional .configs/types-package.json (source, includeMaps, exclude, tsc).

It writes:

  • one stub per published target in types/stub/, re-exporting the default too when the real declaration has one;
  • the carved package in dist-packages/<pkg>-types/. Its package.json inherits the root's metadata and mirrors the root's typed exports. It lists the root as an optional peer and every package the declarations import by name as a required peer, using the range the root declares.

It never edits the root package.json. When a published types condition doesn't point at its stub yet, the build fails and prints the path to use. A target that points outside the repository is reported as a problem.

types check writes nothing in the repository. It checks that:

  • every published target points at a stub;
  • every stub re-exports a subpath the carved package exports, and its files exist;
  • the carved version matches the root's, and the declared peers cover every package the declarations import;
  • every import inside the carved declarations resolves.

It then type-checks a generated consumer with the repository's own typescript. The consumer imports every typed subpath and runs against the root package (as the files npm pack would publish) and the carved package, installed side by side. The runs:

  • nodenext resolution;
  • bundler resolution. A package with a browser condition runs it with that condition and without @types/node;
  • a CommonJS consumer, when the package exports a require entry;
  • one more nodenext run per extra condition, such as deno.

The consumer project lives in a fresh cldmv-types-check-* folder under the system temp folder. That way module resolution can't reach the repository's own node_modules and hide a dependency the types package doesn't declare. The folder is removed on every exit path, including SIGINT, SIGTERM and SIGHUP. tsc.enabled: false (or --no-tsc) skips the type-check, and requires a stated reason.

The README's new Types packages section covers every input, output and check.

no-regex-in-tomatchobject lint rule (#68)

import base from "@cldmv/configs/eslint.config.mjs";
import cldmv from "@cldmv/configs/eslint-plugin.mjs";

export default [...base, cldmv.configs.recommended];

cldmv.configs.recommended enables cldmv/no-regex-in-tomatchobject as an error on tests/**/*.{js,mjs,cjs} and **/*.test.vitest.mjs. The rule reports a regex literal, RegExp(...) or new RegExp(...) in the expected value passed to toMatchObject(...), as a property value or an array element, including rejects, resolves and not chains. It doesn't look inside expect.stringMatching(...), objectContaining(...) or arrayContaining(...), which compare a regex correctly. Use expect.stringMatching(...) or a separate .toMatch(...) instead.

The rule moved here from the local copies in hoot and quack, so every repository gets the same version. A repository that carries its own copy can drop it and import the plugin. Fixes #65.


🔧 CI & tooling

  • typescript and @types/node are new dev dependencies, used by the types check tests. Consumers bring their own typescript.
  • The repository's own ESLint config uses the new plugin, and coverage now includes eslint-rules/.

📚 Documentation

  • NEW: docs/changelog/v1/v1.6.0.md, this changelog.
  • README: a Types packages section, a types row in the commands table, a Test rules section for the plugin, and the What's New block promoted to v1.6.0.

Upgrade notes

No breaking changes. types is a new command and the plugin is opt-in; nothing else in the package changed behaviour. Repositories with a local copy of no-regex-in-tomatchobject can replace it with the plugin import above.


coverage

Metric Coverage
Statements 100.0%
Branches 100.0%
Functions 100.0%
Lines 100.0%

Avg: 100.0% · 17c0d48 · Node lts/*

👥 Contributors

v1.5.1

Choose a tag to compare

@cldmv-bot cldmv-bot released this 29 Nov 10:21
v1.5.1
edf93e8

@cldmv/configs v1.5.1 Changelog

Release Date: November 2026
Release Type: Patch
Branch: next → master


Overview

A dev-tooling refresh. This repository's dev dependencies move to the latest CLDMV tools, and every file header is restamped with @cldmv/fix-headers 2.6.1. No shared config changed: fix-headers.json, prettier.json, prettierignore, eslint.config.mjs, vitest.config.mjs and the cldmv-configs CLI behave exactly as in v1.5.0.

Three shipped files (bin/cldmv-configs.mjs, eslint.config.mjs, vitest.config.mjs) carry restamped header comments, which is the only change inside the package's code. The one consumer-visible change is the @cldmv/prettier-plugin-jsonv peer range, which rises from ^1.1.0 to ^1.2.4.


🔧 CI & tooling

Dev tools bumped and file headers restamped (#61)

  • @cldmv/vitest-runner ^1.11.3 → ^1.11.4, @cldmv/fix-headers ^2.6.0 → ^2.6.1, and @cldmv/jsonv and @cldmv/prettier-plugin-jsonv ^1.2.3 → ^1.2.4, all dev dependencies, with the lockfile refreshed by npm update.
  • Every header is restamped with fix-headers 2.6.1, which writes @Filename without the leading slash (bin/cldmv-configs.mjs instead of /bin/cldmv-configs.mjs) and bumps @Last modified time. That touches the workflows, tests, tool configs and .githooks/install.mjs, plus bin/cldmv-configs.mjs, eslint.config.mjs and vitest.config.mjs, which are in the published package. The edits are comments only.
  • .github/workflows/sync-release-notes.yml still carried the header of the CLDMV/.github template it was copied from (@Project: @cldmv/.github). It now has this repository's header.

🔧 Dependencies

  • @cldmv/prettier-plugin-jsonv peer range ^1.1.0 → ^1.2.4, matching the version this repository tests against (#61). A consumer on 1.1.x to 1.2.3 gets a peer warning until it updates the plugin.
  • Dev only: @cldmv/fix-headers 2.6.1, @cldmv/jsonv 1.2.4, @cldmv/prettier-plugin-jsonv 1.2.4, @cldmv/vitest-runner 1.11.4 (#61).

Upgrade notes

No breaking changes. The shared configs and the CLI are unchanged; update @cldmv/prettier-plugin-jsonv to ^1.2.4 if your repository is still on an older 1.x to clear the peer warning.


coverage

Metric Coverage
Statements 100.0%
Branches 100.0%
Functions 100.0%
Lines 100.0%

Avg: 100.0% · b7db32a · Node lts/*

👥 Contributors

v1.5.0

Choose a tag to compare

@cldmv-bot cldmv-bot released this 28 Nov 09:05
v1.5.0
5ceb405

@cldmv/configs v1.5.0 Changelog

Release Date: November 2026
Release Type: Minor
Branch: next → master


Overview

The ESLint base is now a Node-only layer. Browser globals and Vitest globals are opt-in through two new named exports, and a repository's own .configs/ files are linted. This only makes the lint stricter where it was silent: code that relied on a browser global, or a test that used describe without importing it, now gets a no-undef error to fix.

The package also declares its dev toolchain floor in devEngines, takes @cldmv/eslint-plugin-jsonv 2, and refreshes the dev tools. fix-headers.json, prettier.json, prettierignore, vitest.config.mjs and the cldmv-configs CLI are unchanged.


✨ Features

Node-only ESLint base, with opt-in browser and Vitest globals (#58, fixes #43)

The base used to declare globals.node and globals.browser for every script, and the Vitest globals for every tests/**/*.test.vitest.mjs file, so window, self, document and name never tripped no-undef in a Node package, and a test that forgot import { describe, it } from "vitest" linted clean. For packages built on slothlet, where self is a runtime binding that has to be imported, a missing import went unnoticed.

Now:

  • The default export declares globals.node only.
  • withBrowserGlobals(files?) returns a block with globals.browser for the given files (default: every **/*.{js,mjs,cjs} script), for code that really runs in a browser.
  • withVitestGlobals(files?) returns a block with the Vitest globals, read-only, for the given files (default: tests/**/*.test.vitest.mjs). Use it only when the repository's Vitest config sets test.globals: true.
  • .configs/** is no longer ignored, so an unused or unspread import in a repository's own tool configs is reported.
import base, { withBrowserGlobals, withVitestGlobals } from "@cldmv/configs/eslint.config.mjs";

export default [...base, withBrowserGlobals(["src/browser/**/*.mjs"]), withVitestGlobals()];

The README's Versioning section counts a change that only makes a tool stricter where it was silent as a minor. The tests lint sample code end to end for each case.


🐛 Bug Fixes

The dev toolchain floor is declared in devEngines (#45)

configs only runs as a consuming repository's dev tooling, so it still declares no runtime engines. The 22.22.0 floor that Vitest 5 needs now goes in devEngines (onFail: "error"), and the CI and publish workflows test from Node.js 22.22.0 instead of 22.12.0.


🔧 CI & tooling

  • ci.yml adopts the CLDMV/.github v4.46.0 concurrency block, so superseded runs on next, hotfixes and the release PR are cancelled and only release pushes always finish (#57, fixes #56).
  • ci.yml is synced with the v4.43.0 template (#55).
  • The sync-release-notes.yml companion workflow syncs release bodies from these changelog files and creates missing version tags (#52).
  • dependabot.yml takes the npm groups from the CLDMV/.github v4.47.0 template, so the CLDMV dev tools move in one PR (#59).

📚 Documentation

  • NEW: docs/changelog/v1/v1.5.0.md, this changelog.
  • README: the ESLint sections describe the Node-only base, the .configs/ linting and the two with*Globals() helpers (#58).
  • README What's New promoted to v1.5.0.

🔧 Dependencies

  • For consumers: @cldmv/eslint-plugin-jsonv ^1.0.17 → ^2.0.0. The base only spreads the plugin object and its recommended config for *.jsonv files, which 2.0.0 didn't change (#59).
  • Dev tooling in this repository: @cldmv/vitest-runner 1.11.3, @cldmv/jsonv and @cldmv/prettier-plugin-jsonv 1.2.3, @cldmv/fix-headers 2.6.0, eslint 10.16.0, prettier 3.10.1 and vitest 5.1.2 (#47, #59).

Upgrade notes

  • After updating, run the repository's lint. Expect no-undef for browser globals in Node code (import what you meant, or add withBrowserGlobals() for real browser files) and for Vitest globals in tests (import them from vitest, or add withVitestGlobals() if the Vitest config sets test.globals: true). Expect lint findings in .configs/ files too.
  • Nothing else changes: the other configs and the CLI behave as in v1.4.0.

coverage

Metric Coverage
Statements 100.0%
Branches 100.0%
Functions 100.0%
Lines 100.0%

Avg: 100.0% · a774c27 · Node lts/*

👥 Contributors

v1.4.0

Choose a tag to compare

@cldmv-bot cldmv-bot released this 02 Nov 00:05
v1.4.0
930b25f

@cldmv/configs v1.4.0 Changelog

Release Date: November 2026
Release Type: Minor
Branch: release/1.4.0


Overview

vitest.config.mjs gains a named export, devCondition(), that builds the Vitest settings a CLDMV library needs to run its tests against src/ through its <pkg>-dev export condition. Every library had been copying the same three settings by hand, and the copies set the worker flag through test.nodeOptions, which is not a Vitest option, so Vitest's worker processes never received the condition. devCondition() puts it in test.execArgv, which does reach them.

The default export of vitest.config.mjs is unchanged, as are fix-headers.json, prettier.json, prettierignore, eslint.config.mjs and the cldmv-configs CLI. The rest of the release is dependency updates.


✨ Features

devCondition() for the <pkg>-dev export condition (#39)

A CLDMV library's exports carries a <pkg>-dev condition that points . at src/ instead of dist/. Running the tests against src/ takes that condition in three places, and devCondition() returns all three as a partial Vitest config to merge with mergeConfig:

Setting Value Why
resolve.conditions the condition, then module, browser, development|production Vite's resolver picks src/ for imports in test files; setting it replaces Vite's defaults, so they follow
ssr.resolve.conditions the condition, then module, node, development|production The same for Vite's server-side resolver, which Vitest uses for Node tests
test.execArgv --conditions=<name> Vitest's worker processes start with the condition, so Node's own resolver (a require(), or anything loaded outside Vite) picks src/ too
import { defineConfig, mergeConfig } from "vitest/config";
import base, { devCondition } from "@cldmv/configs/vitest.config.mjs";

export default mergeConfig(
	mergeConfig(base, devCondition({ root: new URL("..", import.meta.url) })),
	defineConfig({ test: { coverage: { include: ["src/**"] } } })
);

The argument is the condition name (devCondition("wisp-dev")) or { name, root }. Without a name, the condition is read from <root>/package.json, where root is a path or a file URL and defaults to the current directory: the one condition ending in -dev on the . export, otherwise the unscoped package name plus -dev. More than one -dev condition, or no condition and no package name, throws instead of guessing.

Vite's default client and server conditions are also exported as VITE_CLIENT_CONDITIONS and VITE_SERVER_CONDITIONS. They are copied rather than imported, so vitest.config.mjs still imports only Node built-ins and needs nothing installed; a test checks the copies against the installed Vite.

If your repository copied these settings by hand, the test.nodeOptions entry never did anything. Replace the three settings with devCondition(), or at least move the flag to test.execArgv. A new test spawns Vitest with the merged config and checks that the flag reaches the worker's process.execArgv.


🔒 Security & supply chain

  • Vite moves from 8.3.2 to 8.3.5 in this repository's install, clearing its Dependabot alert and superseding Dependabot's #36 and #38 (#39, #40). Vite is a development dependency here; it is not installed for consumers.
  • overrides now force katex to >=0.19.1 <1.0.0 (0.16.47 → 0.19.1) and minimatch to ^11.0.3 (10.2.6 → 11.0.3), the patched versions, in this repository's own install (#41). npm ignores the overrides of an installed package, so these don't reach consuming repositories. katex arrives there through @eslint/markdown, one of this package's dependencies, whose micromark-extension-math still asks for ^0.16.0; a repository that wants the patched version carries the same override itself.

📚 Documentation

  • README: the Vitest Quick Start shows the devCondition() merge, and the vitest.config.mjs section documents devCondition(), the three settings it returns and why test.nodeOptions doesn't work. The section no longer says the module has no imports; it imports only Node built-ins (#39).
  • NEW: docs/changelog/v1/v1.4.0.md — this changelog.

🔧 Dependencies

  • Dependencies (installed with the package; #40): @cldmv/eslint-plugin-jsonv 1.0.16 → 1.0.17, @eslint/css 2.0.0 → 2.0.1, globals 17.13.0 → 17.14.0. The ranges in package.json move up to match.
  • Development dependencies (#40, #33): @cldmv/fix-headers 2.2.0 → 2.2.4, @cldmv/jsonv 1.1.3 → 1.1.5, @cldmv/prettier-plugin-jsonv 1.1.3 → 1.1.4, @cldmv/vitest-runner 1.5.2 → 1.5.6, vitest and @vitest/coverage-v8 5.0.3 → 5.0.5, eslint 10.12.0 → 10.14.0, prettier 3.9.9 → 3.9.10.
  • vite added as a development dependency (^8.3.5) for the test that checks the copied default conditions against Vite's own (#39).
  • overrides for katex and minimatch, see Security & supply chain (#41).
  • Peer dependency ranges are unchanged.

Upgrade notes

  • No breaking changes: drop-in for v1.3.0. The default export of vitest.config.mjs and every other shipped config are unchanged.
  • To run tests against src/ through the <pkg>-dev condition, merge devCondition() into the repository's Vitest config and delete any hand-copied resolve.conditions, ssr.resolve.conditions and test.nodeOptions entries.

coverage

Metric Coverage
Statements 100.0%
Branches 100.0%
Functions 100.0%
Lines 100.0%

Avg: 100.0% · 68a7b37 · Node lts/*

👥 Contributors

v1.3.0

Choose a tag to compare

@cldmv-bot cldmv-bot released this 11 Oct 22:42
v1.3.0
c1b8e91

@cldmv/configs v1.3.0 Changelog

Release Date: October 2026
Release Type: Minor
Branch: release/1.3.0


Overview

The package grows from one shared config to five. It adds prettier.json (CLDMV's house Prettier settings), prettierignore (the generic Prettier ignore list), eslint.config.mjs (the fleet's flat ESLint config) and vitest.config.mjs (a base Vitest settings object), published as @cldmv/configs/prettier.json, @cldmv/configs/prettierignore, @cldmv/configs/eslint.config.mjs and @cldmv/configs/vitest.config.mjs. A repository extends them from its own .configs/ files instead of keeping a copy of the same settings that every CLDMV repository already carried. The Prettier values and the ESLint rules are the ones the fleet already uses, so a repository that adopts them sees no change.

The package also gains dependencies. ESLint configs are code, so eslint.config.mjs imports the ESLint plugins it configures; those six packages are now regular dependencies. eslint, vitest and the jsonv Prettier plugin are optional peer dependencies, needed only by repositories that use the matching config. Until now the package had no dependencies at all.

The package also gains a command-line tool, cldmv-configs, so a repository adopts the shared configs with one command and can detect drift: init creates the stubs and scripts, check reports drift, and sync refreshes the Prettier ignore list. The ignore list moves to a managed-block shape so that a refresh never touches a repository's own lines.

fix-headers.json is unchanged from v1.2.5.


✨ Features

Shared Prettier config

prettier.json sits at the package root, is exposed through exports as ./prettier.json, and is listed in files:

Setting Value Why
useTabs, tabWidth true, 2 Tab indentation, counted as two columns when measuring width
printWidth 140 Wide lines keep short call chains and object literals on one line
trailingComma "none" No trailing commas
quoteProps "preserve" Object-key quoting stays as written
bracketSpacing true { a: 1 }
overrides for *.xml printWidth: 300 XML markup does not wrap readably at 140
overrides for *.md proseWrap: "preserve" Markdown paragraphs are never re-flowed; one paragraph per line
overrides for *.jsonv parser: "jsonv" Parse .jsonv files with the jsonv plugin
plugins ["@cldmv/prettier-plugin-jsonv"] Provides the jsonv parser

A consuming repository creates .configs/prettier.config.mjs:

import base from "@cldmv/configs/prettier.json" with { type: "json" };

export default base;

and runs Prettier with --config .configs/prettier.config.mjs. Prettier fails to start when a config names a plugin that is not installed, so repositories without .jsonv files either install the plugin or spread the base and drop plugins and the *.jsonv override; the README shows both.

Generic Prettier ignore

prettierignore lists node_modules/, dist/, build/, coverage/, tmp/, trash/, package-lock.json, pnpm-lock.yaml, *.min.*, *.yml and *.yaml, each group with a one-line reason (YAML is four-space CI and forbids tabs; *.min.* covers compact generated files). The shared lines sit between two marker lines, # >>> @cldmv/configs prettierignore v<version> — managed block, ... and # <<< @cldmv/configs prettierignore, followed by a note that repository-specific ignores go below the closing marker.

Prettier has no ignore extends, so the default is a managed block inside the repository's own .prettierignore: cldmv-configs init creates it and cldmv-configs sync rewrites only what is between the markers, so the repository's own lines (including !path re-includes) below the closing marker survive every sync. The version in the opening marker is the package version at sync time; check compares the block text and not the version. The alternative, for a repository with no additions that does not need editor support, is --ignore-path .gitignore --ignore-path node_modules/@cldmv/configs/prettierignore in the format scripts.

CLI

cldmv-configs (bin/cldmv-configs.mjs, plain ES module, Node built-ins only, no new dependencies) is exposed through the bin field and shipped in files:

  • cldmv-configs init [--dry-run] creates, only when missing, .configs/fix-headers.json, .configs/prettier.config.mjs, .configs/eslint.config.mjs, .configs/vitest.config.mjs and .prettierignore, and adds the standard format, format:check, lint, lint:fix, fix:headers, test and coverage scripts to package.json without changing any key that already exists. Everything created, added or kept is printed.
  • cldmv-configs check [--strict] reports drift without writing: stubs that are missing or no longer reference the @cldmv/configs base and a managed block that differs from the shipped one are problems; missing or detached scripts are warnings. It never inspects a repository's own additions.
  • cldmv-configs sync [--dry-run] rewrites only the managed block of .prettierignore, and refuses with a diff when the file has no markers.

Workspace monorepos

The same commands serve a single package and a workspace monorepo. Single-package behaviour is unchanged.

  • --workspaces runs init, check or sync in every workspace package, with --root adding the workspace root. Packages are found from pnpm-workspace.yaml (packages:) or package.json workspaces (array or { packages }) with a built-in matcher for *, **, trailing /** and ! exclusions that never enters node_modules. It prints one line per package and a summary, aggregates exit codes (any problem makes it 1), and nests --json results per package. Without the flag, a workspace root prints a hint and runs on the root only.
  • --ignore-file <path> (default .prettierignore) moves the managed ignore block, for repositories that keep it at .configs/.prettierignore. init creates it there, check and sync read it there, and init writes the Prettier scripts with --ignore-path .gitignore --ignore-path <path>.
  • init --scripts fleet|prettier chooses between format and format:check (default) and prettier:write and prettier:check. init never adds one pair's names when the other pair already exists, and check treats the two pairs as equivalent.
  • check reports, as a problem, a package whose .configs/ stub imports @cldmv/configs while @cldmv/configs is in no applicable package.json: under pnpm (a pnpm-lock.yaml or pnpm-workspace.yaml) it must be in the package itself, because pnpm does not hoist it; under npm the package or the workspace root is enough. The message carries the exact install command (pnpm add -D @cldmv/configs@latest --filter <pkg>, with -r suggested for the whole workspace). init prints the same command as a hint. The CLI never installs.

Every command takes --help and --json. Exit codes: 0 ok, 1 drift or problems (check) or a refused sync, 2 usage or I/O error.

ESLint base

eslint.config.mjs default-exports the flat config as an array, built with defineConfig from eslint/config, so a repository spreads it and appends its own blocks:

import base from "@cldmv/configs/eslint.config.mjs";

export default [...base];

It carries @eslint/js recommended with the ^(_|___.*)$ unused-variable pattern, sourceType: "commonjs" for .js files, Node and browser globals, the Vitest globals for tests/**/*.test.vitest.mjs, @eslint/json for JSON, JSONC and JSON5, @cldmv/eslint-plugin-jsonv for .jsonv, @eslint/markdown (with markdown/no-missing-label-refs off) and @eslint/css, plus the shared ignores. There is no HTML block, which is specific to a few repositories. The blocks are the ones common to the configs of this repository, fix-headers and slothlet-vine.

Vitest base

vitest.config.mjs default-exports a plain object with no imports: test.environment "node", test.include ["tests/**/*.test.vitest.{js,mjs,cjs}"], and v8 coverage reporting text, json, json-summary and lcov into coverage/. Coverage include globs, thresholds and anything else repository-specific stay local, merged over the base:

import { defineConfig, mergeConfig } from "vitest/config";
import base from "@cldmv/configs/vitest.config.mjs";

export default mergeConfig(base, defineConfig({ test: { coverage: { include: ["src/**"] } } }));

mergeConfig concatenates arrays, so a repository's own include or coverage.reporter entries add to the base ones. A monorepo that splits test tiers by directory (unit against docker-backed, say) should keep its own test.include instead of merging over the base's glob; the README shows how.

Dependencies and peers

  • Dependencies (new): @cldmv/eslint-plugin-jsonv, @eslint/css, @eslint/js, @eslint/json, @eslint/markdown and globals, moved from this repository's devDependencies. They were installed at their latest releases (@cldmv/eslint-plugin-jsonv ^1.0.16, @eslint/json ^2.1.1).
  • Optional peers: eslint ^10.0.0 (the @eslint/js that the confi...
Read more

v1.2.5

Choose a tag to compare

@cldmv-bot cldmv-bot released this 11 Oct 19:06
v1.2.5
91ec1ea

@cldmv/configs v1.2.5 Changelog

Release Date: October 2026
Release Type: Patch


Overview

A development-tooling release. The shared fix-headers.json is byte-for-byte unchanged from v1.2.4, so extending repositories see no difference. The only changes are the version in package.json and refreshed locked versions of the repository's own lint, format and test tooling in package-lock.json.

The published package ships exactly fix-headers.json, README.md and LICENSE. Of those, only README.md differs from v1.2.4, and only in its What's New section. package.json itself changes only its version; none of its dependency ranges moved, and the package still has no runtime dependencies.


🔧 Dependencies

Every package below is a dev dependency of this repository; none is installed by a consumer of @cldmv/configs.

  • eslint locked 10.11.0 → 10.12.0, within the existing ^10.11.0 range (#24).
  • The @cldmv tooling packages, within their existing ranges (#25):
    • @cldmv/eslint-plugin-jsonv 1.0.13 → 1.0.15
    • @cldmv/jsonv 1.1.1 → 1.1.3
    • @cldmv/prettier-plugin-jsonv 1.1.0 → 1.1.3
    • @cldmv/vitest-runner 1.5.1 → 1.5.2
  • chalk locked 5.6.2 → 6.0.1, a transitive dev dependency pulled in by the new @cldmv/vitest-runner. chalk 6 declares engines.node as >=22; it only affects installing the repository's own dev tooling. The CI matrix floor is already Node.js 22.12.0, so CI is unaffected.

📚 Documentation


Upgrade notes

  • No changes to fix-headers.json — drop-in for v1.2.4. Extending repositories need no action and will see no change in fix-headers output.

coverage

Metric Coverage
Statements 100.0%
Branches 100.0%
Functions 100.0%
Lines 100.0%

Avg: 100.0% · 0818ae7 · Node lts/*

👥 Contributors

v1.2.4

Choose a tag to compare

@cldmv-bot cldmv-bot released this 04 Oct 08:18
v1.2.4
a508c03

@cldmv/configs v1.2.4 Changelog

Release Date: October 2026
Release Type: Patch
Branch: release/1.2.4


Overview

The shared fix-headers.json stops forcing @Last modified by. Until now every fix-headers run in an extending repository stamped whoever ran it as the last modifier of every file it touched, even when the only change was a header rewrite such as a new date format. With forceLastModifiedAuthorUpdate set to false and fix-headers 2.2.0, @Last modified by now records the last person who actually edited a file's content, while @Last modified time still moves whenever fix-headers rewrites a header.

Together with forceAuthorUpdate: false, which shipped in v1.2.3, the shared config no longer rewrites anyone's authorship: @Author keeps the file's creator, and @Last modified by follows real edits. Extending repositories should upgrade to @cldmv/fix-headers 2.2.0 or later alongside this release.


🐛 Bug Fixes

@Last modified by follows real edits (#20)

forceLastModifiedAuthorUpdate was true, so every run rewrote @Last modified by to the identity running fix-headers (the name on their signing key, or git config user.name without one) on every file it changed. A contributor who ran npm run fix:headers therefore became the last modifier of every restamped file, even files they never opened (#15).

The option is now false. From fix-headers 2.2.0 (CLDMV/fix-headers#128) the field changes only when a file's content, everything outside the header, differs from the last commit, or when the file is new:

What changed in a file @Last modified time @Last modified by @Author
Nothing unchanged unchanged unchanged
Only the header (date format, epoch, @Date, spacing, filename, …) updated unchanged unchanged
Content edited, or a new file updated the person running fix-headers unchanged

On fix-headers releases before 2.2.0 the same setting keeps the existing @Last modified by on every run, real edits included, so the upgrade matters.

🔧 Dependencies

  • @cldmv/fix-headers ^2.1.4 → ^2.2.0 (#20), dev-only. The repository's own header pass ran under 2.2.0 and changed no files.
  • vitest and @vitest/coverage-v8 ^5.0.2 → ^5.0.3, and globals ^17.12.0 → ^17.13.0 (#21), dev-only. The coverage and globals bumps first merged as #18 and #19, two minutes after the v1.2.3 release, and were lost when next was reset after that release (CLDMV/.github#360). #21 re-applies them, together with the vitest bump from #17.

📚 Documentation

  • NEW: docs/changelog/v1/v1.2.4.md — this changelog.
  • README: the fix-headers.json table and notes explain both author settings, and the requirements now name fix-headers 2.2.0 as the version the author rules need.
  • v1.2.3 changelog corrected: that release also shipped forceAuthorUpdate: false, which its notes left out.

Upgrade notes

  • Upgrade @cldmv/fix-headers to 2.2.0 or later in every repository that extends this config. On older fix-headers, @Last modified by would no longer update even when a file is edited.
  • The first fix-headers run after upgrading leaves existing @Last modified by values alone and only changes them on files whose content was edited since the last commit. No repository-wide restamp of authors.

coverage

Metric Coverage
Statements 100.0%
Branches 100.0%
Functions 100.0%
Lines 100.0%

Avg: 100.0% · 117287f · Node lts/*

👥 Contributors

v1.2.3

Choose a tag to compare

@cldmv-bot cldmv-bot released this 04 Oct 06:37
v1.2.3
0106e9d

@cldmv/configs v1.2.3 Changelog

Release Date: October 2026
Release Type: Patch
Branch: release/1.2.3


Overview

@cldmv/fix-headers moves to 2.1.4, and re-running the header pass with the repository's own fix-headers.json restamped the headers of 37 files — the first full pass under fix-headers 2.x since the repository moved to it in v1.2.0. Only header comments in repository-internal files changed (the ESLint and vitest configs, the pre-commit installer, Dependabot config, every workflow and the tests). Only those internal headers came from the restamp.

Correction: this release also changed a published setting. #16 merged into next before the release and shipped with it: fix-headers.json now sets forceAuthorUpdate to false, so fix-headers keeps an existing @Author instead of rewriting it to whoever runs the tool (#15). These notes originally said fix-headers.json was unchanged.


🔧 CI & tooling

File headers restamped under fix-headers 2.1.4 (#12)

The 37 restamped headers changed in three ways:

  • ISO 8601 dates. Every @Date and @Last modified time is now written in git's %aI form (2026-09-28T21:22:20-07:00) instead of 2026-09-28 21:22:20 -07:00, as the shared config's normalizeDateFormat asks.
  • Corrected @Date epochs. In 23 of the 37 headers — .github/dependabot.yml and 22 of the 28 workflow files, whose headers came from the CLDMV/.github templates — the Unix timestamp in parentheses did not match the date written beside it (for example 2026-05-20 00:00:00 -07:00 (1779606000), where 1779606000 is 24 May). fix-headers kept the written date and rewrote the timestamp to match it (1779260400).
  • Header framing. Each header gained an empty comment line just inside its opening and just before its closing (/** then *, or a bare # in YAML), fix-headers' default spacing of one, while the single blank line after the header comes from the margin: 1 that the repository's own fix-headers.json sets.

@Last modified time was updated on every restamped file, as forceLastModifiedAuthorUpdate asks.

🐛 Bug Fixes

Existing @Author is never rewritten (#16)

forceAuthorUpdate was true, so together with useGpgSignerAuthor every fix-headers run in an extending repository replaced every file's @Author with the name of whoever ran it. @Author records who created a file, so the shared config now sets the option to false explicitly; a repository can still turn it on in its own config for a one-off migration.

📚 Documentation

🔧 Dependencies

  • @cldmv/fix-headers ^2.1.0 → ^2.1.4 (#12, dev-only).

Upgrade notes

  • fix-headers.json sets forceAuthorUpdate: false (#16): an existing @Author is kept rather than rewritten to the person running fix-headers. Repositories that relied on the force to migrate old author names can set it to true in their own config for that run. Otherwise drop-in for v1.2.2.

coverage

Metric Coverage
Statements 100.0%
Branches 100.0%
Functions 100.0%
Lines 100.0%

Avg: 100.0% · f3c80b1 · Node lts/*

👥 Contributors

v1.2.2

Choose a tag to compare

@cldmv-bot cldmv-bot released this 15 Nov 21:06
v1.2.2
26f9723

@cldmv/configs v1.2.2 Changelog

Release Date: October 2026
Release Type: Patch


Overview

A CI-only release: the ✅ Required PR Check mirror job now runs on every path instead of being skipped on in-repo feature PRs. No shipped config changed.


🔧 CI & tooling

Run the in-repo PR mirror job instead of skipping it (#10)

The fix in v1.2.1 gave the mirror job a conditional name so a skipped run would not report under the required name, but GitHub does not evaluate the name: of a skipped job, so the skipped run showed up under the raw expression text. The job now always runs (if: always()), so its name is always evaluated: on the paths that own the status it reports as ✅ Required PR Check and mirrors the test matrix's result, and on an in-repo feature PR's pull_request run it reports as ⏭️ Required PR Check (reported by the push run) and exits as a no-op.


Upgrade notes

  • No changes to fix-headers.json — drop-in for v1.2.1.

coverage

Metric Coverage
Statements 100.0%
Branches 100.0%
Functions 100.0%
Lines 100.0%

Avg: 100.0% · cf623a7 · Node lts/*

👥 Contributors

v1.2.1

Choose a tag to compare

@cldmv-bot cldmv-bot released this 02 Oct 21:46
v1.2.1
840a007

@cldmv/configs v1.2.1 Changelog

Release Date: October 2026
Release Type: Patch


Overview

A CI-only release: a skipped PR run can no longer satisfy the ✅ Required PR Check ruleset. No shipped config changed.


🔧 CI & tooling

A skipped PR run no longer satisfies Required PR Check (#8)

On an in-repo feature PR, the pull_request run skips the required-check mirror job because the push run on the head branch owns the status. GitHub still posts a check run for a skipped job and treats a skipped required check as passing, so the skipped job, named ✅ Required PR Check, could green-light the ruleset (and auto-merge) before the push run's real mirror existed. The job name is now an expression that evaluates to ✅ Required PR Check only on the paths that own the status.


Upgrade notes

  • No changes to fix-headers.json — drop-in for v1.2.0.

coverage

Metric Coverage
Statements 100.0%
Branches 100.0%
Functions 100.0%
Lines 100.0%

Avg: 100.0% · dd34003 · Node lts/*

👥 Contributors