Skip to content

pg-connection-string version 3.0.0 #3421

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

Open
hjr3 opened this issue Apr 17, 2025 · 4 comments
Open

pg-connection-string version 3.0.0 #3421

hjr3 opened this issue Apr 17, 2025 · 4 comments

Comments

@hjr3
Copy link
Collaborator

hjr3 commented Apr 17, 2025

@ThisIsMissEm
Copy link

ThisIsMissEm commented Apr 22, 2025

@hjr3 just a heads up, 2.8.0 was technically a breaking change. Even though module.exports = parse still existed, it broke the default export:

import pgConnectionString from 'pg-connection-string';
       ^^^^^^^^^^^^^^^^^^
SyntaxError: The requested module 'pg-connection-string' does not provide an export named 'default'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:180:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:263:5)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:578:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)

Node.js v22.14.0

I'm guessing it's an ESM / bundler or whatever type error, but it's easy enough to fix and switch to import { parse } from 'pg-connection-string';

@hjr3
Copy link
Collaborator Author

hjr3 commented Apr 22, 2025

@hjr3 just a heads up, 2.8.0 was technically a breaking change. Even though module.exports = parse still existed, it broke the default export:

i opened #3424 and will triage there

@brianc
Copy link
Owner

brianc commented Apr 22, 2025

i opened #3424 and will triage there

thanks! Sorry 'bout that. Published a patch version which contains the fix for the default export.

@ThisIsMissEm
Copy link

Cool & no worries, we picked up the issue pretty quickly on the mastodon side

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