Vigia

将 @babel/helper-module-imports 从 7.x 升级到 8.x

根据 TypeScript 类型自动比较 @babel/helper-module-imports 7.29.7 与 8.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。

概要

已删除的导入路径0
已删除的导出1
已修改的签名3
已删除的类或接口成员0
已修改的类或接口成员4
新增弃用0
要求变化(engines、peer 依赖)1
新增导出0

已删除的导出

importexportkind之前
@babel/helper-module-importsImportOptionsinterfaceinterface

已修改的签名

export之前之后
@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

已删除的类或接口成员

未发现。

已修改的类或接口成员

member之前之后
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

新增弃用

未发现。

要求变化(engines、peer 依赖)

之前之后
engines.node>=6.9.0^22.18.0 || >=24.11.0

常见问题

将 @babel/helper-module-imports 从 7 升级到 8 有哪些不兼容变更?

在 @babel/helper-module-imports 7.29.7 与 8.0.0 之间,Vigia 发现 1 个已删除的导出、3 个已修改的签名,以及 4 个已删除或修改的类或接口成员。

@babel/helper-module-imports 8 中弃用了哪些内容?

@babel/helper-module-imports 8.0.0 中有 0 个导出或成员新被标记为弃用。

供智能体使用

GET https://vigia.coredls.cloud/v1/packages/npm/@babel/helper-module-imports/upgrade?from=7.29.7&to=8.0.0