Aktualizacja minipass z 6.x do 7.x
Porównanie publicznego API minipass 6.0.2 i 7.1.3, obliczone automatycznie na podstawie typów TypeScript. Zmieniona sygnatura to możliwa zmiana niekompatybilna, a nie pewność.
Podsumowanie
| Usunięte ścieżki importu | 0 |
|---|---|
| Usunięte eksporty | 0 |
| Zmienione sygnatury | 0 |
| Usunięte składowe klas lub interfejsów | 1 |
| Zmienione składowe klas lub interfejsów | 8 |
| Nowo wycofane | 3 |
| Zmiany wymagań (engines, zależności peer) | 0 |
| Nowe eksporty | 7 |
Usunięte eksporty
Nie wykryto.
Zmienione sygnatury
Nie wykryto.
Usunięte składowe klas lub interfejsów
| member | import | Przed |
|---|---|---|
Minipass.once | minipass | <Event extends keyof Events>(ev: Event, handler: (...args: Events[Event]) => any): Minipass<RType, WType, Events> |
Zmienione składowe klas lub interfejsów
| member | Przed | Po |
|---|---|---|
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 |
Nowo wycofane
| export | @deprecated |
|---|---|
minipass · Minipass.encoding | - This is a read only property |
minipass · Minipass.objectMode | - This is a read-only property |
minipass · Minipass.static isStream | — |
Zmiany wymagań (engines, zależności peer)
Nie wykryto.
Nowe eksporty (7)
| import | export | kind |
|---|---|---|
minipass | SD | type |
minipass | Pipe | class |
minipass | isStream | variable |
minipass | isReadable | variable |
minipass | isWritable | variable |
minipass | PipeOptions | interface |
minipass | PipeProxyErrors | class |
Najczęściej zadawane pytania
Jakie są zmiany niekompatybilne przy aktualizacji minipass z 6 do 7?
Między minipass 6.0.2 a 7.1.3 Vigia znalazła 0 usuniętych eksportów, 0 zmienionych sygnatur i 9 usuniętych lub zmienionych składowych klas lub interfejsów.
Co zostało wycofane w minipass 7?
3 eksportów lub składowych oznaczono w minipass 7.1.3 jako wycofane.
Dla agentów
GET https://vigia.coredls.cloud/v1/packages/npm/minipass/upgrade?from=6.0.2&to=7.1.3