chore: upgrade Prisma to 7.8.0 - #29
Conversation
|
@LIlGG: The label(s) DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
- Upgrade prisma, @prisma/client, @prisma/adapter-better-sqlite3 to 7.8.0 - Migrate datasource url from schema.prisma to prisma.config.ts (Prisma 7 breaking change: url no longer supported in schema files) - Replace obsolete @prisma/client/runtime/library imports (JsonArray, JsonObject, JsonValue removed in Prisma 7) - Fix PrismaBetterSQLite3 → PrismaBetterSqlite3 naming - Use Prisma.Decimal for Decimal type access in Prisma 7
What type of PR is this?
/kind chore
What this PR does / why we need it:
升级 Prisma 及相关依赖至 7.8.0,以修复在 Node.js 24 环境下 better-sqlite3 原生模块编译失败的问题。
主要变更:
prisma至 7.8.0@prisma/client至 7.8.0@prisma/adapter-better-sqlite3至 7.8.0datasource url从schema.prisma到prisma.config.ts(Prisma 7 破坏性变更)@prisma/client/runtime/library导入(JsonArray、JsonObject、JsonValue)PrismaBetterSQLite3→PrismaBetterSqlite3的命名变更How to test it?
pnpm install安装依赖pnpm setup执行数据库迁移并生成 Prisma Clientpnpm dev启动开发服务器,确认无 better-sqlite3 加载错误pnpm typecheck确认类型检查通过Which issue(s) this PR fixes:
Fixes Node.js 24 环境下 better-sqlite3 模块版本不兼容导致的启动失败。
Does this PR introduce a user-facing change?