Skip to content
This repository was archived by the owner on Nov 25, 2026. It is now read-only.

Bump to version 0.9.0 - #531

Merged
wmadden merged 1 commit into
mainfrom
release/0.9.0
May 18, 2026
Merged

wmadden merged 1 commit into
mainfrom
release/0.9.0

Conversation

@wmadden

@wmadden wmadden commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Cuts the next minor release: 0.8.0 → 0.9.0.

Bumps the root package.json version and propagates it to every workspace package.json (lockstep — see docs/oss/versioning.md). The pnpm-lock.yaml change is purely workspace-internal specifier bumps (workspace:0.8.0 → workspace:0.9.0); no external resolution churn.

Release-notes-worthy changes since 0.8.0

Breaking

  • @prisma-next/migration-tools: inlined fromContract / toContract fields removed from the migration manifest. Migrations are now strictly runner-independent — the predecessor/successor contracts are resolved from on-disk end-contract.json sidecars instead of being embedded. Downstream consumers and existing migrations should have already been migrated via the recorded 0.8 → 0.9 upgrade skill entries (chore(upgrade-skills): record 0.8 → 0.9 strip-inline-contracts entries).

Migration CLI restructure

A large vocabulary + surface refactor lands in this release. Highlights:

  • migration apply promoted to top-level prisma-next migrate --to <ref>.
  • New db update --to <contract> for contract-driven updates.
  • migration status split into focused commands: status / log / list / graph.
  • New migration check command for artifact + graph integrity (with PN-005 edge-mismatch detection).
  • ref promoted to a top-level command; the get verb dropped.
  • db sign accepts a contract argument (positional + --contract).
  • Removed verbs now emit targeted suggestions; help, snapshots, and the CLI Style Guide / Migration System docs are aligned with the new vocabulary.
  • Several follow-up correctness fixes from the local-PR review pass (e.g. migration show reachability, migration graph --dot precedence in non-TTY, PN-005 detection in per-migration migration check).

Other

  • canonicalVersion retired from contract + marker (docs aligned).
  • migrationId renamed to migrationHash in Migration System docs to match the on-disk key.
  • Skill cluster restructure: user-facing cluster moved to repo root, contributor skills hidden by default, @prisma-next/agent-skill renamed to @prisma-next/skills, init installs all three clusters from versioned git source.

What happens on merge

Merging this PR ships the release:

  1. The push to main carries the bumped root version (0.9.0).
  2. The Publish to npm workflow detects the change and publishes 0.9.0 under dist-tag latest.
  3. A matching GitHub Release (v0.9.0) is created automatically.

No separate dispatch step is required.

Summary by CodeRabbit

  • Chores
    • Bumped monorepo, packages, examples, extensions, targets, tooling, and test fixture versions from 0.8.0 → 0.9.0.
    • Aligned internal workspace dependency references to workspace:0.9.0 across the repository.
    • No runtime behavior or public API changes; only package metadata and dependency version synchronization.

Review Change Stack

@wmadden
wmadden requested a review from a team as a code owner May 18, 2026 15:35
@coderabbitai

coderabbitai Bot commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 61d4ce56-6910-4546-80ab-db81ce78ffff

📥 Commits

