-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: Llorx/node-postgres
base: master
head repository: brianc/node-postgres
compare: master
- 11 commits
- 31 files changed
- 6 contributors
Commits on Oct 22, 2025
-
feat: add Node.js version 25 to CI workflow (brianc#3556)
* feat: add Node.js version 25 to CI workflow https://nodejs.org/en/blog/release/v25.0.0 * chore: update CI workflow to exclude Node.js version '23' Remove Node.js version '23' from CI workflow.
Configuration menu - View commit details
-
Copy full SHA for 8d493f3 - Browse repository at this point
Copy the full SHA 8d493f3View commit details
Commits on Dec 11, 2025
-
fix: Avoid retaining buffer for latest parse in reader (brianc#3533)
* test: Add failing test for parser reader cleanup * fix: Avoid retaining buffer for latest parse in reader The buffer can be arbitrarily large, and the parser shouldn’t keep it around while waiting on (and potentially also buffering) the next complete packet.
Configuration menu - View commit details
-
Copy full SHA for ecff60d - Browse repository at this point
Copy the full SHA ecff60dView commit details
Commits on Jan 14, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 8750cad - Browse repository at this point
Copy the full SHA 8750cadView commit details -
- pg-bundler-test@0.1.0 - pg-cloudflare@1.3.0 - pg-connection-string@2.10.0 - pg-cursor@2.16.0 - pg-esm-test@1.3.0 - pg-pool@3.11.0 - pg-protocol@1.11.0 - pg-query-stream@4.11.0 - pg@8.17.0
Configuration menu - View commit details
-
Copy full SHA for d10e09c - Browse repository at this point
Copy the full SHA d10e09cView commit details -
Improve Deno compatibility: config-first and safe env access (brianc#…
…3547) * Set default PostgreSQL user to 'postgres' to avoid Deno env access errors Currently, the pg package defaults the database user to process.env.USER (or USERNAME on Windows). This causes errors when running in Deno without --allow-env, as environment access is restricted. This PR changes the default user to 'postgres', so: - Node.js behavior is unchanged when a user is explicitly provided in config. - Deno users no longer hit NotCapable errors for environment access. - Avoids relying on process.env for default values. Example: Before: user: process.platform === 'win32' ? process.env.USERNAME : process.env.USER, After: user: 'postgres', // default user, avoids using process.env * Prioritize config values over environment variables in ConnectionParameters Previously, ConnectionParameters would first check process.env for connection settings before using the provided config object. This could cause errors in environments like Deno where environment access is restricted. This change updates the val function to: 1. Use the value from config if it is defined. 2. Fall back to environment variables only if config does not provide a value. 3. Use default values if neither config nor environment variables are set. This ensures that explicitly provided configuration values are always respected, avoiding unnecessary errors in restricted environments. * Wrap NODE_PG_FORCE_NATIVE check in try/catch for Deno compatibility Replace the `typeof process.env.NODE_PG_FORCE_NATIVE !== 'undefined'` check with a try/catch to safely handle environments like Deno without `--allow-env`. - Keeps Node.js behavior unchanged. - Prevents errors when accessing process.env in Deno. - Preserves lazy loading of the native module. * Make default database user Deno-safe Wrap the default database user assignment in a try/catch to prevent errors when environment access is restricted (e.g., in Deno). - Uses process.env.USER / USERNAME on Node if available - Falls back to 'postgres' when env access fails or is unavailable - Maintains code structure and comments - Ensures Node tests continue to pass while preventing Deno runtime errors * Fixing checks pass * Update packages/pg/lib/connection-parameters.js Co-authored-by: Charmander <~@charmander.me> * fix(pg): only guard process.env access when forcing native client --------- Co-authored-by: Charmander <~@charmander.me>
Configuration menu - View commit details
-
Copy full SHA for 6bf475c - Browse repository at this point
Copy the full SHA 6bf475cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5a581bb - Browse repository at this point
Copy the full SHA 5a581bbView commit details
Commits on Jan 15, 2026
-
Don't use prefix import as it breaks in old nodes. (brianc#3578)
* Don't use prefix import as it breaks in old nodes. This is a one time fix for brianc#3577 because its easy to do. node < v16 is not supported. * Update docs
Configuration menu - View commit details
-
Copy full SHA for b94c8e1 - Browse repository at this point
Copy the full SHA b94c8e1View commit details -
- pg-cursor@2.16.1 - pg-esm-test@1.3.1 - pg-query-stream@4.11.1 - pg@8.17.1
Configuration menu - View commit details
-
Copy full SHA for 4eb7529 - Browse repository at this point
Copy the full SHA 4eb7529View commit details
Commits on Jan 19, 2026
-
Configuration menu - View commit details
-
Copy full SHA for a3a4567 - Browse repository at this point
Copy the full SHA a3a4567View commit details
Commits on Jan 20, 2026
-
Remove node: prefix from imports (brianc#3584)
* Remove node: prefix from imports.
Configuration menu - View commit details
-
Copy full SHA for ea06db5 - Browse repository at this point
Copy the full SHA ea06db5View commit details -
- pg-connection-string@2.10.1 - pg-cursor@2.16.2 - pg-esm-test@1.3.2 - pg-query-stream@4.11.2 - pg@8.17.2
Configuration menu - View commit details
-
Copy full SHA for 5b68a11 - Browse repository at this point
Copy the full SHA 5b68a11View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...master