Skip to content

v7.0.0-alpha.20

Pre-release
Pre-release
Compare
Choose a tag to compare
@hzoo hzoo released this 30 Aug 19:07
· 8084 commits to main since this release

v7.0.0-alpha.20 (2017-08-30)

Summary

  • 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 {...[]} = {};
  • 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)

👓 Spec Compliancy

  • 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)
  • 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

💥 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-*

🚀 New Feature

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

🐛 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
  • 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

💅 Polish

  • babel-plugin-transform-es2015-classes, babel-plugin-transform-flow-comments, babel-plugin-transform-flow-strip-types

📝 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)

🏠 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)

Committers: 24