Reviewing files that changed from the base of the PR and between c1e1450 and 014e795.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (82)
  • examples/cipherstash-integration/package.json
  • examples/mongo-blog-leaderboard/package.json
  • examples/mongo-demo/package.json
  • examples/multi-extension-monorepo/package.json
  • examples/paradedb-demo/package.json
  • examples/prisma-next-cloudflare-worker/package.json
  • examples/prisma-next-demo-sqlite/package.json
  • examples/prisma-next-demo/package.json
  • examples/prisma-next-postgis-demo/package.json
  • examples/react-router-demo/package.json
  • examples/retail-store/package.json
  • package.json
  • packages/0-config/tsconfig/package.json
  • packages/0-config/tsdown/package.json
  • packages/0-shared/extension-author-tools/package.json
  • packages/1-framework/0-foundation/contract/package.json
  • packages/1-framework/0-foundation/utils/package.json
  • packages/1-framework/1-core/config/package.json
  • packages/1-framework/1-core/errors/package.json
  • packages/1-framework/1-core/framework-components/package.json
  • packages/1-framework/1-core/operations/package.json
  • packages/1-framework/1-core/ts-render/package.json
  • packages/1-framework/2-authoring/contract/package.json
  • packages/1-framework/2-authoring/ids/package.json
  • packages/1-framework/2-authoring/psl-parser/package.json
  • packages/1-framework/2-authoring/psl-printer/package.json
  • packages/1-framework/3-tooling/cli/package.json
  • packages/1-framework/3-tooling/emitter/package.json
  • packages/1-framework/3-tooling/migration/package.json
  • packages/1-framework/3-tooling/prisma-next/package.json
  • packages/1-framework/3-tooling/vite-plugin-contract-emit/package.json
  • packages/2-mongo-family/1-foundation/mongo-codec/package.json
  • packages/2-mongo-family/1-foundation/mongo-contract/package.json
  • packages/2-mongo-family/1-foundation/mongo-value/package.json
  • packages/2-mongo-family/2-authoring/contract-psl/package.json
  • packages/2-mongo-family/2-authoring/contract-ts/package.json
  • packages/2-mongo-family/3-tooling/emitter/package.json
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/package.json
  • packages/2-mongo-family/4-query/query-ast/package.json
  • packages/2-mongo-family/5-query-builders/orm/package.json
  • packages/2-mongo-family/5-query-builders/query-builder/package.json
  • packages/2-mongo-family/6-transport/mongo-lowering/package.json
  • packages/2-mongo-family/6-transport/mongo-wire/package.json
  • packages/2-mongo-family/7-runtime/package.json
  • packages/2-mongo-family/9-family/package.json
  • packages/2-sql/1-core/contract/package.json
  • packages/2-sql/1-core/errors/package.json
  • packages/2-sql/1-core/operations/package.json
  • packages/2-sql/1-core/schema-ir/package.json
  • packages/2-sql/2-authoring/contract-psl/package.json
  • packages/2-sql/2-authoring/contract-ts/package.json
  • packages/2-sql/3-tooling/emitter/package.json
  • packages/2-sql/4-lanes/query-builder/package.json
  • packages/2-sql/4-lanes/relational-core/package.json
  • packages/2-sql/4-lanes/sql-builder/package.json
  • packages/2-sql/5-runtime/package.json
  • packages/2-sql/9-family/package.json
  • packages/3-extensions/arktype-json/package.json
  • packages/3-extensions/cipherstash/package.json
  • packages/3-extensions/middleware-cache/package.json
  • packages/3-extensions/mongo/package.json
  • packages/3-extensions/paradedb/package.json
  • packages/3-extensions/pgvector/package.json
  • packages/3-extensions/postgis/package.json
  • packages/3-extensions/postgres/package.json
  • packages/3-extensions/sql-orm-client/package.json
  • packages/3-extensions/sqlite/package.json
  • packages/3-mongo-target/1-mongo-target/package.json
  • packages/3-mongo-target/2-mongo-adapter/package.json
  • packages/3-mongo-target/3-mongo-driver/package.json
  • packages/3-targets/3-targets/postgres/package.json
  • packages/3-targets/3-targets/sqlite/package.json
  • packages/3-targets/6-adapters/postgres/package.json
  • packages/3-targets/6-adapters/sqlite/package.json
  • packages/3-targets/7-drivers/postgres/package.json
  • packages/3-targets/7-drivers/sqlite/package.json
  • test/e2e/framework/package.json
  • test/integration/package.json
  • test/integration/test/fixtures/cli/cli-e2e-test-app/package.json
  • test/integration/test/fixtures/cli/cli-integration-test-app/package.json
  • test/integration/test/fixtures/cli/cli-test-app/package.json
  • test/utils/package.json

