Nâng cấp @babel/helper-module-imports từ 7.x lên 8.x
So sánh API công khai của @babel/helper-module-imports 7.29.7 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 | 1 |
| Chữ ký thay đổi | 3 |
| Thành viên lớp hoặc interface bị xóa | 0 |
| Thành viên lớp hoặc interface thay đổi | 4 |
| Mới bị ngừng hỗ trợ | 0 |
| Thay đổi yêu cầu (engines, phụ thuộc peer) | 1 |
| Export mới | 0 |
Export bị xóa
| import | export | kind | Trước |
|---|---|---|---|
@babel/helper-module-imports | ImportOptions | interface | interface |
Chữ ký thay đổi
| export | Trước | Sau |
|---|---|---|
@babel/helper-module-imports · addDefault | (path: NodePath, importedSource: string, opts?: Partial<ImportOptions> | undefined): t.Identifier | (path: NodePath, importedSource: string, opts?: Partial<ImportOptions> | undefined): any |
@babel/helper-module-imports · addNamespace | (path: NodePath, importedSource: string, opts?: Partial<ImportOptions> | undefined): t.Identifier | (path: NodePath, importedSource: string, opts?: Partial<ImportOptions> | undefined): any |
@babel/helper-module-imports · addSideEffect | (path: NodePath, importedSource: string, opts?: Partial<ImportOptions> | undefined): void | (path: NodePath, importedSource: string, opts?: Partial<ImportOptions> | undefined): any |
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
| member | Trước | Sau |
|---|---|---|
ImportInjector.addNamed | (importName: string, importedSourceIn: string, opts: Partial<ImportOptions>): t.Identifier | (importName: string, importedSourceIn: string, opts: Partial<ImportOptions> | undefined): any |
ImportInjector.addDefault | (importedSourceIn: string, opts: Partial<ImportOptions>): t.Identifier | (importedSourceIn: string, opts: Partial<ImportOptions> | undefined): any |
ImportInjector.addNamespace | (importedSourceIn: string, opts: Partial<ImportOptions>): t.Identifier | (importedSourceIn: string, opts: Partial<ImportOptions> | undefined): any |
ImportInjector.addSideEffect | (importedSourceIn: string, opts: Partial<ImportOptions>): void | (importedSourceIn: string, opts: Partial<ImportOptions> | undefined): any |
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 | >=6.9.0 | ^22.18.0 || >=24.11.0 |
Câu hỏi thường gặp
Nâng cấp @babel/helper-module-imports từ 7 lên 8 có những thay đổi không tương thích nào?
Giữa @babel/helper-module-imports 7.29.7 và 8.0.0, Vigia tìm thấy 1 export bị xóa, 3 chữ ký thay đổi và 4 thành viên lớp hoặc interface bị xóa hay thay đổi.
Những gì bị ngừng hỗ trợ trong @babel/helper-module-imports 8?
0 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong @babel/helper-module-imports 8.0.0.
Dành cho tác tử
GET https://vigia.coredls.cloud/v1/packages/npm/@babel/helper-module-imports/upgrade?from=7.29.7&to=8.0.0