Skip to content

fix: bump @types/pg minimum version to ^8.11.3#203

Open
gn00295120 wants to merge 1 commit into
neondatabase:mainfrom
gn00295120:fix/types-pg-minimum-version
Open

fix: bump @types/pg minimum version to ^8.11.3#203
gn00295120 wants to merge 1 commit into
neondatabase:mainfrom
gn00295120:fix/types-pg-minimum-version

Conversation

@gn00295120

Copy link
Copy Markdown

Summary

QueryConfigValues is imported in src/pool.ts but was only added to @types/pg in version 8.11.3. The current dependency constraint ^8.8.0 allows npm to resolve to versions that don't export this type, causing type errors for downstream consumers.

This bumps the minimum to ^8.11.3 to match actual usage.

Fixes #180

QueryConfigValues type is imported in src/pool.ts but was only added
to @types/pg in version 8.11.3. The previous constraint ^8.8.0 allows
resolution to versions that don't export this type, causing type errors
for consumers.

Fixes neondatabase#180
Copilot AI review requested due to automatic review settings April 7, 2026 01:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the published dependency constraint for @types/pg to ensure downstream TypeScript consumers always receive a version that exports QueryConfigValues, matching the library’s current type usage (Fixes #180).

Changes:

  • Bump @types/pg minimum supported version from ^8.8.0 to ^8.11.3 in package.json.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
Comment on lines 63 to 66
"dependencies": {
"@types/node": "^22.15.30",
"@types/pg": "^8.8.0"
"@types/pg": "^8.11.3"
},

Copilot AI Apr 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package-lock.json is now out of sync with package.json: the lockfile still declares "@types/pg": "^8.8.0" (package-lock.json:14). This will typically cause npm ci to fail due to a dependency mismatch. Regenerate/update the lockfile so it reflects ^8.11.3 (and the resolved version) and commit the updated lockfile as part of this PR.

Copilot uses AI. Check for mistakes.
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.

incorrect version restriction on @types/pg

2 participants