Skip to content

fix: set @types/pg to ^8.16.0#29390

Merged
jacek-prisma merged 1 commit into
mainfrom
fix/set-types-pg-to-8-16
Mar 25, 2026
Merged

fix: set @types/pg to ^8.16.0#29390
jacek-prisma merged 1 commit into
mainfrom
fix/set-types-pg-to-8-16

Conversation

@jacek-prisma

@jacek-prisma jacek-prisma commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

Sets the @types/pg to use a more relaxed constraint and a more recent version ^8.16. The hard constraint has caused issues described here #29356. I decided to bump it to ^8.16.0 to align it with our pg dependency. 8.16.0 is the only @types/pg available for 8.16 pg series. Reasoning is explained here in more detail: #29357 (comment)

Summary by CodeRabbit

  • Chores
    • Updated PostgreSQL type definitions to a newer version
    • Improved TypeScript compatibility by removing outdated type suppression comments

@jacek-prisma jacek-prisma force-pushed the fix/set-types-pg-to-8-16 branch from ffadd2f to 721ed7d Compare March 25, 2026 10:11
@coderabbitai

coderabbitai Bot commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: a1f4bd7c-753d-4698-8a20-ff64875f61a7

📥 Commits

Reviewing files that changed from the base of the PR and between ecae3b6 and 721ed7d.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • packages/adapter-pg/package.json
  • packages/adapter-pg/src/pg.ts
💤 Files with no reviewable changes (1)
  • packages/adapter-pg/src/pg.ts

Walkthrough

Updated @types/pg dependency from fixed version 8.11.11 to semver range ^8.16.0 and removed a TypeScript suppression block (@ts-expect-error) around pg.types configuration in the adapter code, indicating improved type compatibility.

Changes

Cohort / File(s) Summary
Dependency Update
packages/adapter-pg/package.json
Updated @types/pg from 8.11.11 to ^8.16.0 to support newer type definitions.
Type Compatibility
packages/adapter-pg/src/pg.ts
Removed @ts-expect-error suppression and associated comments around pg.types configuration, reflecting improved type alignment with updated @types/pg.

Possibly related issues

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix: set @types/pg to ^8.16.0' clearly and specifically describes the main change: updating the @types/pg dependency version constraint to ^8.16.0, which directly aligns with the changeset modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/set-types-pg-to-8-16

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/client/runtime/index-browser.js 2.29 KB (0%)
packages/client/runtime/index-browser.d.ts 3.37 KB (0%)
packages/cli/build/index.js 2.51 MB (0%)
packages/client/prisma-client-0.0.0.tgz 26.81 MB (-0.01% 🔽)
packages/cli/prisma-0.0.0.tgz 12.84 MB (0%)
packages/bundle-size/da-workers-libsql/output.tgz 1.33 MB (0%)
packages/bundle-size/da-workers-neon/output.tgz 1.39 MB (0%)
packages/bundle-size/da-workers-pg/output.tgz 1.38 MB (-0.03% 🔽)
packages/bundle-size/da-workers-planetscale/output.tgz 1.33 MB (0%)
packages/bundle-size/da-workers-d1/output.tgz 1.3 MB (0%)

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Mar 25, 2026
@aqrln aqrln added this to the 7.6.0 milestone Mar 25, 2026
@jacek-prisma jacek-prisma merged commit 4131568 into main Mar 25, 2026
251 of 253 checks passed
@jacek-prisma jacek-prisma deleted the fix/set-types-pg-to-8-16 branch March 25, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants