Babel v7.0.0-alpha.20 Release Notes

Release Date: 2017-08-30 // over 6 years ago
    • πŸ– Handle Symbol in transform-es2015-computed-properties
    • Disallow ...[ & ...{ inside object destructuring

    http://tc39.github.io/tc39-notes/2017-05_may-23.html#16ih-why-allow-bindingpattern-for-bindingrestparameter-for-object-rest-maybe-we-should-just-allow-identifiers

    // Invalid
    ( {...{}} = {} ); ( {...[]} = {} );
    let {...{}} = {}; let {...[]} = {};
    
    • 0️⃣ Split transform-export-extensions into transform-export-namespace and transform-export-default plugins
    • 🚚 Move transform-numeric-separator to Stage 2
    • 🚚 Move transform-class-properties to Stage 3
      • Change the default transform to use Object.defineProperty and loose option to use assignment (this.a = 1)
      • Use configurable: true
    • πŸ”„ Change es2015-template-literals to use .concat by default and concatenation in loose mode.
    • βœ‚ Remove deprecated jsx pragma check in transform-react-jsx
    • βœ‚ Remove preset-flow from the preset-react (there was confusion on why type syntax was allowed, and it also made it incompatible with preset-typescript
    • βž• Add --config-file CLI flag to explicitly pass a config location
    • 🚚 Move babel-standalone into the repo (another form of this used to be babel-browser)

    :eyeglasses: Spec Compliance

    • πŸ”Œ babel-plugin-transform-async-to-generator, babel-*
    • πŸ”Œ babel-helpers, babel-plugin-transform-es2015-computed-properties
    • πŸ”Œ babel-plugin-check-es2015-constants, babel-traverse, babel-types
    • πŸ”Œ babel-generator, babel-plugin-transform-es2015-destructuring, babel-plugin-transform-object-rest-spread
      • #6102 Adjusted Object Rest/Spread tests to use only allowed syntax from the…. (@Andarist)
    • 0️⃣ babel-plugin-transform-export-default, babel-plugin-transform-export-extensions, babel-plugin-transform-export-namespace, babel-preset-stage-1, babel-preset-stage-2
    • πŸ”Œ babel-plugin-transform-class-properties
    • πŸ”Œ babel-plugin-transform-class-properties, babel-plugin-transform-decorators, babel-plugin-transform-es2015-parameters, babel-plugin-transform-flow-comments, babel-plugin-transform-new-target, babel-plugin-transform-react-constant-elements, babel-preset-stage-2, babel-preset-stage-3
      • #6076 Update Class Fields to Stage 3 and change default behavior. (@kedromelon)
    • babel-preset-stage-1, babel-preset-stage-2

    :boom: Breaking Change

    • πŸ”Œ babel-plugin-transform-es2015-template-literals
    • πŸ”Œ babel-generator, babel-plugin-transform-es2015-destructuring, babel-plugin-transform-object-rest-spread
      • #6145 Removed the deprecated jsx pragma detection code. (@asthas)
    • πŸ”Œ babel-plugin-transform-flow-strip-types, babel-preset-flow, babel-preset-react
    • babel-helper-fixtures, babel-*

    :rocket: New Feature

    • babel-cli
      • #6133 add --config-file option to CLI to pass in .babelrc location. (@bdwain)

    :bug: Bug Fix

    • babel-core
      • #5586 Handle cycles of plugins compiling themselves and .babelrc.js files loading themselves. (@loganfsmyth)
    • πŸ”Œ babel-plugin-transform-es2015-destructuring, babel-traverse
      • #5743 Fix issue replacement nodes not requeued for transforming after destructuring. (@buunguyen)
    • πŸ”Œ babel-plugin-check-es2015-constants, babel-plugin-transform-es2015-block-scoping, babel-traverse
    • πŸ”Œ babel-helper-replace-supers, babel-plugin-transform-class-properties, babel-traverse
    • 0️⃣ babel-plugin-transform-export-default, babel-plugin-transform-export-namespace, babel-types
    • πŸ”Œ babel-plugin-transform-es2015-parameters, babel-traverse
    • πŸ”Œ babel-helper-replace-supers, babel-plugin-transform-es2015-classes
    • πŸ”Œ babel-plugin-transform-class-properties
      • #6082 babel-plugin-transform-class-properties: Ignore type annotations when looking for name collisions. (@andy-ms)
    • babel-preset-stage-2
      • #6088 remove left transform-class-properties from stage. (@echo304)
    • πŸ”Œ babel-plugin-transform-es2015-block-scoping, babel-types

    πŸ’… :nail_care: Polish

    • πŸ”Œ babel-plugin-transform-es2015-classes, babel-plugin-transform-flow-comments, babel-plugin-transform-flow-strip-types

    πŸ“š :memo: Documentation

    • πŸ”Œ babel-plugin-transform-class-properties
    • Other
    • πŸ”Œ babel-plugin-transform-react-inline-elements
      • #6078 [docs] Added clarification note about transform-react-inline-elements usage …. (@Andarist)

    :house: Internal

    • babel-standalone
      • #6168 Refactor es2015-loose and es2015-no-commonjs presets to use preset op…. (@bmax)
      • #6137 Fix babel-standalone for realz. (@Daniel15)
      • #6029 Move babel-standalone into main Babel repo. (@Daniel15)
    • πŸ”Œ babel-plugin-transform-es2015-template-literals
      • #6169 re-add template literals tests, add ones that were missing. (@kedromelon)
    • babel-core, babel-generator, babel-template, babel-traverse, babel-types
    • babel-*
    • Other
    • πŸ”Œ babel-core, babel-plugin-transform-es2015-classes, babel-plugin-transform-regenerator, babel-plugin-transform-runtime, babel-runtime
    • πŸ”Œ babel-plugin-transform-es2015-parameters
    • πŸ”Œ babel-plugin-transform-class-properties
    • babel-register
    • babel-generator
      • #6074 Add "classProperties" plugin to babel-generator typescript tests. (@andy-ms)
    • πŸ”Œ babel-plugin-syntax-typescript, babel-preset-typescript
      • #6070 Move parser plugin from babel-preset-typescript to babel-plugin-syntax-typescript. (@andy-ms)