@babel/core upgraden van 7.x naar 8.x
Vergelijking van de publieke API van @babel/core 7.29.13 en 8.1.2, automatisch berekend uit hun TypeScript-types. Een gewijzigde signatuur is een mogelijke brekende wijziging, geen zekerheid.
Samenvatting
| Verwijderde importpaden | 0 |
|---|---|
| Verwijderde exports | 21 |
| Gewijzigde signaturen | 27 |
| Verwijderde leden van klassen of interfaces | 0 |
| Gewijzigde leden van klassen of interfaces | 9 |
| Nieuw als verouderd gemarkeerd | 0 |
| Gewijzigde vereisten (engines, peer-afhankelijkheden) | 1 |
| Nieuwe exports | 23 |
Verwijderde exports
| import | export | kind | Voor |
|---|---|---|---|
@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 |
Gewijzigde signaturen
| export | Voor | Na |
|---|---|---|
@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> |
Verwijderde leden van klassen of interfaces
Niets gevonden.
Gewijzigde leden van klassen of interfaces
| member | Voor | Na |
|---|---|---|
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 |
Nieuw als verouderd gemarkeerd
Niets gevonden.
Gewijzigde vereisten (engines, peer-afhankelijkheden)
| Voor | Na | |
|---|---|---|
engines.node | >=6.9.0 | — |
Nieuwe 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 |
Geef je AI-agent deze feiten
Vigia is een gratis MCP-server: je coding-agent controleert versies, breaking changes en kwetsbaarheden voordat hij code schrijft. Geen account, geen API-sleutel.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Toevoegen aan CursorToevoegen aan VS Code★ Ster op GitHub
Elke andere MCP-client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent-skill (SKILL.md): vertelt de agent wanneer hij Vigia moet gebruiken · GitHub Action voor pull requests
Veelgestelde vragen
Wat zijn de brekende wijzigingen bij het upgraden van @babel/core van 7 naar 8?
Tussen @babel/core 7.29.13 en 8.1.2 vond Vigia 21 verwijderde exports, 27 gewijzigde signaturen en 9 verwijderde of gewijzigde leden van klassen of interfaces.
Wat is verouderd in @babel/core 8?
0 exports of leden zijn in @babel/core 8.1.2 nieuw als verouderd gemarkeerd.
Voor agents
GET https://vigia.coredls.cloud/v1/packages/npm/@babel/core/upgrade?from=7.29.13&to=8.1.2