Actualizar ts-api-utils de 1.x a 2.x
Comparación de la API pública de ts-api-utils 1.4.3 y 2.5.0, calculada automáticamente a partir de sus tipos TypeScript. Una firma modificada es un posible cambio incompatible, no una certeza.
Resumen
| Rutas de importación eliminadas | 0 |
|---|---|
| Exports eliminados | 6 |
| Firmas modificadas | 3 |
| Miembros de clases o interfaces eliminados | 0 |
| Miembros de clases o interfaces modificados | 0 |
| Nuevas deprecaciones | 4 |
| Cambios de requisitos (engines, dependencias peer) | 2 |
| Exports nuevos | 6 |
Exports eliminados
| import | export | kind | Antes |
|---|---|---|---|
ts-api-utils | isInputFiles | function | (node: ts.Node): node is ts.InputFiles |
ts-api-utils | isUnparsedPrologue | function | (node: ts.Node): node is ts.UnparsedPrologue |
ts-api-utils | isUnknownLiteralType | function | (type: ts.Type): type is UnknownLiteralType |
ts-api-utils | isUnparsedSourceText | function | (node: ts.Node): node is ts.UnparsedSourceText |
ts-api-utils | isUnparsedSyntheticReference | function | (node: ts.Node): node is ts.UnparsedSyntheticReference |
ts-api-utils | isTransientSymbolLinksFlagSet | function | (links: ts.TransientSymbolLinks, flag: ts.CheckFlags): boolean |
Firmas modificadas
| export | Antes | Después |
|---|---|---|
ts-api-utils · typeParts | (type: ts.Type): ts.Type[] | (type: ts.Type): ts.Type[] |
ts-api-utils · unionTypeParts | (type: ts.Type): ts.Type[] | (type: ts.Type): ts.Type[] |
ts-api-utils · intersectionTypeParts | (type: ts.Type): ts.Type[] | (type: ts.Type): ts.Type[] |
Miembros de clases o interfaces eliminados
No se detectaron.
Miembros de clases o interfaces modificados
No se detectaron.
Nuevas deprecaciones
| export | @deprecated |
|---|---|
ts-api-utils · typeParts | Use {@link typeConstituents} instead. |
ts-api-utils · unionTypeParts | Use {@link unionConstituents} instead. |
ts-api-utils · intersectionTypeParts | Use {@link intersectionConstituents} instead. |
ts-api-utils · symbolHasReadonlyDeclaration | This is not used by any consumers known by ts-api-utils, and so the public export will be removed in a future major version. |
Cambios de requisitos (engines, dependencias peer)
| Antes | Después | |
|---|---|---|
engines.node | >=16 | >=18.12 |
peerDependencies.typescript | >=4.2.0 | >=4.8.4 |
Exports nuevos (6)
| import | export | kind |
|---|---|---|
ts-api-utils | Comment | type |
ts-api-utils | iterateTokens | function |
ts-api-utils | iterateComments | function |
ts-api-utils | typeConstituents | function |
ts-api-utils | unionConstituents | function |
ts-api-utils | intersectionConstituents | function |
Dale estos datos a tu agente de IA
Vigia es un servidor MCP gratuito: tu agente de programación verifica versiones, cambios incompatibles y vulnerabilidades antes de escribir código. Sin registro ni clave de API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Agregar a CursorAgregar a VS Code★ Estrella en GitHub
Cualquier otro cliente MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill para agentes (SKILL.md): le indica al agente cuándo usar Vigia · GitHub Action para pull requests
Preguntas frecuentes
¿Cuáles son los cambios incompatibles al actualizar ts-api-utils de 1 a 2?
Entre ts-api-utils 1.4.3 y 2.5.0, Vigia encontró 6 exports eliminados, 3 firmas modificadas y 0 miembros de clases o interfaces eliminados o modificados.
¿Qué quedó deprecado en ts-api-utils 2?
4 exports o miembros quedaron marcados como deprecados en ts-api-utils 2.5.0.
Para agentes
GET https://vigia.coredls.cloud/v1/packages/npm/ts-api-utils/upgrade?from=1.4.3&to=2.5.0