Commit 0773dc1
committed
test(metadata-protocol): 迁移测试改用内置 node:sqlite,不再新增 better-sqlite3 依赖
本包除该测试外不需要任何 SQL 依赖,为跑测试而把一个原生模块写进
lockfile 并不划算。Node 内置的 `node:sqlite` 提供同样真实的 SQLite ——
真实的 partial index、真实的 UNIQUE 约束 —— 且零依赖。
顺带的好处:pnpm-lock.yaml 回到与 main 完全一致,本 PR 不再触发
「Validate Package Dependencies」的 OSV 扫描。该扫描只在 lockfile 变动时
运行,而它当前会因 main 上既有的 dompurify@3.4.12 公告
(GHSA-55q2-fjhq-7xh7, dependabot #16) 判红 —— 与本 PR 无关。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Q7oc7ASjh8yxyS3Yz78We1 parent e0cafb5 commit 0773dc1
3 files changed
Lines changed: 10 additions & 7 deletions
File tree
- packages/metadata-protocol
- src/migrations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
| |||
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | | - | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
62 | | - | |
| 69 | + | |
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments