@williamthorsen/toolbelt.filesystem 0.4.0 → 0.4.1
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/CHANGELOG.md +9 -0
- package/README.md +1 -19
- package/package.json +13 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.4.1 — 2026-08-13
|
|
6
|
+
|
|
7
|
+
### Tooling
|
|
8
|
+
|
|
9
|
+
- Remove redundant .gitignore files
|
|
10
|
+
- Populate manifest metadata and adopt a pnpm catalog (#140)
|
|
11
|
+
|
|
12
|
+
Adopts a pnpm catalog to avoid specifying the version of a common dependency in multiple places. Separately, fixes violations of newly activated `package-json` lint rules. Missing values have been added to `package.json` fields across the repo, and package descriptions are improved.
|
|
13
|
+
|
|
5
14
|
## 0.4.0 — 2026-08-12
|
|
6
15
|
|
|
7
16
|
### Features
|
package/README.md
CHANGED
|
@@ -2,25 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Filesystem utilities for TypeScript and JavaScript.
|
|
4
4
|
|
|
5
|
-
<!-- section:release-notes -->
|
|
6
|
-
## Release notes — v0.4.0 (2026-08-12)
|
|
7
|
-
|
|
8
|
-
### Features
|
|
9
|
-
|
|
10
|
-
- 🚨 **Breaking:** Add reconcileFile to toolbelt.filesystem and promote describeError to release tier (#122)
|
|
11
|
-
|
|
12
|
-
Adds `reconcileFile` to `@williamthorsen/toolbelt.filesystem`: an idempotent file write that creates what is missing, refuses by default to replace what is not, and reports which of those it did as a structured outcome rather than throwing.
|
|
13
|
-
|
|
14
|
-
Separately, `describeError` is promoted to `@williamthorsen/toolbelt.errors`' release tier, so no release-tier module depends on a candidate one.
|
|
15
|
-
|
|
16
|
-
Migration: `describeError` is imported from `@williamthorsen/toolbelt.errors` rather than `@williamthorsen/toolbelt.errors/candidate`, which no longer exports it. `chainError`, `isError`, and `assertIsError` remain at candidate tier.
|
|
17
|
-
|
|
18
|
-
- Add reconcileFileFromFile to toolbelt.filesystem (#123)
|
|
19
|
-
|
|
20
|
-
Adds `reconcileFileFromFile` to `@williamthorsen/toolbelt.filesystem`. It reads a source path as utf8 text and reconciles a destination against it, sharing `reconcileFile`'s options, outcome vocabulary, and `FileReconciliation` result type.
|
|
21
|
-
|
|
22
|
-
A source that cannot be read reports `failed` with a reason naming the source and the cause, rather than throwing. Because the outcome depends on the source's content, the read happens even under `isDryRun`, so a dry run can report `failed` where `reconcileFile`'s cannot.
|
|
23
|
-
<!-- /section:release-notes -->
|
|
5
|
+
<!-- section:release-notes --><!-- /section:release-notes -->
|
|
24
6
|
|
|
25
7
|
## Installation
|
|
26
8
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@williamthorsen/toolbelt.filesystem",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Filesystem utilities",
|
|
5
|
-
"keywords": [
|
|
5
|
+
"keywords": [
|
|
6
|
+
"config-cascade",
|
|
7
|
+
"esm",
|
|
8
|
+
"filesystem",
|
|
9
|
+
"fs",
|
|
10
|
+
"path",
|
|
11
|
+
"toolbelt",
|
|
12
|
+
"typescript",
|
|
13
|
+
"utilities"
|
|
14
|
+
],
|
|
6
15
|
"homepage": "https://github.com/williamthorsen/toolbelt/tree/main/packages/filesystem#readme",
|
|
7
16
|
"bugs": {
|
|
8
17
|
"url": "https://github.com/williamthorsen/toolbelt/issues"
|
|
@@ -14,6 +23,7 @@
|
|
|
14
23
|
},
|
|
15
24
|
"license": "ISC",
|
|
16
25
|
"author": "William Thorsen <william@thorsen.dev> (https://github.com/williamthorsen)",
|
|
26
|
+
"sideEffects": false,
|
|
17
27
|
"type": "module",
|
|
18
28
|
"exports": {
|
|
19
29
|
".": {
|
|
@@ -34,7 +44,7 @@
|
|
|
34
44
|
"CHANGELOG.md"
|
|
35
45
|
],
|
|
36
46
|
"dependencies": {
|
|
37
|
-
"@williamthorsen/toolbelt.errors": "0.
|
|
47
|
+
"@williamthorsen/toolbelt.errors": "0.4.0"
|
|
38
48
|
},
|
|
39
49
|
"engines": {
|
|
40
50
|
"node": ">=24.0.0"
|