← Back to Pull requests

docs(composer): update for Composer 0.37.0 #8769

Closed
unknown closed this pull request without merging on Nov 06, 2026 18:01 UTC
View on GitHub
unknown unknown commented on Nov 06, 2026 16:17 UTC
Author

A reusable Module in Composer 0.37.0 takes its configuration through one input schema. The docs still showed the removed API:

// what the docs showed (fails in 0.37.0)
module('auth', { secrets: { signingKey: secret() }, expose: { rpc: authContract } }, …);
provision(authModule, { secrets: { signingKey: envSecret('AUTH_SIGNING_SECRET') } });

// what 0.37.0 takes
module('auth', { input: type({ signingKey: secretString() }), expose: { rpc: authContract } }, …);
provision(authModule, { input: { signingKey: envSecret('AUTH_SIGNING_SECRET') } });

This PR brings the Composer docs up to Composer 0.37.0 and fixes older claims that were already wrong. Every change was checked against Composer's own guides and source at the 0.37.0 release commit.

What changed

1. Modules take input. Apps and Modules now shows the input schema, a new section on a Module's input, field() for fields bound to serviceOrigin() or generatedParam(), and a before-and-after upgrade from params and secrets.
2. envParam is read on every deploy. The docs said the shell only seeds a platform variable for each stage. In fact the deploy reads envParam from the app configuration on every deploy and writes the value into the service's input. Fixed in Service input, Core concepts and Deploying.
3. New configuration sources. Service input documents the config and secrets lists in prisma.config.ts, dotenv() and environmentVariables(), removing import 'dotenv/config', the root module's input, resolve() and environment.name, and @prisma/composer/zod.
4. publicUrl(). Deploying has a new "Make a service public" section.
5. --stage is now --environment. Composer 0.36 renamed the flag, and --stage now fails with CLI.COMMAND_MOVED. The docs still used --stage and destroy({ target: { kind: 'stage' } }). This is fixed across the Composer pages, the deploy and dev CLI references, the Compute pages, the Prisma Compute quickstart and the Clerk guide. prisma dev --environment is documented too.
6. Older errors. Local development said an unset secret gets a local placeholder; prisma dev actually stops and names the variable. Limitations said the effect family must be pinned in the app; Composer pins it itself. Local development said running a second app in a directory stops the first; both now run at once.

cli/error-reference.mdx is generated from prisma/prisma-cli and is untouched.

Checks

  • pnpm lint:links and cspell pass.

  • The reader-review scripts (plain language, staccato, AI signs) pass on the changed sections.

  • One reader-review round ran on Service input, Apps and Modules and Deploying, and its marks on the changed text were fixed.
  • Agent: shelob-83

    🤖 Generated with Claude Code

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    Documentation
    Updated deployment and local development guidance to use environments instead of stages, including CLI commands, environment selection, cleanup, and local resource behavior.
    Clarified environment isolation and how configuration and required or optional secrets are loaded, supplied, and redacted.
    Expanded guidance on module inputs, validation, adapters, and per-environment values.
    Added details on public service URLs, hostname limitations, deployment requirements, and control API configuration; clarified which commands are unavailable in the unified CLI.
    Updated the documented Effect version constraint, Prisma ORM version examples, and release status.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 480 lines (+360 / -120) across 6 files Reviewer: wmadden-electric Review duration: 104m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.47 · 480 lines diff across 6 files
    0.47
    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.369
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #8769"
    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: 47.3% (MEDIUM) · Higher = larger blast radius
    47.3%
    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: 18.7% · Safe to merge
    18.7%
    Repository