Vigia

Memperbarui ts-api-utils dari 1.x ke 2.x

Perbandingan API publik ts-api-utils 1.4.3 dan 2.5.0, dihitung otomatis dari tipe TypeScript-nya. Tanda tangan yang berubah adalah kemungkinan perubahan tidak kompatibel, bukan kepastian.

Ringkasan

Jalur impor yang dihapus0
Ekspor yang dihapus6
Tanda tangan yang berubah3
Anggota kelas atau antarmuka yang dihapus0
Anggota kelas atau antarmuka yang berubah0
Baru ditandai usang4
Perubahan persyaratan (engines, dependensi peer)2
Ekspor baru6

Ekspor yang dihapus

importexportkindSebelum
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

Tanda tangan yang berubah

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

Anggota kelas atau antarmuka yang dihapus

Tidak ada yang terdeteksi.

Anggota kelas atau antarmuka yang berubah

Tidak ada yang terdeteksi.

Baru ditandai usang

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.

Perubahan persyaratan (engines, dependensi peer)

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

Pertanyaan umum

Apa saja perubahan tidak kompatibel saat memperbarui ts-api-utils dari 1 ke 2?

Antara ts-api-utils 1.4.3 dan 2.5.0, Vigia menemukan 6 ekspor yang dihapus, 3 tanda tangan yang berubah, dan 0 anggota kelas atau antarmuka yang dihapus atau berubah.

Apa yang ditandai usang di ts-api-utils 2?

4 ekspor atau anggota baru ditandai usang di ts-api-utils 2.5.0.

Untuk agen

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