Packages

@babel/generator

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

Your version

7.9.6

29 Apr 2020Where it was published

7.29.8 is the newest release of 7.x.

In short

1 breaking1 new6 fixed6 changed32 internal

  • breaking

    Adding createFlowUnionType in place of createUnionTypeAnnotation without breaking change (@Beraliv)

Release note

:eyeglasses: Spec Compliance

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

    • Fix evaluation order with object spread, 2 (@jridgewell)

    • Fix evaluation order with object spread (@Zzzen)

  • babel-helper-replace-supers, babel-plugin-proposal-class-properties, babel-plugin-transform-classes

:rocket: New Feature

  • babel-traverse, babel-types

    • Adding createFlowUnionType in place of createUnionTypeAnnotation without breaking change (@Beraliv)

:bug: Bug Fix

  • babel-helper-create-class-features-plugin, babel-helpers, babel-plugin-transform-modules-commonjs, babel-preset-env

  • babel-traverse

    • handle objectMethod in scope.isPure (@Zzzen)

  • babel-plugin-transform-typescript

  • babel-compat-data

    • chore: add node.js 14 support data (@JLHwung)

  • babel-parser

    • Set exprAllowed to false for star token (@existentialism)

    • fix: disallow expression after binding identifier of (@JLHwung)

    • fix: report missing plugins on type exports (@JLHwung)

    • fix: do not push new token context when function is following dot/questionDot (@JLHwung)

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

    • Fix redeclaring private in nested class's superClass (@jridgewell)

    • Fix nested classes reference private fields (@jridgewell)

  • babel-traverse, babel-types

    • transform-spread: create TS types (not Flow) when using TS (@Beraliv)

  • babel-standalone

    • chore: update stage preset in babel-standalone (@JLHwung)

  • babel-plugin-transform-runtime

    • fix: replace backslashes with forward slashes from resolved path for … (@johannes-z)

  • babel-generator, babel-plugin-proposal-decorators, babel-plugin-proposal-pipeline-operator, babel-plugin-proposal-throw-expressions, babel-plugin-transform-async-to-generator

:nail_care: Polish

  • babel-parser

    • Add some parser missing plugins errors (@JLHwung)

    • fix: report missing plugins on type exports (@JLHwung)

  • babel-core

    • polish: recommend preset for js extensions (@JLHwung)

    • fix: add classPrivateProperties and classPrivateMethods to missing plugin helper (@JLHwung)

:memo: Documentation

  • babel-parser

  • Other

    • Add note about experimental nature of @babel/eslint-* packages (@kaicataldo)

    • contributing.md updates [skip ci] (@hzoo)

:house: Internal

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

  • Other

    • Canary build of packages using CodeSandbox CI + mini repl (@hzoo)

    • chore: test against node.js 14 (@JLHwung)

    • remove < x.y.z engines specification (@JLHwung)

    • chore: remove included proposal plugins (@JLHwung)

    • chore: upgrade @babel/* deps (@JLHwung)

  • babel-node

    • refactor(babel-node): Refactor babel-node tests configuration (@arku)

:running_woman: Performance

  • 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