npm babel-types 6.14.0
v6.14.0

latest releases: 7.0.0-beta.3, 7.0.0-beta.2, 7.0.0-beta.1...
8 years ago

v6.14.0 (2016-08-23) TAKE ME TO FLAVOR TOWN

Lots of stuff in this release!

npm install babel-preset-es2017 --save-dev
// .babelrc
{ "presets": ["es2017"] }
  • #3625, #3673 A new preset called latest that transforms ES2015+ (currently ES2015, ES2016, ES2017). You can also pass options down to the es2015 preset.

We also will be working on getting a target/env (autoprefixer) preset soon.

npm install babel-preset-latest --save-dev
// .babelrc
{ "presets": ["latest"] }
// with options
{ "presets": [
  ["latest", {
    "es2015": {
      "modules": false 
    }
  }]
] }

spec for arrow functions adds a runtime check to make sure arrow functions are not instantiated (since they transform into normal functions).
spec for template literals wraps all expressions in String rather than simple string concatenation.

// .babelrc
{
  "presets": [
    ["es2015", { "spec": true }]
  ]
}
  • #3659 @kittens added an optional wrapPluginVisitorMethod callback to transform to allow for performance tracking/introspection of plugins. More docs will be added on the website soon.
  • #3658 sourcemaps will also now have a names field for identifiers to allow debuggers to do re-aliasing of mangled identifiers.
  • #3518 For spec compilancy, we now will throw on a file with multiple export default.

Notable Bug Fixes

  • #3527 Fix class inheritance in IE <=10 without loose mode.
  • #3644 Support the ignore config option in .babelrc.
  • #3655 Flow-only class props were not be stripped without transform-class-properties.

Guy Fieri

Commiters: 17

It's also a lot folk's first PR (or first code PR)!

New Feature

  • babel-preset-es2015
  • babel-preset-latest
  • babel-preset-es2017
  • babel-core, babel-traverse
    • #3659 Add wrapPluginVisitorMethod option to allow introspection and metrics tracking of plugins. (@kittens)
  • babel-cli, babel-core, babel-generator, babel-plugin-transform-regenerator, babel-template, babel-traverse
    • #3658 Generate names field for identifiers to get correct names mappings. (@kittens)
  • babel-generator, babel-types
    • #3570 Add support for the new declare module.exports of flow. (@danez)

Spec Compliancy

  • babel-plugin-transform-es2015-modules-amd, babel-plugin-transform-es2015-modules-commonjs, babel-plugin-transform-es2015-modules-umd

Bug Fix

  • babel-core, babel-helper-replace-supers, babel-plugin-transform-class-properties, babel-plugin-transform-es2015-classes, babel-plugin-transform-es2015-function-name, babel-plugin-transform-es2015-object-super, babel-plugin-transform-es2015-parameters
    • #3527 Fix class inheritance in IE <=10 (T3041). (@danez)
  • babel-cli
  • babel-plugin-transform-es2015-modules-systemjs
  • babel-generator
    • #3663 Use arrow syntax for ObjectTypeProperty FunctionTypeAnnotations. (@zpao)
  • babel-register
    • #3608 Set sourceRoot in babel-register transform to fix paths in stacks. (@danez)
  • babel-plugin-transform-es2015-block-scoping
    • #3618 incorrect handling of returns nested in switch cases. (@ahl)
  • babel-traverse
  • babel-plugin-transform-flow-strip-types
    • #3655 Strip flow-only class props without needing transform-class-properties.. (@loganfsmyth)

Documentation

Internal

  • babel-preset-es2015, babel-preset-latest
  • babel-preset-es2015
  • Other
    • #3668 Ensure correct version of babel installed for preset options. (@danez)
    • #3645 Add es2015 loose mode back. (@hzoo)
    • #3639 Use es2015 loose mode after publish. (@hzoo)

Don't miss a new babel-types release

NewReleases is sending notifications on new releases.