📝 Walkthrough

Walkthrough

Monorepo-wide bump: package "version" fields set to 0.9.0 and internal @prisma-next/* workspace dependency specifiers changed from workspace:0.8.0 → workspace:0.9.0 across examples, packages, targets, extensions, and tests.

Changes

Monorepo-wide version increment to 0.9.0

Layer / File(s) Summary
Monorepo-wide version and workspace dependency increment
examples/*, package.json, packages/0-config/*, packages/0-shared/*, packages/1-framework/*, packages/2-mongo-family/*, packages/2-sql/*, packages/3-extensions/*, packages/3-mongo-target/*, packages/3-targets/*, test/*
Package "version" fields set to 0.9.0. All internal @prisma-next/* workspace: dependency specifiers in dependencies and devDependencies updated from workspace:0.8.0 → workspace:0.9.0. Non-workspace dependencies unchanged.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I hopped through package.json rows,
From 0.8 to 0.9 my whisker glows,
Workspace pins aligned in line,
Tiny bump, the releases shine,
A happy rabbit—version fine!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Bump to version 0.9.0' directly reflects the primary purpose of this changeset: a version bump across all package.json files from 0.8.0 to 0.9.0.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch release/0.9.0

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

@pkg-pr-new

pkg-pr-new Bot commented May 18, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@prisma-next/extension-author-tools

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/extension-author-tools@531

@prisma-next/mongo-runtime

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/mongo-runtime@531

@prisma-next/family-mongo

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/family-mongo@531

@prisma-next/sql-runtime

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/sql-runtime@531

@prisma-next/family-sql

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/family-sql@531

@prisma-next/extension-arktype-json

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/extension-arktype-json@531

@prisma-next/extension-cipherstash

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/extension-cipherstash@531

@prisma-next/middleware-cache

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/middleware-cache@531

@prisma-next/mongo

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/mongo@531

@prisma-next/extension-paradedb

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/extension-paradedb@531

@prisma-next/extension-pgvector

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/extension-pgvector@531

@prisma-next/extension-postgis

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/extension-postgis@531

@prisma-next/postgres

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/postgres@531

@prisma-next/sql-orm-client

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/sql-orm-client@531

@prisma-next/sqlite

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/sqlite@531

@prisma-next/target-mongo

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/target-mongo@531

@prisma-next/adapter-mongo

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/adapter-mongo@531

@prisma-next/driver-mongo

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/driver-mongo@531

@prisma-next/contract

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/contract@531

@prisma-next/utils

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/utils@531

@prisma-next/config

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/config@531

@prisma-next/errors

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/errors@531

@prisma-next/framework-components

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/framework-components@531

@prisma-next/operations

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/operations@531

@prisma-next/ts-render

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/ts-render@531

@prisma-next/contract-authoring

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/contract-authoring@531

@prisma-next/ids

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/ids@531

@prisma-next/psl-parser

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/psl-parser@531

@prisma-next/psl-printer

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/psl-printer@531

@prisma-next/cli

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/cli@531

@prisma-next/emitter

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/emitter@531

@prisma-next/migration-tools

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/migration-tools@531

prisma-next

npm i https://pkg.pr.new/prisma/prisma-next@531

@prisma-next/vite-plugin-contract-emit

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/vite-plugin-contract-emit@531

@prisma-next/mongo-codec

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/mongo-codec@531

@prisma-next/mongo-contract

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/mongo-contract@531

@prisma-next/mongo-value

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/mongo-value@531

@prisma-next/mongo-contract-psl

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/mongo-contract-psl@531

@prisma-next/mongo-contract-ts

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/mongo-contract-ts@531

@prisma-next/mongo-emitter

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/mongo-emitter@531

@prisma-next/mongo-schema-ir

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/mongo-schema-ir@531

@prisma-next/mongo-query-ast

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/mongo-query-ast@531

@prisma-next/mongo-orm

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/mongo-orm@531

@prisma-next/mongo-query-builder

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/mongo-query-builder@531

@prisma-next/mongo-lowering

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/mongo-lowering@531

@prisma-next/mongo-wire

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/mongo-wire@531

@prisma-next/sql-contract

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/sql-contract@531

@prisma-next/sql-errors

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/sql-errors@531

@prisma-next/sql-operations

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/sql-operations@531

@prisma-next/sql-schema-ir

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/sql-schema-ir@531

@prisma-next/sql-contract-psl

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/sql-contract-psl@531

@prisma-next/sql-contract-ts

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/sql-contract-ts@531

@prisma-next/sql-contract-emitter

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/sql-contract-emitter@531

@prisma-next/sql-lane-query-builder

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/sql-lane-query-builder@531

@prisma-next/sql-relational-core

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/sql-relational-core@531

@prisma-next/sql-builder

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/sql-builder@531

@prisma-next/target-postgres

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/target-postgres@531

@prisma-next/target-sqlite

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/target-sqlite@531

@prisma-next/adapter-postgres

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/adapter-postgres@531

@prisma-next/adapter-sqlite

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/adapter-sqlite@531

@prisma-next/driver-postgres

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/driver-postgres@531

@prisma-next/driver-sqlite

npm i https://pkg.pr.new/prisma/prisma-next/@prisma-next/driver-sqlite@531

commit: c1e1450

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@examples/mongo-blog-leaderboard/package.json`:
- Around line 17-28: Update the package.json npm script that invokes the removed
"prisma-next migration apply" command (look for the "migration:apply" script
alongside "migration:plan") to use the new CLI syntax "prisma-next migrate --to
<contract>" (substitute the same target contract used previously), leaving the
"migration:plan" script unchanged; ensure the script name and any arguments
match existing CI/usage expectations.

In `@examples/mongo-demo/package.json`:
- Around line 19-40: The package.json script named migration:apply uses the
removed command "prisma-next migration apply"; update that script to call the
new CLI flow using "prisma-next migrate --to <contract>" instead (keeping
migration:plan as-is); specifically replace the migration:apply script entry so
it invokes prisma-next migrate with the --to argument (substituting the correct
contract name or variable) to match the CLI's removedVerbRedirects change.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 55205409-3bfc-4e16-b3be-92e862df21ab

📥 Commits

Reviewing files that changed from the base of the PR and between fd1b2bb and 71ca9a3.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (82)
  • examples/cipherstash-integration/package.json
  • examples/mongo-blog-leaderboard/package.json
  • examples/mongo-demo/package.json
  • examples/multi-extension-monorepo/package.json
  • examples/paradedb-demo/package.json
  • examples/prisma-next-cloudflare-worker/package.json
  • examples/prisma-next-demo-sqlite/package.json
  • examples/prisma-next-demo/package.json
  • examples/prisma-next-postgis-demo/package.json
  • examples/react-router-demo/package.json
  • examples/retail-store/package.json
  • package.json
  • packages/0-config/tsconfig/package.json
  • packages/0-config/tsdown/package.json
  • packages/0-shared/extension-author-tools/package.json
  • packages/1-framework/0-foundation/contract/package.json
  • packages/1-framework/0-foundation/utils/package.json
  • packages/1-framework/1-core/config/package.json
  • packages/1-framework/1-core/errors/package.json
  • packages/1-framework/1-core/framework-components/package.json
  • packages/1-framework/1-core/operations/package.json
  • packages/1-framework/1-core/ts-render/package.json
  • packages/1-framework/2-authoring/contract/package.json
  • packages/1-framework/2-authoring/ids/package.json
  • packages/1-framework/2-authoring/psl-parser/package.json
  • packages/1-framework/2-authoring/psl-printer/package.json
  • packages/1-framework/3-tooling/cli/package.json
  • packages/1-framework/3-tooling/emitter/package.json
  • packages/1-framework/3-tooling/migration/package.json
  • packages/1-framework/3-tooling/prisma-next/package.json
  • packages/1-framework/3-tooling/vite-plugin-contract-emit/package.json
  • packages/2-mongo-family/1-foundation/mongo-codec/package.json
  • packages/2-mongo-family/1-foundation/mongo-contract/package.json
  • packages/2-mongo-family/1-foundation/mongo-value/package.json
  • packages/2-mongo-family/2-authoring/contract-psl/package.json
  • packages/2-mongo-family/2-authoring/contract-ts/package.json
  • packages/2-mongo-family/3-tooling/emitter/package.json
  • packages/2-mongo-family/3-tooling/mongo-schema-ir/package.json
  • packages/2-mongo-family/4-query/query-ast/package.json
  • packages/2-mongo-family/5-query-builders/orm/package.json
  • packages/2-mongo-family/5-query-builders/query-builder/package.json
  • packages/2-mongo-family/6-transport/mongo-lowering/package.json
  • packages/2-mongo-family/6-transport/mongo-wire/package.json
  • packages/2-mongo-family/7-runtime/package.json
  • packages/2-mongo-family/9-family/package.json
  • packages/2-sql/1-core/contract/package.json
  • packages/2-sql/1-core/errors/package.json
  • packages/2-sql/1-core/operations/package.json
  • packages/2-sql/1-core/schema-ir/package.json
  • packages/2-sql/2-authoring/contract-psl/package.json
  • packages/2-sql/2-authoring/contract-ts/package.json
  • packages/2-sql/3-tooling/emitter/package.json
  • packages/2-sql/4-lanes/query-builder/package.json
  • packages/2-sql/4-lanes/relational-core/package.json
  • packages/2-sql/4-lanes/sql-builder/package.json
  • packages/2-sql/5-runtime/package.json
  • packages/2-sql/9-family/package.json
  • packages/3-extensions/arktype-json/package.json
  • packages/3-extensions/cipherstash/package.json
  • packages/3-extensions/middleware-cache/package.json
  • packages/3-extensions/mongo/package.json
  • packages/3-extensions/paradedb/package.json
  • packages/3-extensions/pgvector/package.json
  • packages/3-extensions/postgis/package.json
  • packages/3-extensions/postgres/package.json
  • packages/3-extensions/sql-orm-client/package.json
  • packages/3-extensions/sqlite/package.json
  • packages/3-mongo-target/1-mongo-target/package.json
  • packages/3-mongo-target/2-mongo-adapter/package.json
  • packages/3-mongo-target/3-mongo-driver/package.json
  • packages/3-targets/3-targets/postgres/package.json
  • packages/3-targets/3-targets/sqlite/package.json
  • packages/3-targets/6-adapters/postgres/package.json
  • packages/3-targets/6-adapters/sqlite/package.json
  • packages/3-targets/7-drivers/postgres/package.json
  • packages/3-targets/7-drivers/sqlite/package.json
  • test/e2e/framework/package.json
  • test/integration/package.json
  • test/integration/test/fixtures/cli/cli-e2e-test-app/package.json
  • test/integration/test/fixtures/cli/cli-integration-test-app/package.json
  • test/integration/test/fixtures/cli/cli-test-app/package.json
  • test/utils/package.json

Comment on lines +17 to +28
"@prisma-next/adapter-mongo": "workspace:0.9.0",
"@prisma-next/contract": "workspace:0.9.0",
"@prisma-next/mongo": "workspace:0.9.0",
"@prisma-next/mongo-contract": "workspace:0.9.0",
"@prisma-next/mongo-query-builder": "workspace:0.9.0",
"@prisma-next/utils": "workspace:0.9.0",
"mongodb": "catalog:"
},
"devDependencies": {
"@prisma-next/cli": "workspace:0.8.0",
"@prisma-next/test-utils": "workspace:0.8.0",
"@prisma-next/tsconfig": "workspace:0.8.0",
"@prisma-next/cli": "workspace:0.9.0",
"@prisma-next/test-utils": "workspace:0.9.0",
"@prisma-next/tsconfig": "workspace:0.9.0",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -nP '"[^"]+"\s*:\s*"prisma-next migration (plan|apply)\b' examples/mongo-blog-leaderboard/package.json
rg -nP '"[^"]+"\s*:\s*"prisma-next (migrate --to|db update --to)\b' examples/mongo-blog-leaderboard/package.json

Repository: prisma/prisma-next

Length of output: 174


🏁 Script executed:

# Find all package.json files in examples to see migration patterns
fd -name "package.json" examples/ -type f | head -20

Repository: prisma/prisma-next

Length of output: 293


🏁 Script executed:

# Search for migration command patterns across the codebase
rg -n '"migration:' --type json -A 1 -B 1

Repository: prisma/prisma-next

Length of output: 1486


🏁 Script executed:

# Look for any documentation about migration commands or CLI changes
fd -i changelog -o -i release -o -i migration examples/ --type f | head -10

Repository: prisma/prisma-next

Length of output: 179


🏁 Script executed:

# Search for prisma-next CLI command documentation or test files
fd -n "cli" -t f | grep -E "\.(ts|js|md)$" | head -20

Repository: prisma/prisma-next

Length of output: 293


🏁 Script executed:

# Search for CLI migration command definitions
rg -n "migration.*plan|migration.*apply" --type ts --type tsx -B 2 -A 5 | head -60

Repository: prisma/prisma-next

Length of output: 90


🏁 Script executed:

# Look for CLI source/definitions
fd -type d -name "cli" packages/

Repository: prisma/prisma-next

Length of output: 233


🏁 Script executed:

# Search for changelog or breaking changes documentation
fd -type f \( -iname "CHANGELOG*" -o -iname "RELEASES*" -o -iname "0.9*" \)

Repository: prisma/prisma-next

Length of output: 233


🏁 Script executed:

# Check if there's any jest/vitest configuration or tests for migration commands
rg -n "migration" --type ts packages/*/src --glob "**/cli/**" | head -40

