Vigia

Aktualizacja @babel/generator z 7.x do 8.x

Porównanie publicznego API @babel/generator 7.29.8 i 8.0.6, obliczone automatycznie na podstawie typów TypeScript. Zmieniona sygnatura to możliwa zmiana niekompatybilna, a nie pewność.

Podsumowanie

Usunięte ścieżki importu0
Usunięte eksporty1
Zmienione sygnatury2
Usunięte składowe klas lub interfejsów3
Zmienione składowe klas lub interfejsów2
Nowo wycofane0
Zmiany wymagań (engines, zależności peer)1
Nowe eksporty0

Usunięte eksporty

importexportkindPrzed
@babel/generatorCodeGeneratorclassclass

Zmienione sygnatury

exportPrzedPo
@babel/generator · default(ast: t.Node, opts?: GeneratorOptions | undefined, code?: string | { [filename: string]: string; } | undefined): GeneratorResult(ast: t.Node, opts?: GeneratorOptions | undefined, code?: string | Record<string, string> | undefined): GeneratorResult
@babel/generator · generate(ast: t.Node, opts?: GeneratorOptions | undefined, code?: string | { [filename: string]: string; } | undefined): GeneratorResult(ast: t.Node, opts?: GeneratorOptions | undefined, code?: string | Record<string, string> | undefined): GeneratorResult

Usunięte składowe klas lub interfejsów

memberimportPrzed
GeneratorOptions.jsonCompatibleStrings@babel/generatorboolean | undefined
GeneratorOptions.decoratorsBeforeExport@babel/generatorboolean | undefined
GeneratorOptions.importAttributesKeyword@babel/generator"with" | "assert" | "with-legacy" | undefined

Zmienione składowe klas lub interfejsów

memberPrzedPo
GeneratorResult.map{ version: number; sources: string[]; names: string[]; sourceRoot?: string | undefined; sourcesContent?: string[] | undefined; mappings: string; file: string; } | nullany
GeneratorOptions.jsescOption{ quotes?: "single" | "double" | "backtick" | undefined; numbers?: "binary" | "octal" | "decimal" | "hexadecimal" | undefined; wrap?: boolean | undefined; es6?: boolean | undefined; escapeEverything?: boolean | undefined; minimal?: boolean | undefined; isScriptContext?: boolean | undefined; compact?…any

Nowo wycofane

Nie wykryto.

Zmiany wymagań (engines, zależności peer)

PrzedPo
engines.node>=6.9.0^22.18.0 || >=24.11.0

Najczęściej zadawane pytania

Jakie są zmiany niekompatybilne przy aktualizacji @babel/generator z 7 do 8?

Między @babel/generator 7.29.8 a 8.0.6 Vigia znalazła 1 usuniętych eksportów, 2 zmienionych sygnatur i 5 usuniętych lub zmienionych składowych klas lub interfejsów.

Co zostało wycofane w @babel/generator 8?

0 eksportów lub składowych oznaczono w @babel/generator 8.0.6 jako wycofane.

Dla agentów

GET https://vigia.coredls.cloud/v1/packages/npm/@babel/generator/upgrade?from=7.29.8&to=8.0.6