Vigia

Оновлення ts-api-utils з 1.x до 2.x

Порівняння публічного API ts-api-utils 1.4.3 і 2.5.0, обчислене автоматично за їхніми типами TypeScript. Змінена сигнатура — можлива несумісна зміна, а не гарантія.

Підсумок

Видалені шляхи імпорту0
Видалені експорти6
Змінені сигнатури3
Видалені члени класів або інтерфейсів0
Змінені члени класів або інтерфейсів0
Нові застарівання4
Зміни вимог (engines, peer-залежності)2
Нові експорти6

Видалені експорти

importexportkindБуло
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

Змінені сигнатури

exportБулоСтало
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[]

Видалені члени класів або інтерфейсів

Не виявлено.

Змінені члени класів або інтерфейсів

Не виявлено.

Нові застарівання

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.

Зміни вимог (engines, peer-залежності)

БулоСтало
engines.node>=16>=18.12
peerDependencies.typescript>=4.2.0>=4.8.4
Нові експорти (6)
importexportkind
ts-api-utilsCommenttype
ts-api-utilsiterateTokensfunction
ts-api-utilsiterateCommentsfunction
ts-api-utilstypeConstituentsfunction
ts-api-utilsunionConstituentsfunction
ts-api-utilsintersectionConstituentsfunction

Поширені запитання

Які несумісні зміни під час оновлення ts-api-utils з 1 до 2?

Між ts-api-utils 1.4.3 і 2.5.0 Vigia знайшла видалених експортів: 6, змінених сигнатур: 3, видалених або змінених членів класів та інтерфейсів: 0.

Що застаріло в ts-api-utils 2?

У ts-api-utils 2.5.0 новими застарілими позначено експортів або членів: 4.

Для агентів

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