Vigia

Nâng cấp ts-api-utils từ 1.x lên 2.x

So sánh API công khai của ts-api-utils 1.4.3 và 2.5.0, được tính tự động từ kiểu TypeScript. Chữ ký thay đổi là thay đổi có thể không tương thích, không phải điều chắc chắn.

Tóm tắt

Đường dẫn import bị xóa0
Export bị xóa6
Chữ ký thay đổi3
Thành viên lớp hoặc interface bị xóa0
Thành viên lớp hoặc interface thay đổi0
Mới bị ngừng hỗ trợ4
Thay đổi yêu cầu (engines, phụ thuộc peer)2
Export mới6

Export bị xóa

importexportkindTrước
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

Chữ ký thay đổi

exportTrướcSau
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[]

Thành viên lớp hoặc interface bị xóa

Không phát hiện.

Thành viên lớp hoặc interface thay đổi

Không phát hiện.

Mới bị ngừng hỗ trợ

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.

Thay đổi yêu cầu (engines, phụ thuộc peer)

TrướcSau
engines.node>=16>=18.12
peerDependencies.typescript>=4.2.0>=4.8.4
Export mới (6)
importexportkind
ts-api-utilsCommenttype
ts-api-utilsiterateTokensfunction
ts-api-utilsiterateCommentsfunction
ts-api-utilstypeConstituentsfunction
ts-api-utilsunionConstituentsfunction
ts-api-utilsintersectionConstituentsfunction

Câu hỏi thường gặp

Nâng cấp ts-api-utils từ 1 lên 2 có những thay đổi không tương thích nào?

Giữa ts-api-utils 1.4.3 và 2.5.0, Vigia tìm thấy 6 export bị xóa, 3 chữ ký thay đổi và 0 thành viên lớp hoặc interface bị xóa hay thay đổi.

Những gì bị ngừng hỗ trợ trong ts-api-utils 2?

4 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong ts-api-utils 2.5.0.

Dành cho tác tử

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