@cldmv/fix-headers 2.2.6 → 2.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -14,17 +14,17 @@ Headers stay correct without hand-editing: `@Date` follows the file's real creat
14
14
 
15
15
  ## ✨ What's New
16
16
 
17
- ### Latest: v2.2.6 (November 2026)
17
+ ### Latest: v2.2.7 (November 2026)
18
18
 
19
- - **`engines.node` is the runtime floor again** — `engines.node` is back to `>=18.0.0`, the version the package actually needs, instead of v2.2.5's `>=22.22.0`, so installs on Node.js 18 through 22.21 no longer get an engine warning. The 22.22.0 development toolchain floor moves to `devEngines`, which only applies to work on this repository. `require()` still needs Node.js ^20.19.0 or >=22.13.0, and its error message now says so ([#176](https://github.com/CLDMV/fix-headers/pull/176)).
20
- - [View full v2.2.6 Changelog](https://github.com/CLDMV/fix-headers/blob/master/docs/changelog/v2/v2.2.6.md)
19
+ - **Tests run against `src/` and `dist/`** — no library code changed. The test suite now gets the `fix-headers-dev` condition through `devCondition()` from `@cldmv/configs` (the old `test.nodeOptions` never reached the workers), the tests import the package by name, and `npm run test:dist` builds the package and runs the same suite against `dist/` ([#179](https://github.com/CLDMV/fix-headers/pull/179), [#181](https://github.com/CLDMV/fix-headers/pull/181)). Also a discovery-test fix for checkouts under a `dist` folder, `vitest` 5.1.0 and the `sync-release-notes` workflow ([#182](https://github.com/CLDMV/fix-headers/pull/182), [#183](https://github.com/CLDMV/fix-headers/pull/183), [#187](https://github.com/CLDMV/fix-headers/pull/187)).
20
+ - [View full v2.2.7 Changelog](https://github.com/CLDMV/fix-headers/blob/master/docs/changelog/v2/v2.2.7.md)
21
21
 
22
22
  ### Recent Releases
23
23
 
24
+ - **v2.2.6** (November 2026) — `engines.node` is back to `>=18.0.0`, the runtime floor; the 22.22.0 development toolchain floor moves to `devEngines`, and the `require()` error names ^20.19.0 or >=22.13.0 ([Changelog](https://github.com/CLDMV/fix-headers/blob/master/docs/changelog/v2/v2.2.6.md))
24
25
  - **v2.2.5** (November 2026) — the source-checkout development check is removed (the `fix-headers-dev` condition already picks `src/` or `dist/`), and `engines.node` went to `>=22.22.0` ([Changelog](https://github.com/CLDMV/fix-headers/blob/master/docs/changelog/v2/v2.2.5.md))
25
26
  - **v2.2.4** (October 2026) — one header per file: stacked headers merge, repeated fields and stale `@Copyright` lines are dropped, only position-critical lines stay above the header, `#` headers are found in CRLF and byte-order-mark files ([Changelog](https://github.com/CLDMV/fix-headers/blob/master/docs/changelog/v2/v2.2.4.md))
26
27
  - **v2.2.3** (October 2026) — text inside an existing header that is not a header field is kept instead of deleted, moved to its own block below the header by default (`strictHeaderBlock`), plus a dependency refresh ([Changelog](https://github.com/CLDMV/fix-headers/blob/master/docs/changelog/v2/v2.2.3.md))
27
- - **v2.2.2** (October 2026) — dependency refresh with nothing the package ships changed: `ignore` 7.0.12 within its range, plus `@cldmv/vitest-runner` 1.5.3, `vitest` 5.0.3, `eslint` 10.12.0 and `globals` 17.13.0 ([Changelog](https://github.com/CLDMV/fix-headers/blob/master/docs/changelog/v2/v2.2.2.md))
28
28
 
29
29
  📚 For complete release notes, see the [docs/changelog/](https://github.com/CLDMV/fix-headers/tree/master/docs/changelog/) folder.
30
30
 
@@ -52,7 +52,7 @@ Headers stay correct without hand-editing: `@Date` follows the file's real creat
52
52
 
53
53
  - **Node.js 18.0.0 or later** (`engines.node` is `>=18.0.0`). The package is an ES module and loads with `import` on every supported version. Remote (`https://`) config `extends` uses the global `fetch`, which Node.js 18 has.
54
54
  - `require("@cldmv/fix-headers")` loads the ES module build synchronously, which needs Node.js ^20.19.0 or >=22.13.0; on older Node.js, use `import()` instead.
55
- - Developing this package needs Node.js 22.22.0 or later (`devEngines`).
55
+ - Developing this package needs Node.js 22.22.0 or later (`devEngines`). `npm test` runs the suite against `src/`, and `npm run test:dist` builds the package and runs it against `dist/`.
56
56
 
57
57
  ### Install
58
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cldmv/fix-headers",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "Multi-language project header normalizer with auto-detection and override support.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -31,11 +31,12 @@
31
31
  },
32
32
  "scripts": {
33
33
  "build:ci": "npm run lint --if-present && npm run format:check --if-present && npm run types:check && npm run types:build && npm run build",
34
- "test": "node tests/run-vitest.mjs && npm run test:cjs",
34
+ "test": "node tests/run-vitest.mjs && npm run test:cjs && npm run test:dist",
35
35
  "test:cjs": "npm run build && node --conditions=fix-headers-dev --test tests/cjs/entry.test.cjs",
36
+ "test:dist": "npm run build && node tests/run-vitest.mjs --mode=dist",
36
37
  "test:watch": "vitest --config .configs/vitest.config.mjs",
37
38
  "coverage": "node tests/run-vitest.mjs --coverage-quiet && npm run test:cjs",
38
- "ci:coverage": "npm run coverage",
39
+ "ci:coverage": "npm run coverage && npm run test:dist",
39
40
  "types:build": "tsc -p .configs/tsconfig.json --noCheck",
40
41
  "types:check": "tsc -p .configs/tsconfig.json --noEmit",
41
42
  "cli": "node --conditions=fix-headers-dev ./src/cli.mjs",
@@ -94,7 +95,7 @@
94
95
  "license": "Apache-2.0",
95
96
  "sideEffects": false,
96
97
  "devDependencies": {
97
- "@cldmv/configs": "^1.2.4",
98
+ "@cldmv/configs": "^1.4.0",
98
99
  "@cldmv/eslint-plugin-jsonv": "^1.0.10",
99
100
  "@cldmv/jsonv": "^1.0.9",
100
101
  "@cldmv/prettier-plugin-jsonv": "^1.0.6",