Vigia

Nâng cấp minipass từ 6.x lên 7.x

So sánh API công khai của minipass 6.0.2 và 7.1.3, đượ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óa0
Chữ ký thay đổi0
Thành viên lớp hoặc interface bị xóa1
Thành viên lớp hoặc interface thay đổi8
Mới bị ngừng hỗ trợ3
Thay đổi yêu cầu (engines, phụ thuộc peer)0
Export mới7

Export bị xóa

Không phát hiện.

Chữ ký thay đổi

Không phát hiện.

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

memberimportTrước
Minipass.onceminipass<Event extends keyof Events>(ev: Event, handler: (...args: Events[Event]) => any): Minipass<RType, WType, Events>

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

memberTrướcSau
Minipass.end(cb?: (() => void) | undefined): Minipass<RType, WType, Events> | (chunk: any, cb?: (() => void) | undefined): Minipass<RType, WType, Events> | (chunk: any, encoding?: any, cb?: (() => void) | undefined): Minipass<RType, WType, Events>(cb?: (() => void) | undefined): Minipass<RType, WType, Events> | (chunk: WType, cb?: (() => void) | undefined): Minipass<RType, WType, Events> | (chunk: WType, encoding?: any, cb?: (() => void) | undefined): Minipass<RType, WType, Events>
Minipass.emit<Event extends keyof Events>(ev: Event, ...data: Events[Event]): boolean<Event extends keyof Events>(ev: Event, ...args: Events[Event]): boolean
Minipass.read(size?: number | undefined): RType(n?: number | null | undefined): RType | null
Minipass.concat(): any(): Promise<RType>
Minipass.collect(): Promise<RType[]>(): Promise<RType[] & { dataLength: number; }>
Minipass.destroy(er?: any): void(er?: unknown): Minipass<RType, WType, Events>
Minipass.constructor<RType extends unknown = Buffer, WType extends unknown = any, Events extends Minipass.Events<RType> = Events<RType>>(...args: RType extends Buffer ? [] | [Options<RType>] : [Options<RType>]): Minipass<RType, WType, Events><RType extends unknown = Buffer, WType extends unknown = any, Events extends Minipass.Events<RType> = Events<RType>>(...args: [ObjectModeOptions] | (RType extends Buffer ? [] | [Options<RType>] : [Options<RType>])): Minipass<RType, WType, Events>
Minipass.static isStream(stream: any): stream is any(s: any): s is any

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

export@deprecated
minipass · Minipass.encoding- This is a read only property
minipass · Minipass.objectMode- This is a read-only property
minipass · Minipass.static isStream—

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

Không phát hiện.

Export mới (7)
importexportkind
minipassSDtype
minipassPipeclass
minipassisStreamvariable
minipassisReadablevariable
minipassisWritablevariable
minipassPipeOptionsinterface
minipassPipeProxyErrorsclass

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

Nâng cấp minipass từ 6 lên 7 có những thay đổi không tương thích nào?

Giữa minipass 6.0.2 và 7.1.3, Vigia tìm thấy 0 export bị xóa, 0 chữ ký thay đổi và 9 thành viên lớp hoặc interface bị xóa hay thay đổi.

Những gì bị ngừng hỗ trợ trong minipass 7?

3 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong minipass 7.1.3.

Dành cho tác tử

GET https://vigia.coredls.cloud/v1/packages/npm/minipass/upgrade?from=6.0.2&to=7.1.3