Packages

@electric-sql/pglite

0.5.17 · 19 Nov 2026Apache-2.044.2M / weekRepositoryHomepagenpmAtom feed

Upgrading @electric-sql/pglite From 0.5.11 to 0.5.12

1 release in betweenevery note read

Other targets from 0.5.11Newest 0.x, Latest0.5.17
  1. 0.5.11yours
  2. 0.5.12target
0
changes to make
0
advisories fixed
0
new
4
fixes

Release by release

  1. 0.5.12

    26 Oct 20264 fixes
    • Fixed

      Fix custom filesystems not receiving times set with FS.utime. Emscripten's FS.utime calls setattr with atime and mtime, but the BaseFilesystem bridge only handled the older timestamp field, so utimes was never called on OPFS AHP or any other BaseFilesystem. Files restored from a tarball kept the time they were written instead of the time stored in the tarball.

    • Fixed

      Run initdb with TZ=UTC, like the backend, so a new database gets timezone = 'UTC' in postgresql.conf. Before, initdb wrote the host's zone as a fixed offset without daylight saving (e.g. Etc/GMT+5 for America/New_York), so timestamptz input without an offset was stored at a different instant on each non-UTC machine.

    • Fixed

      Start under the Node.js permission model (node --permission). Emscripten's NODEFS read the fs open flags with process.binding('constants'), which Node always denies in that mode, so new PGlite() threw ERR_ACCESS_DENIED even for memory://. The bundled build now reads them from require('fs').constants, which holds the same values.

    • Fixed

      Fix files restored from a tarball getting a January 1970 modification time. loadTar passed the tar header's time to Emscripten's FS.utime in seconds, but FS.utime takes milliseconds. This affected every new database (initdb's data dir is restored from a tarball) and every loadDataDir. With the Node filesystem the files on disk got those dates too.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.