@williamthorsen/nmr-core 0.16.2 → 0.16.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/.meta/changelog.json
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.16.3",
|
|
4
|
+
"date": "2026-11-17",
|
|
5
|
+
"sections": [
|
|
6
|
+
{
|
|
7
|
+
"title": "♻️ Refactoring",
|
|
8
|
+
"audience": "dev",
|
|
9
|
+
"items": [
|
|
10
|
+
{
|
|
11
|
+
"description": "Moves the unexported helpers in nmr-core, v11y-check, and the root `__tests__/` suites into a trailing `// region | Helpers` block sorted by name, so that each file's exported code comes before its helpers. (#1359)",
|
|
12
|
+
"hash": "20ec0d75418830c323b05950c4eb7c83184fbfe6",
|
|
13
|
+
"entry": 1
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
2
19
|
{
|
|
3
20
|
"version": "0.16.2",
|
|
4
21
|
"date": "2026-11-12",
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.16.3 — 2026-11-17
|
|
6
|
+
|
|
7
|
+
### ♻️ Refactoring
|
|
8
|
+
|
|
9
|
+
- Moves the unexported helpers in nmr-core, v11y-check, and the root `__tests__/` suites into a trailing `// region | Helpers` block sorted by name, so that each file's exported code comes before its helpers. (#1359)
|
|
10
|
+
|
|
5
11
|
## 0.16.2 — 2026-11-12
|
|
6
12
|
|
|
7
13
|
### Notes
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
2
2
|
import { dirname } from 'node:path';
|
|
3
3
|
import { describeError } from '@williamthorsen/toolbelt.errors';
|
|
4
|
-
function normalizeTrailingWhitespace(content) {
|
|
5
|
-
return content
|
|
6
|
-
.split('\n')
|
|
7
|
-
.map((line) => line.trimEnd())
|
|
8
|
-
.join('\n')
|
|
9
|
-
.trimEnd();
|
|
10
|
-
}
|
|
11
4
|
export function writeFileWithCheck(filePath, content, options) {
|
|
12
5
|
const { isDryRun, shouldOverwrite } = options;
|
|
13
6
|
const doesFileExist = existsSync(filePath);
|
|
@@ -44,3 +37,10 @@ export function writeFileWithCheck(filePath, content, options) {
|
|
|
44
37
|
}
|
|
45
38
|
return { filePath, outcome };
|
|
46
39
|
}
|
|
40
|
+
function normalizeTrailingWhitespace(content) {
|
|
41
|
+
return content
|
|
42
|
+
.split('\n')
|
|
43
|
+
.map((line) => line.trimEnd())
|
|
44
|
+
.join('\n')
|
|
45
|
+
.trimEnd();
|
|
46
|
+
}
|
|
@@ -107,9 +107,6 @@ function buildTreeId(options) {
|
|
|
107
107
|
const rootId = hashGitObject(format, 'tree', serializeTreeObject(ensureEntries(trees, '').values()));
|
|
108
108
|
return { ok: true, treeId: rootId.toString('hex') };
|
|
109
109
|
}
|
|
110
|
-
function measureDepth(directory) {
|
|
111
|
-
return directory === '' ? 0 : directory.split('/').length;
|
|
112
|
-
}
|
|
113
110
|
function ensureEntries(trees, directory) {
|
|
114
111
|
let entries = trees.get(directory);
|
|
115
112
|
if (entries === undefined) {
|
|
@@ -129,6 +126,9 @@ function hasSymlinkLeadingPath(toplevel, relativePath) {
|
|
|
129
126
|
}
|
|
130
127
|
});
|
|
131
128
|
}
|
|
129
|
+
function measureDepth(directory) {
|
|
130
|
+
return directory === '' ? 0 : directory.split('/').length;
|
|
131
|
+
}
|
|
132
132
|
function quotePath(relativePath) {
|
|
133
133
|
let quotedPath = '"';
|
|
134
134
|
for (const character of relativePath) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@williamthorsen/nmr-core",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared utilities for node-monorepo-tools packages",
|
|
6
6
|
"keywords": [
|
|
@@ -44,18 +44,18 @@
|
|
|
44
44
|
"dist"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@williamthorsen/toolbelt.cli": "0.
|
|
48
|
-
"@williamthorsen/toolbelt.datetime": "4.1.
|
|
49
|
-
"@williamthorsen/toolbelt.errors": "0.
|
|
50
|
-
"@williamthorsen/toolbelt.filesystem": "0.
|
|
51
|
-
"@williamthorsen/toolbelt.packaging": "0.
|
|
52
|
-
"@williamthorsen/toolbelt.terminal": "0.3.
|
|
47
|
+
"@williamthorsen/toolbelt.cli": "0.13.0",
|
|
48
|
+
"@williamthorsen/toolbelt.datetime": "4.1.9",
|
|
49
|
+
"@williamthorsen/toolbelt.errors": "0.11.3",
|
|
50
|
+
"@williamthorsen/toolbelt.filesystem": "0.11.4",
|
|
51
|
+
"@williamthorsen/toolbelt.packaging": "0.9.3",
|
|
52
|
+
"@williamthorsen/toolbelt.terminal": "0.3.2",
|
|
53
53
|
"diff": "9.0.0",
|
|
54
54
|
"yaml": "2.9.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@williamthorsen/toolbelt.testing": "0.8.
|
|
58
|
-
"@williamthorsen/toolbelt.vitest": "0.13.
|
|
57
|
+
"@williamthorsen/toolbelt.testing": "0.8.7",
|
|
58
|
+
"@williamthorsen/toolbelt.vitest": "0.13.8",
|
|
59
59
|
"vitest": "5.1.0"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|