@cldmv/fix-headers 2.2.5 → 2.2.6

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.
package/README.md CHANGED
@@ -14,18 +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.5 (November 2026)
17
+ ### Latest: v2.2.6 (November 2026)
18
18
 
19
- - **Node.js 22.22.0 or later** — `engines.node` is now `>=22.22.0` (was `>=22.13.0`). The development toolchain no longer runs on earlier 22.x releases, so they can't be tested; the library code is unchanged, but installs on Node.js 22.13 through 22.21 now get an engine warning ([#170](https://github.com/CLDMV/fix-headers/pull/170)).
20
- - **Development check removed** — the source-checkout `devcheck.mjs` added in v2.2.4 is gone. The `fix-headers-dev` export condition already picks `src/` (with it) or `dist/` (without it). Nothing changes for installed copies, and header output is identical to v2.2.4 ([#170](https://github.com/CLDMV/fix-headers/pull/170)).
21
- - [View full v2.2.5 Changelog](https://github.com/CLDMV/fix-headers/blob/master/docs/changelog/v2/v2.2.5.md)
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)
22
21
 
23
22
  ### Recent Releases
24
23
 
24
+ - **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
25
  - **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
26
  - **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
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
- - **v2.2.1** (October 2026) — development-setup patch: the repository's own `fix:headers` run moves to `@cldmv/configs` 1.2.4, whose shared config no longer forces author updates; nothing the package ships changed ([Changelog](https://github.com/CLDMV/fix-headers/blob/master/docs/changelog/v2/v2.2.1.md))
29
28
 
30
29
  📚 For complete release notes, see the [docs/changelog/](https://github.com/CLDMV/fix-headers/tree/master/docs/changelog/) folder.
31
30
 
@@ -51,8 +50,9 @@ Headers stay correct without hand-editing: `@Date` follows the file's real creat
51
50
 
52
51
  ### Requirements
53
52
 
54
- - **Node.js 22.22.0 or later** (`engines.node` is `>=22.22.0`).
55
- - The package is an ES module and loads with `import` on every supported version. `require("@cldmv/fix-headers")` loads the ES module build synchronously, which needs Node.js >=22.22.0; on older Node.js, use `import()` instead.
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
+ - `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`).
56
56
 
57
57
  ### Install
58
58
 
package/dist/index.cjs CHANGED
@@ -7,7 +7,7 @@
7
7
  * @Email: <Shinrai@users.noreply.github.com>
8
8
  * -----
9
9
  * @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
10
- * @Last modified time: 2026-11-01T13:32:08-08:00 (1793568728)
10
+ * @Last modified time: 2026-11-01T16:29:20-08:00 (1793579360)
11
11
  * -----
12
12
  * @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
13
13
  *
@@ -21,9 +21,9 @@
21
21
  * returns the default export, keeping the historical `module.exports = fixHeaders`
22
22
  * shape, instead of tsup bundling a second full copy of the library for CJS.
23
23
  *
24
- * Node.js versions without require(esm) (before 22.22) would fail with a bare
25
- * ERR_REQUIRE_ESM, so the check below fails early with a message that says what to do
26
- * instead.
24
+ * Node.js versions without require(esm) (20.x before 20.19, 22.x before 22.12, and
25
+ * anything older) would fail with a bare ERR_REQUIRE_ESM, so the check below fails
26
+ * early with a message that says what to do instead.
27
27
  *
28
28
  * It sits next to the ESM entry under the same name, so `require("./index.mjs")` resolves
29
29
  * to src/index.mjs from source and to dist/index.mjs once built. tsup's `onSuccess` copies
@@ -35,7 +35,7 @@
35
35
 
36
36
  if (!process.features?.require_module) {
37
37
  const error = new Error(
38
- `@cldmv/fix-headers: require() needs Node.js >=22.22.0 (this is ${process.version}). On older Node.js, load the package with import() instead.`
38
+ `@cldmv/fix-headers: require() needs Node.js ^20.19.0 or >=22.13.0 (this is ${process.version}). On older Node.js, load the package with import() instead.`
39
39
  );
40
40
  error.code = "ERR_REQUIRE_ESM";
41
41
  throw error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cldmv/fix-headers",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "Multi-language project header normalizer with auto-detection and override support.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -63,7 +63,14 @@
63
63
  },
64
64
  "homepage": "https://github.com/CLDMV/fix-headers#readme",
65
65
  "engines": {
66
- "node": ">=22.22.0"
66
+ "node": ">=18.0.0"
67
+ },
68
+ "devEngines": {
69
+ "runtime": {
70
+ "name": "node",
71
+ "version": ">=22.22.0",
72
+ "onFail": "error"
73
+ }
67
74
  },
68
75
  "author": {
69
76
  "name": "Shinrai",