Vigia

Upgrading find-up from 7.x to 8.x

Comparison of the public API of find-up 7.0.0 and 8.0.0, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.

Summary

Removed import paths0
Removed exports2
Changed signatures5
Removed class or interface members0
Changed class or interface members0
Newly deprecated0
Requirement changes (engines, peer dependencies)1
New exports3

Removed exports

importexportkindBefore
find-uppathExistsfunction(path: string): Promise<boolean>
find-uppathExistsSyncfunction(path: string): boolean

Changed signatures

exportBeforeAfter
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 · Optionsany{ 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[]

Removed class or interface members

None detected.

Changed class or interface members

None detected.

Newly deprecated

None detected.

Requirement changes (engines, peer dependencies)

BeforeAfter
engines.node>=18>=20
New exports (3)
importexportkind
find-upfindDownfunction
find-upfindDownSyncfunction
find-upFindDownOptionstype

Frequently asked questions

What are the breaking changes when upgrading find-up from 7 to 8?

Between find-up 7.0.0 and 8.0.0, Vigia found 2 removed exports, 5 changed signatures and 0 removed or changed class or interface members.

What became deprecated in find-up 8?

0 exports or members are newly marked as deprecated in find-up 8.0.0.

For agents

GET https://vigia.coredls.cloud/v1/packages/npm/find-up/upgrade?from=7.0.0&to=8.0.0