@cldmv/fix-headers 2.1.1 → 2.1.3
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 +6 -6
- package/dist/index.cjs +5 -3
- package/package.json +4 -2
- package/types/src/header/fields.d.mts +4 -2
- package/types/src/utils/diff.d.mts +4 -2
- package/types/src/utils/time.d.mts +4 -2
package/README.md
CHANGED
|
@@ -10,17 +10,17 @@ Multi-language source header normalizer for Node.js projects.
|
|
|
10
10
|
|
|
11
11
|
## ✨ What's New
|
|
12
12
|
|
|
13
|
-
### Latest: v2.1.
|
|
13
|
+
### Latest: v2.1.3 (October 2026)
|
|
14
14
|
|
|
15
|
-
- **
|
|
16
|
-
- [View full v2.1.
|
|
15
|
+
- **CI and development-dependency maintenance, no runtime change** — the `✅ Required PR Check` mirror job in `ci.yml` no longer carries the required name while it is skipped, so a skipped `pull_request` run can no longer satisfy the branch ruleset and let an in-repo PR merge before the push run's tests have finished ([#111](https://github.com/CLDMV/fix-headers/pull/111)). Four development dependencies move to their current releases in the lockfile: `@cldmv/jsonv` 1.1.1, `@cldmv/eslint-plugin-jsonv` 1.0.13, `@cldmv/prettier-plugin-jsonv` 1.1.0 and `@cldmv/vitest-runner` 1.5.1 ([#109](https://github.com/CLDMV/fix-headers/pull/109), [#114](https://github.com/CLDMV/fix-headers/pull/114)). `ignore`, the only runtime dependency, is unchanged, and `dist/`, `bin/` and the API are the same as in v2.1.2.
|
|
16
|
+
- [View full v2.1.3 Changelog](https://github.com/CLDMV/fix-headers/blob/master/docs/changelog/v2/v2.1.3.md)
|
|
17
17
|
|
|
18
18
|
### Recent Releases
|
|
19
19
|
|
|
20
|
+
- **v2.1.2** (October 2026) — no runtime change: the repository adopts the shared CLDMV fix-headers config (`.configs/fix-headers.json` extending `@cldmv/configs/fix-headers.json`, run with `npm run fix:headers`) and stamps uniform file headers across its own sources ([#107](https://github.com/CLDMV/fix-headers/pull/107)) ([Release](https://github.com/CLDMV/fix-headers/releases/tag/v2.1.2))
|
|
21
|
+
- **v2.1.1** (October 2026) — a file that holds only a header now ends with the header instead of trailing `margin` blank lines ([#105](https://github.com/CLDMV/fix-headers/pull/105), fixes [#104](https://github.com/CLDMV/fix-headers/issues/104)); `esbuild` bumped to 0.28.2 to clear GHSA-g7r4-m6w7-qqqr ([#103](https://github.com/CLDMV/fix-headers/pull/103)) ([Release](https://github.com/CLDMV/fix-headers/releases/tag/v2.1.1))
|
|
22
|
+
- **v2.1.0** (September 2026) — `spacing` and `margin` header layout options: every header is framed with empty comment lines and followed by two blank lines, and YAML and Python headers keep their padded `#` lines on the first run ([#101](https://github.com/CLDMV/fix-headers/pull/101)) ([Changelog](https://github.com/CLDMV/fix-headers/blob/master/docs/changelog/v2/v2.1.0.md))
|
|
20
23
|
- **v2.0.0** (September 2026) — built package (`dist/` and `bin/` instead of `src/`), discovery without name-based skips, `@Project` and the copyright holder from the project manifest, `--check` date validation, `--diff`, `--timezone` and config `extends` ([Changelog](https://github.com/CLDMV/fix-headers/blob/master/docs/changelog/v2/v2.0.0.md))
|
|
21
|
-
- **v1.3.12** (September 2026) — `engines.node` raised to `>=22.12.0` with the move to vitest 5; `ignore` bumped to 7.0.8 ([#38](https://github.com/CLDMV/fix-headers/pull/38), [#40](https://github.com/CLDMV/fix-headers/pull/40), [#43](https://github.com/CLDMV/fix-headers/pull/43)) ([Release](https://github.com/CLDMV/fix-headers/releases/tag/v1.3.12))
|
|
22
|
-
- **v1.3.11** (September 2026) — CI and release automation only, no runtime change: bot identity and GPG secrets passed to the v4 release and hotfix-redirect workflows ([#32](https://github.com/CLDMV/fix-headers/pull/32), [#36](https://github.com/CLDMV/fix-headers/pull/36)) ([Release](https://github.com/CLDMV/fix-headers/releases/tag/v1.3.11))
|
|
23
|
-
- **v1.3.10** (August 2026) — tests only, no runtime change: fallback-path tests run in a workspace with no project ancestry ([#28](https://github.com/CLDMV/fix-headers/pull/28)) ([Release](https://github.com/CLDMV/fix-headers/releases/tag/v1.3.10))
|
|
24
24
|
|
|
25
25
|
📚 For complete release notes, see the [docs/changelog/](https://github.com/CLDMV/fix-headers/tree/master/docs/changelog/) folder and the [GitHub Releases](https://github.com/CLDMV/fix-headers/releases).
|
|
26
26
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
+
*
|
|
2
3
|
* @Project: @cldmv/fix-headers
|
|
3
4
|
* @Filename: /src/cjs/index.cjs
|
|
4
|
-
* @Date: 2026-09-
|
|
5
|
+
* @Date: 2026-09-28T06:56:09-07:00 (1790603769)
|
|
5
6
|
* @Author: Nate Corcoran <CLDMV>
|
|
6
7
|
* @Email: <Shinrai@users.noreply.github.com>
|
|
7
8
|
* -----
|
|
8
9
|
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
9
|
-
* @Last modified time: 2026-
|
|
10
|
+
* @Last modified time: 2026-10-02T12:28:11-07:00 (1790969291)
|
|
10
11
|
* -----
|
|
11
|
-
* @Copyright: Copyright (c)
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
12
14
|
*/
|
|
13
15
|
|
|
14
16
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cldmv/fix-headers",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Multi-language project header normalizer with auto-detection and override support.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"lint:fix": "eslint --config .configs/eslint.config.mjs . --fix",
|
|
44
44
|
"format": "prettier --config .configs/.prettierrc --write .",
|
|
45
45
|
"format:check": "prettier --config .configs/.prettierrc --check .",
|
|
46
|
-
"prepare": "node -e \"import('./.githooks/install.mjs').catch(()=>{})\""
|
|
46
|
+
"prepare": "node -e \"import('./.githooks/install.mjs').catch(()=>{})\"",
|
|
47
|
+
"fix:headers": "node ./src/cli.mjs --config .configs/fix-headers.json"
|
|
47
48
|
},
|
|
48
49
|
"keywords": [
|
|
49
50
|
"headers",
|
|
@@ -84,6 +85,7 @@
|
|
|
84
85
|
"license": "Apache-2.0",
|
|
85
86
|
"sideEffects": false,
|
|
86
87
|
"devDependencies": {
|
|
88
|
+
"@cldmv/configs": "^1.2.0",
|
|
87
89
|
"@cldmv/eslint-plugin-jsonv": "^1.0.10",
|
|
88
90
|
"@cldmv/jsonv": "^1.0.9",
|
|
89
91
|
"@cldmv/prettier-plugin-jsonv": "^1.0.6",
|
|
@@ -18,6 +18,7 @@ export function parseHeaderFields(headerText: string): HeaderFields;
|
|
|
18
18
|
*/
|
|
19
19
|
export function compareHeaderFields(previousHeader: string | null, nextHeader: string): HeaderFieldIssue[];
|
|
20
20
|
/**
|
|
21
|
+
*
|
|
21
22
|
* @Project: @cldmv/fix-headers
|
|
22
23
|
* @Filename: /src/header/fields.mjs
|
|
23
24
|
* @Date: 2026-09-28T09:14:18-07:00 (1790612058)
|
|
@@ -25,9 +26,10 @@ export function compareHeaderFields(previousHeader: string | null, nextHeader: s
|
|
|
25
26
|
* @Email: <Shinrai@users.noreply.github.com>
|
|
26
27
|
* -----
|
|
27
28
|
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
28
|
-
* @Last modified time: 2026-
|
|
29
|
+
* @Last modified time: 2026-10-02T12:28:16-07:00 (1790969296)
|
|
29
30
|
* -----
|
|
30
|
-
* @Copyright: Copyright (c)
|
|
31
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
32
|
+
*
|
|
31
33
|
*/
|
|
32
34
|
/**
|
|
33
35
|
* @fileoverview Parses the individual fields back out of a rendered header block and
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
+
*
|
|
2
3
|
* @Project: @cldmv/fix-headers
|
|
3
4
|
* @Filename: /src/utils/diff.mjs
|
|
4
5
|
* @Date: 2026-09-28T09:14:18-07:00 (1790612058)
|
|
@@ -6,9 +7,10 @@
|
|
|
6
7
|
* @Email: <Shinrai@users.noreply.github.com>
|
|
7
8
|
* -----
|
|
8
9
|
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
9
|
-
* @Last modified time: 2026-
|
|
10
|
+
* @Last modified time: 2026-10-02T12:28:16-07:00 (1790969296)
|
|
10
11
|
* -----
|
|
11
|
-
* @Copyright: Copyright (c)
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
12
14
|
*/
|
|
13
15
|
/**
|
|
14
16
|
* @fileoverview Minimal line-level unified diff for header blocks. Header blocks are a
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
+
*
|
|
2
3
|
* @Project: @cldmv/fix-headers
|
|
3
4
|
* @Filename: /src/utils/time.mjs
|
|
4
5
|
* @Date: 2026-03-01T17:59:32-08:00 (1772416772)
|
|
@@ -6,9 +7,10 @@
|
|
|
6
7
|
* @Email: <Shinrai@users.noreply.github.com>
|
|
7
8
|
* -----
|
|
8
9
|
* @Last modified by: Nate Corcoran <CLDMV> (Shinrai@users.noreply.github.com)
|
|
9
|
-
* @Last modified time: 2026-
|
|
10
|
+
* @Last modified time: 2026-10-02T12:28:16-07:00 (1790969296)
|
|
10
11
|
* -----
|
|
11
|
-
* @Copyright: Copyright (c)
|
|
12
|
+
* @Copyright: Copyright (c) 2013-2026 Catalyzed Motivation Inc. All rights reserved.
|
|
13
|
+
*
|
|
12
14
|
*/
|
|
13
15
|
/**
|
|
14
16
|
* @fileoverview Date/time helpers used for header timestamp formatting.
|