Repository: prisma/prisma-next

Length of output: 117


🏁 Script executed:

# Find packages directory structure
ls -la packages/ | head -20

Repository: prisma/prisma-next

Length of output: 714


🏁 Script executed:

# Search for migration command mentions in source code
rg "migration" packages/ --type js -l | head -20

Repository: prisma/prisma-next

Length of output: 44


🏁 Script executed:

# Look for changelog files
find . -type f -name "CHANGELOG*" -o -name "RELEASES*" 2>/dev/null | head -10

Repository: prisma/prisma-next

Length of output: 44


🏁 Script executed:

# Search for version 0.9.0 references
rg "0\.9\.0" --type json | head -20

Repository: prisma/prisma-next

Length of output: 1618


🏁 Script executed:

# Look for any CLI package or src directory
find packages -type d -name "cli" -o -name "command*" 2>/dev/null

Repository: prisma/prisma-next

Length of output: 525


🏁 Script executed:

# List all command files in the CLI
ls -la packages/1-framework/3-tooling/cli/src/commands/

Repository: prisma/prisma-next

Length of output: 1555


🏁 Script executed:

# Search for migration command implementation
rg "migration" packages/1-framework/3-tooling/cli/src/commands/ -l

Repository: prisma/prisma-next

Length of output: 1337


