Skip to content

chore: upgrade Prisma to 7.8.0 - #29

Merged
LIlGG merged 1 commit into
halo-dev:mainfrom
LIlGG:upgrade/prisma-7
May 20, 2026
Merged

LIlGG merged 1 commit into
halo-dev:mainfrom
LIlGG:upgrade/prisma-7

Conversation

@LIlGG

@LIlGG LIlGG commented May 20, 2026

Copy link
Copy Markdown
Member

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.0
  • 迁移 datasource urlschema.prismaprisma.config.ts(Prisma 7 破坏性变更)
  • 替换已移除的 @prisma/client/runtime/library 导入(JsonArrayJsonObjectJsonValue
  • 修复 PrismaBetterSQLite3PrismaBetterSqlite3 的命名变更

How to test it?

  1. 确保 Node.js 版本 >= 20
  2. 运行 pnpm install 安装依赖
  3. 运行 pnpm setup 执行数据库迁移并生成 Prisma Client
  4. 运行 pnpm dev 启动开发服务器,确认无 better-sqlite3 加载错误
  5. 运行 pnpm typecheck 确认类型检查通过

Which issue(s) this PR fixes:

Fixes Node.js 24 环境下 better-sqlite3 模块版本不兼容导致的启动失败。

Does this PR introduce a user-facing change?

升级 Prisma 至 7.8.0,修复 Node.js 24 兼容性问题

@f2c-ci-robot

f2c-ci-robot Bot commented May 20, 2026

Copy link
Copy Markdown

@LIlGG: The label(s) kind/chore cannot be applied, because the repository doesn't have them.

Details

In response to this:

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.0
  • 迁移 datasource urlschema.prismaprisma.config.ts(Prisma 7 破坏性变更)
  • 替换已移除的 @prisma/client/runtime/library 导入(JsonArrayJsonObjectJsonValue
  • 修复 PrismaBetterSQLite3PrismaBetterSqlite3 的命名变更

How to test it?

  1. 确保 Node.js 版本 >= 20
  2. 运行 pnpm install 安装依赖
  3. 运行 pnpm setup 执行数据库迁移并生成 Prisma Client
  4. 运行 pnpm dev 启动开发服务器,确认无 better-sqlite3 加载错误
  5. 运行 pnpm typecheck 确认类型检查通过

Which issue(s) this PR fixes:

Fixes Node.js 24 环境下 better-sqlite3 模块版本不兼容导致的启动失败。

Does this PR introduce a user-facing change?

升级 Prisma 至 7.8.0,修复 Node.js 24 兼容性问题

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.

@f2c-ci-robot f2c-ci-robot Bot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label May 20, 2026
@f2c-ci-robot

f2c-ci-robot Bot commented May 20, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign lilgg for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@LIlGG LIlGG changed the title chore: 升级 Prisma 至 7.8.0 chore: upgrade Prisma to 7.8.0 May 20, 2026
@LIlGG
LIlGG force-pushed the upgrade/prisma-7 branch from 92e9a5c to 3df980b Compare May 20, 2026 07:22
- 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
@LIlGG
LIlGG force-pushed the upgrade/prisma-7 branch from 3df980b to 92abc8a Compare May 20, 2026 08:14
@LIlGG
LIlGG merged commit 96b9f16 into halo-dev:main May 20, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant