@thi.ng/block-fs 0.6.20 → 0.6.24

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 (2) hide show
  1. package/package.json +146 -146
  2. package/CHANGELOG.md +0 -142
package/package.json CHANGED
@@ -1,147 +1,147 @@
1
1
  {
2
- "name": "@thi.ng/block-fs",
3
- "version": "0.6.20",
4
- "description": "Customizable block-based storage, adapters & file system layer",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "bin": {
9
- "blockfs": "bin/blockfs"
10
- },
11
- "sideEffects": false,
12
- "repository": {
13
- "type": "git",
14
- "url": "https://github.com/thi-ng/umbrella.git"
15
- },
16
- "homepage": "https://thi.ng/block-fs",
17
- "funding": [
18
- {
19
- "type": "github",
20
- "url": "https://github.com/sponsors/postspectacular"
21
- },
22
- {
23
- "type": "patreon",
24
- "url": "https://patreon.com/thing_umbrella"
25
- },
26
- {
27
- "type": "liberapay",
28
- "url": "https://liberapay.com/thi.ng"
29
- }
30
- ],
31
- "author": "Karsten Schmidt (https://thi.ng)",
32
- "license": "Apache-2.0",
33
- "scripts": {
34
- "build": "yarn build:esbuild && yarn build:decl",
35
- "build:decl": "tsc --declaration --emitDeclarationOnly",
36
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
37
- "clean": "bun ../../tools/src/clean-package.ts",
38
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
39
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
40
- "pub": "yarn npm publish --access public",
41
- "test": "bun test",
42
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
43
- },
44
- "dependencies": {
45
- "@thi.ng/api": "^8.12.2",
46
- "@thi.ng/args": "^3.1.1",
47
- "@thi.ng/binary": "^3.4.60",
48
- "@thi.ng/bitfield": "^2.4.13",
49
- "@thi.ng/checks": "^3.7.18",
50
- "@thi.ng/compare": "^2.4.28",
51
- "@thi.ng/errors": "^2.5.42",
52
- "@thi.ng/file-io": "^2.2.11",
53
- "@thi.ng/logger": "^3.2.1",
54
- "@thi.ng/mime": "^2.7.18",
55
- "@thi.ng/random": "^4.1.27",
56
- "@thi.ng/strings": "^3.9.22"
57
- },
58
- "devDependencies": {
59
- "@types/node": "^24.3.0",
60
- "esbuild": "^0.25.9",
61
- "typedoc": "^0.28.12",
62
- "typescript": "^5.9.2"
63
- },
64
- "keywords": [
65
- "async",
66
- "binary",
67
- "block",
68
- "cli",
69
- "conversion",
70
- "file",
71
- "filesystem",
72
- "memory",
73
- "memory-mapped",
74
- "mime",
75
- "nodejs",
76
- "path",
77
- "storage",
78
- "typedarray",
79
- "typescript"
80
- ],
81
- "publishConfig": {
82
- "access": "public"
83
- },
84
- "browser": {
85
- "process": false,
86
- "setTimeout": false
87
- },
88
- "engines": {
89
- "node": ">=18"
90
- },
91
- "files": [
92
- "./*.js",
93
- "./*.d.ts",
94
- "bin",
95
- "cli",
96
- "storage"
97
- ],
98
- "exports": {
99
- ".": {
100
- "default": "./index.js"
101
- },
102
- "./api": {
103
- "default": "./api.js"
104
- },
105
- "./cli/api": {
106
- "default": "./cli/api.js"
107
- },
108
- "./cli/convert": {
109
- "default": "./cli/convert.js"
110
- },
111
- "./cli/list": {
112
- "default": "./cli/list.js"
113
- },
114
- "./cli": {
115
- "default": "./cli.js"
116
- },
117
- "./directory": {
118
- "default": "./directory.js"
119
- },
120
- "./entry": {
121
- "default": "./entry.js"
122
- },
123
- "./fs": {
124
- "default": "./fs.js"
125
- },
126
- "./lock": {
127
- "default": "./lock.js"
128
- },
129
- "./storage/astorage": {
130
- "default": "./storage/astorage.js"
131
- },
132
- "./storage/file": {
133
- "default": "./storage/file.js"
134
- },
135
- "./storage/memory": {
136
- "default": "./storage/memory.js"
137
- },
138
- "./utils": {
139
- "default": "./utils.js"
140
- }
141
- },
142
- "thi.ng": {
143
- "status": "alpha",
144
- "year": 2024
145
- },
146
- "gitHead": "fbf4b46ba8a5ecff8c5423f4c2d158d208d20fc8\n"
147
- }
2
+ "name": "@thi.ng/block-fs",
3
+ "version": "0.6.24",
4
+ "description": "Customizable block-based storage, adapters & file system layer",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "bin": {
9
+ "blockfs": "bin/blockfs"
10
+ },
11
+ "sideEffects": false,
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/thi-ng/umbrella.git"
15
+ },
16
+ "homepage": "https://thi.ng/block-fs",
17
+ "funding": [
18
+ {
19
+ "type": "github",
20
+ "url": "https://github.com/sponsors/postspectacular"
21
+ },
22
+ {
23
+ "type": "patreon",
24
+ "url": "https://patreon.com/thing_umbrella"
25
+ },
26
+ {
27
+ "type": "liberapay",
28
+ "url": "https://liberapay.com/thi.ng"
29
+ }
30
+ ],
31
+ "author": "Karsten Schmidt (https://thi.ng)",
32
+ "license": "Apache-2.0",
33
+ "scripts": {
34
+ "build": "yarn build:esbuild && yarn build:decl",
35
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
36
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
37
+ "clean": "bun ../../tools/src/clean-package.ts",
38
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
39
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
40
+ "pub": "npm publish --access public",
41
+ "test": "bun test",
42
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
43
+ },
44
+ "dependencies": {
45
+ "@thi.ng/api": "^8.12.6",
46
+ "@thi.ng/args": "^3.1.5",
47
+ "@thi.ng/binary": "^3.4.64",
48
+ "@thi.ng/bitfield": "^2.4.17",
49
+ "@thi.ng/checks": "^3.7.22",
50
+ "@thi.ng/compare": "^2.4.32",
51
+ "@thi.ng/errors": "^2.5.46",
52
+ "@thi.ng/file-io": "^2.2.15",
53
+ "@thi.ng/logger": "^3.2.5",
54
+ "@thi.ng/mime": "^2.7.22",
55
+ "@thi.ng/random": "^4.1.31",
56
+ "@thi.ng/strings": "^3.9.26"
57
+ },
58
+ "devDependencies": {
59
+ "@types/node": "^24.9.1",
60
+ "esbuild": "^0.25.11",
61
+ "typedoc": "^0.28.14",
62
+ "typescript": "^5.9.3"
63
+ },
64
+ "keywords": [
65
+ "async",
66
+ "binary",
67
+ "block",
68
+ "cli",
69
+ "conversion",
70
+ "file",
71
+ "filesystem",
72
+ "memory",
73
+ "memory-mapped",
74
+ "mime",
75
+ "nodejs",
76
+ "path",
77
+ "storage",
78
+ "typedarray",
79
+ "typescript"
80
+ ],
81
+ "publishConfig": {
82
+ "access": "public"
83
+ },
84
+ "browser": {
85
+ "process": false,
86
+ "setTimeout": false
87
+ },
88
+ "engines": {
89
+ "node": ">=18"
90
+ },
91
+ "files": [
92
+ "./*.js",
93
+ "./*.d.ts",
94
+ "bin",
95
+ "cli",
96
+ "storage"
97
+ ],
98
+ "exports": {
99
+ ".": {
100
+ "default": "./index.js"
101
+ },
102
+ "./api": {
103
+ "default": "./api.js"
104
+ },
105
+ "./cli/api": {
106
+ "default": "./cli/api.js"
107
+ },
108
+ "./cli/convert": {
109
+ "default": "./cli/convert.js"
110
+ },
111
+ "./cli/list": {
112
+ "default": "./cli/list.js"
113
+ },
114
+ "./cli": {
115
+ "default": "./cli.js"
116
+ },
117
+ "./directory": {
118
+ "default": "./directory.js"
119
+ },
120
+ "./entry": {
121
+ "default": "./entry.js"
122
+ },
123
+ "./fs": {
124
+ "default": "./fs.js"
125
+ },
126
+ "./lock": {
127
+ "default": "./lock.js"
128
+ },
129
+ "./storage/astorage": {
130
+ "default": "./storage/astorage.js"
131
+ },
132
+ "./storage/file": {
133
+ "default": "./storage/file.js"
134
+ },
135
+ "./storage/memory": {
136
+ "default": "./storage/memory.js"
137
+ },
138
+ "./utils": {
139
+ "default": "./utils.js"
140
+ }
141
+ },
142
+ "thi.ng": {
143
+ "status": "alpha",
144
+ "year": 2024
145
+ },
146
+ "gitHead": "136a5e5ef0b69e82329db00d806c3c4e8f1aa063\n"
147
+ }
package/CHANGELOG.md DELETED
@@ -1,142 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-26T11:53:06Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- ### [0.6.18](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.6.18) (2025-09-26)
15
-
16
- #### ♻️ Refactoring
17
-
18
- - update CLI arg specs ([691ea5d](https://github.com/thi-ng/umbrella/commit/691ea5d))
19
-
20
- ### [0.6.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.6.11) (2025-08-06)
21
-
22
- #### ♻️ Refactoring
23
-
24
- - update CLI internals ([53d5820](https://github.com/thi-ng/umbrella/commit/53d5820))
25
-
26
- ### [0.6.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.6.3) (2025-07-12)
27
-
28
- #### 🩹 Bug fixes
29
-
30
- - update block count calculation (CLI convert cmd) ([95cee85](https://github.com/thi-ng/umbrella/commit/95cee85))
31
-
32
- ### [0.6.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.6.2) (2025-07-12)
33
-
34
- #### ♻️ Refactoring
35
-
36
- - minor updates CLI commands ([9a394b1](https://github.com/thi-ng/umbrella/commit/9a394b1))
37
-
38
- ### [0.6.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.6.1) (2025-07-12)
39
-
40
- #### 🩹 Bug fixes
41
-
42
- - fix tree output in CLI list cmd, update deps ([8d33970](https://github.com/thi-ng/umbrella/commit/8d33970))
43
- - update entry sorting for tree output to avoid order edge cases w/ prev approach
44
-
45
- ## [0.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.6.0) (2025-07-11)
46
-
47
- #### 🚀 Features
48
-
49
- - update Directory.tree(), add optional comparator ([a3c7f4c](https://github.com/thi-ng/umbrella/commit/a3c7f4c))
50
-
51
- #### ♻️ Refactoring
52
-
53
- - split out CLI cmds to own files, fix tree display ([8665244](https://github.com/thi-ng/umbrella/commit/8665244))
54
-
55
- ### [0.5.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.5.3) (2025-06-27)
56
-
57
- #### ♻️ Refactoring
58
-
59
- - minor update CLI wrapper ([8138d88](https://github.com/thi-ng/umbrella/commit/8138d88))
60
-
61
- ## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.5.0) (2025-06-18)
62
-
63
- #### 🚀 Features
64
-
65
- - update block count estimation, add more logging ([02c8037](https://github.com/thi-ng/umbrella/commit/02c8037))
66
-
67
- ### [0.4.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.4.1) (2025-04-16)
68
-
69
- #### ♻️ Refactoring
70
-
71
- - update Entry memory layout ([b5416bd](https://github.com/thi-ng/umbrella/commit/b5416bd))
72
- - move block start & end ID locations
73
-
74
- ## [0.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.4.0) (2025-04-06)
75
-
76
- #### 🚀 Features
77
-
78
- - add support for wrapping `ArrayBuffer` ([e23f008](https://github.com/thi-ng/umbrella/commit/e23f008))
79
- - update `MemoryBlockStorageOpts.buffer` to allow array buffers
80
- - update `MemoryBlockStorage` ctor
81
- - auto-infer MIME type in `.readAsObjectURL()` ([8fbcebd](https://github.com/thi-ng/umbrella/commit/8fbcebd))
82
- - use `preferredTypeForPath()` as MIME type fallback
83
- - update deps
84
- - update CLI, add include/exclude regexp, logging ([ef04e09](https://github.com/thi-ng/umbrella/commit/ef04e09))
85
- - add support for multiple include/exclude regexps in `convert` command
86
- - add `--quiet` flag to disable logging
87
-
88
- ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.3.0) (2025-04-02)
89
-
90
- #### 🚀 Features
91
-
92
- - add `BlockFS.readAsObjectURL()` ([551327c](https://github.com/thi-ng/umbrella/commit/551327c))
93
- - add mem storage opts, add logging ([27016d6](https://github.com/thi-ng/umbrella/commit/27016d6))
94
- - add `MemoryBlockStorage` support for pre-loaded buffers
95
- - add logging
96
- - add docs
97
- - add CLI app wrapper ([68abe74](https://github.com/thi-ng/umbrella/commit/68abe74))
98
- - add CLI app wrapper with these commands:
99
- - `convert`: convert file tree into single BlockFS blob
100
- - `list`: list file tree of a BlockFS blob
101
- - update deps
102
- - improve tree display (`list` cmd) ([a23866c](https://github.com/thi-ng/umbrella/commit/a23866c))
103
-
104
- #### 🩹 Bug fixes
105
-
106
- - fix parent dir linkage ([a121e76](https://github.com/thi-ng/umbrella/commit/a121e76))
107
-
108
- #### ♻️ Refactoring
109
-
110
- - update sentinel block ID ([51a1e44](https://github.com/thi-ng/umbrella/commit/51a1e44))
111
-
112
- ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.2.0) (2025-04-02)
113
-
114
- #### 🚀 Features
115
-
116
- - add path separator option, various refactoring ([875465e](https://github.com/thi-ng/umbrella/commit/875465e))
117
- - add `BlockFSOpts.separator`
118
- - rename `.readFileRaw()` => `.readBlocks()`
119
- - rename `.writeFileRaw()` => `.writeBlocks()`
120
- - add additional internal safety checks
121
- - internal refactoring (`this` destructuring)
122
- - add docs
123
-
124
- ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/block-fs@0.1.0) (2025-04-01)
125
-
126
- #### 🚀 Features
127
-
128
- - import as new pkg ([36ecb56](https://github.com/thi-ng/umbrella/commit/36ecb56))
129
- - major updates & refactoring, initial dir/file entry handling ([970af58](https://github.com/thi-ng/umbrella/commit/970af58))
130
- - major updates directory & entry handling ([453ac10](https://github.com/thi-ng/umbrella/commit/453ac10))
131
- - add support for customizable entries ([ca16f2f](https://github.com/thi-ng/umbrella/commit/ca16f2f))
132
- - add path support for write/append/delete ops ([f282476](https://github.com/thi-ng/umbrella/commit/f282476))
133
- - update & consolidate read/write/append methods ([7e97f4c](https://github.com/thi-ng/umbrella/commit/7e97f4c))
134
- - update read & path methods, logging ([5a30e21](https://github.com/thi-ng/umbrella/commit/5a30e21))
135
-
136
- #### 🩹 Bug fixes
137
-
138
- - update `MemoryBlock.delete()` to zero block data ([5d9be16](https://github.com/thi-ng/umbrella/commit/5d9be16))
139
-
140
- #### ♻️ Refactoring
141
-
142
- - restructure pkg, split src files ([146b275](https://github.com/thi-ng/umbrella/commit/146b275))