@statewalker/webrun-files 0.10.3 → 0.10.4
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/README.md +4 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,12 +9,13 @@ every implementation follows. It contains no storage backend.
|
|
|
9
9
|
## Why it exists
|
|
10
10
|
|
|
11
11
|
Code that reads and writes files should not care whether the files live in memory, on disk, in a
|
|
12
|
-
browser directory, in S3, in SQLite
|
|
12
|
+
browser directory, in S3, in SQLite, behind an HTTP endpoint or across an RPC. This package is the contract those
|
|
13
13
|
backends implement, so application code, tests and decorators are written once against it. Keeping
|
|
14
14
|
it backend-free means depending on it pulls in nothing runtime-specific.
|
|
15
15
|
|
|
16
|
-
Backends: `@statewalker/webrun-files-mem`, `-node`, `-browser`, `-s3`, `-sqlite`, `-http`;
|
|
17
|
-
guards and layers:
|
|
16
|
+
Backends: `@statewalker/webrun-files-mem`, `-node`, `-browser`, `-s3`, `-sqlite`, `-http`; any
|
|
17
|
+
`FilesApi` over an RPC (Durable Object RPC, postMessage, …): `-rpc`; mounts, guards and layers:
|
|
18
|
+
`@statewalker/webrun-files-composite`.
|
|
18
19
|
|
|
19
20
|
## How to use
|
|
20
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@statewalker/webrun-files",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "FilesApi interface and utilities for cross-platform filesystem abstraction",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"rimraf": "^6.1.3",
|
|
39
39
|
"rolldown": "^1.2.12",
|
|
40
40
|
"typescript": "^7.0.2",
|
|
41
|
-
"vitest": "^5.0.3"
|
|
41
|
+
"vitest": "^4.1.4 || ^5.0.3"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"publishConfig": {
|