Changelog / package releases

What changed

The latest published release of each package, with notes generated from Changesets. Browse each package’s full changelog for older releases.

View GitHub releases ↗

@opfs-vfs/react

Full package changelog ↗

0.0.4 ↗

Patch Changes

  • cc26a55: Type declarations resolve under TypeScript's node16 and nodenext module resolution. Relative imports now carry file extensions.

  • 6010a8b: @opfs-vfs/react and @opfs-vfs/effect require the exact @opfs-vfs/opfs-vfs and @opfs-vfs/plugin-subscriptions versions they were built with, because their default workers include the storage engine. Upgrade the three together.

    @opfs-vfs/opfs-vfs declares "sideEffects": false, and options marked internal no longer appear in its type declarations.

  • 5f7fca2: Read hooks no longer report idle for one render when a read is enabled, re-enabled, or newly started. They report pending until data arrives.

  • Updated dependencies [cc26a55]

  • Updated dependencies [6010a8b]

  • Updated dependencies [c775de1]

  • Updated dependencies [cf048fd]

  • Updated dependencies [452f840]

  • Updated dependencies [998ca7c]

  • Updated dependencies [cc37142]

  • Updated dependencies [a3eba3e]

  • Updated dependencies [19e80f5]

  • Updated dependencies [99ed87a]

  • Updated dependencies [3d32b9e]

    • @opfs-vfs/opfs-vfs@2.2.0
    • @opfs-vfs/plugin-subscriptions@1.3.0

@opfs-vfs/effect

Full package changelog ↗

0.4.0 ↗

Minor Changes

  • caf42fe: Require Effect 4.1 or newer. Effect 4.1 changed the FileSystem service, so one build cannot serve both 4.0 and 4.1:

    • stat now reports dev, ino, nlink, and blocks as bigint.
    • lstat and readDirectoryEntries are implemented.
    • glob works when given an absolute root or pattern. It previously failed with ENOTSUP.
    • open with noFollow fails with BadArgument, because the volume cannot refuse a final symlink atomically.
    • watch calls onReady once the subscription is installed.

    Since Effect 4.0.7, a typed failure that is followed by a failing finalizer reaches the caller as a defect. This applies to volume and descriptor cleanup failures too.

  • 0c6dfc4: Breaking: like Node, a non-recursive FileSystem.remove fails on any directory, empty or not, with an Unknown error whose cause has code ERR_FS_EISDIR. Pass recursive: true to delete directories.

    FileSystem.copy resolves . and .. in the destination the same way as every other operation. A .. after a missing directory fails with NotFound instead of creating that directory, and a copy into itself through such a path is rejected instead of recursing.

Patch Changes

  • caf42fe: readFile reports a normalised PlatformError even when closing the file descriptor also fails, instead of the raw backend error.

  • 3b9beab: FileSystem.watch resolves its target through the volume before subscribing. Paths such as /link/../x or a file under a symlinked directory subscribe to, and report events under, the canonical path.

  • 6010a8b: @opfs-vfs/react and @opfs-vfs/effect require the exact @opfs-vfs/opfs-vfs and @opfs-vfs/plugin-subscriptions versions they were built with, because their default workers include the storage engine. Upgrade the three together.

    @opfs-vfs/opfs-vfs declares "sideEffects": false, and options marked internal no longer appear in its type declarations.

  • Updated dependencies [cc26a55]

  • Updated dependencies [6010a8b]

  • Updated dependencies [c775de1]

  • Updated dependencies [cf048fd]

  • Updated dependencies [452f840]

  • Updated dependencies [998ca7c]

  • Updated dependencies [cc37142]

  • Updated dependencies [a3eba3e]

  • Updated dependencies [19e80f5]

  • Updated dependencies [99ed87a]

  • Updated dependencies [3d32b9e]

    • @opfs-vfs/opfs-vfs@2.2.0
    • @opfs-vfs/plugin-subscriptions@1.3.0

@opfs-vfs/devtools

Full package changelog ↗

0.3.0 ↗

Minor Changes

  • 453fe9a: Breaking for some bundler setups: both packages import their dependencies instead of compiling them in.

    • File previews import PDF.js, CodeMirror, react-markdown, and remark-gfm from your dependencies. The PDF worker is bundled by your bundler as a module worker instead of being inlined as a data: URL. Vite 8 and Vite 7 builds need no changes. The Vite 7 development server needs the new setPdfWorkerSrc() or the optimizeDeps entry described in the README.
    • A PDF worker that cannot start shows an error instead of leaving the preview at "Rendering PDF…".
    • The developer tools list react and react-dom ^19 as peer dependencies, so install them alongside if your application does not already. just-bash, JSZip, Base UI, and Lucide are imported from your dependencies.

