Skip to content

feat(cli): Studio + Deno >=1.4 <2.2 and Bun >=1 support.#28583

Merged
igalklebanov merged 3 commits intomainfrom
studio-bun-sqlite
Nov 20, 2025
Merged

feat(cli): Studio + Deno >=1.4 <2.2 and Bun >=1 support.#28583
igalklebanov merged 3 commits intomainfrom
studio-bun-sqlite

Conversation

@igalklebanov
Copy link
Copy Markdown
Contributor

@igalklebanov igalklebanov commented Nov 19, 2025

Hey 👋

closes PTL-555.
closes TML-1604.

This PR adds Studio support for Deno <2.2 using jsr:@db/sqlite and Bun >=1 using bun:sqlite.

Copilot AI review requested due to automatic review settings November 19, 2025 20:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for SQLite databases in Deno versions prior to 2.2 (using jsr:@db/sqlite) and Bun runtime version 1.0+ (using bun:sqlite). The changes extend the existing SQLite connection handling to detect the runtime environment and use the appropriate database driver.

Key Changes:

  • Runtime detection to support Node.js, Deno, and Bun environments for SQLite connections
  • Fallback mechanism for different SQLite implementations across runtimes
  • Updated test scripts to support Bun and Deno execution environments

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

File Description
sandbox/studio/prisma.config.ts Added runtime-agnostic SQLite database initialization with fallback from Node.js to Bun
sandbox/studio/package.json Added separate npm scripts for testing with Bun and Deno runtimes
packages/cli/src/Studio.ts Implemented runtime detection and SQLite driver selection for Node.js, Deno, and Bun
packages/cli/package.json Added @types/bun and std-env dependencies for runtime detection
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 19, 2025

size-limit report 📦

Path Size
packages/client/runtime/index-browser.js 2.23 KB (0%)
packages/client/runtime/index-browser.d.ts 3.28 KB (0%)
packages/cli/build/index.js 2.53 MB (+0.91% 🔺)
packages/client/prisma-client-0.0.0.tgz 10.22 MB (+0.01% 🔺)
packages/cli/prisma-0.0.0.tgz 6.71 MB (+0.09% 🔺)
packages/bundle-size/da-workers-libsql/output.tgz 804.7 KB (0%)
packages/bundle-size/da-workers-neon/output.tgz 859.16 KB (0%)
packages/bundle-size/da-workers-pg/output.tgz 852.02 KB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 803.84 KB (0%)
packages/bundle-size/da-workers-d1/output.tgz 787.59 KB (0%)

@igalklebanov igalklebanov added this to the 7.1.0 milestone Nov 19, 2025
@igalklebanov igalklebanov changed the title feat(cli): Studio + Deno <2.2 and Bun >=1 support. feat(cli): Studio + Deno >=1.4 <2.2 and Bun >=1 support. Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants