Skip to content

[pull] main from prisma:main#219

Merged
pull[bot] merged 2 commits intocode:mainfrom
prisma:main
Mar 4, 2026
Merged

[pull] main from prisma:main#219
pull[bot] merged 2 commits intocode:mainfrom
prisma:main

Conversation

@pull
Copy link

@pull pull bot commented Mar 4, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

dulmandakh and others added 2 commits March 4, 2026 08:37
This PR migrates internals tests to vitest

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

* **Tests**
* Migrated test suite from Jest to Vitest and updated test harnesses and
timeouts.
* Added a Vitest snapshot serializer to normalize and stabilize test
outputs for reliable snapshots.

* **Chores**
* Removed Jest config and related dev dependencies; deleted project
Prettier config.
* Updated numerous test imports and utilities to align with Vitest
(including node: core imports).
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## Summary
- bump `@prisma/studio-core` in CLI from `0.13.1` to `0.15.0`
- remove legacy Accelerate (`prisma+postgres`) URL transformation logic
from `prisma studio`
- fail early for Accelerate URLs (`prisma://` and `prisma+postgres://`)
with a clear user-facing error
- return Studio validation errors through `help()` so they render
without stack traces

## Validation
- `node build/index.js studio --browser none --port 5557 --url
"postgresql://...@db.prisma.io:5432/postgres"` starts successfully
- `node build/index.js studio --browser none --url
"prisma+postgres://..."` exits with clean unsupported-Accelerate
messaging


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

* **Bug Fixes**
* Standardized user-facing errors for unsupported/invalid connection
URLs (including accelerate-like protocols) and clearer messaging.
* Improved MySQL URL compatibility: normalizes sslaccept to mysql2 ssl
options, maps connection_limit to connectionLimit, and strips
Prisma-specific MySQL query params.
  * CLI now prints concise messages for user-facing errors and help.

* **Tests**
* Added tests for MySQL URL normalization (sslaccept and
connection_limit).

* **Chores**
  * Dependency updated: @prisma/studio-core bumped to 0.16.3.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@pull pull bot locked and limited conversation to collaborators Mar 4, 2026
@pull pull bot added the ⤵️ pull label Mar 4, 2026
@pull pull bot merged commit 9fa295d into code:main Mar 4, 2026
4 of 5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants