Skip to content

feat(transactional-adapter-drizzle-orm): accept drizzle-orm v1 in the peer range#604

Open
rodrigobnogueira wants to merge 1 commit into
Papooch:mainfrom
rodrigobnogueira:feat/drizzle-orm-v1-peer-range
Open

feat(transactional-adapter-drizzle-orm): accept drizzle-orm v1 in the peer range#604
rodrigobnogueira wants to merge 1 commit into
Papooch:mainfrom
rodrigobnogueira:feat/drizzle-orm-v1-peer-range

Conversation

@rodrigobnogueira

Copy link
Copy Markdown
Contributor

Closes #599.

drizzle-orm v1 is at 1.0.0-rc.4 and the ^0 peer pin fails resolution for anyone installing the adapter next to it. The adapter itself is unaffected by v1's API changes — src has no drizzle-orm import at all; the client is an opaque value — so the pin is the only blocker.

Change (2 lines): peer range → "^0 || >=1.0.0-rc.1 <2.0.0" + the matching yarn.lock entry. The explicit prerelease comparator is required because plain semver ranges never match prereleases (<2.0.0 alone does not admit 1.0.0-rc.4); the range also covers stable 1.x, so GA needs no further change.

Runtime evidence: nest-native/drizzle's CI runs a real commit/rollback through TransactionalAdapterDrizzleOrm (via ClsPluginTransactional + @Transactional(), libSQL driver) against drizzle-orm@rc on every push — green on 1.0.0-rc.4 (spec, canary job).

This package's own jest specs stay on the stable 0.45.x devDependency, so CI here is unaffected. (They use RQB v1's { schema } config, which v1 replaces with the relations API — worth migrating only if you want a dedicated v1 test lane; happy to follow up with that separately if useful.)

… peer range

drizzle-orm v1 is at 1.0.0-rc.4 and the ^0 peer pin makes any install next to it fail resolution, even though the adapter itself never imports drizzle-orm — the client is an opaque value, so nothing in src is affected by the v1 API changes. The new range needs the explicit prerelease comparator because plain semver ranges never match prereleases; >=1.0.0-rc.1 <2.0.0 admits the RC line and stable 1.x alike while keeping ^0. Runtime evidence: nest-native/drizzle's CI runs this adapter's real commit/rollback through @transactional against drizzle-orm@1.0.0-rc.4 on every push and it passes. The package's own tests intentionally stay on the stable 0.45.x devDependency; migrating their RQB usage to v1's relations API only becomes relevant if a dedicated v1 test lane is added.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
rodrigobnogueira added a commit to nest-native/drizzle that referenced this pull request Jul 5, 2026
…e it in the canary (#138)

The support policy claimed drizzle-zod has no v1-compatible release. The real story: on the v1 line the integration moved INTO drizzle-orm as the drizzle-orm/zod subpath (zod is an optional peer there; valibot/typebox/arktype moved the same way), and the standalone drizzle-zod package stays on 0.x — its v1 builds stopped in February when the validator packages were removed from the beta/rc branches. Verified against 1.0.0-rc.4: createSelectSchema/createInsertSchema derive working schemas from a sqliteTable and parse correctly. A new feature-detecting spec proves this on every canary run and skips on 0.x base lanes where the subpath does not exist. Docs-only + test-only: no release; also freshens the CLS-adapter links with the proposed fix (Papooch/nestjs-cls#604).

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.

Add drizzle orm v1.0.0-rc support

1 participant