Patch Changes

  • cc26a55: Type declarations resolve under TypeScript's node16 and nodenext module resolution. Relative imports now carry file extensions.

  • c775de1: The just-bash adapter gains forJustBash(), a filesystem you can pass straight to new Bash({ fs }). It has the synchronous path list just-bash requires, re-read after every path-changing call made through it. The developer tools shell uses it, so its path list follows changes made within a command line.

    The adapter's file methods no longer create parent directories for a path that contains . or ... The volume resolves such paths, so /missing/../file fails with ENOENT and creates nothing.

  • cf048fd: The just-bash adapter's non-recursive rm removes an empty directory, so rmdir works in a shell. A non-empty directory fails with ENOTEMPTY, and a symlink to a directory is still only unlinked. The adapter also gains createExclusive, so mktemp works once its directory exists. The developer tools refuse both on read-only connections.

  • 4b5fc7f: Update the developer tools to just-bash 3.6.0 and file previews to pdf.js 6.5.

  • 442c399: Update runtime dependencies: React 19.3.1, Base UI 1.9.0, JSZip 3.10.2, and lucide-react 1.72.0 in the developer tools, and newer CodeMirror and Lezer releases in file previews.

  • ab4834d: SVG previews load from a data: URL instead of a same-origin blob: URL, so opening a previewed SVG in a new tab can no longer run its scripts on your origin. Images larger than 50 megapixels show a message instead of being decoded.

  • Updated dependencies [cc26a55]

  • Updated dependencies [6010a8b]

  • Updated dependencies [c775de1]

  • Updated dependencies [cf048fd]

  • Updated dependencies [4b5fc7f]

  • Updated dependencies [452f840]

  • Updated dependencies [998ca7c]

  • Updated dependencies [453fe9a]

  • Updated dependencies [cc37142]

  • Updated dependencies [442c399]

  • Updated dependencies [ab4834d]

  • Updated dependencies [a3eba3e]

  • Updated dependencies [19e80f5]

  • Updated dependencies [99ed87a]

  • Updated dependencies [3d32b9e]

    • @opfs-vfs/opfs-vfs@2.2.0
    • @opfs-vfs/file-preview@0.2.0

@opfs-vfs/file-preview

Full package changelog ↗

0.2.0 ↗

Minor Changes

  • 453fe9a: Breaking for some bundler setups: both packages import their dependencies instead of compiling them in.

    • File previews import PDF.js, CodeMirror, react-markdown, and remark-gfm from your dependencies. The PDF worker is bundled by your bundler as a module worker instead of being inlined as a data: URL. Vite 8 and Vite 7 builds need no changes. The Vite 7 development server needs the new setPdfWorkerSrc() or the optimizeDeps entry described in the README.
    • A PDF worker that cannot start shows an error instead of leaving the preview at "Rendering PDF…".
    • The developer tools list react and react-dom ^19 as peer dependencies, so install them alongside if your application does not already. just-bash, JSZip, Base UI, and Lucide are imported from your dependencies.

Patch Changes

  • cc26a55: Type declarations resolve under TypeScript's node16 and nodenext module resolution. Relative imports now carry file extensions.
  • 4b5fc7f: Update the developer tools to just-bash 3.6.0 and file previews to pdf.js 6.5.
  • 442c399: Update runtime dependencies: React 19.3.1, Base UI 1.9.0, JSZip 3.10.2, and lucide-react 1.72.0 in the developer tools, and newer CodeMirror and Lezer releases in file previews.
  • ab4834d: SVG previews load from a data: URL instead of a same-origin blob: URL, so opening a previewed SVG in a new tab can no longer run its scripts on your origin. Images larger than 50 megapixels show a message instead of being decoded.

@opfs-vfs/opfs-vfs

Full package changelog ↗

2.2.0 ↗

Minor Changes

  • c775de1: The just-bash adapter gains forJustBash(), a filesystem you can pass straight to new Bash({ fs }). It has the synchronous path list just-bash requires, re-read after every path-changing call made through it. The developer tools shell uses it, so its path list follows changes made within a command line.

    The adapter's file methods no longer create parent directories for a path that contains . or ... The volume resolves such paths, so /missing/../file fails with ENOENT and creates nothing.

  • cf048fd: The just-bash adapter's non-recursive rm removes an empty directory, so rmdir works in a shell. A non-empty directory fails with ENOTEMPTY, and a symlink to a directory is still only unlinked. The adapter also gains createExclusive, so mktemp works once its directory exists. The developer tools refuse both on read-only connections.

  • 998ca7c: Breaking: paths are resolved as POSIX does. . and .. are resolved during lookup, after symbolic links, instead of being collapsed textually first.

    • With a symlink /link to /a/b, /link/../x reaches /a/x, the parent of the link's target.
    • /missing/../file fails with ENOENT.
    • /file/.. and /file/. fail with ENOTDIR.
    • Removing or renaming a path whose last component is . or .. fails with EINVAL.

    Subscription targets are still matched textually against event paths.

