Skip to content

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

Merged
brianc merged 1 commit into
masterfrom
push-vkvsrrpwmnok
Apr 22, 2025
Merged

fix(pg-connection-string): export default from esm wrapper#3425
brianc merged 1 commit into
masterfrom
push-vkvsrrpwmnok

Conversation

@hjr3

@hjr3 hjr3 commented Apr 22, 2025

Copy link
Copy Markdown
Collaborator

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

hjr3 commented Apr 22, 2025

Copy link
Copy Markdown
Collaborator Author

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

@cloudflare-workers-and-pages

Copy link
Copy Markdown

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

brianc commented Apr 22, 2025

Copy link
Copy Markdown
Owner

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
@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