Packages

@babel/generator

8.0.6 · 18 Sep 2026MIT285.4M / weekRepositoryHomepagenpmAtom feed

Your version

7.23.6

11 Dec 2023Where it was published

7.29.8 is the newest release of 7.x.

In short

3 fixed3 changed12 internal

Release note

Thanks @martinez-hugo and @odinho for your first pull requests!

:eyeglasses: Spec Compliance

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

    • Remove TSPropertySignature.initializer (@fisker)

  • babel-helpers, babel-plugin-proposal-decorators, babel-plugin-transform-class-properties, babel-plugin-transform-class-static-block, babel-plugin-transform-runtime, babel-preset-env, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime, babel-types

    • Apply toPropertyKey on decorator context name (@JLHwung)

:bug: Bug Fix

  • babel-generator

    • fix: Correctly indenting when retainLines is enabled (@liuxingbaoyu)

  • babel-helpers, babel-plugin-proposal-explicit-resource-management

    • using: Allow looking up Symbol.dispose on a function (@odinho)

  • babel-plugin-proposal-decorators, babel-plugin-transform-class-properties

    • Ensure the [[@@toPrimitive]] call of a decorated class member key is invoked once (@JLHwung)

    • Support named evaluation for decorated anonymous class exp (@JLHwung)

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

    • fix: for of with iterableIsArray and shadowing variable (@liuxingbaoyu)

  • babel-helpers, babel-plugin-proposal-decorators, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime

    • Set function name for decorated private non-field elements (@JLHwung)

  • babel-plugin-transform-typescript

:microscope: Output optimization

  • babel-helper-create-class-features-plugin, babel-plugin-transform-class-properties

  • babel-helpers, babel-plugin-proposal-decorators