@componentor/fs 3.0.43 → 3.0.45
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/dist/index.js +125 -25
- package/dist/index.js.map +1 -1
- package/dist/workers/opfs-sync.worker.js +50 -8
- package/dist/workers/opfs-sync.worker.js.map +1 -1
- package/dist/workers/repair.worker.js +125 -25
- package/dist/workers/repair.worker.js.map +1 -1
- package/dist/workers/server.worker.js +125 -25
- package/dist/workers/server.worker.js.map +1 -1
- package/dist/workers/sync-relay.worker.js +206 -64
- package/dist/workers/sync-relay.worker.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +26 -0
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -604,6 +604,32 @@ Make sure `opfsSync` is enabled (it's `true` by default). Files are mirrored to
|
|
|
604
604
|
|
|
605
605
|
See [CHANGELOG.md](./CHANGELOG.md) for the full version history.
|
|
606
606
|
|
|
607
|
+
### v3.0.45 (2026)
|
|
608
|
+
|
|
609
|
+
**Fixes:**
|
|
610
|
+
- Eliminate "Array buffer allocation failed" on multi-hundred-MB VFS operations (pnpm install of large monorepos like Directus): every hot path that previously staged a full-file or full-data-region buffer now streams through a bounded 4 MB scratch buffer via the underlying sync access handle — `growPathTable`, `fwrite` grow, `append`, `truncate` extend, and `copy`
|
|
611
|
+
- Fix POSIX "hole" semantics: writes past EOF and extending `truncate` now zero-fill the gap instead of exposing stale bytes from previously-freed blocks
|
|
612
|
+
|
|
613
|
+
**Tests:**
|
|
614
|
+
- Sparse-write coverage (in-block hole, cross-block hole, pos === size)
|
|
615
|
+
- Chunk-boundary coverage for `append`, `fwrite` grow, `truncate` extend, and `copy` across 5 MB buffers
|
|
616
|
+
- Self-copy and `COPYFILE_EXCL` regression tests
|
|
617
|
+
|
|
618
|
+
### v3.0.44 (2026)
|
|
619
|
+
|
|
620
|
+
**Fixes:**
|
|
621
|
+
- Coalesce per-path OPFS sync notifications in `sync-relay.worker.ts` — a single chunked 100 MB upload now triggers one full-file read instead of ~1500, eliminating `RangeError: Array buffer allocation failed` on repeated large uploads (e.g. Strapi multipart)
|
|
622
|
+
- Cancel pending debounced syncs on `UNLINK`/`RMDIR`; reroute on `RENAME`
|
|
623
|
+
- Route `OP.SYMLINK` mirror through the same debounced flusher
|
|
624
|
+
|
|
625
|
+
**Memory:**
|
|
626
|
+
- Replace `scanOPFSEntries` with streaming `populateVFSFromOPFS`: chunked `SyncAccessHandle` + `engine.append`, init peak memory bounded by 2 MB instead of sum of all OPFS file sizes
|
|
627
|
+
- `renameInOPFS` copies via two `SyncAccessHandle`s in 2 MB chunks instead of `file.arrayBuffer()`
|
|
628
|
+
- Coalesce pending `write` events for the same path in the OPFS sync queue — newer payload supersedes older, frees stale `ArrayBuffer` for GC
|
|
629
|
+
|
|
630
|
+
**Tests:**
|
|
631
|
+
- Update `vfs-engine` test for the 100K default inode count
|
|
632
|
+
|
|
607
633
|
### v3.0.43 (2026)
|
|
608
634
|
|
|
609
635
|
**Docs:**
|