Repository navigation
Bump to version 0.9.0 - #531
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (82)
📝 WalkthroughWalkthroughMonorepo-wide bump: package "version" fields set to 0.9.0 and internal ChangesMonorepo-wide version increment to 0.9.0
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
@prisma-next/extension-author-tools
@prisma-next/mongo-runtime
@prisma-next/family-mongo
@prisma-next/sql-runtime
@prisma-next/family-sql
@prisma-next/extension-arktype-json
@prisma-next/extension-cipherstash
@prisma-next/middleware-cache
@prisma-next/mongo
@prisma-next/extension-paradedb
@prisma-next/extension-pgvector
@prisma-next/extension-postgis
@prisma-next/postgres
@prisma-next/sql-orm-client
@prisma-next/sqlite
@prisma-next/target-mongo
@prisma-next/adapter-mongo
@prisma-next/driver-mongo
@prisma-next/contract
@prisma-next/utils
@prisma-next/config
@prisma-next/errors
@prisma-next/framework-components
@prisma-next/operations
@prisma-next/ts-render
@prisma-next/contract-authoring
@prisma-next/ids
@prisma-next/psl-parser
@prisma-next/psl-printer
@prisma-next/cli
@prisma-next/emitter
@prisma-next/migration-tools
prisma-next
@prisma-next/vite-plugin-contract-emit
@prisma-next/mongo-codec
@prisma-next/mongo-contract
@prisma-next/mongo-value
@prisma-next/mongo-contract-psl
@prisma-next/mongo-contract-ts
@prisma-next/mongo-emitter
@prisma-next/mongo-schema-ir
@prisma-next/mongo-query-ast
@prisma-next/mongo-orm
@prisma-next/mongo-query-builder
@prisma-next/mongo-lowering
@prisma-next/mongo-wire
@prisma-next/sql-contract
@prisma-next/sql-errors
@prisma-next/sql-operations
@prisma-next/sql-schema-ir
@prisma-next/sql-contract-psl
@prisma-next/sql-contract-ts
@prisma-next/sql-contract-emitter
@prisma-next/sql-lane-query-builder
@prisma-next/sql-relational-core
@prisma-next/sql-builder
@prisma-next/target-postgres
@prisma-next/target-sqlite
@prisma-next/adapter-postgres
@prisma-next/adapter-sqlite
@prisma-next/driver-postgres
@prisma-next/driver-sqlite
commit: |
There was a problem hiding this comment.
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
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (82)
examples/cipherstash-integration/package.jsonexamples/mongo-blog-leaderboard/package.jsonexamples/mongo-demo/package.jsonexamples/multi-extension-monorepo/package.jsonexamples/paradedb-demo/package.jsonexamples/prisma-next-cloudflare-worker/package.jsonexamples/prisma-next-demo-sqlite/package.jsonexamples/prisma-next-demo/package.jsonexamples/prisma-next-postgis-demo/package.jsonexamples/react-router-demo/package.jsonexamples/retail-store/package.jsonpackage.jsonpackages/0-config/tsconfig/package.jsonpackages/0-config/tsdown/package.jsonpackages/0-shared/extension-author-tools/package.jsonpackages/1-framework/0-foundation/contract/package.jsonpackages/1-framework/0-foundation/utils/package.jsonpackages/1-framework/1-core/config/package.jsonpackages/1-framework/1-core/errors/package.jsonpackages/1-framework/1-core/framework-components/package.jsonpackages/1-framework/1-core/operations/package.jsonpackages/1-framework/1-core/ts-render/package.jsonpackages/1-framework/2-authoring/contract/package.jsonpackages/1-framework/2-authoring/ids/package.jsonpackages/1-framework/2-authoring/psl-parser/package.jsonpackages/1-framework/2-authoring/psl-printer/package.jsonpackages/1-framework/3-tooling/cli/package.jsonpackages/1-framework/3-tooling/emitter/package.jsonpackages/1-framework/3-tooling/migration/package.jsonpackages/1-framework/3-tooling/prisma-next/package.jsonpackages/1-framework/3-tooling/vite-plugin-contract-emit/package.jsonpackages/2-mongo-family/1-foundation/mongo-codec/package.jsonpackages/2-mongo-family/1-foundation/mongo-contract/package.jsonpackages/2-mongo-family/1-foundation/mongo-value/package.jsonpackages/2-mongo-family/2-authoring/contract-psl/package.jsonpackages/2-mongo-family/2-authoring/contract-ts/package.jsonpackages/2-mongo-family/3-tooling/emitter/package.jsonpackages/2-mongo-family/3-tooling/mongo-schema-ir/package.jsonpackages/2-mongo-family/4-query/query-ast/package.jsonpackages/2-mongo-family/5-query-builders/orm/package.jsonpackages/2-mongo-family/5-query-builders/query-builder/package.jsonpackages/2-mongo-family/6-transport/mongo-lowering/package.jsonpackages/2-mongo-family/6-transport/mongo-wire/package.jsonpackages/2-mongo-family/7-runtime/package.jsonpackages/2-mongo-family/9-family/package.jsonpackages/2-sql/1-core/contract/package.jsonpackages/2-sql/1-core/errors/package.jsonpackages/2-sql/1-core/operations/package.jsonpackages/2-sql/1-core/schema-ir/package.jsonpackages/2-sql/2-authoring/contract-psl/package.jsonpackages/2-sql/2-authoring/contract-ts/package.jsonpackages/2-sql/3-tooling/emitter/package.jsonpackages/2-sql/4-lanes/query-builder/package.jsonpackages/2-sql/4-lanes/relational-core/package.jsonpackages/2-sql/4-lanes/sql-builder/package.jsonpackages/2-sql/5-runtime/package.jsonpackages/2-sql/9-family/package.jsonpackages/3-extensions/arktype-json/package.jsonpackages/3-extensions/cipherstash/package.jsonpackages/3-extensions/middleware-cache/package.jsonpackages/3-extensions/mongo/package.jsonpackages/3-extensions/paradedb/package.jsonpackages/3-extensions/pgvector/package.jsonpackages/3-extensions/postgis/package.jsonpackages/3-extensions/postgres/package.jsonpackages/3-extensions/sql-orm-client/package.jsonpackages/3-extensions/sqlite/package.jsonpackages/3-mongo-target/1-mongo-target/package.jsonpackages/3-mongo-target/2-mongo-adapter/package.jsonpackages/3-mongo-target/3-mongo-driver/package.jsonpackages/3-targets/3-targets/postgres/package.jsonpackages/3-targets/3-targets/sqlite/package.jsonpackages/3-targets/6-adapters/postgres/package.jsonpackages/3-targets/6-adapters/sqlite/package.jsonpackages/3-targets/7-drivers/postgres/package.jsonpackages/3-targets/7-drivers/sqlite/package.jsontest/e2e/framework/package.jsontest/integration/package.jsontest/integration/test/fixtures/cli/cli-e2e-test-app/package.jsontest/integration/test/fixtures/cli/cli-integration-test-app/package.jsontest/integration/test/fixtures/cli/cli-test-app/package.jsontest/utils/package.json
| "@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", |
There was a problem hiding this comment.
🧩 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.jsonRepository: 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 -20Repository: 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 1Repository: 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 -10Repository: 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 -20Repository: 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 -60Repository: 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 -40Repository: prisma/prisma-next
Length of output: 117
🏁 Script executed:
# Find packages directory structure
ls -la packages/ | head -20Repository: prisma/prisma-next
Length of output: 714
🏁 Script executed:
# Search for migration command mentions in source code
rg "migration" packages/ --type js -l | head -20Repository: 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 -10Repository: prisma/prisma-next
Length of output: 44
🏁 Script executed:
# Search for version 0.9.0 references
rg "0\.9\.0" --type json | head -20Repository: 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/nullRepository: 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/ -lRepository: 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 migrationRepository: 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 -100Repository: 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 -10Repository: 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.tsRepository: 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 -iRepository: 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.tsRepository: 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 -80Repository: 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 2Repository: 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.
| "@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", |
There was a problem hiding this comment.
🧩 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.jsonRepository: 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:
- 1: https://www.prisma.io/blog/data-migrations-in-prisma-next
- 2: https://github.com/prisma/prisma-next
🏁 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 -10Repository: 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 -10Repository: 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 -15Repository: 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 2Repository: prisma/prisma-next
Length of output: 5270
🏁 Script executed:
# Check the mongo-demo README to see what it documents
cat ./examples/mongo-demo/README.mdRepository: 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 -50Repository: 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.
Signed-off-by: Will Madden <[email protected]>
Cuts the next minor release: 0.8.0 → 0.9.0.
Bumps the root
package.jsonversionand propagates it to every workspacepackage.json(lockstep — seedocs/oss/versioning.md). Thepnpm-lock.yamlchange 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: inlinedfromContract/toContractfields removed from the migration manifest. Migrations are now strictly runner-independent — the predecessor/successor contracts are resolved from on-diskend-contract.jsonsidecars instead of being embedded. Downstream consumers and existing migrations should have already been migrated via the recorded0.8 → 0.9upgrade 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 applypromoted to top-levelprisma-next migrate --to <ref>.db update --to <contract>for contract-driven updates.migration statussplit into focused commands:status/log/list/graph.migration checkcommand for artifact + graph integrity (with PN-005 edge-mismatch detection).refpromoted to a top-level command; thegetverb dropped.db signaccepts a contract argument (positional +--contract).migration showreachability,migration graph --dotprecedence in non-TTY, PN-005 detection in per-migrationmigration check).Other
canonicalVersionretired from contract + marker (docs aligned).migrationIdrenamed tomigrationHashin Migration System docs to match the on-disk key.@prisma-next/agent-skillrenamed to@prisma-next/skills,initinstalls all three clusters from versioned git source.What happens on merge
Merging this PR ships the release:
maincarries the bumped rootversion(0.9.0).Publish to npmworkflow detects the change and publishes 0.9.0 under dist-taglatest.v0.9.0) is created automatically.No separate dispatch step is required.
Summary by CodeRabbit