Aggiornare find-up da 7.x a 8.x
Confronto dell’API pubblica di find-up 7.0.0 e 8.0.0, calcolato automaticamente dai tipi TypeScript. Una firma modificata è una possibile modifica incompatibile, non una certezza.
Riepilogo
| Percorsi di import rimossi | 0 |
|---|---|
| Export rimossi | 2 |
| Firme modificate | 5 |
| Membri di classi o interfacce rimossi | 0 |
| Membri di classi o interfacce modificati | 0 |
| Nuove deprecazioni | 0 |
| Requisiti cambiati (engines, dipendenze peer) | 1 |
| Nuovi export | 3 |
Export rimossi
| import | export | kind | Prima |
|---|---|---|---|
find-up | pathExists | function | (path: string): Promise<boolean> |
find-up | pathExistsSync | function | (path: string): boolean |
Firme modificate
| export | Prima | Dopo |
|---|---|---|
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[] |
Membri di classi o interfacce rimossi
Nessuna rilevata.
Membri di classi o interfacce modificati
Nessuna rilevata.
Nuove deprecazioni
Nessuna rilevata.
Requisiti cambiati (engines, dipendenze peer)
| Prima | Dopo | |
|---|---|---|
engines.node | >=18 | >=20 |
Nuovi export (3)
| import | export | kind |
|---|---|---|
find-up | findDown | function |
find-up | findDownSync | function |
find-up | FindDownOptions | type |
Domande frequenti
Quali sono le modifiche incompatibili aggiornando find-up da 7 a 8?
Tra find-up 7.0.0 e 8.0.0, Vigia ha trovato 2 export rimossi, 5 firme modificate e 0 membri di classi o interfacce rimossi o modificati.
Cosa è stato deprecato in find-up 8?
0 export o membri risultano ora deprecati in find-up 8.0.0.
Per gli agenti
GET https://vigia.coredls.cloud/v1/packages/npm/find-up/upgrade?from=7.0.0&to=8.0.0