npm · npm:react-switch
react-switch 活跃
Draggable toggle-switch component for react
react-switch 的最新稳定版本是 7.1.0,发布于 2024-12-14。Vigia 于 2026-11-12 核实。
| 最新稳定版本 | 7.1.0 |
|---|---|
| 发布时间 | 2024-12-14 17:23:28 UTC |
| 安装 | npm install react-switch@latest |
| 运行要求(engines) | 未声明 |
| Peer 依赖 | react ^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 react-dom ^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 |
| Dist 标签 | beta: 7.0.0 alpha: 4.0.0-alpha.0 latest: 7.1.0 experimental: 7.0.0-experimental.0 |
| 许可证 | MIT |
| 最新版本的安全公告 | 暂无已知 |
| 最近核实 | 2026-11-12 13:19:19 UTC |
| 来源 | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
维护情况
| 活跃度 | 停滞 |
|---|---|
| 最近的稳定版本 | 2024-12-14 17:23:28 UTC · 698 天前 |
| 过去 12 个月的稳定版本数 | 0 |
| 已发布版本数 | 34 |
仅根据发布时间估算,不反映对 issue 或安全问题的响应速度。
版本历史
| 版本 | 发布时间 |
|---|---|
7.1.0 | 2024-12-14 17:23:28 UTC |
7.0.0 | 2022-06-09 09:30:25 UTC |
6.1.0 | 2022-06-08 13:36:29 UTC |
6.0.0 | 2021-01-07 18:48:37 UTC |
5.0.1 | 2019-07-16 18:24:22 UTC |
5.0.0 | 2019-04-22 16:23:08 UTC |
4.1.0 | 2019-02-17 11:42:02 UTC |
4.0.1 | 2019-01-30 22:46:18 UTC |
4.0.0 | 2019-01-30 21:35:19 UTC |
3.0.4 | 2018-06-15 22:28:01 UTC |
3.0.3 | 2018-06-15 21:16:41 UTC |
3.0.2 | 2018-06-07 21:35:02 UTC |
3.0.1 | 2018-06-07 20:57:46 UTC |
3.0.0 | 2018-06-07 13:02:32 UTC |
2.3.2 | 2018-04-20 13:28:02 UTC |
2.3.1 | 2018-04-08 11:09:06 UTC |
2.3.0 | 2017-12-27 09:01:38 UTC |
2.2.0 | 2017-12-19 14:02:32 UTC |
2.1.0 | 2017-11-22 09:09:38 UTC |
2.0.1 | 2017-11-03 07:38:38 UTC |
显示 25 个版本中最新的 20 个。 JSON
把这些数据交给你的 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" } } }常见问题
react-switch 的最新版本是什么?
react-switch 的最新稳定版本是 7.1.0,发布于 2024-12-14。Vigia 于 2026-11-12 核实。
如何安装 react-switch 的最新版本?
运行 npm install react-switch@latest。最新稳定版本是 7.1.0(2026-11-12 核实)。
react-switch 是否已弃用?
否。注册表中 react-switch 未被标记为已弃用。
react-switch 需要哪个版本的 Node.js?
react-switch 7.1.0 未声明对 Node.js 版本的要求。
react-switch 7.1.0 是否存在已知漏洞?
根据 Vigia 检查的数据,没有已知安全公告影响 react-switch 7.1.0。
react-switch 是否仍在维护?
react-switch 在过去 12 个月内发布了 0 个稳定版本,最近一次在 698 天前。活跃度:停滞。
观察到的变更
自 Vigia 开始跟踪此软件包以来,尚未观察到变更。
相关软件包
- react
- react-dom
- postcss-for
- brace
- sharp-ico
- tap
- @inversifyjs/prototype-utils
- @shikijs/twoslash
- node-sql-parser
- @strapi/utils
- @cosmjs/stargate
- @types/json-diff
- @types/react-simple-maps
- @types/vfile
用于 README 的徽章
展示此软件包的最新版本、维护状态以及是否已弃用。复制 Markdown:
[](https://vigia.coredls.cloud/npm/react-switch) [](https://vigia.coredls.cloud/npm/react-switch) [](https://vigia.coredls.cloud/npm/react-switch)
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/react-switch
GET https://vigia.coredls.cloud/v1/packages/npm/react-switch/versions/{version}