🏁 Script executed:

# Check the migration commands file specifically
cat packages/1-framework/3-tooling/cli/src/commands/migration.ts 2>/dev/null || echo "File not found, listing alternatives:"
ls -la packages/1-framework/3-tooling/cli/src/commands/ | grep -i migration

Repository: prisma/prisma-next

Length of output: 712


🏁 Script executed:

# Check the main CLI entry point to see how commands are registered
cat packages/1-framework/3-tooling/cli/src/index.ts | head -100

Repository: prisma/prisma-next

Length of output: 142


🏁 Script executed:

# Look for where commands are exposed/registered
find packages/1-framework/3-tooling/cli/src -name "*.ts" -type f | xargs grep -l "migration.*apply" | head -10

Repository: prisma/prisma-next

Length of output: 509


🏁 Script executed:

# Check migration-plan.ts to understand the command structure
head -50 packages/1-framework/3-tooling/cli/src/commands/migration-plan.ts

Repository: prisma/prisma-next

Length of output: 2115


🏁 Script executed:

# Search for "apply" in migration-related files
rg "apply" packages/1-framework/3-tooling/cli/src/commands/migration*.ts -i

Repository: prisma/prisma-next

Length of output: 2063


🏁 Script executed:

# Verify the migrate command exists and check its implementation
head -50 packages/1-framework/3-tooling/cli/src/commands/migrate.ts

