Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doppins] Upgrade dependency babel-polyfill to 6.9.1 #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

doppins-bot
Copy link
Contributor

Hi!

A new version was just released of babel-polyfill, so Doppins
has upgraded your project's dependency ranges.

Make sure that it doesn't break anything, and happy merging! :shipit:


Upgraded babel-polyfill from 6.9.0 to 6.9.1

Changelog:

Version 6.9.1

6.9.1 (2016-05-29)

Also released 6.9.2 to fix a missing dependency issue for the switch to regenerator-runtime

Just 2 fixes this release!

  • A class property fix (set this correctly when using async arrow function class properties without a super class).
  • A fix for react-constant-elements plugin to help optimize react more (the plugin wasn't applying to JSX with text).

Also, thanks to @mucsi96 for catching the extraneous code coverage comments we were leaving when publishing!

We are removing/deprecating babel-regenerator-runtime in favor of depending on the original regenerator-runtime since the differences are resolved. Thanks to (@benjamn) for the suggestion to maintain it (and for originally creating it!).

Bug Fix

  • babel-core
    • #3508 (https://github.com/babel/babel/pull/3510) Assign _this to this when there is no Superclass in a Class when using class properties. Fixes T7364. (@ehjay)

The fix correctly set this: var _this; -> var _this = this;

// input
class MyClass {
  myAsyncMethod = async () => {
    console.log(this);
  }
}

// output
class MyClass {
  constructor() {
    var _this = this; // _this wasn't being set to `this`
    this.myAsyncMethod = babelHelpers.asyncToGenerator(function* () {
      console.log(_this);
    });
  }
}
  • babel-plugin-transform-react-constant-elements, babel-types
    • #3510 (https://github.com/babel/babel/pull/3510) Make JSXText Immutable. Fixes T7251. (@le0nik)

JSX with text in it was not being hoisted as other constant elements.

// input
var Foo = React.createClass({
  render() {
    return <div>Text</div>; // text wasn't considered constant
  }
});

// output
var _ref = <div>Text</div>;

var Foo = React.createClass({
  render() {
    return _ref;
  }
});

Internal

  • #3513 (https://github.com/babel/babel/pull/3513) Make sure the env is production when publishing. (@hzoo)
  • babel-regenerator-runtime
    • #3507 (https://github.com/babel/babel/pull/3507) babel-regenerator-runtime license field. (@leipert)
  • babel-core
    • #3446 (https://github.com/babel/babel/pull/3446) Use more ideal mocha hooks in babel-core/test/api. (@jmm)
  • babel-polyfill, babel-regenerator-runtime, babel-runtime
    • #3494 (https://github.com/babel/babel/pull/3494) Use regenerator-runtime from npm; removed babel-regenerator-runtime fork since there aren't differences anymore. (@benjamn)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant