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 importu | 0 |
|---|---|
| Usunięte eksporty | 1 |
| Zmienione sygnatury | 2 |
| Usunięte składowe klas lub interfejsów | 3 |
| Zmienione składowe klas lub interfejsów | 2 |
| Nowo wycofane | 0 |
| Zmiany wymagań (engines, zależności peer) | 1 |
| Nowe eksporty | 0 |
Usunięte eksporty
| import | export | kind | Przed |
|---|---|---|---|
@babel/generator | CodeGenerator | class | class |
Zmienione sygnatury
| export | Przed | Po |
|---|---|---|
@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
| member | import | Przed |
|---|---|---|
GeneratorOptions.jsonCompatibleStrings | @babel/generator | boolean | undefined |
GeneratorOptions.decoratorsBeforeExport | @babel/generator | boolean | undefined |
GeneratorOptions.importAttributesKeyword | @babel/generator | "with" | "assert" | "with-legacy" | undefined |
Zmienione składowe klas lub interfejsów
| member | Przed | Po |
|---|---|---|
GeneratorResult.map | { version: number; sources: string[]; names: string[]; sourceRoot?: string | undefined; sourcesContent?: string[] | undefined; mappings: string; file: string; } | null | any |
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)
| Przed | Po | |
|---|---|---|
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