Skip to content

chore(pg): use the maintained pg-types compatibility package - #17

Open
alexandroit wants to merge 1 commit into
yugabyte:masterfrom
alexandroit:stackline-pg-types-compat-1-0-0-20260830
Open

alexandroit wants to merge 1 commit into
yugabyte:masterfrom
alexandroit:stackline-pg-types-compat-1-0-0-20260830

Conversation

@alexandroit

Copy link
Copy Markdown

Summary

  • keep the historical pg-types dependency key and existing require('pg-types') call
  • resolve that key to @stackline/[email protected]
  • add a focused regression test for scalar and array parser behavior
  • update the Yarn lock entry

packages/pg/lib/type-overrides.js uses the root getTypeParser/setTypeParser contract. @stackline/[email protected] preserves the [email protected] CommonJS and parser API used here, while the package itself has no runtime dependencies.

I maintain @stackline/pg-types. It is an independent compatibility continuation; I am not affiliated with YugabyteDB or the original pg-types maintainers.

Validation

  • yarn install --frozen-lockfile
  • yarn build
  • make -C packages/pg test-unit
  • PostgreSQL 11 pure-JavaScript integration suite, apart from the existing 2064-tests.js util.inspect assertion
  • package identity plus INT4, INT8, BOOL, integer-array, and custom parser smoke checks

The 2064-tests.js assertion fails identically on the base commit and this patch under Node 17 and Node 20. The repository-wide lint and pg-pool lifetime-timeout failures are also unchanged from baseline.

The legacy Fomatto git:// install edge required a local HTTPS transport mapping during validation; no project files were changed for that workaround.

@alexandroit

Copy link
Copy Markdown
Author

Following up on this compatibility change. I revalidated commit 30ea4962 with a frozen-lockfile install, TypeScript build, and the pg unit suite on Node 22.23.4; all passed. Package identity and scalar, array, and custom parser smoke checks also passed. Would the maintainers be open to reviewing this approach? I maintain the proposed package, as disclosed in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant