6.22.0 (2017-01-19)
Thanks to 10 new contributors! (23 total)
A quick update since it's been over a month already: adds support for shorthand import syntax in Flow + some fixes!
We'll be merging in our current 7.0 PRs on a 7.0 branch soon and I'l be making some more issues (most should be beginner-friendly).
To follow our progress check out our 7.0 milestone, the wiki and upcoming announcements on twitter!
We support stripping out and generating the new shorthand import syntax in Flow (parser support was added in babylon@6.15.0.
import {
someValue,
type someType,
typeof someOtherValue,
} from "blah";
π New Feature
babel-generator
,babel-types
- #5110 Validate importKind and ensure code generation exists.. (@loganfsmyth)
babel-plugin-transform-flow-strip-types
,babel-traverse
babel-core
π Bug Fix
babel-plugin-transform-object-rest-spread
- #5151 Avoid duplicating impure expressions in object rest destructuring. (@erikdesjardins)
const { x, ...y } = foo();
Old Behavior
const { x } = foo();
const y = _objectWithoutProperties(foo(), ["x"]);
New/Expected Behavior
const _ref = foo(); // should only be called once
const { x } = _ref;
const y = _objectWithoutProperties(_ref, ["x"]);
babel-cli
babel-plugin-transform-object-rest-spread
- #5088 fix: plugin-transform-object-rest-spread param with default value. (@christophehurpeau)
Accounts for default values in object rest params
function fn({a = 1, ...b} = {}) {
return {a, b};
}
babel-plugin-transform-es2015-destructuring
- #5093 Ensure array is always copied during destructure. (@existentialism)
const assign = ([...arr], index, value) => {
arr[index] = value
return arr
}
const arr = [1, 2, 3]
assign(arr, 1, 42)
console.log(arr) // [1, 2, 3]
babel-plugin-transform-es2015-function-name
Input
export const x = ({ x }) => x;
export const y = function () {};
Output
export const x = ({ x }) => x;
export const y = function y() {};
babel-types
babel-cli
π Polish
babel-traverse
babel-generator
,babel-plugin-transform-exponentiation-operator
- #5026 Remove unnecessary spaces around template element. (@chicoxyzzy)
π Documentation
- Other
babel-core
- #5101 Document babelrc option. (@novemberborn)
- #5114 Update babel-core options in README. (@existentialism)
babel-plugin-syntax-class-constructor-call
babel-plugin-transform-es2015-duplicate-keys
,babel-plugin-transform-es2015-parameters
babel-plugin-transform-es2015-computed-properties
,babel-plugin-transform-es2015-for-of
- #5096 Add examples to computed-props and for-of READMEs [skip ci]. (@existentialism)
babel-plugin-transform-class-properties
- Other
babel-plugin-transform-es2015-classes
,babel-plugin-transform-function-bind
- #5061 Fix some doc lint issues. (@existentialism)
babel-helpers
babel-preset-react
- #5051 Adding more info to the Install section. (@gitanupam)
babel-plugin-check-es2015-constants
,babel-plugin-transform-es2015-modules-umd
,babel-plugin-transform-es2015-typeof-symbol
,babel-register
- #5045 Fix some README links. (@existentialism)
babel-core
π Internal
babel-*
- #5129 Bump eslint-config-babel and fix lint. (@existentialism)
- #5138 Refactor packages to use ES modules instead of CJS. (@chicoxyzzy)
- #5113 Kaicataldo enable prefer const. (@hzoo)
babel-helper-transform-fixture-test-runner
- #5135 Run Babel's unittests in a custom sandbox.. (@loganfsmyth)
babel-cli
,babel-core
,babel-generator
,babel-helper-define-map
,babel-register
,babel-runtime
,babel-types
babel-cli
,babel-generator
,babel-helper-fixtures
,babel-helper-transform-fixture-test-runner
,babel-preset-es2015
,babel-runtime
,babel-traverse
babel-code-frame
babel-plugin-transform-react-jsx
babel-plugin-transform-decorators
babel-plugin-transform-es2015-computed-properties
- #5053 Remove unused define-map helper from computed-properties. (@existentialism)
babel-cli
Committers: 23, First PRs: 10
- Andres Suarez (zertosh)
- Andrii Bida (nomicos) First PR!
- Anthony Zotti (amZotti) First PR!
- Anupam (gitanupam) First PR!
- Artem Yavorsky (yavorsky) First PR!
- Brian Ng (existentialism)
- Christophe Hurpeau (christophehurpeau)
- Daniel Tschinder (danez)
- Diogo Franco (Kovensky)
- Erik Desjardins (erikdesjardins)
- Henry Zhu (hzoo)
- Howard Yeh (hayeah) First PR!
- Janus Troelsen (ysangkok) First PR!
- Jeff Morrison (jeffmo)
- Karsten Gohm (kasn) First PR!
- Logan Smyth (loganfsmyth)
- Mark Wubben (novemberborn) First PR!
- Peter Mikula (peterm0x)
- Ryan Tsao (rtsao) First PR!
- Sergey Rubanov (chicoxyzzy)
- Simon Lydell (lydell)
- Sven SAULEAU (xtuc)
- SΓ©rgio Batista (batista) First PR!
- rmacklin