Repository: prisma/prisma-next

Length of output: 1978


🏁 Script executed:

# Check how commands are registered in the main CLI
cat packages/1-framework/3-tooling/cli/src/cli.ts | head -80

Repository: prisma/prisma-next

Length of output: 3675


🏁 Script executed:

# Search for where commands are exported/registered
rg "migration-plan|migrate" packages/1-framework/3-tooling/cli/src/cli.ts -B 2 -A 2

Repository: prisma/prisma-next

Length of output: 1626


Replace deprecated migration apply command with migrate --to for Prisma Next 0.9.0.

Lines 10-11 reference "prisma-next migration plan" and "prisma-next migration apply". The CLI has removed the migration:apply subcommand as of 0.9.0; the replacement is prisma-next migrate --to <contract>. Update the migration:apply script accordingly. The migration:plan command remains valid.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/mongo-blog-leaderboard/package.json` around lines 17 - 28, Update
the package.json npm script that invokes the removed "prisma-next migration
apply" command (look for the "migration:apply" script alongside
"migration:plan") to use the new CLI syntax "prisma-next migrate --to
<contract>" (substitute the same target contract used previously), leaving the
"migration:plan" script unchanged; ensure the script name and any arguments
match existing CI/usage expectations.

Comment on lines +19 to +40
"@prisma-next/adapter-mongo": "workspace:0.9.0",
"@prisma-next/target-mongo": "workspace:0.9.0",
"@prisma-next/contract": "workspace:0.9.0",
"@prisma-next/driver-mongo": "workspace:0.9.0",
"@prisma-next/middleware-cache": "workspace:0.9.0",
"@prisma-next/mongo": "workspace:0.9.0",
"@prisma-next/mongo-contract": "workspace:0.9.0",
"@prisma-next/mongo-orm": "workspace:0.9.0",
"@prisma-next/mongo-query-builder": "workspace:0.9.0",
"@prisma-next/mongo-query-ast": "workspace:0.9.0",
"@prisma-next/mongo-runtime": "workspace:0.9.0",
"@prisma-next/utils": "workspace:0.9.0",
"mongodb": "catalog:",
"react": "^19.2.6",
"react-dom": "^19.2.6"
},
"devDependencies": {
"@prisma-next/cli": "workspace:0.8.0",
"@prisma-next/family-mongo": "workspace:0.8.0",
"@prisma-next/mongo-contract-psl": "workspace:0.8.0",
"@prisma-next/test-utils": "workspace:0.8.0",
"@prisma-next/tsconfig": "workspace:0.8.0",
"@prisma-next/cli": "workspace:0.9.0",
"@prisma-next/family-mongo": "workspace:0.9.0",
"@prisma-next/mongo-contract-psl": "workspace:0.9.0",
"@prisma-next/test-utils": "workspace:0.9.0",
"@prisma-next/tsconfig": "workspace:0.9.0",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -nP '"[^"]+"\s*:\s*"prisma-next migration (plan|apply)\b' examples/mongo-demo/package.json
rg -nP '"[^"]+"\s*:\s*"prisma-next (migrate --to|db update --to)\b' examples/mongo-demo/package.json

Repository: prisma/prisma-next

Length of output: 174


🌐 Web query:

Prisma Next 0.9.0 migration command syntax prisma-next CLI

💡 Result:

In Prisma Next, data migrations are handled through a contract-first workflow rather than traditional imperative CLI commands [1][2]. Instead of running a single migration command, you define and manage migrations using a TypeScript-based approach [1]. To work with migrations in Prisma Next, follow this workflow: 1. Initialize the project: Use the command pnpx prisma-next init to set up your project with a contract [1]. 2. Define changes: When you modify your contract.prisma file, you use the migration plan command (invoked via the CLI) to generate an initial migration file [1]. 3. Edit the migration: You manually edit the generated migration.ts file to define your data transformations [1]. This file uses a type-safe query builder to perform operations, such as adding columns or updating data, using check and run callbacks [1]. 4. Compile and apply: When you run the migration.ts file, Prisma Next compiles it into a JSON file named ops.json [1]. This ops.json file is what the migration runner reads to apply the changes to your database [1]. Both the migration.ts file and the resulting ops.json file should be committed to your repository [1]. This process ensures that migrations are deterministic and verifiable against your data contract [1][2].

Citations:


🏁 Script executed:

# Search for any CLI documentation or changelog in the repo
fd -type f \( -name "CHANGELOG*" -o -name "cli.md" -o -name "README*" \) | head -20
rg -l "migration plan\|migration apply\|migrate --to\|db update" --type md --type txt 2>/dev/null | head -10

Repository: prisma/prisma-next

Length of output: 233


🏁 Script executed:

# Search for changelog or version history files
fd CHANGELOG . | head -10
fd HISTORY . | head -10
fd -e md . | xargs rg -l "0\.9\.0" 2>/dev/null | head -10

# Look for CLI or migration documentation
fd -e md . | xargs rg -l "migration.*plan\|migration.*apply" 2>/dev/null | head -10

Repository: prisma/prisma-next

Length of output: 597


🏁 Script executed:

# Check if there's any migration command documentation in the codebase
find . -type f -name "*.md" -o -name "*.ts" | xargs grep -l "migration:plan\|migration:apply" 2>/dev/null | head -15

Repository: prisma/prisma-next

Length of output: 286


🏁 Script executed:

# Check the CLI implementation
head -100 ./packages/1-framework/3-tooling/cli/src/cli.ts
rg "migration.*plan|migration.*apply" ./packages/1-framework/3-tooling/cli/src/cli.ts -A 2 -B 2

Repository: prisma/prisma-next

Length of output: 5270


🏁 Script executed:

# Check the mongo-demo README to see what it documents
cat ./examples/mongo-demo/README.md

Repository: prisma/prisma-next

Length of output: 6843


🏁 Script executed:

# Search for any 0.9.0 specific changes or breaking changes
rg "0\.9\.0|breaking.*change|migration" projects/prisma-next-agent-skill/spec.md -A 3 -B 1 | head -50

Repository: prisma/prisma-next

Length of output: 11819


Line 11: Replace deprecated migration:apply command.

The migration:apply script uses a removed command. The CLI no longer supports prisma-next migration apply; use prisma-next migrate --to <contract> instead (see removedVerbRedirects in the CLI source). Line 10's migration:plan remains valid.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@examples/mongo-demo/package.json` around lines 19 - 40, The package.json
script named migration:apply uses the removed command "prisma-next migration
apply"; update that script to call the new CLI flow using "prisma-next migrate
--to <contract>" instead (keeping migration:plan as-is); specifically replace
the migration:apply script entry so it invokes prisma-next migrate with the --to
argument (substituting the correct contract name or variable) to match the CLI's
removedVerbRedirects change.

@wmadden
wmadden merged commit 2c6f676 into main May 18, 2026
11 checks passed
@wmadden
wmadden deleted the release/0.9.0 branch May 18, 2026 16:09
This was referenced May 20, 2026
@coderabbitai coderabbitai Bot mentioned this pull request Jun 2, 2026
@coderabbitai coderabbitai Bot mentioned this pull request Jun 9, 2026
@coderabbitai coderabbitai Bot mentioned this pull request Jun 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant