-
Notifications
You must be signed in to change notification settings - Fork 10
fix(): use node 22 #4567
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
base: v3
Are you sure you want to change the base?
fix(): use node 22 #4567
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
node-version: [22.x] | ||
|
||
steps: | ||
- name: Setup timezone | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
node-version: [20.x] | ||
node-version: [22.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20 | ||
22 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ import { createRequire } from "node:module"; | |
import HtmlWebpackPlugin from "html-webpack-plugin"; | ||
import CopyPlugin from "copy-webpack-plugin"; | ||
import webpack from "webpack"; | ||
import packageJson from "./package.json" assert { type: "json" }; | ||
import packageJson from "./package.json" with { type: "json" }; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The import assertion syntax is incorrect. It should be 'assert { type: "json" }' instead of 'with { type: "json" }'. Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
const require = createRequire(import.meta.url); | ||
|
||
|
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.
💡 Codebase verification
建议调整 Node.js 版本要求并进行分阶段迁移
根据代码库分析,所有包的
engines
字段都指定了 Node.js 版本要求为 ">=16"。直接升级到 Node.js 22.x 可能过于激进,建议:engines
字段中的 Node.js 版本要求更新为与 CI 一致示例配置:
🔗 Analysis chain
建议验证 Node.js 22.x 的兼容性和稳定性
Node.js 22.x 版本较新,建议:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 3457