Upgrading path-to-regexp from 8.x to 9.x
Comparison of the public API of path-to-regexp 8.4.2 and 9.0.0, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.
Summary
| Removed import paths | 0 |
|---|---|
| Removed exports | 1 |
| Changed signatures | 3 |
| Removed class or interface members | 0 |
| Changed class or interface members | 3 |
| Newly deprecated | 0 |
| Requirement changes (engines, peer dependencies) | 0 |
| New exports | 0 |
Removed exports
| import | export | kind | Before |
|---|---|---|---|
path-to-regexp | Keys | type | Key[] |
Changed signatures
| export | Before | After |
|---|---|---|
path-to-regexp · Token | Text | Parameter | Wildcard | Group | Parameter | Wildcard | Text | Group |
path-to-regexp · TokenData | class | interface |
path-to-regexp · pathToRegexp | (path: Path | Path[], options?: (PathToRegexpOptions & ParseOptions) | undefined): { regexp: RegExp; keys: Keys; } | (path: Path | Path[], options?: (PathToRegexpOptions & ParseOptions) | undefined): { regexp: RegExp; keys: Key[]; } |
Removed class or interface members
None detected.
Changed class or interface members
| member | Before | After |
|---|---|---|
Group.tokens | Token[] | readonly Token[] |
TokenData.tokens | Token[] | readonly Token[] |
TokenData.constructor | (tokens: Token[], originalPath?: string | undefined): TokenData | |
Newly deprecated
None detected.
Requirement changes (engines, peer dependencies)
None detected.
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 are the breaking changes when upgrading path-to-regexp from 8 to 9?
Between path-to-regexp 8.4.2 and 9.0.0, Vigia found 1 removed exports, 3 changed signatures and 3 removed or changed class or interface members.
What became deprecated in path-to-regexp 9?
0 exports or members are newly marked as deprecated in path-to-regexp 9.0.0.
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/path-to-regexp/upgrade?from=8.4.2&to=9.0.0