Packages

@electric-sql/pglite

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

Upgrading @electric-sql/pglite From 0.3.9 to 0.5.17

32 releases in betweennotes for 10

  1. 0.3.9yours
  2. 7 releases
  3. 0.4.0major
  4. 6 releases
  5. 0.5.0major
  6. 16 releases
  7. 0.5.17target
?
changes to make
0
advisories fixed
2+
new
25+
fixes

Counted from 10 of 32 release notes. Advisories are counted from the advisory database, in full.

Release by release

  1. 0.5.17

    19 Nov 20261 fix
    • Fixed

      Upgrade to PostgreSQL 18.7

  2. 0.5.16

    9 Nov 20265 fixes
    • Fixed

      Export pglite.wasm, initdb.wasm and pglite.data so they can be imported by package path (e.g. @electric-sql/pglite/pglite.wasm), and document Nitro/Nuxt support.

    • Fixed

      Parse infinity and -infinity in date, timestamp and timestamptz values as Infinity and -Infinity instead of Invalid Date, and serialize them back to infinity and -infinity.

    • Fixed

      Escape embedded double quotes in identifier template helper so identifiers containing " produce valid SQL

    • Fixed

      Serialize query descriptions and wait for database initialization so concurrent operations return the correct parameter and result metadata.

    • Fixed

      Reset the stream callback after execProtocolRawStream so later execProtocolRaw/execProtocolRawSync calls are not routed to it

  3. 0.5.15

    3 Nov 20262 fixes
    • Fixed

      Reject with TransactionAbortedError when committing an aborted transaction rolls it back instead of silently resolving.

    • Fixed

      Reduce initdb memory usage by passing a smaller WebAssembly.Memory object during initialization'

  4. 0.5.14

    31 Oct 20263 fixes
    • Fixed

      Only build the pglite.wasm, initdb.wasm and pglite.data URLs when PGlite has to load them. Passing pgliteWasmModule, initdbWasmModule and fsBundle now works in bundles where import.meta.url is undefined, such as an esbuild IIFE build.

    • Fixed

      Use PROXYFS instead of dumping the data dir from the scratch PGlite used for initdb when the data dir is in memory.

    • Fixed

      Do not copy parsers on each query

  5. 0.5.13

    28 Oct 20262 new · 1 fix
    • New

      Added support for node-postgres through createPgConfig()

    • New

      Added MemfsFrontendFS which allows other filesystems be implemented on top of a MEMFS. Example: added Memfs2OpfsFS which is backed by an OPFS fs.

    • Fixed

      close() now waits for queries, execs and transactions that were issued before it, so they complete instead of failing with Cannot read properties of undefined after teardown.

  6. 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.

  7. 0.5.11

    21 Oct 20263 fixes
    • Fixed

      Bug fix: check ready before close

    • Fixed

      Update submodule

    • Fixed

      Fix premature ReadyForQuery responses after extended-query errors, preventing PostgreSQL clients from desynchronizing before Sync.

  8. 0.5.10

    14 Oct 20263 fixes
    • Fixed

      Bug fix: wait for running queries to finish before doing a data dir dump

    • Fixed

      Wait for queries to finish before closing PGlite instance. See #1128

    • Fixed

      Fix a windowed live.query (one given offset and limit) leaking its live_query_<id>_get_total_count prepared statement on unsubscribe. Only live_query_<id>_get was deallocated, so the count statement survived every teardown while its backing view was dropped, accumulating dangling prepared statements for the lifetime of the database.

3 internal lines (docs, tests, tooling) left out.

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.