Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/design/03-domain-model/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ substituted at any Input) and a real deployment.

## Provisioning plane — the compile target (Alchemy / Effect)

The exact substrate the authoring nouns lower **down to**, grounded in what our providers already use (`packages/alchemy`, `alchemy@2.0.0-beta.81`, `effect@^4.0.0`). Building the next layer of abstraction means defining each authoring noun as *the compile-target terms it emits*. Two families: Alchemy's IaC definition language, and the Effect primitives Alchemy is itself built on.
The exact substrate the authoring nouns lower **down to**, grounded in what our providers already use (`packages/alchemy`, `alchemy@2.0.0-beta.78`, `effect@4.0.0-rc.115`). Building the next layer of abstraction means defining each authoring noun as *the compile-target terms it emits*. Two families: Alchemy's IaC definition language, and the Effect primitives Alchemy is itself built on.

For each term: what it is, and — where it applies — `→` the the framework authoring
noun that lowers onto it. The reverse table (authoring → provisioning → hosting)
Expand Down
28 changes: 16 additions & 12 deletions docs/guides/deploying.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ declares.

## When prisma.config.ts fails on an effect version conflict

alchemy, the deploy engine Composer drives, needs an `effect` 4.x release, the
same range `@prisma/composer` declares. The extensions in your `composer` section import
alchemy, the deploy engine Composer drives, needs the exact `effect` version
`@prisma/composer` pins. The extensions in your `composer` section import
alchemy, so when your installed tree gives alchemy a different `effect`,
evaluating `prisma.config.ts` fails before any command runs:

Expand All @@ -343,18 +343,22 @@ Schema.TaggedError is not a function

The message after the colon is the module error from inside alchemy, and it
varies with the versions involved. This happens when your app, or another
dependency of it, requires an `effect` outside 4.x and your package manager
hoists that copy where alchemy resolves it. npm allows this with only a
warning. A plain Composer app never hits it: a fresh install resolves a single
`effect` 4.x.

The fix is to use an `effect` 4.x release. Change your own `effect`
dependency to `^4.0.0`, or, when a dependency you cannot change requires
another version, force one. With npm, in your app's `package.json`:
dependency of it, pins a different `effect` than `@prisma/composer` does and
your package manager hoists that copy where alchemy resolves it. npm allows
this with only a warning. A plain Composer app never hits it:
`@prisma/composer` and `@prisma/composer-prisma-cloud` pin every
`effect`-family package alchemy would otherwise float, so a fresh install
resolves a single `effect`.

The fix is to use the same `effect` as Composer. Match your own `effect`
dependency to `@prisma/composer`'s exact pin (see its `dependencies.effect`),
or, when a dependency you cannot change pins another version, force
Composer's. `<pin>` below stands for that exact version (`4.0.0-rc.115` in
Composer 0.29.1). With npm, in your app's `package.json`:

```json
"overrides": {
"effect": "^4.0.0"
"effect": "<pin>"
}
```

