Repository navigation
refactor: rename every user-facing prisma-next identifier to Prisma 8 - #30262
Conversation
|
|
|
Important Review skippedToo many files! This PR contains 557 files, which is 257 over the limit of 300. To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch. Usage-priced reviews support at most 300 files. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (41)
📒 Files selected for processing (557)
You can disable this status message by setting the Comment |
@prisma/orm-extension-arktype-json
@prisma/orm-extension-middleware-cache
@prisma/orm-extension-paradedb
@prisma/orm-extension-pgvector
@prisma/orm-extension-postgis
@prisma/orm-extension-supabase
@prisma/orm-family-mongo
@prisma/orm-family-sql
@prisma/orm-framework
@prisma/orm-mongo
@prisma/orm-postgres
@prisma/orm-sqlite
@prisma/orm-target-mongo
@prisma/orm-target-postgres
@prisma/orm-target-sqlite
@prisma/orm-toolchain
commit: |
size-limit report 📦
|
99e8827 to
558e83a
Compare
The schema header is `// use prisma-8`, the primer init writes is `prisma-8.md`, the CLI environment variables are `PRISMA_*`, the per-user telemetry config lives under `prisma-8/`, the language-server diagnostic source and Standard Schema vendor are `prisma`, and CLI invocations in docs, fixtures, and recordings read `prisma …`. The stale telemetry docs URL and new-issue links point at prisma.io and prisma/orm. Committed migration steps and their content-addressed contract snapshots are untouched; rewriting them would break their hashes. The legacy-name lint drops its two temporary allowances and keeps only dated records, pinned links, the CipherStash package name, and the files that prove the retired name stays gone. Upgrade instructions for the header, the environment variables, and the primer are recorded for rc.9 to rc.10. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…s wrote The language server accepts `// use prisma-next` alongside `// use prisma-8`, so existing schemas keep their diagnostics and completion, and its Format action rewrites the old header to the new one. Telemetry gating still honours `PRISMA_NEXT_DISABLE_TELEMETRY`, so an existing opt-out is not silently undone by the rename. The telemetry docs URL the earlier sweep turned into a non-existent domain now points at prisma.io. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
558e83a to
4de51b1
Compare
…#30261) ## Linked issue n/a — no Linear ticket. Follow-up to prisma#30229 (roadmap removal) and prisma#30248 (Prisma 8 rename). ## At a glance Docs-only PRs could not enter the merge queue: `Size Limit` is a required check, and the bundle-size workflow skipped the whole job on an inert diff, so the check never reported. prisma#30229 needed an admin merge for exactly this reason. The job now always runs and only its steps skip. ## Summary Three leftovers from the roadmap removal in one commit, plus a second commit that fixes the test-database idle timeout behind today's `Connection terminated unexpectedly` failures. ### The idle-timeout mismatch `createDevDatabase` in `@repo/test-utils` started the dev Postgres with a one-second idle timeout, while the Postgres driver's pool keeps an idle client for thirty seconds. Any test that pauses more than a second between queries then gets a dead client back from the pool: `Client has encountered a connection error and is not queryable`, wrapped as `SqlConnectionError: Connection terminated unexpectedly`. Coverage instrumentation makes such pauses routine, which is why the adapter-postgres native-enum lifecycle suite failed the Coverage job on five branches today (prisma#30249's queue run, prisma#30241, `prepare-orm`, `prisma-8-skill-rc9-refresh`, prisma#30262 four times in a row) while passing every plain shard. Three suites had already worked around it with a per-call thirty- or sixty-second override and a comment explaining exactly this. The default now matches the pool (thirty seconds), the three redundant overrides are gone, the telemetry harness keeps its sixty, and the returned handle exposes the setting so the test can assert it. ### The roadmap leftovers 1. **`ROADMAP.html` is deleted.** It was the rendered twin of the `ROADMAP.md` that prisma#30229 removed and still described the rc.1 plan. 2. **`scripts/lint-legacy-name.mjs` no longer cites the deleted roadmap.** Two of its temporary allowances pointed at "ROADMAP.md § 3" as the task that retires them; they now name the pending identifier rename directly. The file-specific allowance for the roadmap itself is gone with the files, and so is its test. 3. **The `Size Limit` job always reports.** The inert-diff condition moves from the job to each step, following the pattern the CI workflow already uses for its required `Test` summary job. ## Behavior changes & evidence - **CI:** a docs-only PR now gets a green `Size Limit` check instead of a skipped one, so auto-merge can enqueue it. Evidence: this PR touches `.github/` and `scripts/`, so it is non-inert and exercises the real path; the inert path is exercised by the next docs-only PR. - **Lint:** `pnpm lint:legacy-name` still passes on main; `node --test scripts/lint-legacy-name.test.mjs scripts/lint-workflow-triggers.test.mjs` passes (29 tests). ## Skill update n/a — no user-facing surface changed. ## Checklist - [x] All commits are signed off (`git commit -s`) per the [DCO](../CONTRIBUTING.md#developer-certificate-of-origin-dco). - [x] I read [CONTRIBUTING.md](../CONTRIBUTING.md) and the change is scoped to one logical concern. - [x] Tests are updated (the lint test drops the roadmap allowance case and asserts the new pointer). - [ ] The PR title is in `TML-NNNN: <sentence-case title>` form. No Linear ticket exists for this change. - [x] The **Skill update** section above is filled in. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Removed the Prisma 8 RC1 roadmap page. - **Bug Fixes** - Bundle-size checks now report consistently, including for documentation-only changes. - **Development Experience** - Improved local development database connection handling by keeping idle connections available for longer, reducing unexpected disconnects during extended development and testing sessions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
…sma#30265) One line: the changelog intro still called itself the index of "Prisma Next" releases. The legacy-name lint exempts `CHANGELOG.md` as a dated record, which is right for the entries but let this live sentence slip past the rename in prisma#30248 and prisma#30262. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Updated the changelog to reference Prisma 8 releases instead of Prisma Next releases. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
Linked issue
n/a — no Linear ticket. Completes the rename that #30248 started for prose; builds on #30261.
At a glance
Every
prisma-nextidentifier a user can see is renamed. Before and after, for a scaffolded project:Summary
After #30248 the product was called Prisma 8 in prose, but the working name was still written into user projects and printed by the CLI: the schema header, the primer file, the environment variables, the per-user config directory, the language-server diagnostic source, the Standard Schema vendor string, the contract brand symbol, the advisory-lock domain, and about 650 fixture and doc files that spelled out
prisma-next …commands. This PR renames all of it in one pass and tightens the legacy-name lint so the only occurrences left are the ones with a reason.Decision
One commit. The mapping:
// use prisma-next// use prisma-8initwritesprisma-next.mdprisma-8.mdPRISMA_NEXT_*PRISMA_*prisma-next/prisma-8/prisma-nextprismaprisma-nextprisma__prisma_next_brand____prisma_8_brand__prisma_next.contract.markerprisma_8.contract.markerprisma_next_*prisma_8_*images/prisma-next.pngimages/prisma-8.pngprisma-next.dev/docs/…www.prisma.io/docs/…github.com/prisma/prisma-next/issues/newgithub.com/prisma/orm/issues/newprisma-next db verifyprisma db verifyprisma-8is the slug the repo already uses for the skill, the examples, and the upgrade directories, so it is the slug for everything that needs one. Environment variables drop the infix entirely becausePRISMA_*is what users expect and nothing else in the repo claims those names.What keeps the old name, each with a lint allowance that says why:
projects/anddrive/write-ups.@cipherstash/prisma-next, a third party's published package name.initdeletes, and the tests asserting that noprisma-nextbin or skill directory is installed any more.Behavior changes & evidence
inittemplates write// use prisma-8. The language server accepts both headers, so existing schemas keep their diagnostics and completion, and its Format action rewrites the old header to the new one. packages/1-framework/3-tooling/language-server/src/schema-directive.ts, packages/1-framework/2-authoring/psl-printer/src/ast-to-print-document.ts. Evidence: therenameLegacyDirectivetests, the server test that formats a legacy-headed schema, and the psl-printer tests.PRISMA_NEXT_DISABLE_TELEMETRYis still honoured as an opt-out so nobody is silently opted back in; the endpoint and debug spellings are not. packages/1-framework/3-tooling/cli-telemetry/src/gating.ts. Evidence: cli-telemetry gating tests.Testing performed
pnpm testin cli (1437), cli-telemetry (112), language-server (312), psl-printer (63), framework-components (672), target-postgres (1607), vite-plugin-contract-emit (31), emitter (231), andpnpm test:scripts(507): all pass afterpnpm build. The language-server tests hard-coded the old header's length in semantic-token arrays and span offsets; those expectations are updated.pnpm lint:legacy-namepasses with the tightened allowances;node --test scripts/lint-legacy-name.test.mjspasses (14 tests, including new negative cases for the header, primer, and skill names).pnpm check:upgrade-coverage --mode pr --prev origin/mainpasses.Skill update
skills/prisma-8references and the two rc.9 → rc.10 upgrade instruction files are updated in this PR.Checklist
git commit -s) per the DCO.TML-NNNN: <sentence-case title>form. No Linear ticket exists for this change.🤖 Generated with Claude Code