Repository navigation
宣言の範囲内に収まる依存の更新を入れる - #79
Merged
Merged
Conversation
直接依存 15 個を `^` の範囲内で更新した。メジャーバージョンの更新は
入れていない。
入れなかったものと理由:
- @nuxt/ui 3.3.7→4.11.1 / typescript 6.0.3→7.0.2 / vitest 4.1.10→5.0.1
メジャー。1 つずつ別の PR にする。
- stripe 22.4.0→22.6.2
上げると packages/api/src/stripe/client.ts の apiVersion のリテラルが
型エラーになる。同ファイルのコメントが書いているとおり、これは通信形式
の変更を意図的に確認させるための装置である。宣言は ^22.4.0 のままなので
lock が宣言の範囲より意図的に遅れている。次に pnpm update を走らせる人が
同じ型エラーに当たるので、API バージョンの確認を伴う別の PR で上げる。
- h3 1.15.11→2.0.1-rc.32
latest がリリース候補。安定版の 1x タグは 1.15.11 で既にそれに乗っている。
- @types/node 24.13.6→26.6.2
26 は Node 26 に対応する。CI は Node 24 に固定されており、
.github/dependabot.yml のコメントが Node のメジャーに合わせて手動で
更新すると定めている。24 系の最新に留めた。
- @fission-ai/openspec 1.4.1→1.13.1
宣言が ^ のない完全固定なので範囲内の更新では動かない。固定を外すのは
範囲の更新ではなく固定方針の変更にあたるため、この PR には入れない。
- @orpc/* 1.15.1→1.15.2
pnpm の minimumReleaseAge が、公開から一定時間の経っていない版を
止める。1.15.2 は公開から 16 時間で、この既定に掛かった。止まったものを
minimumReleaseAgeExclude で迂回することはしない。時間が経てば通常の
更新として入る。
コードの変更 2 つ:
- pnpm-workspace.yaml の @nuxt/kit の override を 4.4.8 から 4.5.2 へ。
nuxt が 4.5.2 になると override が 4.4.8 のままでは nuxt prepare が
@nuxt/kit の export が無いと言って落ちる。同ファイルのコメントが定める
削除の条件(override なしで 1 バージョンになること)を確かめたところ、
2 バージョンに分かれるので満たさない。override は残してバージョンだけ
合わせた。あわせてコメントが名指ししていた原因(@nuxt/eslint の緩い範囲)
が @nuxt/eslint 1.17.0 で解消していたので、実際に v3 を引いている
@nuxt/ui 3.3.7 配下の 3 つに書き直し、nuxt を上げるたびに手で追随させる
必要があることと、@nuxt/ui を 4 系へ上げると削除できる候補になることを
書き足した。
- packages/api/src/payouts/execute.ts の catch (err) { … void err } を
catch { } へ。@nuxt/eslint 1.17.0 経由で
@typescript-eslint/eslint-plugin が 8.65.0 から 8.70.0 に上がり、
no-meaningless-void-operator が発火した。リポジトリに既にある 7 箇所の
catch { } の形に揃えた。
確かめた範囲と、確かめていないこと:
pnpm lint / knip / typecheck / test / build の 5 つと
pnpm install --frozen-lockfile が通る。
ただし mysql2 3.23.2→3.24.4 は、この更新で唯一の本番実行時の依存の
ドライバ更新でありながら、実行されたテストで一度も通っていない。
packages/api/src/{payouts/execute,ledger/ledger,auth/identity}.test.ts は
DB に接続できないとき各テストの先頭で即 return する。DATABASE_URL を
到達不能な値にしても結果が 28 passed のまま変わらないことを確かめた。
CI にも services: が無いので、CI でも同じく空回りする(#58)。
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
直接依存 15 個を、宣言している
^の範囲内で更新する。メジャーバージョンの更新は含まない。技術選定の見直しを行うにあたって、判定の対象を現行の
latestに揃えるための土台として入れる。宣言の範囲内で上げられるものを先に片付け、メジャーは 1 つずつ別の PR に分ける。入れなかったものと理由
@nuxt/ui3.3.7 → 4.11.1typescript6.0.3 → 7.0.2vue-tscが動かなくなるので上げないvitest4.1.10 → 5.0.1stripe22.4.0 → 22.6.2h31.15.11 → 2.0.1-rc.32latestがリリース候補。安定版の1xタグは 1.15.11@types/node24.13.6 → 26.6.2dependabot.ymlのコメントが手動更新と定めている@fission-ai/openspec1.4.1 → 1.13.1@orpc/*1.15.1 → 1.15.2minimumReleaseAgeに掛かった。minimumReleaseAgeExcludeでの迂回はしない。時間が経てば通常の更新として入るコードの変更 2 つ
pnpm-workspace.yamlの@nuxt/kitの override を 4.4.8 から 4.5.2 へ。nuxtが 4.5.2 になると、override が 4.4.8 のままではnuxt prepareが落ちる。同ファイルのコメントが定める削除の条件(override なしで 1 バージョンになること)は満たさないので、override は残して版だけ合わせた。あわせて、コメントが名指ししていた原因(@nuxt/eslintの緩い範囲)が@nuxt/eslint1.17.0 で解消していたので、実際に v3 を引いている@nuxt/ui3.3.7 配下の 3 つに書き直した。packages/api/src/payouts/execute.tsのcatch (err) { … void err }をcatch { }へ。@nuxt/eslint1.17.0 経由で@typescript-eslint/eslint-pluginが 8.65.0 から 8.70.0 に上がり、no-meaningless-void-operatorが発火した。リポジトリに既にある 7 箇所のcatch { }の形に揃えた。確かめた範囲と、確かめていないこと
pnpm lint/knip/typecheck/test/buildの 5 つとpnpm install --frozen-lockfileが通る。ただし
mysql23.23.2 → 3.24.4 は、この更新で唯一の本番実行時の依存のドライバ更新でありながら、実行されたテストで一度も通っていない。packages/api/src/{payouts/execute,ledger/ledger,auth/identity}.test.tsは DB に接続できないとき各テストの先頭で即returnする。DATABASE_URLを到達不能な値にしても結果が28 passedのまま変わらないことを確かめた。CI にもservices:が無いので、CI でも同じく空回りする(#58)。🤖 Generated with Claude Code