@componentor/fs 3.0.44 → 3.0.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@componentor/fs",
3
- "version": "3.0.44",
3
+ "version": "3.0.46",
4
4
  "description": "High-performance OPFS-based Node.js fs polyfill with true sync API, VFS binary format, and bidirectional OPFS mirroring",
5
5
  "license": "MIT",
6
6
  "author": "Componentor",
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.46 (2026)
608
+
609
+ **Features:**
610
+ - Implicit directory support: directories implied by file paths are now recognized by `stat`, `lstat`, `readdir`, `opendir`, `access`, `realpath`, `exists`, `mkdir`, and `ensureParent`
611
+ - Generation-counter cache for lazy implicit-dir rebuild
612
+
613
+ **Fixes:**
614
+ - Fix crash on `fstat`/`fchmod`/`fchown`/`futimes` when fd was opened via `opendir` on an implicit directory
615
+ - `rmdir` on implicit directories now returns ENOTEMPTY (non-recursive) or deletes descendants (recursive) instead of ENOENT
616
+ - `nlink` for real directories now counts implicit subdirectories, consistent with `readdir`
617
+ - Implicit directory timestamps are stable across repeated `stat()` calls
618
+
619
+ **Tests:**
620
+ - 14 new tests for implicit directory behavior
621
+
622
+ ### v3.0.45 (2026)
623
+
624
+ **Fixes:**
625
+ - 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`
626
+ - Fix POSIX "hole" semantics: writes past EOF and extending `truncate` now zero-fill the gap instead of exposing stale bytes from previously-freed blocks
627
+
628
+ **Tests:**
629
+ - Sparse-write coverage (in-block hole, cross-block hole, pos === size)
630
+ - Chunk-boundary coverage for `append`, `fwrite` grow, `truncate` extend, and `copy` across 5 MB buffers
631
+ - Self-copy and `COPYFILE_EXCL` regression tests
632
+
607
633
  ### v3.0.44 (2026)
608
634
 
609
635
  **Fixes:**