All Versions
191
Latest Version
Avg Release Cycle
9 days
Latest Release
746 days ago

Changelog History
Page 19

  • v7.0.0-alpha.19 Changes

    August 07, 2017

    Can help us documented any undocumented changes or issues at https://github.com/babel/notes/issues/30 or make an issue

    :boom: Breaking Change

    • πŸ”Œ babel-plugin-transform-flow-strip-types, babel-preset-react

    babel-preset-react now will only handle flow if the file has a // @flow

    :rocket: New Feature

    • πŸ”Œ babel-plugin-syntax-typescript, babel-plugin-transform-typescript, babel-preset-typescript
      • #5899 Add babel-plugin-syntax-typescript, babel-plugin-transform-typescript, and babel-preset-typescript. (@andy-ms)

    πŸŽ‰ Initial release of typescript equivalent of how Babel handles flow with a new babel-preset-typescript

    {
      "presets": ["typescript"]
    }
    

    :bug: Bug Fix

    • πŸ”Œ babel-plugin-transform-es2015-modules-commonjs
      • #6054 Don't insert the same node into the AST multiple times (fixes babel/babili#556). (@not-an-aardvark)
    • πŸ”Œ babel-plugin-transform-es2015-modules-commonjs, babel-plugin-transform-es2015-spread

    :house: Internal

    • πŸ”Œ babel-plugin-syntax-typescript, babel-plugin-transform-typescript, babel-preset-typescript
    • πŸ”Œ babel-core, babel-helper-wrap-function, babel-plugin-transform-es2015-arrow-functions
    • πŸ”Œ babel-plugin-transform-es2015-destructuring, babel-plugin-transform-es2015-parameters, babel-plugin-transform-object-rest-spread, babel-plugin-transform-react-constant-elements, babel-traverse
    • babel-core, babel-generator, babel-traverse, babel-types
    • Other
  • v7.0.0-alpha.18 Changes

    August 03, 2017

    :eyeglasses: Spec Compliance

    • πŸ”Œ babel-generator, babel-plugin-transform-flow-comments, babel-plugin-transform-flow-strip-types, babel-types
    • babel-preset-stage-3

    :boom: Breaking Change

    • πŸ”Œ babel-plugin-transform-es2015-block-scoping, babel-traverse, babel-types

    :rocket: New Feature

    :bug: Bug Fix

    • πŸ”Œ babel-plugin-transform-es2015-block-scoping, babel-preset-es2015
    • babel-types
    • babel-core
      • #6022 allow PluginPass.file.addImport to create empty import statements. (@chocolateboy)

    πŸ“š :memo: Documentation

    • πŸ”Œ babel-plugin-transform-optional-chaining
    • Other

    :house: Internal

    • babel-*
    • babel-generator
      • #6026 babel-generator: Comment TypeScript-specific code. (@andy-ms)
      • #6018 babel-generator: Make plugins list explicit for test cases. (@andy-ms)
    • πŸ”Œ babel-plugin-transform-function-sent, babel-preset-stage-2
    • babel-types
      • #6019 babel-types: Have NewExpression inherit from CallExpression. (@andy-ms)
  • v7.0.0-alpha.17 Changes

    July 26, 2017
    • πŸ›  Lots of bug fixes
    • πŸ“¦ function.sent (temporary at babel-plugin-transform-function-sent2 until we get access to the npm package) EDIT: republished babel-plugin-transform-function-sent
    • πŸ”Œ Optional catch binding try {} catch {}: babel-plugin-transform-optional-catch-binding
    • es2015-parameters loose mode that doesn't use arguments

    :eyeglasses: Spec Compliance

    • πŸ”Œ babel-plugin-check-es2015-constants

    Instead of throwing a compile time error when const is violated, Babel should insert a throw statement before the violation.

    :boom: Breaking Change

    • πŸ”Œ babel-plugin-transform-flow-comments

    🚚 > Removes the "Noop" AST node, which was only used in the flow-comments plugin and probably unlikely in the ecosystem.

    :rocket: New Feature

    • πŸ”Œ babel-plugin-transform-react-constant-elements
      • #5307 feature: Support whitelisting mutable props for react-constant-elements. (@STRML)

    If you know a certain property will be ok to hoist

    {
      "plugins": [
        ["transform-react-constant-elements", {"allowMutablePropsOnTags": ["FormattedMessage"]}],
      ]
    }
    
    • babel-generator, babel-types
    • πŸ”Œ babel-generator, babel-plugin-transform-flow-strip-types, babel-types
    declare function foo(x: mixed): boolean %checks(x !== null);
    
    • πŸ”Œ babel-generator, babel-plugin-transform-flow-strip-types
    declare module "foo" {
      declare export type * from "bar";
    }
    
    • πŸ”Œ babel-helper-remap-async-to-generator, babel-helper-wrap-function, babel-helpers, babel-plugin-transform-function-sent, babel-preset-stage-2
    function* gen() {
      let a = function.sent;
    }
    
    let gen = _skipFirstGeneratorNext(function* gen() {
      const _functionSent = yield;
      let a = _functionSentt;
    });
    
    • πŸ”Œ babel-core, babel-generator, babel-plugin-syntax-optional-catch-binding, babel-plugin-transform-optional-catch-binding, babel-template, babel-traverse, babel-types
    try {
    } catch {}
    
    • πŸ”Œ babel-plugin-transform-es2015-parameters

    Non-spec compliant transform (disregards arity) but doesn't use arguments

    var t = function (f = "foo") {
      return f + " bar";
    };
    
    var t = function (f) {
      if (f === void 0) {
        f = "foo";
      }
    
      return f + " bar";
    };
    

    :bug: Bug Fix

    • πŸ”Œ babel-core, babel-helpers, babel-plugin-transform-object-rest-spread, babel-plugin-transform-react-constant-elements
      • #5757 Non string computed keys in object-rest-spread. (@peey)
    • babel-traverse
      • #5745 Use first binding for multiple var declarations. (@peey)
    • πŸ— babel-helper-builder-binary-assignment-operator-visitor, babel-helper-explode-assignable-expression, babel-plugin-transform-exponentiation-operator
    • πŸ”Œ babel-plugin-transform-es2015-for-of, babel-traverse
    • πŸ”Œ babel-plugin-transform-numeric-separator, babel-types
    • πŸ”Œ babel-plugin-transform-es2015-modules-amd, babel-plugin-transform-es2015-modules-commonjs, babel-plugin-transform-es2015-modules-umd
    • πŸ”Œ babel-plugin-transform-es2015-for-of
    • πŸ”Œ babel-core, babel-plugin-transform-object-rest-spread, babel-traverse
    • babel-generator
    • πŸ”Œ babel-helpers, babel-plugin-transform-es2015-classes, babel-plugin-transform-es2015-typeof-symbol
    • πŸ”Œ babel-plugin-transform-react-inline-elements

    :house: Internal

    • βœ… babel-helper-transform-fixture-test-runner
    • babel-code-frame
    • babel-register
    • babel-types
    • babel-cli
    • babel-generator
    • babel-traverse
    • Other
    • πŸ— babel-core, babel-generator, babel-helper-builder-react-jsx, babel-helper-function-name, babel-helper-replace-supers, babel-plugin-transform-es2015-block-scoping, babel-plugin-transform-es2015-classes, babel-plugin-transform-jscript, babel-plugin-transform-react-constant-elements, babel-plugin-transform-react-jsx, babel-template, babel-traverse, babel-types
    • πŸ”Œ babel-plugin-transform-es2015-modules-systemjs
  • v7.0.0-alpha.16 Changes

    July 25, 2017

    Publish issue

  • v7.0.0-alpha.15 Changes

    July 11, 2017

    This is a Stage 0 TC39 Proposal (subject to change/removal and your feedback!)

    const obj = {
      foo: {
        bar: {
          baz: 42,
        },
      },
    };
    
    const baz = obj?.foo?.bar?.baz; // 42
    
    const safe = obj?.qux?.baz; // undefined
    
    // Optional chaining and normal chaining can be intermixed
    obj?.foo.bar?.baz; // Only access `foo` if `obj` exists, and `baz` if
                       // `bar` exists
    
    function Foo() {
      console.log(new.target);
    }
    
    Foo(); // => undefined
    new Foo(); // => Foo
    
    • πŸ‘ better for of optimization (if inferred array)
    // these kinds of scenarios will compile to a regular for loop
    const x = [];
    for (const y of x) {}
    const arr = Object.entries(x);
    for (const y of arr) {}
    
    • loose mode for classes is a lot looser

    Input

    class A {}
    

    Output (loose)

    let A = function A() {}; // loose
    

    Output (normal)

    function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
    
    var A = function A() {
      _classCallCheck(this, A);
    };
    

    :boom: Breaking Change

    • babel-*
      • #5824 Hardcode to double quotes, indent to 2 spaces. (@hzoo)

    This is just the babel-generator output, not a big deal.

    :rocket: New Feature

    • babel-traverse
    • πŸ”Œ babel-plugin-transform-new-target
    • πŸ”Œ babel-core, babel-generator, babel-plugin-syntax-optional-chaining, babel-plugin-transform-optional-chaining, babel-preset-stage-1, babel-template, babel-traverse, babel-types
    • πŸ”Œ babel-core, babel-plugin-transform-es2015-for-of
      • #4747 test for for-of optimization on arrays and add it for array type anno…. (@hzoo)
    • πŸ”Œ babel-helpers, babel-plugin-transform-es2015-classes, babel-plugin-transform-flow-comments, babel-plugin-transform-flow-strip-types
      • #4850 Remove ClassCallCheck, possibleConstructorReturn in loose mode. (@hzoo)
    • πŸ”Œ babel-generator, babel-plugin-transform-flow-strip-types, babel-types

    :bug: Bug Fix

    • πŸ”Œ babel-helpers, babel-plugin-transform-class-properties, babel-plugin-transform-es2015-classes
      • #5885 Fix returning an object in a derived class constructor without super. (@jridgewell)
    • πŸ”Œ babel-helper-remap-async-to-generator, babel-plugin-transform-async-to-generator
    • πŸ”Œ babel-plugin-transform-es2015-modules-commonjs
    • πŸ”Œ babel-plugin-transform-es2015-classes
    • babel-cli
    • babel-types
      • #5865 Fix type errors for destructuring assignments(#4227). (@MarckK)
    • babel-generator
    • πŸ”Œ babel-plugin-transform-numeric-separator
    • πŸ”Œ babel-plugin-transform-es2015-template-literals, babel-preset-es2015
    • πŸ”Œ babel-plugin-transform-es2015-parameters
    • πŸ”Œ babel-plugin-syntax-optional-chaining

    πŸ’… :nail_care: Polish

    • πŸ”Œ babel-plugin-transform-es2015-parameters
    • πŸ— babel-helper-builder-react-jsx, babel-plugin-transform-es2015-spread, babel-traverse
    • babel-traverse, babel-types
    • babel-types

    πŸ“š :memo: Documentation

    :house: Internal

    • babel-polyfill
    • Other
    • babel-core, babel-generator
    • babel-*
    • babel-core, babel-generator, babel-traverse, babel-types
    • babel-*
    • babel-generator, babel-traverse
      • #5866 update babel-eslint, try out numeric separators. (@hzoo)
    • babel-generator
    • babel-cli
    • βœ… babel-core, babel-helper-transform-fixture-test-runner, babel-traverse
    • babel-core, babel-traverse
  • v7.0.0-alpha.12 Changes

    May 31, 2017

    :eyeglasses: Spec Compliance

    • πŸ”Œ babel-core, babel-generator, babel-plugin-syntax-numeric-separator, babel-plugin-transform-numeric-separator, babel-preset-stage-1, babel-template, babel-traverse, babel-types
      • #5793 Support for NumericLiteralSeparator, Stage 1 feature. (@rwaldron)

    :rocket: New Feature

    • babel-code-frame
    • πŸ”Œ babel-core, babel-generator, babel-plugin-syntax-numeric-separator, babel-plugin-transform-numeric-separator, babel-preset-stage-1, babel-template, babel-traverse, babel-types
      • #5793 Support for NumericLiteralSeparator, Stage 1 feature. (@rwaldron)
    • babel-cli
      • #5785 Allow --inspect-brk option to be used with babel-node. (@noinkling)

    :bug: Bug Fix

    • πŸ”Œ babel-plugin-transform-async-to-generator, babel-plugin-transform-es2015-destructuring, babel-plugin-transform-es2015-modules-commonjs, babel-plugin-transform-react-constant-elements
      • #5763 Fix incorrect destructuring in for loop let initialization. (@buunguyen)
    • πŸ”Œ babel-core, babel-plugin-transform-es2015-block-scoping
    • πŸ”Œ babel-plugin-transform-flow-strip-types

    πŸ“š :memo: Documentation

    • πŸ”Œ babel-plugin-check-es2015-constants, babel-plugin-syntax-async-functions, babel-plugin-syntax-async-generators, babel-plugin-syntax-class-properties, babel-plugin-syntax-decorators, babel-plugin-syntax-do-expressions, babel-plugin-syntax-dynamic-import, babel-plugin-syntax-exponentiation-operator, babel-plugin-syntax-export-extensions, babel-plugin-syntax-function-bind, babel-plugin-syntax-function-sent, babel-plugin-syntax-jsx, babel-plugin-syntax-object-rest-spread, babel-plugin-syntax-trailing-function-commas, babel-plugin-transform-async-functions
      • #5798 Make all packages/*/README.md descriptions consistent.. (@rwaldron)
    • Other

    :house: Internal

    • babel-traverse
      • #5746 Remove duplicated getStatementParent and refactor requires to imports in tests. (@maurobringolf)
      • #5779 Added individual test cases for possible errors with path.replaceWith. (@maurobringolf)
  • v7.0.0-alpha.11 Changes

    May 31, 2017
    • Publish issues
  • v7.0.0-alpha.10 Changes

    May 25, 2017
    • Publish issues, use alpha.12

    πŸš€ Update Babylon: https://github.com/babel/babylon/releases/tag/v7.0.0-beta.9, https://github.com/babel/babylon/releases/tag/v7.0.0-beta.10

    :eyeglasses: Spec Compliance

    • πŸ”Œ babel-generator, babel-plugin-transform-flow-strip-types, babel-types

    :boom: Breaking Change

    • babel-*
      • #5677 Kill the "shadow-functions.js" internal plugin in favor of an explicit helper. (@loganfsmyth)

    :rocket: New Feature

    • babel-*
    • πŸ”Œ babel-plugin-transform-es2015-arrow-functions, babel-plugin-transform-es2015-function-name
      • #5620 Add function name to spec-transformed arrow functions. (@Kovensky)
    • πŸ”Œ babel-plugin-transform-react-display-name
      • #5554 Updated transform-react-display-name for createReactClass addon. (@bvaughn)
    • babel-register

    :bug: Bug Fix

    • babel-types
    • πŸ”Œ babel-plugin-transform-flow-comments
    • πŸ”Œ babel-plugin-transform-do-expressions
    • πŸ”Œ babel-plugin-transform-es2015-classes, babel-plugin-transform-es2015-destructuring, babel-traverse
    • πŸ”Œ babel-core, babel-helpers, babel-plugin-transform-async-to-generator, babel-plugin-transform-react-constant-elements
      • #5688 Fix for #4943 "Calling an async function with default parameter as function for arguments checking handled synchonous". (@hulkish)
    • πŸ”Œ babel-plugin-transform-object-rest-spread

    πŸ’… :nail_care: Polish

    • πŸ”Œ babel-plugin-transform-es2015-template-literals

    πŸ“š :memo: Documentation

    • πŸ”Œ babel-plugin-transform-runtime
      • #5767 [Documentation change] regeneratorRuntime -> _regenerator2.default. (@adityavohra7)
    • πŸ”Œ babel-plugin-transform-es2015-arrow-functions
    • Other
    • babel-core

    :house: Internal

    • babel-helper-fixtures
      • #5765 Support specifying minimum Node version a test requires. (@buunguyen)
    • βœ… babel-helper-transform-fixture-test-runner
    • babel-preset-es2015
    • babel-register
      • #3670 Switch to pirates for babel-register.. (@danez)
    • babel-core
    • πŸ”Œ babel-core, babel-plugin-transform-react-jsx
    • Other