Vigia

Upgrading ts-api-utils from 1.x to 2.x

Comparison of the public API of ts-api-utils 1.4.3 and 2.5.0, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.

Summary

Removed import paths0
Removed exports6
Changed signatures3
Removed class or interface members0
Changed class or interface members0
Newly deprecated4
Requirement changes (engines, peer dependencies)2
New exports6

Removed exports

importexportkindBefore
ts-api-utilsisInputFilesfunction(node: ts.Node): node is ts.InputFiles
ts-api-utilsisUnparsedProloguefunction(node: ts.Node): node is ts.UnparsedPrologue
ts-api-utilsisUnknownLiteralTypefunction(type: ts.Type): type is UnknownLiteralType
ts-api-utilsisUnparsedSourceTextfunction(node: ts.Node): node is ts.UnparsedSourceText
ts-api-utilsisUnparsedSyntheticReferencefunction(node: ts.Node): node is ts.UnparsedSyntheticReference
ts-api-utilsisTransientSymbolLinksFlagSetfunction(links: ts.TransientSymbolLinks, flag: ts.CheckFlags): boolean

Changed signatures

exportBeforeAfter
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[]

Removed class or interface members

None detected.

Changed class or interface members

None detected.

Newly deprecated

export@deprecated
ts-api-utils · typePartsUse {@link typeConstituents} instead.
ts-api-utils · unionTypePartsUse {@link unionConstituents} instead.
ts-api-utils · intersectionTypePartsUse {@link intersectionConstituents} instead.
ts-api-utils · symbolHasReadonlyDeclarationThis is not used by any consumers known by ts-api-utils, and so the public export will be removed in a future major version.

Requirement changes (engines, peer dependencies)

BeforeAfter
engines.node>=16>=18.12
peerDependencies.typescript>=4.2.0>=4.8.4
New exports (6)
importexportkind
ts-api-utilsCommenttype
ts-api-utilsiterateTokensfunction
ts-api-utilsiterateCommentsfunction
ts-api-utilstypeConstituentsfunction
ts-api-utilsunionConstituentsfunction
ts-api-utilsintersectionConstituentsfunction

Frequently asked questions

What are the breaking changes when upgrading ts-api-utils from 1 to 2?

Between ts-api-utils 1.4.3 and 2.5.0, Vigia found 6 removed exports, 3 changed signatures and 0 removed or changed class or interface members.

What became deprecated in ts-api-utils 2?

4 exports or members are newly marked as deprecated in ts-api-utils 2.5.0.

For agents

GET https://vigia.coredls.cloud/v1/packages/npm/ts-api-utils/upgrade?from=1.4.3&to=2.5.0