Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Drop Node.js v20 from CI matrix

未關閉 適合新手
#37 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
68/100
Issue 類型
重構
描述清晰度
描述清楚
活躍度
冷清
技術堆疊
github-actions, node.js, typescript
領域
ci-cd

研究方向

檢查 .github/workflows/test.yml,先查看 CI 測試矩陣以及 Node 20 特有的 amaro/TypeScript stripping workaround。刪除 20.x 項目和該 workaround;當 workflow 在沒有 v20 特定處理的情況下針對其餘 Node.js 版本時,即完成此項工作。

由索引模型根據 Issue 內容生成。

描述

Context

Node.js v20 reaches EOL on April 30, 2026. Additionally, Node-API version 10 is not fully supported on v20 — the NAPI_PREAMBLE macro only returns napi_cannot_run_js for NAPI_VERSION_EXPERIMENTAL, not for version 10+. This was fixed in nodejs/node#55676 ("node-api: define version 10"), which landed in v22.14.0+ but was never backported to v20.

This causes test_cannot_run_js (and potentially other tests targeting Node-API v10) to crash with SIGSEGV on v20, as seen in #28.

Proposal

Remove 20.x from the CI test matrix in .github/workflows/test.yml, along with the Node 20-specific amaro/TypeScript stripping workaround.

主要語言
C
星號
18
分支
12
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

nodejs/node-api-cts 的其他 Issue

查看 nodejs/node-api-cts 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。