@babel/highlight
7.25.9 · 22 Oct 2024MIT29.1M / weekRepositoryHomepagenpmAtom feed
7.25.9 is the newest release of 7.x.
In short
5 new16 fixed7 changed33 internal
Release note
Thanks @bradzacher, @bz2, @ChALkeR, @FauxFaux, @fedeci, @karansapolia, @panzarino, @shrinktofit, and @Zalathar for your first PRs!
:eyeglasses: Spec Compliance
babel-parserspec: disable await binding identifier within static block (@JLHwung)
babel-helper-create-class-features-plugin,babel-helpers,babel-plugin-proposal-private-methods,babel-runtime-corejs2,babel-runtime-corejs3,babel-runtimefix: throw error when accessing private method without a getter (@fedeci)
babel-plugin-transform-computed-properties,babel-plugin-transform-shorthand-propertiesfix: correctly transform
__proto__properties (@ExE-Boss)
:bug: Bug Fix
babel-plugin-proposal-class-properties,babel-traverseFix class fields when
super()is in a default param (@nicolo-ribaudo)
babel-plugin-proposal-class-properties,babel-plugin-transform-classesDefine class elements in the correct order (@nicolo-ribaudo)
babel-parser,babel-templatePermit %%placeholder%% in left-hand-side of a let declaration (@Zalathar)
babel-core,babel-helper-transform-fixture-test-runner,babel-registerDon't use
require()in ESM files (@nicolo-ribaudo)
babel-parser(ts) Raise syntax error for an abstract method in non-abstract class (@sosukesuzuki)
fix(parser): throw error with wrong typescript 'export declare' (@fedeci)
Raise recoverable error for await expressions in sync functions (@sosukesuzuki)
fix: start TypePredicate node after returnToken (@JLHwung)
@babel/preset-typescript: fix tsx assigment issue (@Zzzen)
[ts]Add optional property to OptionalCallExpression node that has type arguments (@sosukesuzuki)
babel-helpers,babel-plugin-transform-classesAvoid hitting
__proto__in_inheritsLoose(@ChALkeR)
babel-generatorfix: avoid line breaks between class members head and key (@JLHwung)
babel-registerfix: babel-register transform internal dependencies (@overlookmotel)
babel-nodefix: place _babel-node after process.execArgv (@JLHwung)
babel-typesbabel-plugin-transform-modules-systemjs[systemjs] Fix: export star alongside with named export (@shrinktofit)
babel-plugin-transform-for-ofTransform labeled
for-ofinside bracelessifstatement (@nicolo-ribaudo)
babel-helper-create-class-features-plugin,babel-helper-replace-supers,babel-plugin-transform-classesCorrectly access shadowed class binding in
super.*(@Zzzen)
babel-helper-module-imports,babel-plugin-transform-react-jsx-development,babel-plugin-transform-react-jsxLoad
jsx-runtimeafter existing imports (@nicolo-ribaudo)
:nail_care: Polish
babel-helper-transform-fixture-test-runner,babel-parser,babel-preset-envrefactor: raise AwaitNotInAsyncContext when an AwaitExpression will be parsed (@JLHwung)
babel-cli,babel-core,babel-parserRecover from "missing semicolon" errors (@nicolo-ribaudo)
babel-helper-create-class-features-plugin,babel-plugin-proposal-private-methodsAdd
#to the private name in "write-only" errors (@nicolo-ribaudo)
babel-helper-compilation-targets,babel-preset-envfix: print warning messages to stderr (@JLHwung)
babel-code-framefix(code-frame): do not pad gutter of empty lines (@SimenB)
:memo: Documentation
Other
Add " 📢 Deprecation" to the changelog labels (@nicolo-ribaudo)
Every package
docs: add package-specific documentation links (@DanArthurGallagher)
:house: Internal
babel-traverse,babel-typesUse native ESM for dev scripts (@karansapolia)
babel-registerbabel-register run default register with global module cache (@overlookmotel)
Other
Add
yarn-plugin-conditionsto update Babel 8 dependencies (@nicolo-ribaudo)test: reuse lodash library within eslint tests (@armano2)
Remove remaining references to lerna (@nicolo-ribaudo)
babel-generator,babel-preset-envfix: allow to execute util scripts (@armano2)
babel-core,babel-helper-compilation-targets,babel-plugin-transform-classes,babel-plugin-transform-function-name,babel-plugin-transform-parameters,babel-plugin-transform-regenerator,babel-preset-envTweak helper compilation targets (@JLHwung)
:microscope: Output optimization
babel-plugin-transform-modules-commonjs,babel-plugin-transform-template-literals,babel-plugin-transform-unicode-escapes,babel-preset-envDeclare template objects inline (@nicolo-ribaudo)
babel-plugin-transform-react-jsxOptimize jsx spreads of object expressions (@bz2)