Skip to content

[pull] main from prisma:main#217

Merged
pull[bot] merged 3 commits intocode:mainfrom
prisma:main
Mar 3, 2026
Merged

[pull] main from prisma:main#217
pull[bot] merged 3 commits intocode:mainfrom
prisma:main

Conversation

@pull
Copy link

@pull pull bot commented Mar 3, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

pedrogiroldo and others added 3 commits March 3, 2026 13:51
**What changed**

`@types/pg` was moved from a `devDependency` to a regular `dependency`
in `adapter-pg`'s `package.json`, and the pnpm lockfile entries were
updated accordingly.

**Why**

When using `adapter-pg`, the TypeScript types for `pg` are not
automatically available — they live in `@types/pg`, which is a separate
package that the adapter consumed only as a dev dependency. Because of
this, consumers who install `adapter-pg` end up with a poor developer
experience: the adapter's types fail to load correctly at the consumer's
side, since TypeScript can't resolve the underlying `pg` types without
`@types/pg` being present.

The problem is subtle and frustrating: the user has no reason to know
that `adapter-pg` internally depends on `@types/pg`, and nothing tells
them they need to install it manually. The fix is to make `@types/pg` a
direct, non-dev dependency so it is automatically installed whenever
`adapter-pg` is installed — both for the end user's type resolution and
for the build itself.

**Impact**

No runtime behavior changes. This is a types-only fix that improves the
out-of-the-box TypeScript experience for anyone using `adapter-pg`.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Chores**
* Updated PostgreSQL adapter dependencies: moved type definitions from
development-only to runtime dependencies so they're available when the
adapter is installed.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Fixes #5509

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Enhanced JSDoc documentation to include the `distinct` option for
findMany operations in the JavaScript client generator
* Added support for documenting the `distinct` option across findMany,
findFirst, and findFirstOrThrow operations in the TypeScript client
generator

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
…ap (#29052)

Use a private property instead of the `WeakMap` workaround and resolve
the TODO comment.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Improved internal storage mechanism for better performance and
maintainability.

---

**Note:** This release contains internal optimizations with no changes
to user-facing functionality or behavior.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@pull pull bot locked and limited conversation to collaborators Mar 3, 2026
@pull pull bot added the ⤵️ pull label Mar 3, 2026
@pull pull bot merged commit 1c96216 into code:main Mar 3, 2026
4 of 8 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants