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

chore(deps): update dependency babel to v6 #15

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Apr 6, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
babel (source) ^5.8.23 -> ^6.0.0 age adoption passing confidence

Release Notes

babel/babel (babel)

v6.23.0

Compare Source

6.23.0 (2017-02-13)

🚀 New Feature
  • babel-plugin-transform-react-constant-elements
    • #​4812 feature: Support pure expressions in transform-react-constant-elements. (@​STRML)
  • babel-preset-flow, babel-preset-react
  • babel-traverse
  • babel-plugin-transform-es2015-block-scoping
🐛 Bug Fix
📝 Documentation
🏠 Internal
Committers: 20

v6.5.2

Compare Source

6.5.2 (2016-02-12) "Who needs semicolons anyway” ¯_(ツ)_/¯

Changes to note:

  • Reverting the class properties semicolon parser error.
  • Fix regression with plugin ordering with babel-register.
Spec Compliancy
  • babel-plugin-transform-class-properties, babylon
Bug Fix
  • babel-core, babel-register
  • babel-plugin-transform-es2015-spread
    // input
    super.method(...args);
    // wrong output
    super.method.apply(super, babelHelpers.toConsumableArray(args));
    // new fixed output
    super.method.apply(this, babelHelpers.toConsumableArray(args));
  • babel-plugin-transform-function-bind, babel-types
Documentation
  • babel-register
  • babel-plugin-transform-async-to-module-method, babel-plugin-transform-es2015-arrow-functions, babel-plugin-transform-es2015-classes, babel-plugin-transform-es2015-computed-properties, babel-plugin-transform-es2015-for-of, babel-plugin-transform-es2015-modules-commonjs, babel-plugin-transform-es2015-spread, babel-plugin-transform-es2015-template-literals, babel-plugin-transform-react-jsx, babel-plugin-transform-regenerator, babel-plugin-transform-runtime, babel-plugin-transform-strict-mode
  • #​3352 Fix a typo. (@​pra85)
Internal

v6.5.1

Compare Source

6.5.1 (2016-02-08) Daddy does a release.

  • Bug Fix
    • bc2f84f Fix options being ignored in babel-register.
    • #​3329 Fix ExportSpecifier node validator validating imported instead of exported.
  • Polish
    • #​3333 Improve the error messaging for using the wrong CLI script.

v6.5.0

Compare Source

6.5.0 (2016-02-07)

Happy Superbowl Sunday! There's many contributors (17 + core) this release!

A traversal per preset (Experimental)

This is an experimental feature that will almost certainly change. You should use this option in specific cases while we figure out a better way to do this.
Depending on usage/feedback, we will switch the way this is used to instead define a explicit preset-level config flag (rather than the global one below). This will give more control over how you want to use this option.

{
  passPerPreset: true,
  presets: [
    {
      plugins: ['plugin-1']
    },
    'preset-2',
    {
      plugins: ['plugin-2']
    }
  ]
}
// this will create 3 traversals

Thanks to @​DmitrySoshnikov, passPerPreset: true will modify how babel traverses through plugins. Instead of a single traversal in which all plugins/presets are merged together, each preset will get their own traversal.

This allows users to have a specific order to how presets/plugins are applied and can help avoid potential collisions between plugins (and probably some known issues).


More Speeeeeeed

@​gzzhanghao made some awesome changes to improve our code generator's performance (babel-generator). The original issue is here.

Based on his test (on parsing jquery.js), performance improved ~3x.

===== origin/master (ms) =====
babylon 265
babel generator 2238 <-- old
acorn 107
escodegen 355
esprima 95
escodegen 322
===== Optimized (ms) =====
babylon 296
babel generator 662 <-- new
acorn 113
escodegen 355
esprima 106
escodegen 317

A big change had to do with keeping this.last as an instance variable in the buffer instead of this.buf[this.buf.length -1].

You can read more about his changes here. Hoping to see more PR's like this!

We will try to setup some perf tests soon to track these stats for the future (or you can help!).

