Nâng cấp cosmiconfig từ 9.x lên 10.x
So sánh API công khai của cosmiconfig 9.0.2 và 10.0.1, đượ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 | 2 |
| 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) | 2 |
| Export mới | 0 |
Export bị xóa
Không phát hiện.
Chữ ký thay đổi
| export | Trước | Sau |
|---|---|---|
cosmiconfig · defaultLoaders | Readonly<{ readonly '.mjs': Loader; readonly '.cjs': Loader; readonly '.js': Loader; readonly '.ts': Loader; readonly '.json': LoaderSync; readonly '.yaml': LoaderSync; readonly '.yml': LoaderSync; readonly noExt: LoaderSync; }> | Readonly<{ readonly '.mjs': Loader; readonly '.cjs': Loader; readonly '.js': Loader; readonly '.ts': Loader; readonly '.cts': Loader; readonly '.mts': Loader; readonly '.json': LoaderSync; readonly '.yaml': LoaderSync; readonly '.yml': LoaderSync; readonly noExt: LoaderSync; }> |
cosmiconfig · defaultLoadersSync | Readonly<{ readonly '.cjs': LoaderSync; readonly '.js': LoaderSync; readonly '.ts': LoaderSync; readonly '.json': LoaderSync; readonly '.yaml': LoaderSync; readonly '.yml': LoaderSync; readonly noExt: LoaderSync; }> | Readonly<{ readonly '.cjs': LoaderSync; readonly '.js': LoaderSync; readonly '.cts': LoaderSync; readonly '.ts': LoaderSync; readonly '.json': LoaderSync; readonly '.yaml': LoaderSync; readonly '.yml': LoaderSync; readonly noExt: LoaderSync; }> |
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 | >=14 | ^22.18 || >= 24 |
peerDependencies.typescript | >=4.9.5 | — |
Câu hỏi thường gặp
Nâng cấp cosmiconfig từ 9 lên 10 có những thay đổi không tương thích nào?
Giữa cosmiconfig 9.0.2 và 10.0.1, Vigia tìm thấy 0 export bị xóa, 2 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 cosmiconfig 10?
0 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong cosmiconfig 10.0.1.
Dành cho tác tử
GET https://vigia.coredls.cloud/v1/packages/npm/cosmiconfig/upgrade?from=9.0.2&to=10.0.1