@thi.ng/block-fs 0.6.0 → 0.6.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 +8 -1
- package/README.md +1 -0
- package/cli/list.js +2 -2
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-07-
|
|
3
|
+
- **Last updated**: 2025-07-12T12:28:22Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -11,6 +11,13 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
11
11
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
12
|
and/or version bumps of transitive dependencies.
|
|
13
13
|
|
|
14
|
+
### [0.6.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.6.1) (2025-07-12)
|
|
15
|
+
|
|
16
|
+
#### 🩹 Bug fixes
|
|
17
|
+
|
|
18
|
+
- fix tree output in CLI list cmd, update deps ([8d33970](https://github.com/thi-ng/umbrella/commit/8d33970))
|
|
19
|
+
- update entry sorting for tree output to avoid order edge cases w/ prev approach
|
|
20
|
+
|
|
14
21
|
## [0.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.6.0) (2025-07-11)
|
|
15
22
|
|
|
16
23
|
#### 🚀 Features
|
package/README.md
CHANGED
|
@@ -303,6 +303,7 @@ Package sizes (brotli'd, pre-treeshake): ESM: 4.33 KB
|
|
|
303
303
|
- [@thi.ng/binary](https://github.com/thi-ng/umbrella/tree/develop/packages/binary)
|
|
304
304
|
- [@thi.ng/bitfield](https://github.com/thi-ng/umbrella/tree/develop/packages/bitfield)
|
|
305
305
|
- [@thi.ng/checks](https://github.com/thi-ng/umbrella/tree/develop/packages/checks)
|
|
306
|
+
- [@thi.ng/compare](https://github.com/thi-ng/umbrella/tree/develop/packages/compare)
|
|
306
307
|
- [@thi.ng/errors](https://github.com/thi-ng/umbrella/tree/develop/packages/errors)
|
|
307
308
|
- [@thi.ng/file-io](https://github.com/thi-ng/umbrella/tree/develop/packages/file-io)
|
|
308
309
|
- [@thi.ng/logger](https://github.com/thi-ng/umbrella/tree/develop/packages/logger)
|
package/cli/list.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { flag } from "@thi.ng/args";
|
|
2
|
+
import { compareByKey } from "@thi.ng/compare";
|
|
2
3
|
import { readBinary } from "@thi.ng/file-io";
|
|
3
4
|
import { BlockFS } from "../fs.js";
|
|
4
5
|
import { MemoryBlockStorage } from "../storage/memory.js";
|
|
@@ -40,12 +41,11 @@ const LIST = {
|
|
|
40
41
|
const bfs = new BlockFS(storage, { logger: ctx.logger });
|
|
41
42
|
await bfs.init();
|
|
42
43
|
const tree = [];
|
|
43
|
-
for await (let entry of bfs.root.tree()) {
|
|
44
|
+
for await (let entry of bfs.root.tree(compareByKey("name"))) {
|
|
44
45
|
const path = entry.path;
|
|
45
46
|
const depth = path.split("/").length - 2;
|
|
46
47
|
tree.push([path, depth, entry]);
|
|
47
48
|
}
|
|
48
|
-
tree.sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
|
|
49
49
|
const rows = [];
|
|
50
50
|
const maxWidths = [0, 0, 0];
|
|
51
51
|
const last = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/block-fs",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Customizable block-based storage, adapters & file system layer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"@thi.ng/binary": "^3.4.53",
|
|
48
48
|
"@thi.ng/bitfield": "^2.4.6",
|
|
49
49
|
"@thi.ng/checks": "^3.7.10",
|
|
50
|
+
"@thi.ng/compare": "^2.4.22",
|
|
50
51
|
"@thi.ng/errors": "^2.5.36",
|
|
51
52
|
"@thi.ng/file-io": "^2.2.1",
|
|
52
53
|
"@thi.ng/logger": "^3.1.11",
|
|
@@ -142,5 +143,5 @@
|
|
|
142
143
|
"status": "alpha",
|
|
143
144
|
"year": 2024
|
|
144
145
|
},
|
|
145
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "4d75e2d11a3d1a3c3769ca00338e32a820c69d2c\n"
|
|
146
147
|
}
|