Aktualizacja find-up z 7.x do 8.x
Porównanie publicznego API find-up 7.0.0 i 8.0.0, 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 | 2 |
| Zmienione sygnatury | 5 |
| Usunięte składowe klas lub interfejsów | 0 |
| Zmienione składowe klas lub interfejsów | 0 |
| Nowo wycofane | 0 |
| Zmiany wymagań (engines, zależności peer) | 1 |
| Nowe eksporty | 3 |
Usunięte eksporty
| import | export | kind | Przed |
|---|---|---|---|
find-up | pathExists | function | (path: string): Promise<boolean> |
find-up | pathExistsSync | function | (path: string): boolean |
Zmienione sygnatury
| export | Przed | Po |
|---|---|---|
find-up · findUp | (name: string | readonly string[], options?: any): Promise<string | undefined> | (matcher: (directory: string) => Match | Promise<Match>, options?: any): Promise<string | undefined> | (name: string | readonly string[], options?: Options | undefined): Promise<string | undefined> | (matcher: (directory: string) => Match | Promise<Match>, options?: Options | undefined): Promise<string | undefined> |
find-up · Options | any | { readonly stopAt?: string | undefined; readonly type?: "file" | "directory" | "both" | undefined; readonly limit?: number | undefined; } & Omit<LocatePathOptions, "type"> |
find-up · findUpSync | (name: string | readonly string[], options?: any): string | undefined | (matcher: (directory: string) => Match, options?: any): string | undefined | (name: string | readonly string[], options?: Options | undefined): string | undefined | (matcher: (directory: string) => Match, options?: Options | undefined): string | undefined |
find-up · findUpMultiple | (name: string | readonly string[], options?: any): Promise<string[]> | (matcher: (directory: string) => Match | Promise<Match>, options?: any): Promise<string[]> | (name: string | readonly string[], options?: Options | undefined): Promise<string[]> | (matcher: (directory: string) => Match | Promise<Match>, options?: Options | undefined): Promise<string[]> |
find-up · findUpMultipleSync | (name: string | readonly string[], options?: any): string[] | (matcher: (directory: string) => Match, options?: any): string[] | (name: string | readonly string[], options?: Options | undefined): string[] | (matcher: (directory: string) => Match, options?: Options | undefined): string[] |
Usunięte składowe klas lub interfejsów
Nie wykryto.
Zmienione składowe klas lub interfejsów
Nie wykryto.
Nowo wycofane
Nie wykryto.
Zmiany wymagań (engines, zależności peer)
| Przed | Po | |
|---|---|---|
engines.node | >=18 | >=20 |
Nowe eksporty (3)
| import | export | kind |
|---|---|---|
find-up | findDown | function |
find-up | findDownSync | function |
find-up | FindDownOptions | type |
Najczęściej zadawane pytania
Jakie są zmiany niekompatybilne przy aktualizacji find-up z 7 do 8?
Między find-up 7.0.0 a 8.0.0 Vigia znalazła 2 usuniętych eksportów, 5 zmienionych sygnatur i 0 usuniętych lub zmienionych składowych klas lub interfejsów.
Co zostało wycofane w find-up 8?
0 eksportów lub składowych oznaczono w find-up 8.0.0 jako wycofane.
Dla agentów
GET https://vigia.coredls.cloud/v1/packages/npm/find-up/upgrade?from=7.0.0&to=8.0.0