# What changed in @electric-sql/pglite

> 34 changes in @electric-sql/pglite 0.3 to 0.5 from its official release notes, upgrade guides and advisories: 3 breaking, 9 new APIs and options. Each one cited. Sources checked 2026-10-21. HTML: https://unstale.sh/npm/@electric-sql/pglite/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @electric-sql/pglite 0.5

### Breaking changes

- PGlite no longer sets process.exitCode, so using it will not alter the process exit code. (0.5.8) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.8)
- Other extensions moved to their own npm packages. (0.5.0) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.0)

### New APIs and options

- Additional core symbols are exported from the main WASM module, enabling the plpgsql_check extension to use them. (0.5.9) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.9)
- Results now expose the command derived from the CommandComplete command tag, enabling pg-compatible adapters to report it without re-parsing SQL. (0.5.5) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.5)
- Results now expose the per-statement count from the CommandComplete command tag, enabling pg-compatible adapters to report it without re-parsing SQL. (0.5.5) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.5)
- Adds pg_stat_statements.tar.gz to the main package. (0.5.2) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.2)

### Behavior and default changes

- Upgraded to PostgreSQL 18.6, which may affect database behavior available to developers. (0.5.9) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.9)
- Upgraded to Postgres 18.3, which may affect the database capabilities available to developers. (0.5.0) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.0)

### Fixes and other changes

- Data directory dumps now wait for running queries to finish. (0.5.10) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.10)
- Unsubscribing from a windowed live query now deallocates its total-count prepared statement, preventing dangling statements from accumulating. (0.5.10) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.10)
- Closing a PGlite instance now waits for queries to finish. (0.5.10) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.10)
- Fixes convert_to. (0.5.7) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.7)
- The second options argument is now applied when calling PGlite.create(undefined, options). (0.5.6) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.6)
- Fixes were made for process.exitCode. (0.5.6) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.6)
- Operations through transaction handles are rejected after the transaction has closed. (0.5.5) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.5)
- Uses positional `%N$L` format specifiers when inlining parameters, preventing incorrect bindings for out-of-order or repeated placeholders. (0.5.5) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.5)
- On a fresh database, the inner initdb instance no longer inherits the provided filesystem, avoiding contention for VFS resources. (0.5.5) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.5)
- Closing a PGlite instance preserves the host process's existing exit code instead of resetting it to 0. (0.5.5) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.5)
- Retained parser state is reset after a malformed backend message, allowing later queries to recover. (0.5.5) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.5)
- 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. (0.5.4) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.4)
- Parsing and raw results handling were improved. (0.5.3) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.3)
- Fixes serialization of arrays of BigInts. (0.5.2) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.2)
- Fixes setting and restoring the process exit code. (0.5.2) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.2)
- Allows untyped parameters to be serialized. (0.5.2) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.5.2)

## @electric-sql/pglite 0.4

### Breaking changes

- Background workers are disabled. (0.4.3) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.4.3)

### New APIs and options

- Initial memory size can now be set. (0.4.3) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.4.3)
- You can now pass the initdb.wasm asset for bundlers that need it. (0.4.2) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.4.2)

### Behavior and default changes

- The checkpointer is disabled. (0.4.4) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.4.4)
- The default database, user and role are now all postgres. (0.4.3) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.4.3)

### Fixes and other changes

- Fixes artifact caching so artifacts are not downloaded multiple times. (0.4.5) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.4.5)

## @electric-sql/pglite 0.3

### New APIs and options

- Adds support for the Apache AGE graph database extension. (0.3.16) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.3.16)
- Added the pg_uuidv7 extension. (0.3.14) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.3.14)
- Added the pgTAP extension. (0.3.12) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.3.12)

### Fixes and other changes

- Trigger identifiers in the live extension now use schema.oid and table.oid. (0.3.14) — [release notes](https://github.com/electric-sql/pglite/releases/tag/%40electric-sql/pglite%400.3.14)
