Passer de find-up 7.x à 8.x
Comparaison de l’API publique de find-up 7.0.0 et 8.0.0, calculée automatiquement à partir de leurs types TypeScript. Une signature modifiée est un changement incompatible possible, pas une certitude.
Résumé
| Chemins d’importation supprimés | 0 |
|---|---|
| Exports supprimés | 2 |
| Signatures modifiées | 5 |
| Membres de classes ou d’interfaces supprimés | 0 |
| Membres de classes ou d’interfaces modifiés | 0 |
| Nouvelles dépréciations | 0 |
| Changements d’exigences (engines, dépendances peer) | 1 |
| Nouveaux exports | 3 |
Exports supprimés
| import | export | kind | Avant |
|---|---|---|---|
find-up | pathExists | function | (path: string): Promise<boolean> |
find-up | pathExistsSync | function | (path: string): boolean |
Signatures modifiées
| export | Avant | Après |
|---|---|---|
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[] |
Membres de classes ou d’interfaces supprimés
Aucun détecté.
Membres de classes ou d’interfaces modifiés
Aucun détecté.
Nouvelles dépréciations
Aucun détecté.
Changements d’exigences (engines, dépendances peer)
| Avant | Après | |
|---|---|---|
engines.node | >=18 | >=20 |
Nouveaux exports (3)
| import | export | kind |
|---|---|---|
find-up | findDown | function |
find-up | findDownSync | function |
find-up | FindDownOptions | type |
Questions fréquentes
Quels sont les changements incompatibles en passant de find-up 7 à 8 ?
Entre find-up 7.0.0 et 8.0.0, Vigia a trouvé 2 exports supprimés, 5 signatures modifiées et 0 membres de classes ou d’interfaces supprimés ou modifiés.
Qu’est-ce qui a été déprécié dans find-up 8 ?
0 exports ou membres sont désormais marqués comme dépréciés dans find-up 8.0.0.
Pour les agents
GET https://vigia.coredls.cloud/v1/packages/npm/find-up/upgrade?from=7.0.0&to=8.0.0