Vigia

将 minipass 从 6.x 升级到 7.x

根据 TypeScript 类型自动比较 minipass 6.0.2 与 7.1.3 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。

概要

已删除的导入路径0
已删除的导出0
已修改的签名0
已删除的类或接口成员1
已修改的类或接口成员8
新增弃用3
要求变化(engines、peer 依赖)0
新增导出7

已删除的导出

未发现。

已修改的签名

未发现。

已删除的类或接口成员

memberimport之前
Minipass.onceminipass<Event extends keyof Events>(ev: Event, handler: (...args: Events[Event]) => any): Minipass<RType, WType, Events>

已修改的类或接口成员

member之前之后
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

新增弃用

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

要求变化(engines、peer 依赖)

未发现。

新增导出 (7)
importexportkind
minipassSDtype
minipassPipeclass
minipassisStreamvariable
minipassisReadablevariable
minipassisWritablevariable
minipassPipeOptionsinterface
minipassPipeProxyErrorsclass

常见问题

将 minipass 从 6 升级到 7 有哪些不兼容变更?

在 minipass 6.0.2 与 7.1.3 之间,Vigia 发现 0 个已删除的导出、0 个已修改的签名,以及 9 个已删除或修改的类或接口成员。

minipass 7 中弃用了哪些内容?

minipass 7.1.3 中有 3 个导出或成员新被标记为弃用。

供智能体使用

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