npm / @electric-sql/pglite
@electric-sql/pglite
What changed in @electric-sql/pglite 0.3 to 0.5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
3 breaking9 new APIs and options4 behavior and defaults18 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@electric-sql/pglite 0.524 changes
Breaking changes 2
PGlite no longer sets process.exitCode, so using it will not alter the process exit code.
Other extensions moved to their own npm packages.
New APIs and options 4
Additional core symbols are exported from the main WASM module, enabling the plpgsql_check extension to use them.
Results now expose the command derived from the CommandComplete command tag, enabling pg-compatible adapters to report it without re-parsing SQL.
Results now expose the per-statement count from the CommandComplete command tag, enabling pg-compatible adapters to report it without re-parsing SQL.
Adds pg_stat_statements.tar.gz to the main package.
Behavior and default changes 2
Upgraded to PostgreSQL 18.6, which may affect database behavior available to developers.
Upgraded to Postgres 18.3, which may affect the database capabilities available to developers.
Fixes and other changes 16
Data directory dumps now wait for running queries to finish.
Unsubscribing from a windowed live query now deallocates its total-count prepared statement, preventing dangling statements from accumulating.
Closing a PGlite instance now waits for queries to finish.
Fixes convert_to.
The second options argument is now applied when calling PGlite.create(undefined, options).
Fixes were made for process.exitCode.
Operations through transaction handles are rejected after the transaction has closed.
Uses positional
%N$Lformat specifiers when inlining parameters, preventing incorrect bindings for out-of-order or repeated placeholders.On a fresh database, the inner initdb instance no longer inherits the provided filesystem, avoiding contention for VFS resources.
Closing a PGlite instance preserves the host process's existing exit code instead of resetting it to 0.
Retained parser state is reset after a malformed backend message, allowing later queries to recover.
PGlite detects the Node environment via process.type, allowing its filesystem code path to work in Electron main and utility processes while excluding Electron web contexts.
Parsing and raw results handling were improved.
Fixes serialization of arrays of BigInts.
Fixes setting and restoring the process exit code.
Allows untyped parameters to be serialized.
@electric-sql/pglite 0.46 changes
Breaking changes 1
Background workers are disabled.
New APIs and options 2
Initial memory size can now be set.
You can now pass the initdb.wasm asset for bundlers that need it.
Behavior and default changes 2
The checkpointer is disabled.
The default database, user and role are now all postgres.
Fixes and other changes 1
Fixes artifact caching so artifacts are not downloaded multiple times.
@electric-sql/pglite 0.34 changes
New APIs and options 3
Adds support for the Apache AGE graph database extension.
Added the pg_uuidv7 extension.
Added the pgTAP extension.
Fixes and other changes 1
Trigger identifiers in the live extension now use schema.oid and table.oid.