Skip to content

v6.4.5

Compare
Choose a tag to compare
@hzoo hzoo released this 19 Jan 23:05
· 9877 commits to main since this release

6.4.5 (2016-01-19)

  • Bug Fix
    • babel-plugin-transform-es2015-modules-commonjs: #3118 Fix bad import hoisting interaction (copy _blockHoist values) regarding import statements. (T6738). Thanks @benjamn for your patience for this one!

      • This fixes:
      var _templateObject = (0, _taggedTemplateLiteral3.default)(["foo"], ["foo"]); // this should come after _taggedTemplateLiteral 2 and 3
      var _taggedTemplateLiteral2 = require("babel-runtime/helpers/taggedTemplateLiteral");
      var _taggedTemplateLiteral3 = _interopRequireDefault(_taggedTemplateLiteral2);
      
      tag(_templateObject);
    • babel-types, babel-plugin-transform-es2015-modules-commonjs, babel-generator: #3183 Fix various source map issues. (T6851). Thanks for your work @kpdecker! Committed as de51bf5

    • babel-helper-remap-async-to-generator: #3257 Fix issue with using this inside an arrow function (T2765). Thanks @horpto!

      • This fixes:
      class A {
        async method() {
          () => this; // this `this` wasn't being transpiled correctly
        }
      }
    • babylon: #3272 Dedupe parser opts from passsed in multiple times. (T3084). Thanks @agentme!

      • This fixes a specific issue with the react preset since it includes syntax-flow and transform-flow-strip-types which caused an issue with the flow types not to be stripped and the general case of other people are including the flow syntax option in their own plugins.
    • babel-helper-define-map, babel-traverse, babel-plugin-transform-es2015-classes: #3274 Prevent method names in classes from being locally bound to the transformed function body. (T6712). Thanks @willheslam for helping to debug and coming up with alternative solutions for this issue!

      • This fixes:
        SyntaxError: index.js: "foo" is read-only (This is an error on an internal node. Probably an internal error. Location has been estimated.)
        1 | class Component {
        2 |   foo() {
        3 |     const foo = obj;
        4 |   }
        5 | }
        6 |
    • babel-helpers: #3276 Add missing return statements to asyncToGenerator helper.

    • babel-plugin-transform-es2015-modules-commonjs: #3282 Fixes an issue with using default as a specifier in an export.

      • This fixes an issue with:
      export {default as foo} from "foo";
  • Documentation
  • Internal
    • babel-plugin-transform-es2015-parameters: #3263 Test coverage.
    • babel-core: #3268 Add a test for (T2892).
    • #3275 Temporarily change flow types to fix lint.
    • #3277 Fixup Makefile .bin references. Thanks @charliesome!
    • #3278 Use local bin references instead of implied global in Makefile.
    • babylon: #3284 Add some more flow types. Thanks @bmeck!
  • Polish
    • babel-plugin-transform-es2015-parameters: #3264 Simplify code, add comments.