Nâng cấp file-entry-cache từ 10.x lên 11.x
So sánh API công khai của file-entry-cache 10.1.4 và 11.1.5, đượ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 | 0 |
| Chữ ký thay đổi | 5 |
| Thành viên lớp hoặc interface bị xóa | 3 |
| Thành viên lớp hoặc interface thay đổi | 5 |
| Mới bị ngừng hỗ trợ | 0 |
| Thay đổi yêu cầu (engines, phụ thuộc peer) | 0 |
| Export mới | 2 |
Export bị xóa
Không phát hiện.
Chữ ký thay đổi
| export | Trước | Sau |
|---|---|---|
file-entry-cache · create | (cacheId: string, cacheDirectory?: string | undefined, useCheckSum?: boolean | undefined, currentWorkingDirectory?: string | undefined): FileEntryCache | (cacheId: string, cacheDirectory?: string | undefined, options?: CreateOptions | undefined): FileEntryCache |
file-entry-cache · createFromFile | (filePath: string, useCheckSum?: boolean | undefined, currentWorkingDirectory?: string | undefined): FileEntryCache | (filePath: string, options?: CreateOptions | undefined): FileEntryCache |
file-entry-cache · FileDescriptorMeta | { size?: number | undefined; mtime?: number | undefined; hash?: string | undefined; data?: unknown; } | { [key: string]: unknown; size?: number | undefined; mtime?: number | undefined; hash?: string | undefined; data?: unknown; } |
file-entry-cache · FileEntryCacheOptions | { currentWorkingDirectory?: string | undefined; useModifiedTime?: boolean | undefined; useCheckSum?: boolean | undefined; hashAlgorithm?: string | undefined; cache?: any; } | { useModifiedTime?: boolean | undefined; useCheckSum?: boolean | undefined; hashAlgorithm?: string | undefined; cwd?: string | undefined; restrictAccessToCwd?: boolean | undefined; useAbsolutePathAsKey?: boolean | undefined; logger?: ILogger | undefined; cache?: any; } |
file-entry-cache · GetFileDescriptorOptions | { useCheckSum?: boolean | undefined; useModifiedTime?: boolean | undefined; currentWorkingDirectory?: string | undefined; } | { useCheckSum?: boolean | undefined; useModifiedTime?: boolean | undefined; } |
Thành viên lớp hoặc interface bị xóa
| member | import | Trước |
|---|---|---|
FileEntryCache.renameAbsolutePathKeys | file-entry-cache | (oldPath: string, newPath: string): void |
FileEntryCache.currentWorkingDirectory | file-entry-cache | string | undefined |
FileEntryCache._currentWorkingDirectory | file-entry-cache | any |
Thành viên lớp hoặc interface thay đổi
| member | Trước | Sau |
|---|---|---|
default.static create | (cacheId: string, cacheDirectory?: string | undefined, useCheckSum?: boolean | undefined, currentWorkingDirectory?: string | undefined): FileEntryCache | (cacheId: string, cacheDirectory?: string | undefined, options?: CreateOptions | undefined): FileEntryCache |
default.static createFromFile | (filePath: string, useCheckSum?: boolean | undefined, currentWorkingDirectory?: string | undefined): FileEntryCache | (filePath: string, options?: CreateOptions | undefined): FileEntryCache |
FileEntryCache.removeEntry | (filePath: string, options?: { currentWorkingDirectory?: string | undefined; } | undefined): void | (filePath: string): void |
FileEntryCache.createFileKey | (filePath: string, options?: { currentWorkingDirectory?: string | undefined; } | undefined): string | (filePath: string): string |
FileEntryCache.getAbsolutePath | (filePath: string, options?: { currentWorkingDirectory?: string | undefined; } | undefined): string | (filePath: string): string |
Mới bị ngừng hỗ trợ
Không phát hiện.
Thay đổi yêu cầu (engines, phụ thuộc peer)
Không phát hiện.
Export mới (2)
| import | export | kind |
|---|---|---|
file-entry-cache | ILogger | type |
file-entry-cache | CreateOptions | type |
Câu hỏi thường gặp
Nâng cấp file-entry-cache từ 10 lên 11 có những thay đổi không tương thích nào?
Giữa file-entry-cache 10.1.4 và 11.1.5, Vigia tìm thấy 0 export bị xóa, 5 chữ ký thay đổi và 8 thành viên lớp hoặc interface bị xóa hay thay đổi.
Những gì bị ngừng hỗ trợ trong file-entry-cache 11?
0 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong file-entry-cache 11.1.5.
Dành cho tác tử
GET https://vigia.coredls.cloud/v1/packages/npm/file-entry-cache/upgrade?from=10.1.4&to=11.1.5