-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node.js v22 対応 #1057
Node.js v22 対応 #1057
Conversation
server/utils/book/importBooksUtil.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
差分はformatの改行のみです。
.github/workflows/build.yml
Outdated
@@ -9,7 +9,7 @@ jobs: | |||
ref: ${{ github.head_ref }} | |||
- uses: actions/setup-node@v3 | |||
with: | |||
node-version: "lts/*" | |||
node-version: "22.13.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LTSの最新のバージョンに固定するように修正しました(ローカル環境のNode.jsとバージョンを固定化するため)が、問題あればコメントください。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ローカル環境のNode.jsとバージョンが違うことで問題を生む可能性がありそうですね
そういう点で固定化するのは良いと思います 👍
あるいはこういうとき別の対処として package.json あるいは .nvmrc や .node-version-file を指定してワークツリーの目立つところのに配置して他のツールのサポート(e.g. nvm、mise)を受けられるようにしてみるのもいいかも
一度ご検討くださいませ
具体例:
- uses: actions/setup-node@v4
with:
node-version-file: package.json
:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ファイル指定できること知見でした!ありがとうございます。package.jsonを参照する形に修正しました
@@ -235,6 +235,9 @@ function countTimeRange( | |||
log.endMs < range.endMs && | |||
log.endMs - range.startMs > ACTIVITY_COUNT_INTERVAL_THRESHOLD_MS) | |||
) { | |||
if (range.count === undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node.js v22関係なくおそらくlintが落ちていたようなので、修正しました(他のCIが通ることを検証したかったため)。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
良いと思います 👍
引き続き他の依存関係の更新(e.g. Moodle、Postgres等コンテナイメージ、npmパッケージ)もお願いしたい (本PRの範疇ではないかと思うのであくまで任意、別PRで構いません) です
if (range.count === undefined) { | ||
range.count = 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一瞬だけ検討してみるくらいでOKですがこのように短く書いても読みやすい(個人差ありなので任意)かも
if (range.count === undefined) { | |
range.count = 0; | |
} | |
range.count ??= 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正しました!
.github/workflows/build.yml
Outdated
@@ -9,7 +9,7 @@ jobs: | |||
ref: ${{ github.head_ref }} | |||
- uses: actions/setup-node@v3 | |||
with: | |||
node-version: "lts/*" | |||
node-version: "22.13.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ローカル環境のNode.jsとバージョンが違うことで問題を生む可能性がありそうですね
そういう点で固定化するのは良いと思います 👍
あるいはこういうとき別の対処として package.json あるいは .nvmrc や .node-version-file を指定してワークツリーの目立つところのに配置して他のツールのサポート(e.g. nvm、mise)を受けられるようにしてみるのもいいかも
一度ご検討くださいませ
具体例:
- uses: actions/setup-node@v4
with:
node-version-file: package.json
:
他のライブラリの更新などもこのPRに含めて対応させていただきます。 |
ひとまずここまで一度ご確認頂いてもよろしいでしょうか? その他のnpm関連のパッケージは差分大きそうなのでPR分けます🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありがとうございます!良いと思います 👍
b9225d7 コミット時点で以下の大まかな動作を確認し,問題ありませんでした。
ビルド環境は以下のとおりです。
|
23d865a
to
ac085d2
Compare
@@ -1,3 +1,5 @@ | |||
/* eslint-disable @typescript-eslint/ban-ts-comment */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
すいません移行コストが高く、ひとまず型エラーで無視しています。
動作自体には問題ないので、他の部分をひとまず確認いただければと思います🙏
お待たせしてすいません。postgresqlとその他ビルドの型エラーが出ていたライブラリを更新しました。 |
…ichilo into upgrade-nodejs22
…ies/chibichilo into upgrade-nodejs22" This reverts commit d068741, reversing changes made to 144270e.
This reverts commit 6eab997.
…/npocccties/chibichilo into upgrade-nodejs22"" This reverts commit 3c7e119.
This reverts commit 3051796.
This reverts commit 9f85478.
This reverts commit 1b995f7.
全機能の動作確認を実施したところ,新規で発見された問題については,全てNode.22対応以前からも確認できた現象でした。 |
関連:#1025
Node.jsのv22対応を行いました。主要導線やDeepLink、学習分析の反映など動作確認済みです。