Skip to content

fix(pg-connection-string): export default from esm wrapper #3425

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

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

hjr3
Copy link
Collaborator

@hjr3 hjr3 commented Apr 22, 2025

Prior to v2.8.0, the parse function was the default when using import. When esm compatibility was introduced in v2.8.0, there was not default specified. This broke existing code that relied on that default.

Fixes #3424

Prior to v2.8.0, the parse function was the default when using import.
When esm compatibility was introduced in v2.8.0, there was not default
specified. This broke existing code that relied on that default.

Fixes #3424
@hjr3 hjr3 requested a review from brianc April 22, 2025 20:13
@hjr3
Copy link
Collaborator Author

hjr3 commented Apr 22, 2025

@brianc this fixes a regression in pg-connection-string and we should release a 2.8.1

Copy link

Deploying node-postgres with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5ce2c03
Status: ✅  Deploy successful!
Preview URL: https://f5706674.node-postgres.pages.dev
Branch Preview URL: https://push-vkvsrrpwmnok.node-postgres.pages.dev

View logs

@brianc
Copy link
Owner

brianc commented Apr 22, 2025

oh my bad! Sorry about that! The whole esm/commonjs thing is quite an easy thing to trip over. I'll publish this right away.

@brianc brianc merged commit 557716d into master Apr 22, 2025
13 checks passed
@hjr3 hjr3 deleted the push-vkvsrrpwmnok branch April 22, 2025 22:58
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.

pg-connection-string v2.8.0 broke default export
2 participants