s/compliancy/compliancy/g - seems both correct and consistent with more recent occurrences
8.3 KiB
8.3 KiB
Babel v4 Changelog
4.7.16
- Bug Fix
- Fix constructor spreading of typed arrays.
- Fix break/continue/return aliasing of non-loops in block scoping transformer.
4.7.15
- Bug Fix
- Fix constructor spreading of collections.
4.7.14
- Bug Fix
- Fix constructor spreading of
Promise. - Internal
- Deprecate remaining playground transformers and abstract references.
4.7.13
- Bug Fix
- Handle comments on use strict directives.
- Fix assignment patterns with a left side pattern.
- Polish
- Special case
thiswhen doing expression memoisation.
4.7.12
- Bug Fix
- Deprecate
playground.methodBinding.
4.7.11
- Bug Fix
- Fix unicode regexes stripping their unicode flag before being passed on two
regexpu.
4.7.10
- Internal
- Deprecate
playground.methodBindingandplayground.objectGetterMemoization. - Bug Fix
- Fix
inputSourceMapoption. Thanks @Rich-Harris!
4.7.9
- Polish
- Allow
inputSourceMapto be set tofalseto skip the source map inference. - Infer computed literal property names.
- Bug Fix
- Fix nested labeled for-ofs.
- Fix block scoping
breakcolliding with the parent switch case. - Internal
- Upgrade
acorn-babel.
4.7.8
- Bug Fix
- Fix computed classes not properly setting symbols.
4.7.7
- Bug Fix
- Fix
typesAPI exposure.
4.7.6
- Bug Fix
- Fix non-Identifier/Literal computed class methods.
- Polish
- Add a fallback if
stackon an error is unconfigurable. - Hoist
esModulemodule declarations to the top of the file to handle circular dependencies better.
4.7.5
- Bug Fix
- Don't remap
breaks to call the iterator return. - Polish
- Use a different helper for computed classes for much nicer output. Also fixes a bug in symbols being non-enumerable so they wouldn't be set on the class.
4.7.4
- Bug Fix
- Rewrite named function expressions in optional async function transformers.
- Hoist directives.
- Remove
Numberfrom the list of validruntimeconstructors. - Internal
spec.typeofSymboltransformer has been renamed toes6.symbols.
4.7.2
- New Feature
"both"option forsourceMap.- Add output types to external helpers. Thanks @neVERberleRfellerER!
- Bug Fix
- Fix node duplication sometimes resulting in a recursion error.
- Ignore
breaks within cases insidefor...of. - Polish
- Split up variable declarations and export declarations to allow easier transformation.
4.7.0
- Bug Fix
- Add
alternateto list ofSTATEMENT_OR_BLOCKkeys. - Add support for module specifiers to
t.isReferenced. - New Feature
- Add
inputSourceMapoption. - Polish
- Throw an error on different
babelandbabel-runtimeversions. - Replicate module environment for
babel-nodeeval. - Clean up classes output.
- Spec Compliance
- Make it illegal to use a rest parameter on a setter.
4.6.6
- Bug Fix
- Fix incorrect method call in
utility.deadCodeEliminationtransformer. - Fix
es6.blockScopingTDZtransformer duplicating binding nodes.
4.6.5
- Internal
useStricttransformer has been renamed tostrict.
4.6.4
- Bug Fix
- Fix
ForOfStatementnot properly inheriting labels. - When in closure mode in block scoping transformer, properly check for variable shadowing.
- New Feature
- New
utility.inlineEnvironmentVariablesandutility.inlineExpressiontransformers.
4.6.3
- Bug Fix
- Fix
argumentsbeing incorrectly aliased in arrow function rest parameter optimisation. - Make deoptimisation trigger safer.
- New Feature
- Flow types are now retained when blacklisting the
flowtransformer.
4.6.1
- Bug Fix
- Fix generators in template directory being transformed.
- Fix exposure of
utilfor plugins.
4.6.0
- New Feature
- Desugar sticky regexes to a new constructor expression so it can be handled by a polyfill.
- Spec Compliance
for...ofnow outputs in a lengthytry...catchthis is to ensure spec compliance in regards to iterator returns and abrupt completions. See google/traceur-compiler#1773 and babel/babel/#838 for more information.- Polish
- Rest parameters that are only referred to via number properties on member expressions are desugared into a direct
argumentsreference. Thanks @neVERberleRfellerER! $ babelno 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
returnUsedHelpersoption and add whitelist tobuildHelpers.- 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
.babelrcsupport. - Bug Fix
- Move use strict directives to the module formatter bodies.
- Internal
- Make default
bin/babelbehaviour to ignore non-compilable files and add a--copy-filesflag to revert to the old behaviour.
4.4.6
- Bug Fix
- Fix extending a class expression with no methods/only constructor. Thanks @neVERberleRfellerER!
- Allow
MemberExpressionas a validleftofForOfStatement. - Polish
- Throw an error when people try and transpile code with the
@jsx React.DOMpragma as it conflicts with the custom jsx constructo method detection. - Crawl all comments for
@jsxpragma. - 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!
- Internal
- Upgrade
acorn-babel.
4.4.3
- Bug Fix
- Fix
for...ofiterator break returns being duplicated. - Only call
returnon the iterator if it exists. - Internal
- Rename
selfContainedtransformer toruntime.
4.4.2
- New Feature
- Add
moduleIdoption for specifying a custom module id.
4.4.0
- New Feature
/*** @jsx NAMESPACE **/comments are now honored by thereacttransformer.getModuleNameoption.- Infer function expression names. Thanks @RReverser!
- Bug Fix
- Add proper control flow for tail recursion optimisation.
- Internal
- Remove useless
formatoptions and move theformat.compactoption toformat. - 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
commonStandardmodule 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
__esModulein loose mode. - Internal
- Add error for
eval();usage and enable strict mode for parsing.
4.1.0
- New Feature
- Add
BABEL_CACHE_PATHandBABEL_DISABLE_CACHEenvironment variables. - Internal
- Replace many internal util functions with modules. Thanks @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".
