Skip to content

Old version of pg-types is used #3388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aqeelat opened this issue Feb 16, 2025 · 5 comments
Closed

Old version of pg-types is used #3388

aqeelat opened this issue Feb 16, 2025 · 5 comments

Comments

@aqeelat
Copy link

aqeelat commented Feb 16, 2025

The current version of [email protected] uses pg-types@^2, but @types/pg@^8.11 uses pg-types@^4

"pg-types": "^2.1.0",

This means ts projects have two versions of these packages:

  • postgres-array
  • postgres-byte
  • postgres-date
@brianc
Copy link
Owner

brianc commented May 1, 2025

yeah [email protected] has some breaking changes I'm not intending on incorporating ever. I have some immenent plants on getting pg-types upgraded to a fork of 4.x or 4.x + wrapper code to undo the breaking changes. While I understand why the breaking changes were done the hard to debug quietly breaking code that would be deployed into production systems w/ those changes is not something I'm willing to accept. so its taking me a bit of time to upgrade....but it's one of the next things I'll be tackling!

@brianc brianc closed this as completed May 1, 2025
@hjr3
Copy link
Collaborator

hjr3 commented May 1, 2025

This seems like a bug for @types/pg. is there any reason for it to use pg-types v4?

@brianc
Copy link
Owner

brianc commented May 1, 2025

is there any reason for it to use pg-types v4?

ohh yeah i would agree there isn't a good one since pg itself ships with [email protected]

@aqeelat
Copy link
Author

aqeelat commented May 1, 2025

@brianc ill open a pr in definitely typed to fix this

@aqeelat
Copy link
Author

aqeelat commented May 1, 2025

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

No branches or pull requests

3 participants