Nâng cấp find-up từ 7.x lên 8.x
So sánh API công khai của find-up 7.0.0 và 8.0.0, được tính tự động từ kiểu TypeScript. Chữ ký thay đổi là thay đổi có thể không tương thích, không phải điều chắc chắn.
Tóm tắt
| Đường dẫn import bị xóa | 0 |
|---|---|
| Export bị xóa | 2 |
| Chữ ký thay đổi | 5 |
| Thành viên lớp hoặc interface bị xóa | 0 |
| Thành viên lớp hoặc interface thay đổi | 0 |
| Mới bị ngừng hỗ trợ | 0 |
| Thay đổi yêu cầu (engines, phụ thuộc peer) | 1 |
| Export mới | 3 |
Export bị xóa
| import | export | kind | Trước |
|---|---|---|---|
find-up | pathExists | function | (path: string): Promise<boolean> |
find-up | pathExistsSync | function | (path: string): boolean |
Chữ ký thay đổi
| export | Trước | Sau |
|---|---|---|
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[] |
Thành viên lớp hoặc interface bị xóa
Không phát hiện.
Thành viên lớp hoặc interface thay đổi
Không phát hiện.
Mới bị ngừng hỗ trợ
Không phát hiện.
Thay đổi yêu cầu (engines, phụ thuộc peer)
| Trước | Sau | |
|---|---|---|
engines.node | >=18 | >=20 |
Export mới (3)
| import | export | kind |
|---|---|---|
find-up | findDown | function |
find-up | findDownSync | function |
find-up | FindDownOptions | type |
Câu hỏi thường gặp
Nâng cấp find-up từ 7 lên 8 có những thay đổi không tương thích nào?
Giữa find-up 7.0.0 và 8.0.0, Vigia tìm thấy 2 export bị xóa, 5 chữ ký thay đổi và 0 thành viên lớp hoặc interface bị xóa hay thay đổi.
Những gì bị ngừng hỗ trợ trong find-up 8?
0 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong find-up 8.0.0.
Dành cho tác tử
GET https://vigia.coredls.cloud/v1/packages/npm/find-up/upgrade?from=7.0.0&to=8.0.0