-
Notifications
You must be signed in to change notification settings - Fork 0
chore: bumpup napi to v3 #70
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: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -15,18 +15,16 @@ | |||||||||
} | ||||||||||
}, | ||||||||||
"napi": { | ||||||||||
"name": "generator", | ||||||||||
"triples": { | ||||||||||
"additional": [ | ||||||||||
"aarch64-apple-darwin", | ||||||||||
"aarch64-unknown-linux-gnu", | ||||||||||
"aarch64-unknown-linux-musl", | ||||||||||
"aarch64-pc-windows-msvc", | ||||||||||
"armv7-unknown-linux-gnueabihf", | ||||||||||
"x86_64-unknown-linux-musl", | ||||||||||
"i686-pc-windows-msvc" | ||||||||||
] | ||||||||||
} | ||||||||||
"binaryName": "generator", | ||||||||||
"targets": [ | ||||||||||
"aarch64-apple-darwin", | ||||||||||
"aarch64-unknown-linux-gnu", | ||||||||||
"aarch64-unknown-linux-musl", | ||||||||||
"aarch64-pc-windows-msvc", | ||||||||||
"armv7-unknown-linux-gnueabihf", | ||||||||||
"x86_64-unknown-linux-musl", | ||||||||||
"i686-pc-windows-msvc" | ||||||||||
] | ||||||||||
}, | ||||||||||
"files": [ | ||||||||||
"index.js", | ||||||||||
|
@@ -40,7 +38,7 @@ | |||||||||
"url": "git+https://github.com/ssssota/typed-cstruct.git" | ||||||||||
}, | ||||||||||
"devDependencies": { | ||||||||||
"@napi-rs/cli": "^2.18.4" | ||||||||||
"@napi-rs/cli": "^3.2.0" | ||||||||||
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. 🧩 Analysis chainCLI v3 upgrade: align Node engines with supported versions.
Proposed change (adjust the version per verification): "engines": {
- "node": ">= 10"
+ "node": ">= 16"
}, 🌐 Web query:
💡 Result:
Sources: changelog noting "requires node >= 16" for v3, and napi-rs docs showing Node support matrix. [1][2] Bump engines.node to >=16 to match @napi-rs/cli v3 requirement. Confirmed: @napi-rs/cli v3.x requires Node.js >=16 — update packages/generator/package.json (line ~41). Proposed change: "engines": {
- "node": ">= 10"
+ "node": ">= 16"
}, 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
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. 🧩 Analysis chainCLI v3 bump: double‑check Node engine floor. @npm-rs/cli v3 may require newer Node than ">=10". Confirm and align engines if needed. 🌐 Web query:
💡 Result: Short answer:
Sources:
Bump Node engine floor to >=12 and confirm N-API v3 keys packages/generator/package.json — change "engines.node" from ">=10" to ">=12" to match @napi-rs/cli v3; verify N-API config uses napi.binaryName and napi.targets (v3 migration). 🤖 Prompt for AI Agents
|
||||||||||
}, | ||||||||||
"engines": { | ||||||||||
"node": ">= 10" | ||||||||||
|
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.
🧩 Analysis chain
Targets/optionalDependencies mismatch will skip key artifacts (darwin-x64, linux-x64-gnu, win32-x64).
napi.targets
lacks:but these platforms exist in
optionalDependencies
. Add the missing triples or drop the corresponding optional deps to avoid broken installs.Apply this diff to include the missing targets:
🏁 Script executed:
Length of output: 344
🏁 Script executed:
Length of output: 1161
Add missing x86_64 napi.targets to match optionalDependencies
napi.targets is missing x86_64 triples while optionalDependencies include x64 artifacts — installs will skip darwin-x64, linux-x64-gnu, and win32-x64.
📝 Committable suggestion
🤖 Prompt for AI Agents