ترقية @babel/core من 7.x إلى 8.x
مقارنة الواجهة العامة لـ @babel/core بين 7.29.13 و8.1.2، محسوبة تلقائيًا من أنواع 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 |
زوّد وكيل الذكاء الاصطناعي بهذه البيانات
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؟
عُلِّم 0 من الصادرات أو الأعضاء حديثًا على أنها موقوفة في @babel/core 8.1.2.
للوكلاء
GET https://vigia.coredls.cloud/v1/packages/npm/@babel/core/upgrade?from=7.29.13&to=8.1.2