Repository navigation
Conversation
…ols to 0.2.4 - Pin @electric-sql/pglite to 0.3.16 (PostgreSQL 17.5) in package.json and npm-shrinkwrap.json. - Pin @electric-sql/pglite-tools to 0.2.4 so PG16 to PG17 dataDir migration via pglite-2 (0.2.17) continues working cleanly without peer dependency conflicts. - Update reported serverVersion in src/emulator/dataconnect/pgliteServer.ts to "17.5 (PGlite 0.3.16)".
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the @electric-sql/pglite dependency to version 0.3.16 and @electric-sql/pglite-tools to version 0.2.4 in package.json. It also updates the hardcoded server version string in pgliteServer.ts to reflect the new PGlite version. There are no review comments to address, and the changes look correct.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updates
@electric-sql/pglitefrom^0.3.3to0.3.16(PostgreSQL 17.5) and updates the reportedserverVersioninsrc/emulator/dataconnect/pgliteServer.tsto17.5 (PGlite 0.3.16).Pins
@electric-sql/pglite-toolsto0.2.4. In this repo,@electric-sql/pglite-toolsis only used bymigrateDb()insrc/emulator/dataconnect/pgliteServer.tsto runpgDumpagainstpglite-2(@electric-sql/pglite@0.2.17, PostgreSQL 16) when migrating legacy PG16 data directories to PG17. Newer@electric-sql/pglite-toolsreleases (0.2.5through0.2.21) pin an exact@electric-sql/pglite0.3.xpeer dependency, and the newer Emscriptenpg_dumpin0.2.21sends raw PostgreSQL startup packets directly toexecProtocolRawSync, which crashespglite-2@0.2.17with a WASM trap. Pinning0.2.4(the WASI release paired with PGlite0.2.17) avoids peer dependency conflicts with0.3.16and keeps PG16-to-PG17 migration working without changing migration logic.This PR is a dependency bump only and leaves the existing Data Connect GraphQL emulator path and extension list unchanged.
High-level PGlite technical requirements for experimental SQL Connect emulator support
This dependency bump is the first step toward supporting the experimental SQL Connect local emulator (gated behind the
fdcsqlconnectexperiment). Subsequent PRs will add an opt-in PGlite connection layer for SQL Connect without modifying the existing Data Connect GraphQL emulator path.Key technical requirements for local PGlite support:
0.3.x(preserving compatibility with existing0.3.3local data directories and PG16-to-PG17 migration) and support standard bundled extensions (vector,uuid-ossp,pgcrypto,pg_trgm,citext,hstore,ltree,unaccent,btree_gin,btree_gist).DEALLOCATE/DISCARD ALLdo not invalidate other connections' statements.SET ROLE) and session-level settings (such assearch_pathandstatement_timeout) back to a clean baseline on disconnect without losing the defaultsearch_path.Scenarios Tested
0.3.3dataDirwith a table, row, andvectorextension, then opened and wrote to that samedataDirunder0.3.16(confirmed PostgreSQL 17.5, existing row andvector0.8.0read cleanly, new inserts succeed).pglite-2(0.2.17),@electric-sql/pglite-tools@0.2.4pgDump, and@electric-sql/pglite@0.3.16.vector,uuid-ossp,pgcrypto,pg_trgm,citext,hstore,ltree,unaccent,btree_gin,btree_gist) load and install cleanly on0.3.16.npm run sanitize:lockfile,npm run build,npm run test:compile,eslintonsrc/emulator/dataconnect/pgliteServer.ts(0 errors), andnpx mocha 'src/dataconnect/**/*.spec.{ts,js}'(88 passing).