@thi.ng/block-fs 0.6.8 → 0.6.11

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/cli.js +10 -12
  3. package/package.json +17 -17
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-07-30T22:32:35Z
3
+ - **Last updated**: 2025-08-06T18:02:31Z
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,12 @@ 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.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.6.11) (2025-08-06)
15
+
16
+ #### ♻️ Refactoring
17
+
18
+ - update CLI internals ([53d5820](https://github.com/thi-ng/umbrella/commit/53d5820))
19
+
14
20
  ### [0.6.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.6.3) (2025-07-12)
15
21
 
16
22
  #### 🩹 Bug fixes
package/cli.js CHANGED
@@ -1,6 +1,11 @@
1
- import { cliApp, flag, THING_HEADER } from "@thi.ng/args";
1
+ import {
2
+ ARG_QUIET,
3
+ ARG_VERBOSE,
4
+ cliApp,
5
+ configureLogLevel,
6
+ THING_HEADER
7
+ } from "@thi.ng/args";
2
8
  import { readJSON } from "@thi.ng/file-io";
3
- import { LogLevel } from "@thi.ng/logger";
4
9
  import { join } from "node:path";
5
10
  import { CONVERT } from "./cli/convert.js";
6
11
  import { LIST } from "./cli/list.js";
@@ -9,22 +14,15 @@ cliApp({
9
14
  name: "blockfs",
10
15
  start: 3,
11
16
  opts: {
12
- verbose: flag({
13
- alias: "v",
14
- desc: "Display extra logging information"
15
- }),
16
- quiet: flag({
17
- alias: "q",
18
- desc: "Disable logging"
19
- })
17
+ ...ARG_QUIET,
18
+ ...ARG_VERBOSE
20
19
  },
21
20
  commands: {
22
21
  convert: CONVERT,
23
22
  list: LIST
24
23
  },
25
24
  ctx: async (ctx) => {
26
- if (ctx.opts.quiet) ctx.logger.level = LogLevel.NONE;
27
- else if (ctx.opts.verbose) ctx.logger.level = LogLevel.DEBUG;
25
+ configureLogLevel(ctx.logger, ctx.opts.verbose, ctx.opts.quiet);
28
26
  return ctx;
29
27
  },
30
28
  usage: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/block-fs",
3
- "version": "0.6.8",
3
+ "version": "0.6.11",
4
4
  "description": "Customizable block-based storage, adapters & file system layer",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -42,24 +42,24 @@
42
42
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
43
43
  },
44
44
  "dependencies": {
45
- "@thi.ng/api": "^8.11.33",
46
- "@thi.ng/args": "^2.8.4",
47
- "@thi.ng/binary": "^3.4.57",
48
- "@thi.ng/bitfield": "^2.4.10",
49
- "@thi.ng/checks": "^3.7.13",
50
- "@thi.ng/compare": "^2.4.25",
51
- "@thi.ng/errors": "^2.5.39",
52
- "@thi.ng/file-io": "^2.2.4",
53
- "@thi.ng/logger": "^3.1.14",
54
- "@thi.ng/mime": "^2.7.15",
55
- "@thi.ng/random": "^4.1.24",
56
- "@thi.ng/strings": "^3.9.19"
45
+ "@thi.ng/api": "^8.12.1",
46
+ "@thi.ng/args": "^2.9.0",
47
+ "@thi.ng/binary": "^3.4.59",
48
+ "@thi.ng/bitfield": "^2.4.12",
49
+ "@thi.ng/checks": "^3.7.15",
50
+ "@thi.ng/compare": "^2.4.27",
51
+ "@thi.ng/errors": "^2.5.41",
52
+ "@thi.ng/file-io": "^2.2.6",
53
+ "@thi.ng/logger": "^3.1.16",
54
+ "@thi.ng/mime": "^2.7.17",
55
+ "@thi.ng/random": "^4.1.26",
56
+ "@thi.ng/strings": "^3.9.21"
57
57
  },
58
58
  "devDependencies": {
59
- "@types/node": "^24.0.15",
59
+ "@types/node": "^24.1.0",
60
60
  "esbuild": "^0.25.8",
61
- "typedoc": "^0.28.7",
62
- "typescript": "^5.8.3"
61
+ "typedoc": "^0.28.9",
62
+ "typescript": "^5.9.2"
63
63
  },
64
64
  "keywords": [
65
65
  "async",
@@ -143,5 +143,5 @@
143
143
  "status": "alpha",
144
144
  "year": 2024
145
145
  },
146
- "gitHead": "1df8a3a9061257ea73ccf1ab9cdf63c81a9f519f\n"
146
+ "gitHead": "03e0d1024805407fbec5dde688b6178bbe0a2f3a\n"
147
147
  }