Packages

@babel/highlight

7.25.9 · 22 Oct 2024MIT29.1M / weekRepositoryHomepagenpmAtom feed

Your version

7.9.0

20 Mar 2020Where it was published

7.25.9 is the newest release of 7.x.

In short

13 new3 fixed5 changed33 internal

Release note

Blog post: babeljs.io/blog/2020/03/16/7.9.0

:rocket: New Feature

  • babel-generator, babel-helper-builder-react-jsx-experimental, babel-helper-builder-react-jsx, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-plugin-transform-function-name, babel-plugin-transform-react-constant-elements, babel-plugin-transform-react-inline-elements, babel-plugin-transform-react-jsx-development, babel-plugin-transform-react-jsx, babel-plugin-transform-regenerator, babel-preset-react, babel-preset-typescript, babel-standalone

  • babel-helper-builder-react-jsx-experimental, babel-helper-builder-react-jsx, babel-plugin-transform-react-jsx-development, babel-plugin-transform-react-jsx-self, babel-plugin-transform-react-jsx, babel-preset-react, babel-standalone

    • Add experimental version of the babel-plugin-transform-react-jsx transform (@lunaruan)

  • babel-compat-data, babel-preset-env

  • babel-core, babel-helpers, babel-plugin-proposal-class-properties, babel-plugin-proposal-decorators, babel-plugin-transform-classes, babel-plugin-transform-function-name, babel-plugin-transform-parameters, babel-plugin-transform-react-jsx, babel-plugin-transform-runtime, babel-plugin-transform-typescript, babel-preset-env

  • babel-core, babel-helper-module-transforms, babel-plugin-transform-modules-amd, babel-plugin-transform-modules-commonjs, babel-plugin-transform-modules-systemjs, babel-plugin-transform-modules-umd

    • Allow defining the moduleIds-related option in the transform plugins (@nicolo-ribaudo)

  • babel-core, babel-generator, babel-parser, babel-plugin-syntax-record-and-tuple, babel-types

    • Added support for record and tuple syntax. (@rickbutton)

  • babel-generator, babel-parser, babel-plugin-transform-flow-strip-types, babel-preset-flow

  • babel-types

  • babel-generator

  • babel-generator, babel-parser, babel-types

  • babel-parser

  • babel-plugin-transform-react-jsx-source, babel-preset-react

    • feat(react-jsx-source): add columnNumber property (@motiz88)

  • babel-generator, babel-parser, babel-plugin-transform-typescript, babel-preset-typescript, babel-types

:bug: Bug Fix

  • babel-helper-builder-react-jsx-experimental, babel-helper-builder-react-jsx, babel-helper-validator-identifier, babel-highlight, babel-parser, babel-types

    • Add @babel/helper-validator-identifier (@JLHwung)

  • babel-plugin-proposal-optional-chaining

    • Memoize call expressions in optional chains in loose mode (@oliverdunk)

  • babel-plugin-transform-react-jsx-self, babel-preset-react

    • Pass the correct this to JSX's __self with the old plugin (@nicolo-ribaudo)

  • babel-helper-builder-react-jsx-experimental, babel-plugin-transform-react-jsx-development, babel-plugin-transform-react-jsx

    • Use the correct this in __self for JSX elements in arrows (@nicolo-ribaudo)

  • babel-compat-data, babel-preset-env

    • Move object-rest-spread after transform-parameters (@JLHwung)

  • babel-helpers, babel-plugin-transform-for-of, babel-preset-env

    • Allow for-of on polyfilled or builtin iterables without Symbol support (@nicolo-ribaudo)

    • Add for-of fallback for arrays in browsers without symbol support (@nicolo-ribaudo)

  • babel-plugin-proposal-object-rest-spread

    • fix: object-rest-spread should not transform export array rest (@JLHwung)

  • babel-register

  • babel-core, babel-helpers, babel-plugin-transform-runtime

    • Create File class for babel helpers (@JLHwung)

  • babel-helpers, babel-plugin-transform-modules-commonjs, babel-preset-env, babel-runtime-corejs2, babel-runtime

    • Allow rest/spread on polyfilled or builtin iterables without Symbol support (@nicolo-ribaudo)

  • babel-parser

    • Allow await when it is not in AsyncArrowHead (@arku)

  • babel-helpers, babel-plugin-proposal-object-rest-spread, babel-runtime-corejs2, babel-runtime

    • fix(rest-spread): Do not require Symbol.iterator for strings (@clshortfuse)

  • babel-generator

    • Fix printing edge cases in Nullish Coalescing and Optional Chaining (@jridgewell)

:nail_care: Polish

  • babel-parser

    • Rephrase parser error message (@JLHwung)

  • babel-helpers, babel-plugin-transform-destructuring, babel-plugin-transform-modules-commonjs, babel-plugin-transform-spread, babel-preset-env, babel-runtime-corejs2, babel-runtime

    • Throw better errors for non-iterables when Symbol doesn't exist. (@nicolo-ribaudo)

:house: Internal

  • babel-helper-builder-react-jsx-experimental, babel-helper-builder-react-jsx, babel-helper-validator-identifier, babel-highlight, babel-parser, babel-types

    • Add @babel/helper-validator-identifier (@JLHwung)

  • babel-compat-data, babel-preset-env

  • babel-core

    • chore: bump json5 and minimist (@JLHwung)

  • babel-types

  • babel-helpers, babel-plugin-transform-block-scoping, babel-plugin-transform-for-of, babel-plugin-transform-parameters, babel-plugin-transform-runtime, babel-preset-env

  • babel-core, babel-plugin-proposal-decorators, babel-plugin-proposal-logical-assignment-operators, babel-plugin-proposal-object-rest-spread, babel-plugin-proposal-partial-application, babel-plugin-proposal-pipeline-operator, babel-plugin-transform-parameters, babel-traverse

    • Support more node types in generateUidBasedOnNode (@jridgewell)

  • Other