npm · npm:ts-pattern
ts-pattern 活跃
The exhaustive Pattern Matching library for TypeScript.
ts-pattern 的最新稳定版本是 5.9.2,发布于 2026-10-14。Vigia 于 2026-11-12 核实。
| 最新稳定版本 | 5.9.2 |
|---|---|
| 发布时间 | 2026-10-14 09:03:33 UTC |
| 安装 | npm install ts-pattern@latest |
| 运行要求(engines) | 未声明 |
| Peer 依赖 | — |
| Dist 标签 | next: 5.1.1-rc.0 test: 4.2.4-test.1 latest: 5.9.2 |
| 许可证 | MIT |
| 最新版本的安全公告 | 暂无已知 |
| 最近核实 | 2026-11-12 13:51:07 UTC |
| 来源 | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
维护情况
| 活跃度 | 活跃 |
|---|---|
| 最近的稳定版本 | 2026-10-14 09:03:33 UTC · 29 天前 |
| 过去 12 个月的稳定版本数 | 2 |
| 已发布版本数 | 161 |
仅根据发布时间估算,不反映对 issue 或安全问题的响应速度。
版本历史
| 版本 | 发布时间 |
|---|---|
5.9.2 | 2026-10-14 09:03:33 UTC |
5.9.1 | 2026-10-13 12:30:08 UTC |
5.9.0 | 2025-10-26 13:58:13 UTC |
5.8.0 | 2025-07-26 13:43:55 UTC |
5.7.1 | 2025-05-18 13:44:09 UTC |
5.7.0 | 2025-03-28 20:34:38 UTC |
5.6.2 | 2025-01-21 02:48:06 UTC |
5.6.1 | 2025-01-19 15:15:13 UTC |
5.6.0 | 2024-12-15 17:39:24 UTC |
5.5.0 | 2024-10-14 03:05:25 UTC |
5.4.0 | 2024-09-25 22:16:49 UTC |
5.3.1 | 2024-08-11 20:25:37 UTC |
5.3.0 | 2024-08-11 20:20:59 UTC |
5.2.0 | 2024-06-12 12:30:26 UTC |
5.1.2 | 2024-05-23 14:43:04 UTC |
5.1.1 | 2024-04-06 21:42:33 UTC |
5.1.0 | 2024-03-31 20:39:33 UTC |
5.0.8 | 2024-02-15 15:20:14 UTC |
5.0.7 | 2024-02-15 15:17:48 UTC |
5.0.6 | 2023-12-03 02:25:01 UTC |
显示 98 个版本中最新的 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" } } }常见问题
ts-pattern 的最新版本是什么?
ts-pattern 的最新稳定版本是 5.9.2,发布于 2026-10-14。Vigia 于 2026-11-12 核实。
如何安装 ts-pattern 的最新版本?
运行 npm install ts-pattern@latest。最新稳定版本是 5.9.2(2026-11-12 核实)。
ts-pattern 是否已弃用?
否。注册表中 ts-pattern 未被标记为已弃用。
ts-pattern 需要哪个版本的 Node.js?
ts-pattern 5.9.2 未声明对 Node.js 版本的要求。
ts-pattern 5.9.2 是否存在已知漏洞?
根据 Vigia 检查的数据,没有已知安全公告影响 ts-pattern 5.9.2。
ts-pattern 是否仍在维护?
ts-pattern 在过去 12 个月内发布了 2 个稳定版本,最近一次在 29 天前。活跃度:活跃。
观察到的变更
- Wed Oct 14 2026 10:39:46 GM +0000 (Coordinated Universal Time) — released 5.9.1 → 5.9.2
- ue Oct 13 2026 12:37:42 GMT+0000 (Coordinated Universal Time) — released 5.9.0 → 5.9.1
相关软件包
- @angular/common
- @storybook/types
- mpath
- sift
- @graphql-codegen/core
- @octokit/webhooks-methods
- is-root
- default-require-extensions
- hast-util-to-string
- @oxc-parser/binding-linux-x64-musl
- @lit/reactive-element
- lmdb
用于 README 的徽章
展示此软件包的最新版本、维护状态以及是否已弃用。复制 Markdown:
[](https://vigia.coredls.cloud/npm/ts-pattern) [](https://vigia.coredls.cloud/npm/ts-pattern) [](https://vigia.coredls.cloud/npm/ts-pattern)
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/ts-pattern
GET https://vigia.coredls.cloud/v1/packages/npm/ts-pattern/versions/{version}