npm · npm:ts-pattern
ts-pattern active
The exhaustive Pattern Matching library for TypeScript.
The latest stable version of ts-pattern is 5.9.2, published on 2026-10-14. Verified by Vigia on 2026-11-12.
| Latest stable version | 5.9.2 |
|---|---|
| Published | 2026-10-14 09:03:33 UTC |
| Install | npm install ts-pattern@latest |
| Requires (engines) | none declared |
| Peer dependencies | — |
| Dist-tags | next: 5.1.1-rc.0 test: 4.2.4-test.1 latest: 5.9.2 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-12 13:51:07 UTC |
| Sources | api.deps.dev, registry.npmjs.org, registry.npmjs.org |
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-10-14 09:03:33 UTC · 29 days ago |
| Stable releases in the last 12 months | 2 |
| Published versions | 161 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
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 |
Showing the 20 most recent of 98 versions. JSON
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of ts-pattern?
The latest stable version of ts-pattern is 5.9.2, published on 2026-10-14. Verified by Vigia on 2026-11-12.
How do I install the latest version of ts-pattern?
Run npm install ts-pattern@latest. The latest stable version is 5.9.2 (verified 2026-11-12).
Is ts-pattern deprecated?
No. ts-pattern is not marked as deprecated in the registry.
Which Node.js version does ts-pattern require?
ts-pattern 5.9.2 does not declare a Node.js version requirement.
Does ts-pattern 5.9.2 have known vulnerabilities?
No known advisories affect ts-pattern 5.9.2 according to the data Vigia checks.
Is ts-pattern still maintained?
ts-pattern published 2 stable releases in the last 12 months; the most recent was 29 days ago. Activity: active.
Observed changes
- 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
Related packages
- @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
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/npm/ts-pattern) [](https://vigia.coredls.cloud/npm/ts-pattern) [](https://vigia.coredls.cloud/npm/ts-pattern)
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/ts-pattern
GET https://vigia.coredls.cloud/v1/packages/npm/ts-pattern/versions/{version}