Patch Changes

  • cc26a55: Type declarations resolve under TypeScript's node16 and nodenext module resolution. Relative imports now carry file extensions.

  • 6010a8b: @opfs-vfs/react and @opfs-vfs/effect require the exact @opfs-vfs/opfs-vfs and @opfs-vfs/plugin-subscriptions versions they were built with, because their default workers include the storage engine. Upgrade the three together.

    @opfs-vfs/opfs-vfs declares "sideEffects": false, and options marked internal no longer appear in its type declarations.

  • 452f840: Fix memory-mode recovery and corruption reporting:

    • Closing a tab between a write past the end of a file and the next sync no longer recovers stale bytes into the file's hole.
    • A sync that fails while writing file data no longer leaves the volume unmountable, and reports ENOSPC when the cause is the storage quota.
    • A truncate that cannot allocate its buffer fails without changing the file or logging the truncate.
    • A volume where two files claim the same data block reports a typed corruption error that stays visible in the persistence status.
    • A data log that ends in zero bytes after a power loss is treated as a torn append instead of corruption.
  • cc37142: Breaking: a subscription target that contains a . or .. path component is rejected with EINVAL at registration instead of being collapsed textually. Pass the canonical path, for example realpath of the directory plus the name. Names that merely contain dots are unaffected.

  • a3eba3e: When the SharedWorker script cannot be loaded, the error says so and names the usual causes and fixes, such as dependency pre-bundling or a Content-Security-Policy, instead of "SharedWorker probe failed". The code stays VFS_WORKER_FAILED.

  • 19e80f5: Fix lost directory children after a remount. When a directory had a sibling whose name extended its own with a character that sorts before /, such as /a next to /a-1, renaming or removing the directory after reopening the volume left its children unreachable and made the volume fail to close.

    Volumes on which an earlier release renamed or removed such a directory and left its files without a parent now mount with those files back at their old path and close normally. The repair is reported in the persistence status.

  • 99ed87a: Recovery and durability policy changes:

    • When a volume has to fall back to an older metadata snapshot at mount, the persistence status reports it as a corruption error instead of mounting silently. fail-stop still refuses to mount.
    • With memory buffering and balanced or relaxed durability, create, rename, unlink, and similar operations no longer throw when their recovery-log write fails with a quota or I/O error. The operation is applied, the persistence status records the error, and the next sync writes the record before any file data. strict still throws.
    • A data log whose last record fails its checksum, with no valid record after it, is treated as an interrupted append: it is dropped without a corrupt-frame salvage event and no longer stops a fail-stop mount. A failing record followed by a valid one is still reported as corruption, even when its length field is the damaged part.
    • Files an earlier release left under a name that is now a file are moved to /lost+found/<old path> at mount, or /lost+found-2 and so on if that name is in use. The repair is reported in the persistence status, and the volume closes normally.
    • utimes() on a direct mount rejects times before 1970 or from 7 February 2106 onward with EINVAL, as worker clients already do. Fractional milliseconds are still accepted.
  • 3d32b9e: Fix worker and shared-transport edge cases:

    • Shared-transport pages watch a per-generation liveness lock, so a hidden tab can no longer block the volume from being reopened after its owner stops.
    • Writes from a follower tab send only the bytes being written instead of cloning the caller's whole backing buffer to every tab, and views over shared memory work.
    • A single page on the shared transport receives the owner's persistence status without waiting for a second tab or a page resume.
    • A follower that takes over while the previous owner's worker is still releasing the volume retries briefly instead of failing with EBUSY.
    • Worker startup honours initTimeout instead of a fixed five seconds. A worker that never answers now fails with VFS_INITIALIZATION_TIMEOUT when that timeout expires.
    • A relayed shutdown gets the same five-minute deadline as a direct one.
    • A synchronous result too large for the bridge fails with EOVERFLOW instead of an uncoded error that PGlite saw as a missing directory.
    • utimes() through a worker accepts fractional millisecond timestamps, matching a direct mount.
    • Constructing a worker client on a page without cross-origin isolation fails with VFS_UNSUPPORTED instead of a raw error.

@opfs-vfs/plugin-subscriptions

Full package changelog ↗

1.3.0 ↗

Minor Changes

  • cc37142: Breaking: a subscription target that contains a . or .. path component is rejected with EINVAL at registration instead of being collapsed textually. Pass the canonical path, for example realpath of the directory plus the name. Names that merely contain dots are unaffected.

Patch Changes

  • cc26a55: Type declarations resolve under TypeScript's node16 and nodenext module resolution. Relative imports now carry file extensions.
  • Updated dependencies [cc26a55]
  • Updated dependencies [6010a8b]
  • Updated dependencies [c775de1]
  • Updated dependencies [cf048fd]
  • Updated dependencies [452f840]
  • Updated dependencies [998ca7c]
  • Updated dependencies [cc37142]
  • Updated dependencies [a3eba3e]
  • Updated dependencies [19e80f5]
  • Updated dependencies [99ed87a]
  • Updated dependencies [3d32b9e]
    • @opfs-vfs/opfs-vfs@2.2.0