Skip to content

Commit 523fd6d

Browse files
committed
Prepare for publishing
1 parent d39ffed commit 523fd6d

File tree

5 files changed

+88
-0
lines changed

5 files changed

+88
-0
lines changed

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [0.1.0] - 2025-12-26
9+
10+
### Added
11+
12+
#### worker-fs-mount
13+
- Initial release of the core mounting system
14+
- `mount()` and `unmount()` functions for managing virtual filesystem mounts
15+
- `withMounts()` for request-scoped mounts with automatic cleanup
16+
- `isMounted()` and `isInMountContext()` utility functions
17+
- Drop-in replacement for `node:fs/promises` via wrangler alias
18+
- Support for mounting WorkerEntrypoints, service bindings, and Durable Object stubs
19+
- Full `node:fs/promises` API compatibility including:
20+
- File operations: `readFile`, `writeFile`, `appendFile`, `truncate`, `rm`, `unlink`
21+
- Directory operations: `mkdir`, `readdir`, `rmdir`
22+
- Metadata: `stat`, `lstat`, `access`
23+
- Symlinks: `symlink`, `readlink`
24+
- Copy/move: `copyFile`, `cp`, `rename`
25+
- Stream-first `WorkerFilesystem` interface for implementations
26+
- Proper Node.js-style error handling with `ENOENT`, `EEXIST`, `EISDIR`, `ENOTDIR`, `EXDEV`
27+
28+
#### r2-fs
29+
- Initial release of R2-backed filesystem implementation
30+
- Implements `WorkerFilesystem` interface for R2 buckets
31+
- Directory emulation using marker objects
32+
- Efficient streaming for large files
33+
- Support for all core filesystem operations
34+
35+
#### durable-object-fs
36+
- Initial release of Durable Object filesystem implementation
37+
- SQLite-backed persistent storage
38+
- ACID-compliant file operations
39+
- Per-user or per-session isolated filesystems
40+
- Automatic schema migrations

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Cloudflare, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

packages/durable-object-fs/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@
3232
],
3333
"author": "Cloudflare",
3434
"license": "MIT",
35+
"repository": {
36+
"type": "git",
37+
"url": "git+https://github.com/cloudflare/worker-fs-mount.git",
38+
"directory": "packages/durable-object-fs"
39+
},
40+
"bugs": {
41+
"url": "https://github.com/cloudflare/worker-fs-mount/issues"
42+
},
43+
"homepage": "https://github.com/cloudflare/worker-fs-mount/tree/main/packages/durable-object-fs#readme",
3544
"peerDependencies": {
3645
"worker-fs-mount": "workspace:*"
3746
},

packages/r2-fs/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@
3232
],
3333
"author": "Cloudflare",
3434
"license": "MIT",
35+
"repository": {
36+
"type": "git",
37+
"url": "git+https://github.com/cloudflare/worker-fs-mount.git",
38+
"directory": "packages/r2-fs"
39+
},
40+
"bugs": {
41+
"url": "https://github.com/cloudflare/worker-fs-mount/issues"
42+
},
43+
"homepage": "https://github.com/cloudflare/worker-fs-mount/tree/main/packages/r2-fs#readme",
3544
"peerDependencies": {
3645
"worker-fs-mount": "workspace:*"
3746
},

packages/worker-fs-mount/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@
4343
],
4444
"author": "Cloudflare",
4545
"license": "MIT",
46+
"repository": {
47+
"type": "git",
48+
"url": "git+https://github.com/cloudflare/worker-fs-mount.git",
49+
"directory": "packages/worker-fs-mount"
50+
},
51+
"bugs": {
52+
"url": "https://github.com/cloudflare/worker-fs-mount/issues"
53+
},
54+
"homepage": "https://github.com/cloudflare/worker-fs-mount/tree/main/packages/worker-fs-mount#readme",
4655
"devDependencies": {
4756
"@cloudflare/workers-types": "^4.20251225.0",
4857
"@types/node": "^25.0.3",

0 commit comments

Comments
 (0)