npm · npm:@testing-library/react-hooks
@testing-library/react-hooks 活跃
Simple and complete React hooks testing utilities that encourage good testing practices.
@testing-library/react-hooks 的最新稳定版本是 8.0.1,发布于 2022-06-18。Vigia 于 2026-11-12 核实。
| 最新稳定版本 | 8.0.1 |
|---|---|
| 发布时间 | 2022-06-18 13:20:19 UTC |
| 安装 | npm install @testing-library/react-hooks@latest |
| 运行要求(engines) | {"node":">=12"} |
| Peer 依赖 | react ^16.9.0 || ^17.0.0 react-dom ^16.9.0 || ^17.0.0 @types/react ^16.9.0 || ^17.0.0 react-test-renderer ^16.9.0 || ^17.0.0 |
| Dist 标签 | beta: 5.0.0-beta.12 alpha: 8.0.0-alpha.1 latest: 8.0.1 |
| 许可证 | MIT |
| 最新版本的安全公告 | 暂无已知 |
| 最近核实 | 2026-11-12 12:15:00 UTC |
| 来源 | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
维护情况
| 活跃度 | 停滞 |
|---|---|
| 最近的稳定版本 | 2022-06-18 13:20:19 UTC · 1608 天前 |
| 过去 12 个月的稳定版本数 | 0 |
| 已发布版本数 | 53 |
仅根据发布时间估算,不反映对 issue 或安全问题的响应速度。
版本历史
| 版本 | 发布时间 |
|---|---|
8.0.1 | 2022-06-18 13:20:19 UTC |
8.0.0 | 2022-04-10 12:24:50 UTC |
7.0.2 | 2021-08-31 11:30:38 UTC |
7.0.1 | 2021-06-30 21:12:11 UTC |
7.0.0 | 2021-05-24 22:55:02 UTC |
6.0.0 | 2021-05-18 13:14:26 UTC |
5.1.3 | 2021-05-18 12:08:48 UTC |
5.1.2 | 2021-04-22 09:18:47 UTC |
5.1.1 | 2021-03-29 17:47:28 UTC |
5.1.0 | 2021-03-01 15:37:02 UTC |
5.0.3 | 2021-01-24 08:51:55 UTC |
5.0.2 | 2021-01-22 10:13:35 UTC |
5.0.0 | 2021-01-13 21:58:55 UTC |
4.0.1 | 2021-01-12 11:48:53 UTC |
4.0.0 | 2021-01-07 03:54:03 UTC |
3.7.0 | 2020-12-08 09:26:58 UTC |
3.6.0 | 2020-12-07 10:13:27 UTC |
3.5.0 | 2020-12-06 11:47:33 UTC |
3.4.2 | 2020-09-28 11:24:16 UTC |
3.4.1 | 2020-07-23 09:54:51 UTC |
显示 37 个版本中最新的 20 个。 JSON
版本兼容性
声明支持各运行时版本的最新稳定版本(依据每个版本发布的要求)。
| 运行时 | 最新兼容版本 |
|---|---|
node 16 | 8.0.1 |
node 18 | 8.0.1 |
node 20 | 8.0.1 |
node 22 | 8.0.1 |
node 24 | 8.0.1 |
把这些数据交给你的 AI 智能体
Vigia 是免费的 MCP 服务器:你的编程智能体在写代码之前就能检查版本、不兼容变更和安全漏洞。无需注册,无需 API 密钥。
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
添加到 Cursor添加到 VS Code★ 在 GitHub 上加星
任何其他 MCP 客户端
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }常见问题
@testing-library/react-hooks 的最新版本是什么?
@testing-library/react-hooks 的最新稳定版本是 8.0.1,发布于 2022-06-18。Vigia 于 2026-11-12 核实。
如何安装 @testing-library/react-hooks 的最新版本?
运行 npm install @testing-library/react-hooks@latest。最新稳定版本是 8.0.1(2026-11-12 核实)。
@testing-library/react-hooks 是否已弃用?
否。注册表中 @testing-library/react-hooks 未被标记为已弃用。
@testing-library/react-hooks 需要哪个版本的 Node.js?
@testing-library/react-hooks 8.0.1 声明的要求为:{"node":">=12"}。
@testing-library/react-hooks 8.0.1 是否存在已知漏洞?
根据 Vigia 检查的数据,没有已知安全公告影响 @testing-library/react-hooks 8.0.1。
@testing-library/react-hooks 是否仍在维护?
@testing-library/react-hooks 在过去 12 个月内发布了 0 个稳定版本,最近一次在 1608 天前。活跃度:停滞。
观察到的变更
自 Vigia 开始跟踪此软件包以来,尚未观察到变更。
相关软件包
- @types/react
- react
- react-dom
- react-test-renderer
- unist-util-remove
- @react-native-community/cli-types
- @react-email/code-inline
- left-pad
- vercel
- @types/draco3d
- unix-dgram
- @types/command-line-usage
- @csstools/postcss-logical-overflow
- @react-aria/tabs
- standardwebhooks
- @semantic-release/npm
用于 README 的徽章
展示此软件包的最新版本、维护状态以及是否已弃用。复制 Markdown:
[](https://vigia.coredls.cloud/npm/@testing-library/react-hooks) [](https://vigia.coredls.cloud/npm/@testing-library/react-hooks) [](https://vigia.coredls.cloud/npm/@testing-library/react-hooks)
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/@testing-library/react-hooks
GET https://vigia.coredls.cloud/v1/packages/npm/@testing-library/react-hooks/versions/{version}