Expand All @@ -363,7 +367,7 @@ With pnpm 11 and later, in `pnpm-workspace.yaml` (pnpm 11 ignores the

```yaml
overrides:
effect: ^4.0.0
effect: <pin>
```

With pnpm 10 and earlier, nest the npm block under
Expand Down
2 changes: 1 addition & 1 deletion examples/auth/contract.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/auth/contract.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions examples/auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prisma/example-auth",
"version": "0.29.0",
"version": "0.29.1",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -12,9 +12,9 @@
"destroy": "( set -a; . \"${PRISMA_DEPLOY_ENV:-../../.env}\"; set +a; bun ../../scripts/composer-destroy.ts module.ts --production ${AUTH_STACK_NAME:+--name \"$AUTH_STACK_NAME\"} )"
},
"dependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-cli": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0",
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-cli": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1",
"@prisma/orm-postgres": "8.0.0-rc.17",
"arktype": "^2.2.3",
"hono": "^4.12.31"
Expand Down
12 changes: 6 additions & 6 deletions examples/bucket/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prisma/example-bucket",
"version": "0.29.0",
"version": "0.29.1",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -9,11 +9,11 @@
},
"dependencies": {
"@aws-sdk/client-s3": "^3.1085.0",
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-cli": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0",
"alchemy": "2.0.0-beta.81",
"effect": "^4.0.0"
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-cli": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1",
"alchemy": "2.0.0-beta.78",
"effect": "4.0.0-rc.115"
},
"devDependencies": {
"@types/bun": "^1.3.13",
Expand Down
16 changes: 8 additions & 8 deletions examples/cron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prisma/example-cron",
"version": "0.29.0",
"version": "0.29.1",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -13,16 +13,16 @@
"destroy": "( set -a; . \"${PRISMA_DEPLOY_ENV:-../../.env}\"; set +a; bun ../../scripts/composer-destroy.ts module.ts --production ${CRON_STACK_NAME:+--name \"$CRON_STACK_NAME\"} )"
},
"dependencies": {
"@effect/platform-bun": "^4.0.0",
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0",
"alchemy": "2.0.0-beta.81",
"@effect/platform-bun": "4.0.0-rc.115",
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1",
"alchemy": "2.0.0-beta.78",
"arktype": "^2.2.3",
"effect": "^4.0.0"
"effect": "4.0.0-rc.115"
},
"devDependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-cli": "workspace:0.29.0",
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-cli": "workspace:0.29.1",
"@types/bun": "^1.3.13",
"prisma": "catalog:",
"typescript": "^6.0.3"
Expand Down
12 changes: 6 additions & 6 deletions examples/email/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prisma/example-email",
"version": "0.29.0",
"version": "0.29.1",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -12,8 +12,8 @@
"destroy": "( set -a; . \"${PRISMA_DEPLOY_ENV:-../../.env}\"; set +a; bun ../../scripts/composer-destroy.ts module.ts --production ${EMAIL_STACK_NAME:+--name \"$EMAIL_STACK_NAME\"} )"
},
"dependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0",
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1",
"@react-email/components": "^1.0.12",
"@react-email/render": "^2.1.0",
"arktype": "^2.2.3",
Expand All @@ -22,9 +22,9 @@
"react-dom": "^19.2.8"
},
"devDependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-cli": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0",
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-cli": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1",
"@types/bun": "^1.3.13",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
Expand Down
8 changes: 4 additions & 4 deletions examples/env-param/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prisma/example-env-param",
"version": "0.29.0",
"version": "0.29.1",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -13,9 +13,9 @@
"destroy:stage": "( set -a; . \"${PRISMA_DEPLOY_ENV:-../../.env}\"; set +a; bun ../../scripts/composer-destroy.ts module.ts --stage \"${ENV_PARAM_STAGE:?ENV_PARAM_STAGE is required}\" ${ENV_PARAM_STACK_NAME:+--name \"$ENV_PARAM_STACK_NAME\"} )"
},
"dependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-cli": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0"
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-cli": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1"
},
"devDependencies": {
"@types/bun": "^1.3.13",
Expand Down
12 changes: 6 additions & 6 deletions examples/orm-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prisma/example-orm-demo",
"version": "0.29.0",
"version": "0.29.1",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -10,15 +10,15 @@
"destroy": "( set -a; . \"${PRISMA_DEPLOY_ENV:-../../.env}\"; set +a; bun ../../scripts/composer-destroy.ts module.ts --production ${ORM_DEMO_STACK_NAME:+--name \"$ORM_DEMO_STACK_NAME\"} )"
},
"dependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0",
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1",
"@prisma/orm-postgres": "8.0.0-rc.17",
"effect": "^4.0.0",
"effect": "4.0.0-rc.115",
"pg": "8.22.0"
},
"devDependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-cli": "workspace:0.29.0",
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-cli": "workspace:0.29.1",
"@prisma/management-api-sdk": "^1.80.0",
"@types/bun": "^1.3.13",
"prisma": "catalog:",
Expand Down
16 changes: 8 additions & 8 deletions examples/storage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@prisma/example-storage",
"version": "0.29.0",
"version": "0.29.1",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -12,15 +12,15 @@
},
"dependencies": {
"@aws-sdk/client-s3": "^3.1085.0",
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0",
"alchemy": "2.0.0-beta.81",
"effect": "^4.0.0"
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1",
"alchemy": "2.0.0-beta.78",
"effect": "4.0.0-rc.115"
},
"devDependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-cli": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0",
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-cli": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1",
"@types/bun": "^1.3.13",
"prisma": "catalog:",
"typescript": "^6.0.3"
Expand Down
10 changes: 5 additions & 5 deletions examples/store/modules/catalog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@store/catalog",
"version": "0.29.0",
"version": "0.29.1",
"private": true,
"type": "module",
"exports": {
Expand All @@ -19,12 +19,12 @@
"pg": "8.22.0"
},
"peerDependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0"
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1"
},
"devDependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0",
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1",
"@types/bun": "^1.3.13",
"prisma": "catalog:",
"typescript": "^6.0.3"
Expand Down
12 changes: 6 additions & 6 deletions examples/store/modules/orders/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@store/orders",
"version": "0.29.0",
"version": "0.29.1",
"private": true,
"type": "module",
"exports": {
Expand All @@ -15,17 +15,17 @@
},
"dependencies": {
"@prisma/orm-postgres": "8.0.0-rc.17",
"@store/catalog": "workspace:0.29.0",
"@store/catalog": "workspace:0.29.1",
"arktype": "^2.2.3",
"pg": "8.22.0"
},
"peerDependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0"
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1"
},
"devDependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0",
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1",
"@types/bun": "^1.3.13",
"prisma": "catalog:",
"typescript": "^6.0.3"
Expand Down
12 changes: 6 additions & 6 deletions examples/store/modules/promotions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@store/promotions",
"version": "0.29.0",
"version": "0.29.1",
"private": true,
"type": "module",
"exports": {
Expand All @@ -11,16 +11,16 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@store/catalog": "workspace:0.29.0",
"@store/catalog": "workspace:0.29.1",
"arktype": "^2.2.3"
},
"peerDependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0"
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1"
},
"devDependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0",
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1",
"@types/bun": "^1.3.13",
"typescript": "^6.0.3"
}
Expand Down
10 changes: 5 additions & 5 deletions examples/store/modules/storefront/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@store/storefront",
"version": "0.29.0",
"version": "0.29.1",
"private": true,
"exports": {
".": "./src/service.ts"
Expand All @@ -13,10 +13,10 @@
"test": "vitest run"
},
"dependencies": {
"@prisma/composer": "workspace:0.29.0",
"@prisma/composer-prisma-cloud": "workspace:0.29.0",
"@store/catalog": "workspace:0.29.0",
"@store/orders": "workspace:0.29.0",
"@prisma/composer": "workspace:0.29.1",
"@prisma/composer-prisma-cloud": "workspace:0.29.1",
"@store/catalog": "workspace:0.29.1",
"@store/orders": "workspace:0.29.1",
"arktype": "^2.2.3",
"next": "^16.2.9",
"react": "19.2.7",
Expand Down
Loading
Loading