New Feature
  • babel-core
  • babel-core
  • babel-helper-transform-fixture-test-runner, babel-plugin-transform-react-jsx-source
    • #​3285 Hoist the current file name (an absolute path) for transform-react-jsx-source . (@​frantic)

This plugin (useful for tooling) will turn

// this/file.js
<sometag />

into

var _jsxFileName = "this/file.js"; // the output will be an absolute path
var x = <sometag __source={{
  fileName: _jsxFileName,
  lineNumber: 1
}} />;
// analyse not analyze :D
// usage
babel.analyse("foobar;", {}, {
  Program: function (path) {
    path.mark("category", "foobar");
  }
}).marked[0].message // outputs "foobar"
  • babylon
// allows for either `|` or `&`
type union =
 | {type: "A"}
 | {type: "B"}
;

This was added in flow in 7fb56ee9d8.

Bug Fix

Code samples below each bullet

  • babel-helper-define-map, babel-helper-function-name, babel-plugin-transform-es2015-classes
// When the same name as a method in a class is used

class Foo {
  constructor(val) {
    this._val = val;
  }
  foo2() {
    return foo2(this._val); // was erroring since foo2 is used
  }
}
  • babel-helper-remap-async-to-generator, babel-plugin-transform-async-to-generator
// nested arrow functions
class A {
  async method() {
    () => {
      () => this; // `this` in nested arrow function was incorrect
    }
  }
}
  • babel-template
    • #​3314 Only strip node info if no node.loc. Fixes an issue with sourcemap generation for SystemJS with babel-template. (Issue T6903) (@​guybedford)
  • babel-traverse
// a generator with a default argument
export class Test {
    *memberGenerator(arg = 0) {
        console.log(arg);
    }
    start() {
        this.memberGenerator(1).next();
    }
}
  • babel-generator
var fn = () => ({}).key;
  • babel-helper-remap-async-to-generator, babel-plugin-transform-es2015-modules-commonjs
foo();

async function foo() {} // this should be hoisted above foo();
  • babel-generator
    • #​3324 Parenthesize the in in a for-loop init, even in the case when it is nested. (@​zjmiller)
// nested for loop
for (function(){for(;;);} && (a in b);;);
const X = (
  props: SomeType,
): ReturnType => (
  3
);
Documentation
Internal
Polish

v6.3.26

Compare Source

6.3.26

  • Bug Fix
    • babel-plugin-transform-es2015-parameters: #​3191 Fix the order of arguments initialization (fixes T6809)
    • babel-traverse: #​3198 In evaluate(), it should not mistake lack of confidence for falsy
  • Spec Compliancy
    • babylon, babel-generator, babel-plugin-transform-regenerator: #​3190: Remove await * from babylon and raise an error for that syntax since it was removed from the proposal and was causing an issue at runtime but not at compile time (fixes T6688).
  • Internal
    • Fix gulp build path to work on windows (fixes T6855).
    • babel: #​3193 Point users to the cli docs
    • babel-core: #​3196 Add a test for checking plugins/presets are resolved relative to filename

v6.3.13

Testing lerna - A tool for managing JavaScript projects with multiple packages.

  • Bug Fix
    • babylon, babel-types, babel-generator:
      • #​3130 Add support for NullLiteralTypeAnnotation (null literal type) in flow.

v6.1.18

Compare Source

v6.1.17

Compare Source

v6.1.16

Compare Source

v6.1.15

Compare Source

v6.1.14

Compare Source

v6.1.13

Compare Source

v6.1.12

Compare Source

v6.1.11

Compare Source

v6.1.10

Compare Source

v6.1.9

Compare Source

v6.1.8

Compare Source

v6.1.7

Compare Source

v6.1.6

Compare Source

v6.1.5

Compare Source

v6.0.15

Compare Source

v6.0.14

Compare Source

v6.0.12

Compare Source

v6.0.2

Compare Source

v6.0.0

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

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.

0 participants