@babel/core を 7.x から 8.x へアップグレード
@babel/core 7.29.13 と 8.1.2 の公開 API を、TypeScript の型から自動的に比較したものです。シグネチャの変更は破壊的変更の候補であり、確定ではありません。
概要
| 削除されたインポートパス | 0 |
|---|---|
| 削除されたエクスポート | 21 |
| 変更されたシグネチャ | 27 |
| 削除されたクラス/インターフェースのメンバー | 0 |
| 変更されたクラス/インターフェースのメンバー | 9 |
| 新たに非推奨 | 0 |
| 要件の変更(engines、peer 依存関係) | 1 |
| 新しいエクスポート | 23 |
削除されたエクスポート
| import | export | kind | 変更前 |
|---|---|---|---|
@babel/core | Node | type | t.Node |
@babel/core | BabelFile | interface | interface |
@babel/core | PluginObj | interface | interface |
@babel/core | EnvFunction | interface | interface |
@babel/core | ParseResult | type | any |
@babel/core | MatchPattern | type | string | RegExp | ((filename: string | undefined, context: MatchPatternContext) => boolean) |
@babel/core | ParserOptions | variable | any |
@babel/core | PluginOptions | type | false | object | undefined |
@babel/core | ConfigFunction | type | (api: ConfigAPI) => TransformOptions |
@babel/core | SimpleCacheKey | type | string | number | boolean | null | undefined |
@babel/core | BabelFileResult | interface | interface |
@babel/core | TransformCaller | interface | interface |
@babel/core | TransformOptions | interface | interface |
@babel/core | BabelFileMetadata | interface | interface |
@babel/core | FileParseCallback | type | (err: Error | null, result: any) => any |
@babel/core | FileResultCallback | type | (err: Error | null, result: BabelFileResult | null) => any |
@babel/core | MatchPatternContext | interface | interface |
@babel/core | SimpleCacheCallback | type | () => T |
@babel/core | CreateConfigItemOptions | interface | interface |
@babel/core | SimpleCacheConfigurator | interface | interface |
@babel/core | BabelFileModulesMetadata | interface | interface |
変更されたシグネチャ
| export | 変更前 | 変更後 |
|---|---|---|
@babel/core · parse | (code: string, callback: FileParseCallback): void | (code: string, options: TransformOptions | undefined, callback: FileParseCallback): void | (code: string, options?: TransformOptions | undefined): any | (code: string, callback: FileParseCallback): void | (code: string, opts: InputOptions | null | undefined, callback: FileParseCallback): void |
@babel/core · Visitor | any | _babel_traverse.Visitor<S> |
@babel/core · ConfigAPI | interface | { version: string; cache: SimpleCacheConfigurator; env: EnvFunction; async: () => boolean; assertVersion: (range: string | number) => void; caller: CallerFactory; } |
@babel/core · parseSync | (code: string, options?: TransformOptions | undefined): any | (...args: any): any |
@babel/core · transform | (code: string, callback: FileResultCallback): void | (code: string, opts: TransformOptions | undefined, callback: FileResultCallback): void | (code: string, opts?: TransformOptions | undefined): BabelFileResult | null | (code: string, callback: FileResultCallback): void | (code: string, opts: InputOptions | null | undefined, callback: FileResultCallback): void |
@babel/core · ConfigItem | interface | class |
@babel/core · PluginItem | PluginTarget | ConfigItem | PluginObj<any> | [PluginTarget, PluginOptions] | [PluginTarget, PluginOptions, string | undefined] | ConfigItem<PluginAPI> | PluginTarget<Option> | [PluginTarget<Option>, Option] | [PluginTarget<Option>, Option, string] |
@babel/core · PluginPass | interface | class |
@babel/core · parseAsync | (code: string, options?: TransformOptions | undefined): Promise<any> | (...args: any): Promise<any> |
@babel/core · loadOptions | (options?: TransformOptions | undefined): object | null | (opts: InputOptions | null | undefined, callback?: ((err: Error, val: ResolvedOptions | null) => void) | undefined): void |
@babel/core · PluginTarget | string | object | ((...args: any[]) => any) | string | MaybeDefaultProperty<(api: PluginAPI, options: Option, dirname: string) => PluginObject<PluginPass<object>>> |
@babel/core · PartialConfig | interface | class |
@babel/core · resolvePlugin | (name: string, dirname: string): string | null | (name: string, dirname: string): string |
@babel/core · resolvePreset | (name: string, dirname: string): string | null | (name: string, dirname: string): string |
@babel/core · transformFile | (filename: string, callback: FileResultCallback): void | (filename: string, opts: TransformOptions | undefined, callback: FileResultCallback): void | (filename: string, callback: FileResultCallback): void | (filename: string, opts: InputOptions | null | undefined, callback: FileResultCallback): void |
@babel/core · transformSync | (code: string, opts?: TransformOptions | undefined): BabelFileResult | null | (...args: any): FileResult | null |
@babel/core · transformAsync | (code: string, opts?: TransformOptions | undefined): Promise<BabelFileResult | null> | (...args: any): Promise<FileResult | null> |
@babel/core · GeneratorOptions | any | _babel_generator.GeneratorOptions |
@babel/core · createConfigItem | (value: PluginTarget | [PluginTarget, PluginOptions] | [PluginTarget, PluginOptions, string | undefined], options?: CreateConfigItemOptions | undefined): ConfigItem | (target: PluginTarget<object>, callback: CreateConfigItemCallback): void | (target: PluginTarget<object>, options: { dirname?: string | undefined; type?: "preset" | "plugin" | undefined; } | undefined, callback: CreateConfigItemCallback): void |
@babel/core · transformFromAst | (ast: t.Node, code: string | undefined, callback: FileResultCallback): void | (ast: t.Node, code: string | undefined, opts: TransformOptions | undefined, callback: FileResultCallback): void | (ast: any, code: string, callback: FileResultCallback): void | (ast: any, code: string, opts: InputOptions | null | undefined, callback: FileResultCallback): void |
@babel/core · loadPartialConfig | (options?: TransformOptions | undefined): Readonly<PartialConfig> | null | (opts: InputOptions | undefined, callback?: ((err: Error, val: PartialConfig | null) => void) | undefined): void |
@babel/core · transformFileSync | (filename: string, opts?: TransformOptions | undefined): BabelFileResult | null | (...args: any): FileResult | null |
@babel/core · DEFAULT_EXTENSIONS | [".js", ".jsx", ".es6", ".es", ".mjs"] | readonly [".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"] |
@babel/core · transformFileAsync | (filename: string, opts?: TransformOptions | undefined): Promise<BabelFileResult | null> | (...args: any): Promise<FileResult | null> |
@babel/core · transformFromAstSync | (ast: t.Node, code?: string | undefined, opts?: TransformOptions | undefined): BabelFileResult | null | (...args: any): FileResult | null |
@babel/core · transformFromAstAsync | (ast: t.Node, code?: string | undefined, opts?: TransformOptions | undefined): Promise<BabelFileResult | null> | (...args: any): Promise<FileResult | null> |
@babel/core · loadPartialConfigAsync | (options?: TransformOptions | undefined): Promise<Readonly<PartialConfig> | null> | (...args: any): Promise<PartialConfig | null> |
削除されたクラス/インターフェースのメンバー
検出されませんでした。
変更されたクラス/インターフェースのメンバー
| member | 変更前 | 変更後 |
|---|---|---|
ConfigItem.file | { request: string; resolved: string; } | null | undefined | void | { request: string; resolved: string; } |
ConfigItem.name | string | undefined | string | void |
ConfigItem.value | object | ((...args: any[]) => any) | object | Function |
ConfigItem.options | false | object | undefined | false | void | object |
PluginPass.key | string | string | null | undefined |
PluginPass.set | (key: unknown, value: unknown): void | (key: unknown, val: unknown): void |
PluginPass.file | BabelFile | File |
PluginPass.opts | object | Partial<Options> |
PartialConfig.options | TransformOptions | NormalizedOptions |
新たに非推奨
検出されませんでした。
要件の変更(engines、peer 依存関係)
| 変更前 | 変更後 | |
|---|---|---|
engines.node | >=6.9.0 | — |
新しいエクスポート (23)
| import | export | kind |
|---|---|---|
@babel/core | File | class |
@babel/core | Scope | variable |
@babel/core | getEnv | function |
@babel/core | generate | variable |
@babel/core | tokTypes | variable |
@babel/core | PluginAPI | type |
@babel/core | PresetAPI | type |
@babel/core | FileResult | type |
@babel/core | PresetItem | type |
@babel/core | VisitorBase | type |
@babel/core | InputOptions | type |
@babel/core | PluginObject | type |
@babel/core | PresetObject | type |
@babel/core | PresetTarget | type |
@babel/core | CallerMetadata | type |
@babel/core | GeneratorResult | type |
@babel/core | loadOptionsSync | function |
@babel/core | loadOptionsAsync | function |
@babel/core | NormalizedOptions | type |
@babel/core | buildExternalHelpers | function |
@babel/core | createConfigItemSync | function |
@babel/core | createConfigItemAsync | function |
@babel/core | loadPartialConfigSync | function |
このデータを AI エージェントに渡す
Vigia は無料の MCP サーバーです。コーディングエージェントがコードを書く前に、バージョン・破壊的変更・脆弱性を確認できます。登録も API キーも不要です。
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Cursor に追加VS Code に追加★ GitHub でスターを付ける
その他の MCP クライアント
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }エージェント用スキル (SKILL.md):Vigia を使うタイミングをエージェントに伝えます · プルリクエスト用 GitHub Action
よくある質問
@babel/core を 7 から 8 にアップグレードする際の破壊的変更は?
@babel/core 7.29.13 と 8.1.2 の間で、Vigia は削除されたエクスポートを 21 件、変更されたシグネチャを 27 件、削除または変更されたクラス/インターフェースのメンバーを 9 件検出しました。
@babel/core 8 で非推奨になったものは?
@babel/core 8.1.2 では 0 件のエクスポートまたはメンバーが新たに非推奨になりました。
エージェント向け
GET https://vigia.coredls.cloud/v1/packages/npm/@babel/core/upgrade?from=7.29.13&to=8.1.2