`lru-cache` fails on Node.js 22

未关闭 适合新手
#1,222 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@MikeMcC399 已经在做这个了。

开始于 2026年10月31日。

  • #1228 来自 @MikeMcC399 —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
github-actions, javascript, node.js
领域
testing, tooling

调研方向

从 lib/lookup.json 中第 257–264 行附近的 lru-cache 条目开始,并将其 Node.js 版本规则与 issue 中链接的项目 CI 工作流进行比较。运行所引用的 lru-cache 测试模块工作流,以确认 Node.js 22 上的失败。完成标准是 citgm 对 lru-cache 跳过低于 24 的版本,并且相关工作流通过。

由索引模型根据 Issue 内容生成。

描述

Situation

Running citgm lru-cache fails:

  • on Node.js 22 for macos, windows & ubuntu
Item Status
docs page https://isaacs.github.io/node-lru-cache/
npm package https://www.npmjs.com/package/lru-cache
npm status active
last published 11.5.3 Sep 19, 2026
weekly downloads 652,744,103
repo location https://github.com/isaacs/node-lru-cache
repo last update to default branch Sep 19, 2026
repo status active
repo CI status runs in Node.js 24 & 25
lookup release / HEAD release
lookup - skip aix
lookup - flaky win32
lookup maintainer 1 isaacs

Repo CI https://github.com/isaacs/node-lru-cache/blob/main/.github/workflows/ci.yml runs in Node.js 24 & 25

Steps to reproduce

Run https://github.com/nodejs/citgm/actions/workflows/test-module.yml

Module to test: lru-cache
CITGM repository to checkout: nodejs/citgm
CITGM GitHub ref to checkout: main

Result

Fails on Node.js 22 all OS
Fails on Node.js 22, 24 & 26 for Windows

Node.js npm macos ubuntu windows
22.23.4 10.9.9 FAIL FAIL FAIL
24.22.1 11.19.1 PASS PASS FAIL
26.12.1 11.20.0 PASS PASS FAIL

win32 is already skipped in lookup.json. No action needed for Windows

References

https://github.com/nodejs/citgm/blob/98ba8542fda8b5c61c4c6a5dec117021219ec255/lib/lookup.json#L257-L264

Suggestion

主要语言
JavaScript
星标
608
派生
163
平均合并
4 天 3 小时
30 天内合并 PR
14

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nodejs/citgm 的其他 Issue

查看 nodejs/citgm 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。