161 lines
4.8 KiB
Markdown
161 lines
4.8 KiB
Markdown
# Changelog
|
|
|
|
> **Tags:**
|
|
> - [New Feature]
|
|
> - [Bug Fix]
|
|
> - [Spec Compliancy]
|
|
> - [Breaking Change]
|
|
> - [Documentation]
|
|
> - [Internal]
|
|
> - [Polish]
|
|
|
|
_Note: Gaps between patch versions are faulty/broken releases._
|
|
|
|
See [CHANGELOG - 6to5](CHANGELOG-6to5.md) for the pre-4.0.0 version changelog.
|
|
|
|
## 4.6.1
|
|
|
|
* **Bug Fix**
|
|
* Fix generators in template directory being transformed.
|
|
* Fix exposure of `util` for plugins.
|
|
|
|
## 4.6.0
|
|
|
|
* **New Feature**
|
|
* Desugar sticky regexes to a new constructor expression so it can be handled by a polyfill.
|
|
* **Spec Compliancy**
|
|
* `for...of` now outputs in a lengthy `try...catch` this is to ensure spec compliancy in regards to iterator returns and abrupt completions. See [google/traceur-compiler#1773](https://github.com/google/traceur-compiler/issues/1773) and [babel/babel/#838](https://github.com/babel/babel/issues/838) for more information.
|
|
* **Polish**
|
|
* Rest parameters that are only refered to via number properties on member expressions are desugared into a direct `arguments` reference. Thanks [@neVERberleRfellerER](https://github.com/neVERberleRfellerER)!
|
|
* `$ babel` no longer exits on syntax errors.
|
|
* **Internal**
|
|
* Upgrade `browserify`.
|
|
* Upgrade `source-map`.
|
|
* Publicly expose more internals.
|
|
|
|
## 4.5.5
|
|
|
|
* **Polish**
|
|
* Delete old extensions when overriding them in `babel/register`.
|
|
|
|
## 4.5.3
|
|
|
|
* **Bug Fix**
|
|
* Fix whitelisting logic for helper build script.
|
|
|
|
## 4.5.2
|
|
|
|
* **New Feature**
|
|
* `returnUsedHelpers` option and add whitelist to `buildHelpers`.
|
|
* **Bug Fix**
|
|
* Fix function arity on self referencing inferred named functions.
|
|
* **Internal**
|
|
* Bump `acorn-babel`.
|
|
* Start converting source to ES6...
|
|
|
|
## 4.5.1
|
|
|
|
**Babel now compiles itself!**
|
|
|
|

|
|
|
|
## 4.5.0
|
|
|
|
* **New Feature**
|
|
* Add `.babelrc` support.
|
|
* **Bug Fix**
|
|
* Move use strict directives to the module formatter bodies.
|
|
* **Internal**
|
|
* Make default `bin/babel` behaviour to ignore non-compilable files and add a `--copy-files` flag to revert to the old behaviour.
|
|
|
|
## 4.4.6
|
|
|
|
* **Bug Fix**
|
|
* Fix extending a class expression with no methods/only constructor. Thanks [@neVERberleRfellerER](https://github.com/neVERberleRfellerER)!
|
|
* Allow `MemberExpression` as a valid `left` of `ForOfStatement`.
|
|
* **Polish**
|
|
* Throw an error when people try and transpile code with the `@jsx React.DOM` pragma as it conflicts with the custom jsx constructo method detection.
|
|
* Crawl all comments for `@jsx` pragma.
|
|
* **Internal**
|
|
* Upgrade `chalk`.
|
|
* Upgrade `core-js`.
|
|
|
|
## 4.4.5
|
|
|
|
* **Internal**
|
|
* Remove function self reference optimisation.
|
|
|
|
## 4.4.4
|
|
|
|
* **Bug Fix**
|
|
* Handle inferred function ids to be reassigned and deopt to a slower but working equivalent.
|
|
* Don't unpack array patterns that have more elements than their right hand array expression.
|
|
* **Polish**
|
|
* Improve syntax highlighting in the code frame. Thanks [@lydell](https://github.com/lydell)!
|
|
* **Internal**
|
|
* Upgrade `acorn-babel`.
|
|
|
|
## 4.4.3
|
|
|
|
* **Bug Fix**
|
|
* Fix `for...of` iterator break returns being duplicated.
|
|
* Only call `return` on the iterator if it exists.
|
|
* **Internal**
|
|
* Rename `selfContained` transformer to `runtime`.
|
|
|
|
## 4.4.2
|
|
|
|
* **New Feature**
|
|
* Add `moduleId` option for specifying a custom module id.
|
|
|
|
## 4.4.0
|
|
|
|
* **New Feature**
|
|
* `/*** @jsx NAMESPACE **/` comments are now honored by the `react` transformer.
|
|
* `getModuleName` option.
|
|
* Infer function expression names. Thanks [@RReverser](https://github.com/RReverser)!
|
|
* **Bug Fix**
|
|
* Add proper control flow for tail recursion optimisation.
|
|
* **Internal**
|
|
* Remove useless `format` options and move the `format.compact` option to `format`.
|
|
* **Polish**
|
|
* Newline handling of the code generator has been heavily improved.
|
|
* Code generator now deopts whitespace if the input size is >100KB.
|
|
|
|
## 4.3.0
|
|
|
|
* **Breaking Change**
|
|
* Remove `commonStandard` module formatter and make it the default behaviour of all the strict module formatters.
|
|
|
|
## 4.2.1
|
|
|
|
* **Polish**
|
|
* Add auxiliary comment to let scoping closure flow control.
|
|
|
|
## 4.2.0
|
|
|
|
* **Polish**
|
|
* Use an assignment instead of a define for `__esModule` in loose mode.
|
|
* **Internal**
|
|
* Add error for `eval();` usage and enable strict mode for parsing.
|
|
|
|
## 4.1.0
|
|
|
|
* **New Feature**
|
|
* Add `BABEL_CACHE_PATH` and `BABEL_DISABLE_CACHE` environment variables.
|
|
* **Internal**
|
|
* Replace many internal util functions with modules. Thanks [@sindresorhus](https://github.com/sindresorhus)!
|
|
|
|
## 4.0.2
|
|
|
|
* **Bug Fix**
|
|
* Fix generators not properly propagating their internal declarations.
|
|
* **Polish**
|
|
* Update setter param length error message.
|
|
* Use ranges on dependencies.
|
|
|
|
## 4.0.0
|
|
|
|
* 6to5 is now known as Babel.
|
|
* Global helpers/runtime has now been given the more descriptive name of "external helpers".
|