Upgrading @babel/core from 7.x to 8.x
Comparison of the public API of @babel/core 7.29.13 and 8.1.2, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.
Summary
| Removed import paths | 0 |
|---|---|
| Removed exports | 21 |
| Changed signatures | 27 |
| Removed class or interface members | 0 |
| Changed class or interface members | 9 |
| Newly deprecated | 0 |
| Requirement changes (engines, peer dependencies) | 1 |
| New exports | 23 |
Removed exports
| import | export | kind | Before |
|---|---|---|---|
@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 |
Changed signatures
| export | Before | After |
|---|---|---|
@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> |
Removed class or interface members
None detected.
Changed class or interface members
| member | Before | After |
|---|---|---|
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 |
Newly deprecated
None detected.
Requirement changes (engines, peer dependencies)
| Before | After | |
|---|---|---|
engines.node | >=6.9.0 | — |
New exports (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 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What are the breaking changes when upgrading @babel/core from 7 to 8?
Between @babel/core 7.29.13 and 8.1.2, Vigia found 21 removed exports, 27 changed signatures and 9 removed or changed class or interface members.
What became deprecated in @babel/core 8?
0 exports or members are newly marked as deprecated in @babel/core 8.1.2.
For agents
GET https://vigia.coredls.cloud/v1/packages/npm/@babel/core/upgrade?from=7.29.13&to=8.1.2