← Back to Pull requests

fix(deps): alchemy back to beta.78 so npm stops nesting prisma@8.0.0-rc.15; release v0.29.1 #349

Closed
unknown closed this pull request without merging on Oct 08, 2026 17:47 UTC
View on GitHub
unknown unknown commented on Oct 08, 2026 17:26 UTC
Author

Composer 0.29.0 makes npm install a second, older Prisma CLI inside Composer. With the current CLI and Composer 0.29.0:

$ npm install prisma@8.0.0-rc.21 @prisma/composer-cli@0.29.0 --ignore-scripts
$ npm ls prisma @prisma/cli-engine --all
+-- @prisma/composer-cli@0.29.0
| +-- @prisma/cli-engine@0.7.0
| +-- @prisma/composer@0.29.0
| | `-- alchemy@2.0.0-beta.81
| |   `-- prisma@8.0.0-rc.15
| |     +-- @prisma/cli-engine@0.4.0
| |     +-- @prisma/composer-cli@0.20.0
| |     `-- @prisma/orm-toolchain@8.0.0-rc.11
| `-- alchemy@2.0.0-beta.81
|   `-- prisma@8.0.0-rc.15
|     +-- @prisma/cli-engine@0.4.0
|     ...
`-- prisma@8.0.0-rc.21

The cause is alchemy. From 2.0.0-beta.80, alchemy declares optional peers on exactly prisma@8.0.0-rc.15 and @prisma/orm-postgres@8.0.0-rc.11. (alchemy wrote catalog: in its peerDependencies, and pnpm turned that into an exact version at publish.) No other prisma version satisfies that peer, so npm nests prisma@8.0.0-rc.15 under alchemy. The Prisma CLI's conformance check then fails on the nested @prisma/cli-engine@0.4.0. This blocks the next CLI release.

Decision: go back to alchemy@2.0.0-beta.78 and the exact effect pins we had before #348, and release this as 0.29.1.

This PR has two commits:

1. fix(deps): reverts the dependency part of #348. It restores alchemy@2.0.0-beta.78, effect@4.0.0-rc.115, the exact @effect/ pins, @distilled.cloud/prisma@1.0.0-rc.12, the effect/unstable/http/ import paths, the exact-version rule in check-npm-effect-resolution.mjs, and the docs and skills. ORM 8.0.0-rc.17 and @prisma/cli-engine 0.7.0 from #345 stay.
2. chore(release): v0.29.1: node scripts/set-version.ts 0.29.1 plus the lockfile, and the auth example's contract, which embeds the version (as in #346). Merging this PR publishes 0.29.1.

After this PR, with the packed tarballs:

$ npm ls prisma @prisma/cli-engine --all
+-- @prisma/composer-cli@0.29.1
| `-- @prisma/cli-engine@0.7.0
+-- @prisma/composer-prisma-cloud@0.29.1
| `-- @prisma/orm-toolchain@8.0.0-rc.17
|   `-- @prisma/cli-engine@0.7.0 deduped
`-- prisma@8.0.0-rc.21
  +-- @prisma/cli-engine@0.6.3
  +-- @prisma/composer-cli@0.28.0
  `-- @prisma/orm-toolchain@8.0.0-rc.16

(I ran this before the version bump, so the tarballs were 0.29.0. The prisma@8.0.0-rc.21 subtree is the CLI's own pins; the next CLI release moves them.) No nested prisma under Composer, only @prisma/cli-engine@0.7.0 under Composer, and one effect copy (4.0.0-rc.115) in the whole tree.

Why beta.78 and not beta.79

beta.79 also lacks the prisma peers, but its alchemy/Prisma entry imports the optional peer @alchemy.run/frontend-frameworks and fails to load without it. Composer imports alchemy/Prisma (the Prisma Cloud descriptors). With beta.79, the local-target tests fail with Cannot find module '@alchemy.run/frontend-frameworks/core'. b5e25184 chose beta.78 over beta.79 for the same reason.

Why the effect pins come back

beta.78 was built against effect@4.0.0-rc.115. It imports effect/unstable/http/, which effect 4.0 moved to effect/http/, so it can't run on effect 4.0.x. It also lists @effect/vitest as a runtime dependency with an open range. Without our exact pin, npm picks @effect/vitest@4.0.2, which needs effect ^4.0.2 and pulls a second effect. So @effect/vitest goes back into @prisma/composer's dependencies until we can move to an alchemy without the prisma peers.

Verification

  • pnpm build, pnpm typecheck, pnpm lint: pass.

  • pnpm test without the integration package: 65/65 tasks pass.

  • check:npm-effect-resolution: every healthy npm install resolves one effect@4.0.0-rc.115, and the adversarial tree fails as expected.

  • check:cli-engine-pin, check:publish-deps, check:family-static-graph, check:skill-packaging, check:orm-pins: pass.

  • test:scripts: 229 pass, 1 fails locally: check-cli-engine-pin-host.test.mjs "fails when the family cannot be resolved from the host" gets ERR_FS_EISDIR from rmSync on its temp fixture. That test doesn't touch dependencies; CI will show whether it's local only.
  • Alternatives considered

  • Fix it upstream in alchemy by making the prisma peers ranges instead of exact versions. That PR is being opened separately, but it can't ship on our schedule. When it does, we can move forward to a newer alchemy and drop the effect pins again.

  • beta.79 plus @alchemy.run/frontend-frameworks as a dependency. Rejected: it adds a dependency only to load an entry that beta.78 loads without it, and beta.79 still needs the same effect pins.
  • Agent: tagore-84

    🤖 Generated with Claude Code

    Diff: 590 lines (+442 / -148) across 7 files Reviewer: wmadden-electric Review duration: 20m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.50) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.50 · 590 lines diff across 7 files
    0.50
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.382
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #349"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 50.0% (MEDIUM) · Higher = larger blast radius
    50.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.7% · Safe to merge
    19.7%