329 KiB
Changelog
Tags:
- 💥 [Breaking Change]
- 👓 [Spec Compliance]
- 🚀 [New Feature]
- 🐛 [Bug Fix]
- 📝 [Documentation]
- 🏠 [Internal]
- 💅 [Polish]
Note: Gaps between patch versions are faulty, broken or test releases.
See CHANGELOG - v4, CHANGELOG - v5, and CHANGELOG - v6 for v4.x-v6.x changes.
See CHANGELOG - 6to5 for the pre-4.0.0 version changelog.
See Babylon's CHANGELOG for the Babylon pre-7.0.0-beta.29 version changelog.
See babel-eslint's releases for the changelog before @babel/eslint-parser 7.8.0.
See eslint-plugin-babel's releases for the changelog before @babel/eslint-plugin 7.8.0.
v7.8.7 (2020-03-05)
🐛 Bug Fix
babel-preset-env- #11201 Allow using
preset-envwith newer versions ofcompat-data(@nicolo-ribaudo)
- #11201 Allow using
babel-core- #11193 Pass URLs to import() rather than paths (@nicolo-ribaudo)
babel-parserbabel-helper-call-delegate,babel-plugin-transform-parameters- #11158 Fix scope of function body when var redeclares param (@openorclose)
babel-generatorbabel-typesbabel-plugin-transform-typescript- #11129 Typescript: Preserve decorated definite class properties (@jamescdavis)
🏠 Internal
babel-parser- Other
- #11181 Set correct version for @babel/eslint-plugin-development (@nicolo-ribaudo)
v7.8.6 (2020-02-27)
👓 Spec Compliance
babel-helper-module-transforms,babel-helper-replace-supers,babel-plugin-transform-modules-commonjs- #11109 Fix rewriteThis in helper-module-transforms for computed class elements (@sidntrivedi012)
babel-parser
💥 Breaking Change
- #11137 Breaking: align babel-eslint-parser & espree (@kaicataldo)
🚀 New Feature
babel-helper-create-regexp-features-plugin,babel-plugin-transform-classes,babel-plugin-transform-named-capturing-groups-regex,babel-preset-env- #11134 Mark
wrapNativeSuperandwrapRegExpas pure (@nicolo-ribaudo)
- #11134 Mark
🐛 Bug Fix
babel-helper-compilation-targets- #11124 fix: search for browserslist if esmodules is falsy (@fengzilong)
babel-registerbabel-parser- Other
- #11137 Breaking: align babel-eslint-parser & espree (@kaicataldo)
babel-compat-data,babel-preset-envbabel-traverse- #11136 fix @babel/traverse can't use path.remove() with noScope (@liuxingbaoyu)
babel-helper-create-class-features-plugin,babel-helper-replace-supers- #11068 Fix classNameTDZError in computed prototype methods with class fields (@sidntrivedi012)
babel-templatebabel-plugin-transform-for-of- #11088 Allow redeclaration of loop variable in body (@openorclose)
babel-helper-module-transforms,babel-plugin-transform-modules-commonjs- #11074 Fix export bindings not updated by 'for ... in' and 'for ... of' (@vedantroy)
babel-standalonebabel-types- #11089 Make
isReferencedreturn false for method parameter name (@brokensandals)
- #11089 Make
💅 Polish
babel-core,babel-generator,babel-plugin-external-helpers,babel-plugin-proposal-async-generator-functions,babel-plugin-proposal-class-properties,babel-plugin-proposal-decorators,babel-plugin-proposal-function-bind,babel-plugin-transform-async-to-generator,babel-plugin-transform-classes,babel-plugin-transform-flow-comments,babel-plugin-transform-flow-strip-types,babel-plugin-transform-function-name,babel-plugin-transform-parameters,babel-plugin-transform-react-constant-elements,babel-plugin-transform-react-jsx,babel-plugin-transform-regenerator,babel-plugin-transform-runtime,babel-plugin-transform-typescript,babel-preset-env- #11133 Skip newlines around inline
#__PURE__annotations (@nicolo-ribaudo)
- #11133 Skip newlines around inline
🏠 Internal
- Other
- #11175 replace
gulp-watchbygulp.watch(@JLHwung) - #11163 chore: migrate lock threads to github actions (@JLHwung)
- #11164 chore: specify dependency rule of check-compat-data-ci (@JLHwung)
- #11106 Centralize @babel/eslint-* tests (@kaicataldo)
- #11072 Update @babel deps (@existentialism)
- #11070 Clean babel-eslint-*/**/lib (@kaicataldo)
- #11175 replace
babel-generator,babel-helper-fixtures,babel-parser,babel-traversebabel-helper-replace-supers- #11121 Fix typing of ReplaceSupers options (@existentialism)
babel-core,babel-plugin-syntax-decorators,babel-template,babel-traversebabel-parser- #11096 Wrap type-only class fields in flow comments (@nicolo-ribaudo)
babel-core,babel-parser,babel-typesbabel-preset-stage-0,babel-preset-stage-1,babel-preset-stage-2,babel-preset-stage-3- #11101 Remove stage presets from the monorepo (@nicolo-ribaudo)
babel-preset-env-standalone- #10993 Archive @babel/preset-env-standalone (@nicolo-ribaudo)
v7.8.5 (2020-01-31)
🐛 Bug Fix
🏠 Internal
- #11071 Further refactoring of @babel/eslint-parser (@kaicataldo)
v7.8.4 (2020-01-30)
⚠️ In Babel 7.8.0 we introduced the
--copy-ignoredoption for@babel/cli, defaulting tofalse. However, previous versions behaved as if that option was present: for this reason, we changed its default value totrue(when--copy-filesis provided) and introduced a--no-copy-ignoredoption to disable it.
👓 Spec Compliance
babel-parser
🐛 Bug Fix
babel-cli- #11063 [@babel/cli] Copy ignored files by default (@nicolo-ribaudo)
babel-compat-datababel-helpers,babel-plugin-proposal-class-properties,babel-plugin-proposal-decorators,babel-plugin-transform-classes,babel-plugin-transform-parameters,babel-plugin-transform-typeof-symbol,babel-preset-env- #11049 Avoid compiling the _typeof helper with itself (@nicolo-ribaudo)
babel-traverse- #11011 Bug/missing references after crawl (@regiontog)
babel-plugin-transform-parameters- #9714 Fix rest parameters indexing with TypeScript 'this parameter' (@BenoitZugmeyer)
babel-plugin-transform-for-ofbabel-compat-data,babel-preset-env- #11016 Re-generate preset-env fixtures (@nicolo-ribaudo)
babel-generator- #11014 Fix parentheses removal in nullish-coalescing operation (@sidntrivedi012)
babel-helper-compilation-targets
💅 Polish
babel-core
📝 Documentation
🏠 Internal
babel-compat-data- #11039 Update compat table (@nicolo-ribaudo)
- #11041 Delete duplicated file in
@babel/compat-data(@nicolo-ribaudo) - #10814 chore: map mobile browser data to their desktop version (@JLHwung)
- #11024 Check that generated compat-data is up to date on CI (@nicolo-ribaudo)
babel-parserbabel-preset-envbabel-compat-data,babel-node,babel-parser,babel-preset-env- Other
babel-core- #10995 Exclude
import()tests from pubilsh build (@nicolo-ribaudo)
- #10995 Exclude
🏃♀️ Performance
v7.8.3 (2020-01-13)
🐛 Bug Fix
🏠 Internal
babel-preset-env-standalone,babel-standalone- #10994 Ignore .map files in standalone packages (@nicolo-ribaudo)
babel-plugin-proposal-decorators,babel-plugin-proposal-dynamic-import,babel-plugin-proposal-logical-assignment-operators,babel-plugin-proposal-object-rest-spread,babel-plugin-syntax-async-generators,babel-plugin-syntax-bigint,babel-plugin-syntax-dynamic-import,babel-plugin-syntax-json-strings,babel-plugin-syntax-nullish-coalescing-operator,babel-plugin-syntax-object-rest-spread,babel-plugin-syntax-optional-catch-binding,babel-plugin-syntax-optional-chaining,babel-plugin-transform-flow-strip-types,babel-plugin-transform-modules-commonjs,babel-plugin-transform-modules-systemjs,babel-plugin-transform-react-constant-elements,babel-preset-env-standalone,babel-preset-env,babel-standalone- #10820 Archive syntax plugins enabled by default (@nicolo-ribaudo)
↩️ Revert
- Every package
- #11003 Revert "chore: specify package type (#10849)" (@nicolo-ribaudo)
v7.8.2 (2020-01-12)
🐛 Bug Fix
v7.8.1 (2020-01-12)
🐛 Bug Fix
babel-compat-data,babel-helper-compilation-targets- #10991 Downgrade semver for compatibility with Node 6 (@nicolo-ribaudo)
v7.8.0 (2020-01-12)
👓 Spec Compliance
babel-parser- #10980 Disallow private name in object elements and TS type elements (@JLHwung)
- #10955 LiteralPropertyName should allow BigIntLiteral (@JLHwung)
- #10953 fix: check await when parsing AsyncArrowBindingIdentifier (@JLHwung)
- #10947 Fix: TopLevelAwait should respect await identifiers defined in sub scope. (@JLHwung)
- #10946 fix: Class Field Initializer should not allow await expression as immediate child (@JLHwung)
babel-plugin-proposal-numeric-separatorbabel-generator,babel-parser,babel-plugin-proposal-private-methods- #10456 [parser] Disallow duplicate and undeclared private names (@nicolo-ribaudo)
💥 Breaking Change
babel-types- #10917 (opt-in) Improve @babel/types with env.BABEL_TYPES_8_BREAKING (@nicolo-ribaudo)
🚀 New Feature
babel-standalonebabel-core- #10783 Add babelrc.json support (@yordis)
- #10903 Add support for babel.config.mjs and .babelrc.mjs (@nicolo-ribaudo)
babel-compat-data,babel-preset-env-standalone,babel-preset-envbabel-helper-module-transforms,babel-plugin-transform-modules-systemjsbabel-parser- #10817 enable optional chaining by default in @babel/parser (@jackisherwood)
babel-cli- #10887 --copy-ignored flag added to CLI (@rajasekarm)
- #9144 Add --out-file-extension option to babel-cli (@eps1lon)
babel-core,babel-generator,babel-parser- #10819 Enable nullish coalescing by default in @babel/parser (@layershifter)
babel-core,babel-parser- #10843 [parser] enable dynamic import by default (@AbdulAli19)
🐛 Bug Fix
babel-nodebabel-plugin-proposal-numeric-separatorbabel-preset-envbabel-parserbabel-traverse- #10949 Override toString in case this function is printed (@jayenashar)
babel-helper-module-transforms,babel-plugin-transform-modules-commonjsbabel-traverse,babel-typesbabel-core- #10914 @babel-core: parse should parse only (@kaicataldo)
babel-helpers
💅 Polish
babel-nodebabel-parser
📝 Documentation
babel-preset-env- Other
- #10973 Added instructions to fork the repo in order to setup. (@sidntrivedi012)
🏠 Internal
babel-preset-envbabel-core- #10507 Prepare @babel/core for asynchronicity (@nicolo-ribaudo)
- Other
- #10979 Reduce false negative cases of typescript parser tests (@JLHwung)
- #10976 Update Test262, Flow and TS parser tests (@nicolo-ribaudo)
- #10964 Bump coverage target from 80% to 90% (@nicolo-ribaudo)
- #10958 Fix recent e2e-vuejs-cli error (@JLHwung)
- #10919 Add integration test: e2e-vue-cli (@JLHwung)
- #10943 chore: update test262 (@JLHwung)
- #10918 chore: refine e2e test scripts (@JLHwung)
- #10905 chore: separate build-standalone with coverage (@JLHwung)
- #10898 Move coverage to GitHub actions (@JLHwung)
babel-compat-data,babel-helper-compilation-targets,babel-preset-env- #10899 Extract targets parser and compat data from preset-env (@nicolo-ribaudo)
babel-parser- #10950 test: add invalid-lone-import test (@JLHwung)
- #10936 refactor: remove unecessary checkYieldAwaitInDefaultParams (@JLHwung)
- #10935 refactor: remove unused invalidTemplateEscapePosition tokenizer state (@JLHwung)
- #10939 TSTypeCastExpression should not be inside call parameters (@JLHwung)
- #10942 Remove unused parser methods (@JLHwung)
- Every package
↩️ Revert
v7.7.7 (2019-12-19)
👓 Spec Compliance
babel-parser
🐛 Bug Fix
babel-plugin-proposal-object-rest-spreadbabel-corebabel-node- #10871 Allow -r from node_modules with @babel/node (@nicolo-ribaudo)
babel-plugin-transform-parametersbabel-parser- #10828 @babel/parser: fix ImportExpression node to match ESTree spec (@kaicataldo)
- #10827 @babel/parser: fix BigIntLiteral node to match ESTree spec (@kaicataldo)
💅 Polish
🏠 Internal
babel-generator,babel-plugin-proposal-pipeline-operator,babel-plugin-proposal-unicode-property-regex,babel-plugin-syntax-pipeline-operator,babel-plugin-transform-dotall-regex,babel-preset-env-standalone,babel-preset-typescript,babel-standalone- Other
babel-preset-envbabel-parser- #10858 Properly serialize non-json values in parser tests (@nicolo-ribaudo)
babel-cli,babel-node,babel-register
↩️ Revert
babel-plugin-transform-classes,babel-plugin-transform-regenerator,babel-preset-env- #10839 Use
async-to-generatoreven whenregeneratoris enabled (@nicolo-ribaudo)
- #10839 Use
v7.7.6 (2019-12-08)
🏠 Internal
↩️ Revert
babel-plugin-transform-modules-commonjs,babel-plugin-transform-regenerator,babel-plugin-transform-runtime,babel-preset-env,babel-runtime-corejs2
v7.7.5 (2019-12-06)
🐛 Bug Fix
babel-plugin-transform-modules-commonjs,babel-plugin-transform-regenerator,babel-plugin-transform-runtime,babel-preset-env,babel-runtime-corejs2- #10549 Add ".js" extension to injected polyfill imports (@shimataro)
babel-clibabel-parserbabel-parser,babel-plugin-proposal-optional-chaining,babel-plugin-transform-modules-amd- #10806 fix(optional chaining): Optional delete returns true with nullish base (@mpaarating)
babel-helper-module-transforms,babel-plugin-transform-modules-amd
💅 Polish
babel-plugin-transform-runtime- #10788 Do not transpile typeof helper with itself in babel/runtime (@nicolo-ribaudo)
babel-core- #10778 refactor: Improve error message in @babel/core (@jaroslav-kubicek)
🏠 Internal
babel-preset-env-standalone- Other
babel-helper-transform-fixture-test-runner
v7.7.4 (2019-11-23)
🐛 Bug Fix
babel-runtime-corejs2,babel-runtime-corejs3,babel-runtime- #10748 Add support for native esm to @babel/runtime. (@nicolo-ribaudo)
babel-preset-env- #10742 Update preset-env mappings. (@existentialism)
babel-parser- #10737 Flow enums: fix enum body location. (@gkz)
- #10657 Fix some incorrect typeof parsing in flow. (@existentialism)
- #10582 [parser] Allow optional async methods. (@gonzarodriguezt)
- #10710 register import equals specifier. (@JLHwung)
- #10592 Allow TypeScript type assertions in array destructuring. (@SakibulMowla)
babel-preset-env-standalonebabel-plugin-transform-function-name,babel-plugin-transform-modules-umd,babel-preset-envbabel-clibabel-plugin-proposal-optional-chaining- #10694 Fix optional method chaining in derived classes. (@Shriram-Balaji)
babel-parser,babel-typesbabel-traversebabel-helpers,babel-plugin-proposal-object-rest-spread,babel-preset-env- #10683 Fix: Don't call Object.keys on non-objects (babel#10482). (@chrishinrichs)
💅 Polish
babel-plugin-proposal-nullish-coalescing-operator
🏠 Internal
- Other
- #10731 Removed duplicate key in package.json. (@rajasekarm)
- #10718 chore: use loose mode of transform. (@JLHwung)
- #10579 Implement PR workflow for running test262 on babel PRs. (@jbhoosreddy)
- #10648 bump @babel/* dev dependencies. (@JLHwung)
- #10569 E2E test Babel with itself before publishing. (@nicolo-ribaudo)
babel-corebabel-plugin-transform-literals,babel-preset-env-standalonebabel-cli
v7.7.3 (2019-11-08)
🐛 Bug Fix
babel-parser- #10682 Don't recover from "adjacent jsx elements" parser error (@nicolo-ribaudo)
v7.7.2 (2019-11-07)
🐛 Bug Fix
babel-parser- #10669 Parse arrows with params annotations in conditional expressions (@nicolo-ribaudo)
babel-plugin-transform-typescriptbabel-traverse
v7.7.1 (2019-11-05)
🐛 Bug Fix
babel-types- #10650 Revert "throw a TypeError if identifier validation fails (#10621)" (@nicolo-ribaudo)
babel-preset-env
v7.7.0 (2019-11-05)
👓 Spec Compliance
babel-typesbabel-parser
🚀 New Feature
babel-generator,babel-helper-create-class-features-plugin,babel-parser,babel-plugin-transform-typescript,babel-preset-typescript,babel-types- #10545 Add support for TS declare modifier on fields. (@nicolo-ribaudo)
babel-core,babel-parser,babel-preset-typescript- #10363 @babel/parser error recovery. (@nicolo-ribaudo)
babel-core- #10599 Add support for .cjs config files. (@nicolo-ribaudo)
- #10501 Add support for babel.config.json. (@devongovett)
- #10361 feat: if code frame error is on a single line, highlight the whole path. (@SimenB)
babel-plugin-syntax-top-level-await,babel-preset-env- #10573 Create @babel/plugin-syntax-top-level-await. (@nicolo-ribaudo)
babel-helper-builder-react-jsx,babel-plugin-transform-react-jsx,babel-preset-reactbabel-generator,babel-parser,babel-plugin-proposal-decorators,babel-plugin-syntax-flow,babel-typesbabel-plugin-transform-function-name,babel-plugin-transform-modules-umd,babel-preset-env- #10477 Changes UMD callsite to be more likely to pass in the intended object.. (@MicahZoltu)
babel-parser- #10449 Create parser plugin "topLevelAwait". (@nicolo-ribaudo)
- #10521 [parser] Enable "exportNamespaceFrom" by default. (@nicolo-ribaudo)
- #10483 [parser] Add support for private fields in TypeScript. (@nicolo-ribaudo)
babel-generator,babel-parser,babel-types- #10543 add assertions signature for TypeScript. (@tanhauhau)
babel-cli,babel-registerbabel-cli- #10399 Closes #8326, add back --quiet option.. (@chris-peng-1244)
🐛 Bug Fix
babel-helpers,babel-plugin-proposal-async-generator-functions,babel-plugin-proposal-function-sent,babel-preset-env- #10422 Correctly delegate .return() in async generator. (@nicolo-ribaudo)
babel-helper-module-transforms,babel-plugin-transform-modules-commonjs- #10628 Don't throw when destructuring into a var named as an import. (@nicolo-ribaudo)
babel-plugin-transform-modules-systemjsbabel-parser- #10631 [TS] Parse calls with type args in optional chains. (@nicolo-ribaudo)
- #10607 fixed missing errors on assignment pattern in object expression. (@vivek12345)
- #10594 [parser] Parse only modifiers of actual methods. (@gonzarodriguezt)
babel-plugin-transform-typescript- #10555 [TS] Correctly transform computed strings and templates in enums. (@nicolo-ribaudo)
babel-corebabel-plugin-proposal-decorators- #10578 [decorators] fix: support string literal properties. (@mwhitworth)
babel-helpers,babel-plugin-proposal-dynamic-import,babel-plugin-transform-modules-commonjs,babel-preset-envbabel-traverse- #9777 [traverse] Allow skipping nodes inserted with .replaceWith(). (@nicolo-ribaudo)
babel-preset-env- #10146 Inject core-js@3 imports in Program:exit instead of on post(). (@nicolo-ribaudo)
babel-generator- #10519 Fix generator missing parens around an arrow returning function type. (@existentialism)
babel-plugin-transform-async-to-generator,babel-preset-env,babel-traverse- #9939 Don't use args rest/spread to hoist super method calls. (@nicolo-ribaudo)
💅 Polish
babel-plugin-transform-classes,babel-plugin-transform-regenerator,babel-preset-env- #9481 [preset-env] Don't use async-to-generator when already using regenerator. (@nicolo-ribaudo)
babel-helpers,babel-plugin-transform-modules-commonjs,babel-preset-envbabel-register
🏠 Internal
babel-cli,babel-nodebabel-registerbabel-helper-create-regexp-features-plugin,babel-plugin-proposal-unicode-property-regex,babel-plugin-transform-dotall-regex,babel-plugin-transform-named-capturing-groups-regex,babel-plugin-transform-unicode-regex,babel-preset-envbabel-preset-envbabel-helper-module-imports- Other
- #10600 Test node@13 on circle. (@existentialism)
- #10593 chore: replace outdated travis-ci.org badges [ci skip]. (@JLHwung)
- #10591 chore: test against Node.js 13. (@JLHwung)
- #10556 Add master branch workflow for test262 tests. (@jbhoosreddy)
- #10553 chore: introduce envinfo into environment section. (@JLHwung)
babel-runtime- #10418 docs: add homepage link. (@DanArthurGallagher)
babel-helper-annotate-as-pure,babel-helper-bindify-decorators,babel-helper-builder-binary-assignment-operator-visitor,babel-helper-builder-react-jsx,babel-helper-call-delegate,babel-helper-define-map,babel-helper-explode-assignable-expression,babel-helper-explode-class,babel-helper-function-name,babel-helper-get-function-arity,babel-helper-hoist-variables,babel-helper-member-expression-to-functions,babel-helper-module-imports,babel-helper-module-transforms,babel-helper-optimise-call-expression,babel-helper-remap-async-to-generator,babel-helper-replace-supers,babel-helper-simple-access,babel-helper-split-export-declaration,babel-helper-wrap-function,babel-helpers,babel-template
🏃♀️ Performance
v7.6.4 (2019-10-10)
👓 Spec Compliance
babel-parser- #10491 Trailing comma after rest - The final fix (@nicolo-ribaudo)
🐛 Bug Fix
babel-cli,babel-core,babel-generator,babel-helper-transform-fixture-test-runner- #10536 Revert "chore: Upgrade source-map to 0.6.1 (#10446)" (@nicolo-ribaudo)
v7.6.3 (2019-10-08)
👓 Spec Compliance
babel-parser- #10469 Disallow await inside async arrow params (@nicolo-ribaudo)
- #10493 [parser] Disallow numeric separators in legacy octal like integers (@gonzarodriguezt)
🚀 New Feature
babel-types- #10504 Add declarations for more of @babel/types exports (@Jessidhia)
🐛 Bug Fix
babel-plugin-transform-block-scopingbabel-parser- #10119 add scope to TSModuleDeclaration (@tanhauhau)
- #10332 Do not allow member expressions to start async arrows (@nicolo-ribaudo)
- #10490 [parser] Don't crash on comment after trailing comma after elision (@nicolo-ribaudo)
babel-plugin-transform-react-constant-elements,babel-traverse- #10529 Do not hoist jsx referencing a mutable binding (@nicolo-ribaudo)
babel-generator,babel-parser,babel-plugin-transform-block-scoping,babel-plugin-transform-flow-comments,babel-plugin-transform-flow-strip-types,babel-plugin-transform-typescript
💅 Polish
babel-core
🏠 Internal
- Other
babel-cli,babel-core,babel-generator,babel-helper-fixtures,babel-helper-transform-fixture-test-runner,babel-node,babel-plugin-transform-react-jsx-source,babel-plugin-transform-runtime,babel-preset-env,babel-preset-react- #10249 Add windows to travis (@nicolo-ribaudo)
🏃♀️ Performance
babel-parser- Other
v7.6.2 (2019-09-23)
👓 Spec Compliance
babel-parser- #10472 added check to disallow super.private variable access and test case added. (@vivek12345)
- #10468 [parser] Disallow numeric separator in unicode scape sequences. (@ivandevp)
- #10467 [parser] Invalid NonOctal Decimal. (@gonzarodriguezt)
- #10461 [parser] Disallow static fields named
constructor. (@guywaldman) - #10455 [parser] Report escapes in kws only if they won't be used as identifiers. (@nicolo-ribaudo)
🐛 Bug Fix
babel-parser- #10445 Leave trailing comments after handling a possible trailing comma. (@nicolo-ribaudo)
babel-clibabel-corebabel-plugin-transform-block-scoping,babel-plugin-transform-spread,babel-traverse- #10417 Do not guess relative execution status for exported fns. (@nicolo-ribaudo)
babel-plugin-proposal-object-rest-spread,babel-preset-env- #10275 fix object rest in array pattern. (@tanhauhau)
🏠 Internal
babel-plugin-transform-named-capturing-groups-regex- Other
- #10441 Update GitHub actions to v2. (@nicolo-ribaudo)
- #10427 chore: add lint-ts rule. (@JLHwung)
babel-helper-fixturesbabel-nodebabel-generator,babel-helper-fixturesbabel-core,babel-plugin-transform-runtime,babel-register- #10405 Remove circular dependency. (@nicolo-ribaudo)
🏃♀️ Performance
v7.6.1 (2019-09-06)
🐛 Bug Fix
babel-types- #10404 fix(types): correct typescript function headers (@forstermatth)
babel-node- #9758 Remove process.exit(1) from babel-node (@dword-design)
v7.6.0 (2019-09-06)
👓 Spec Compliance
babel-generator,babel-parser- #10269 Fix parenthesis for nullish coalescing (@vivek12345)
babel-helpers,babel-plugin-transform-block-scoping,babel-traverse- #9498 Fix tdz checks in transform-block-scoping plugin (@nicolo-ribaudo)
🚀 New Feature
babel-corebabel-helper-create-class-features-plugin,babel-helpers,babel-plugin-proposal-private-methodsbabel-generator,babel-parser,babel-typesbabel-preset-typescript- #10382 Allow setting 'allowNamespaces' in typescript preset (@dsgkirkby)
babel-parser- #10352 Do not register ambient classes to the TS scope (@nicolo-ribaudo)
babel-types- #10248 Add static to class property builder (@yuri-karadzhov)
🐛 Bug Fix
babel-helpers,babel-plugin-transform-destructuring,babel-plugin-transform-modules-commonjs,babel-preset-envbabel-plugin-transform-runtimebabel-preset-env- #10397 Don't polyfill when evaluation is not confident (@rhyzx)
- #10218 [preset-env] Include / exclude module plugins properly (@AdamRamberg)
- #10284 Replace es.string.reverse with es.array.reverse (@epicfaace)
babel-plugin-transform-named-capturing-groups-regexbabel-types- #10098 fix typescript for babel-types (@tanhauhau)
- #10319 Add a builder definition including name for tsTypeParameter (@deificx)
babel-parserbabel-parser,babel-types- #10366 Don't allow JSXNamespacedName to chain (@jridgewell)
babel-generator,babel-plugin-transform-typescript,babel-types- #10341 Add TSBigIntKeyword to @babel/types (@nicolo-ribaudo)
babel-core,babel-types- #9960 Do not delete "fake" source map comments from strings (@nicolo-ribaudo)
babel-plugin-transform-flow-comments- #10329 Fix flow comments plugin issues (@zaygraveyard)
babel-helpers,babel-plugin-transform-react-constant-elementsbabel-plugin-proposal-decorators- #10302 fix: register inserted class declaration (@thiagoarrais)
babel-plugin-proposal-do-expressions,babel-traverse- #10070 Do expressions transform for switch statements (@tanhauhau)
- #10277 remove finally from completion record in try statement (@tanhauhau)
babel-helpers,babel-plugin-transform-named-capturing-groups-regex- #10136 fix capturing group for matchAll (@tanhauhau)
💅 Polish
babel-plugin-transform-runtime,babel-preset-env
📝 Documentation
- #10313 Adds note about two approval policy to PR template (@thiagoarrais)
🏠 Internal
babel-register- #9847 Remove core-js dependency from @babel/register (@coreyfarrell)
babel-helper-fixtures,babel-helper-transform-fixture-test-runner,babel-preset-env- #10401 Use "validateLogs" for preset-env's debug fixtures (@nicolo-ribaudo)
babel-parserbabel-helper-fixtures,babel-helper-transform-fixture-test-runner,babel-plugin-proposal-dynamic-import,babel-preset-env- #10326 Allow testing logs with
@babel/helper-transform-fixture-test-runner(@nicolo-ribaudo)
- #10326 Allow testing logs with
babel-runtime-corejs2,babel-runtime,babel-typesbabel-cli,babel-core,babel-generator,babel-helper-create-class-features-plugin,babel-helper-fixtures,babel-node,babel-parser,babel-plugin-proposal-do-expressions,babel-plugin-proposal-pipeline-operator,babel-plugin-transform-modules-commonjs,babel-plugin-transform-runtime,babel-preset-env,babel-standalone,babel-template,babel-traverse,babel-typesbabel-cli
🏃♀️ Performance
babel-helpers,babel-plugin-transform-modules-commonjs,babel-preset-envbabel-traverse
v7.5.5 (2019-07-17)
🐛 Bug Fix
babel-code-frame- #10211 fix code-frame marker with highlighting (@tanhauhau)
babel-plugin-proposal-object-rest-spread- #10200 Workaround #10179 in proposal-object-rest-spread (@nicolo-ribaudo)
babel-types- #10198 add assertShape to validate templateElement (@tanhauhau)
babel-helper-create-class-features-plugin,babel-helper-member-expression-to-functions,babel-helper-replace-supers,babel-helpers,babel-plugin-proposal-class-properties,babel-plugin-transform-classes,babel-plugin-transform-object-super,babel-types- #10017 destructuring private fields with array pattern / object pattern (@tanhauhau)
babel-plugin-transform-flow-comments- #9901 fix transform-flow-comments for import types (@tanhauhau)
babel-core,babel-helpers- #10208 always throw when add missing helpers (@tanhauhau)
babel-plugin-transform-runtimebabel-helpers,babel-plugin-transform-instanceof
🏠 Internal
babel-parser,babel-plugin-transform-typescript
🏃♀️ Performance
babel-helpers,babel-plugin-proposal-object-rest-spread,babel-preset-env
v7.5.4 (2019-07-09)
🐛 Bug Fix
babel-helpers,babel-plugin-proposal-object-rest-spread,babel-preset-env- #10188 Fix _objectSpread2 for real (@nicolo-ribaudo)
v7.5.3 (2019-07-09)
🐛 Bug Fix
babel-helpers,babel-plugin-proposal-object-rest-spread,babel-preset-env- #10180 [_objectSpread2] Do not use hoisted var from prev iteration (@nicolo-ribaudo)
v7.5.2 (2019-07-08)
🐛 Bug Fix
babel-plugin-transform-typescript- #10174 Do not trust Scope when removing TypeScript types (@nicolo-ribaudo)
babel-helpers,babel-plugin-proposal-object-rest-spread,babel-preset-env- #10171 Don't rely on getOwnPropertyDescriptors in objectSpread2 (@nicolo-ribaudo)
babel-plugin-proposal-export-default-from,babel-plugin-proposal-export-namespace-from
v7.5.1 (2019-07-06)
🐛 Bug Fix
babel-helpers,babel-plugin-proposal-object-rest-spread- #10170 Fix objectSpread2 backward compatibility (@nicolo-ribaudo)
babel-plugin-transform-typescript- #10167 Retain typescript export-from-source (@Wolvereness)
v7.5.0 (2019-07-04)
👓 Spec Compliance
🚀 New Feature
babel-parser- #10091 BigInt type for Flow (@tanhauhau)
- #9450 Implement f# pipeline in parser (@mAAdhaTTah)
- #9912 [legacy decorators] Allow decorating generator methods (@nicolo-ribaudo)
- #9864 [@babel/parser] Add "allowUndeclaredExports" option (@nicolo-ribaudo)
babel-plugin-proposal-dynamic-import,babel-preset-env-standalone,babel-preset-env- #10109 Add @babel/plugin-proposal-dynamic-import to @babel/preset-env (@nicolo-ribaudo)
babel-plugin-proposal-dynamic-import,babel-plugin-transform-modules-amd,babel-plugin-transform-modules-commonjs,babel-plugin-transform-modules-systemjs- #9552 Create @babel/plugin-proposal-dynamic-import (@nicolo-ribaudo)
babel-plugin-proposal-pipeline-operator,babel-plugin-syntax-pipeline-operator- #9984 Transform for F# Pipeline (@thiagoarrais)
babel-plugin-transform-typescript,babel-types- #9785 Implement TypeScript namespace support (@Wolvereness)
🐛 Bug Fix
babel-plugin-proposal-do-expressions,babel-traverse- #10072 fix await and yield for do expression (@tanhauhau)
babel-helpers,babel-plugin-transform-react-constant-elementsbabel-preset-env- #10127 Bump compat-table and updating preset-env mappings (@existentialism)
- #8897 Allow
defaultsquery in preset-env (@existentialism)
babel-parser- #10132 fix import typeof in declare module (@tanhauhau)
- #10084 flow - allow type parameter defaults in function declarations (@tanhauhau)
babel-typesbabel-nodebabel-generatorbabel-plugin-transform-typescript- #10034 Use scope for typescript export removals (@Wolvereness)
- #10019 fix(typescript): erase default export if exporting a TS type (@airato)
babel-helper-create-class-features-plugin,babel-plugin-proposal-class-properties,babel-traverse- #10029 Fixed computed keys for class expression (@tanhauhau)
babel-helpers,babel-plugin-proposal-object-rest-spread,babel-preset-env- #9384 Retry to fix object spread helper compatibility (@saschanaz)
babel-plugin-transform-destructuring- #10013 fix destructuring rest with template literal (@tanhauhau)
babel-helper-create-class-features-plugin,babel-plugin-transform-typescript- #9610 Use
injectInitializationto generate ts parameter properties (@nicolo-ribaudo)
- #9610 Use
💅 Polish
babel-core- #10157 Fix incorrect usage of $o instead of %o in debug (@ChlorideCull)
babel-helpersbabel-plugin-transform-typescript
📝 Documentation
babel-plugin-proposal-partial-application,babel-plugin-syntax-partial-application
v7.4.5 (2019-05-21)
🐛 Bug Fix
babel-parserbabel-preset-envbabel-plugin-transform-typescript
💅 Polish
babel-parser- #9995 Do not use lookahead when parsing construct signature declarations in TS (@danez)
- #9989 Only compute Position if not already in state (@danez)
- #9988 Do not use lookahead when parsing jsx expression containers (@danez)
- #9987 Do not use lookahead when parsing imports in declare module in flow (@danez)
- #9985 Do not use lookahead when parsing declare module or declare module.exports in flow (@danez)
- #9983 Do not use lookahead when parsing dynamic import or import.meta (@danez)
- #9979 Remove guardedHandlers from ASTs (@danez)
babel-preset-envbabel-core- #9945 Fixed null error in plugin opts and added a test for it (@divbhasin)
babel-core,babel-traverse
🏠 Internal
babel-node- #9914 [babel-node] Do not hardcode node flags (@nicolo-ribaudo)
v7.4.4 (2019-04-26)
🐛 Bug Fix
babel-plugin-transform-flow-comments- #9897 fix flow-comments - class type paramters and implements (@tanhauhau)
- #9893 fix flow-comment - object destructuring (@tanhauhau)
babel-parser- #9766 Add TS support to @babel/parser's Scope (@nicolo-ribaudo)
- #9865 Always register global bindings as exportable (@nicolo-ribaudo)
- #9887 Fix TypeScript readonly error location (@existentialism)
- #9869 ! remove constant context assertions (@tanhauhau)
- #9890 Fix parsing typescript bodiless methods with the estree plugin also enabled (@devongovett)
babel-traversebabel-plugin-proposal-class-properties,babel-plugin-transform-modules-commonjs,babel-types- #9861 Fix: PrivateName Identifier should not be isReferenced. (@coreyfarrell)
babel-types- #9832 Fix typo in cloneNode. (@evandervalk)
v7.4.3 (2019-04-02)
👓 Spec Compliance
babel-parser
🚀 New Feature
babel-plugin-transform-runtime- #9754 [runtime-corejs3] Only polyfill instance methods when it might be needed. (@nicolo-ribaudo)
🐛 Bug Fix
babel-polyfillbabel-clibabel-helper-module-transforms,babel-plugin-transform-modules-commonjs- #9802 Fix lazy option of babel-plugin-transform-modules-commonjs. (@AndreasCag)
babel-helper-create-class-features-plugin,babel-plugin-proposal-private-methods- #9801 Fix super method call in private instance method calling overridden method. (@MattiasBuelens)
babel-plugin-proposal-object-rest-spread,babel-plugin-transform-destructuringbabel-plugin-transform-destructuringbabel-traversebabel-parserbabel-helpers- #9756 Allow coreJS Symbol to be type object. (@conartist6)
babel-preset-env
💅 Polish
babel-parserbabel-core,babel-plugin-transform-for-of
🏠 Internal
- Other
babel-parser,babel-preset-typescript
v7.4.2 (2019-03-21)
🐛 Bug Fix
babel-parser- #9725 Modules might be in loose mode when checking for undecl exports (@nicolo-ribaudo)
- #9719 Fix scope checks with enabled flow plugin (@danez)
babel-helpers,babel-plugin-transform-named-capturing-groups-regex- #9726 Fix typo in wrapRegExp helper (@nicolo-ribaudo)
babel-preset-env
💅 Polish
babel-preset-env- #9732 Mark the core-js warning as such (@nicolo-ribaudo)
- #9716 Tweak preset-env corejs/useBuiltIns warning and error messages (@existentialism)
🏠 Internal
- #9718 Bump Babel deps (@existentialism)
v7.4.1 (2019-03-20)
🐛 Bug Fix
babel-preset-env- #9711 Alias @babel/preset-env/data/built-ins.json.js (@nicolo-ribaudo)
- #9709 Bring back isPluginRequired (@nicolo-ribaudo)
v7.4.0 (2019-03-19)
👓 Spec Compliance
babel-parser- #9529 Add
readonlyto TypeScript type modifier (@tanhauhau) - #9534 TypeScript Constant contexts (@tanhauhau)
- #9637 Update identifier parsing per Unicode v12 (@mathiasbynens)
- #9616 Allow any reserved word in
export {} fromspecifiers (@danez) - #9612 [TS] Disallow type casts in arrow parameters (@nicolo-ribaudo)
- #9607 Refactor parsing object members (@danez)
- #9599 Disallow duplicate params in methods (@danez)
- #9586 Treat for loop body as part of loop scope (@danez)
- #9529 Add
babel-parser,babel-plugin-transform-typescript- #9641 Allow context type annotation on getters/setters (@matt-tingen)
babel-plugin-proposal-unicode-property-regex,babel-plugin-transform-dotall-regex,babel-plugin-transform-unicode-regex- #9636 Update babel-plugin-proposal-unicode-property-regex for Unicode v12 (@mathiasbynens)
babel-generator,babel-parser,babel-plugin-transform-flow-strip-types,babel-plugin-transform-modules-systemjsbabel-generator,babel-parser,babel-plugin-transform-classes,babel-plugin-transform-flow-comments,babel-plugin-transform-flow-strip-types,babel-plugin-transform-new-target
🚀 New Feature
babel-helpers,babel-plugin-proposal-class-properties,babel-plugin-proposal-decorators,babel-plugin-proposal-object-rest-spread,babel-plugin-transform-runtime,babel-plugin-transform-typescript,babel-polyfill,babel-preset-env,babel-register,babel-runtime-corejs2,babel-runtime-corejs3babel-template- #9648 Add %%placeholders%% support to @babel/template (@nicolo-ribaudo)
babel-parser,babel-plugin-proposal-partial-applicationbabel-generator,babel-helper-create-class-features-plugin,babel-helpers,babel-plugin-proposal-private-methodsbabel-generator,babel-types- #9542 Add placeholders support to @babel/types and @babel/generator (@nicolo-ribaudo)
babel-parser- #9364 Add parser support for placeholders (@nicolo-ribaudo)
babel-generator,babel-parser,babel-plugin-syntax-partial-application,babel-types
🐛 Bug Fix
babel-helper-create-class-features-plugin,babel-helper-replace-supers,babel-plugin-proposal-private-methodsbabel-parserbabel-core,babel-plugin-transform-for-ofbabel-plugin-transform-typescriptbabel-traverse,babel-typesbabel-plugin-proposal-object-rest-spreadbabel-plugin-transform-modules-systemjs- #9639 System modules - Hoist classes like other variables (@guybedford)
babel-generator,babel-parserbabel-helper-split-export-declaration,babel-plugin-transform-modules-commonjs,babel-traverse- #9613 Don't add params of anonymous exported function decls to the outer scope (@nicolo-ribaudo)
babel-plugin-transform-parameters,babel-plugin-transform-typescript,babel-typesbabel-helper-call-delegate,babel-plugin-transform-parameters- #9601 Don't loose "this" in helper-call-delegate (@nicolo-ribaudo)
babel-plugin-proposal-object-rest-spread,babel-plugin-transform-modules-commonjs,babel-traverse,babel-types- #9492 Mark FOO in "var { x: FOO }˝ as a binding, not as a reference (@nicolo-ribaudo)
babel-preset-env- #9595 preset-env: Sort versions before determining lowest (@jridgewell)
babel-helper-define-map,babel-helper-hoist-variables,babel-parser,babel-plugin-proposal-object-rest-spread,babel-plugin-transform-block-scoping,babel-plugin-transform-destructuring,babel-plugin-transform-modules-systemjs,babel-traverse,babel-types- #9518 Use
for..of Object.keysinstead offor..in(@nicolo-ribaudo)
- #9518 Use
💅 Polish
babel-parserbabel-standalone,babel-typesbabel-generator- #9579 change var name for coherence (@tanohzana)
🏠 Internal
- Other
- #9588 Publish to npm using a GitHub action (@nicolo-ribaudo)
- #9640 Switch from rollup-stream to rollup (@danez)
- #9647 Add WarningsToErrorsPlugin to webpack to avoid missing build problems on CI (@danez)
- #9624 Update dependencies (@danez)
- #9623 Add editorconfig for Makefile (@danez)
- #9587 Update test262 (@danez)
- #9582 Minify bundles on circle for repl (@danez)
babel-register
v7.3.4 (2019-02-25)
🐛 Bug Fix
babel-parser- #9572 Fix TypeScript parsers missing token check (#9571) (@elevatebart)
- #9521 Also check AssignmentPatterns for duplicate export name (@danez)
babel-helper-create-class-features-plugin,babel-helper-replace-supers,babel-plugin-proposal-class-properties,babel-traverse- #9508 Use correct "this" in static fields (@nicolo-ribaudo)
babel-preset-envbabel-types- #9539 babel-types is* type checks accept null | undefiend as value TS type (@ian-craig)
babel-plugin-transform-block-scoping,babel-traversebabel-generator- #9524 Fix typescript generator params (@tanhauhau)
- #9523 Fix flow babel-generator function parantheses (@tanhauhau)
🏠 Internal
- Other
- #9561 Update CHANGELOG.md using the "Trigger GitHub release" action (@nicolo-ribaudo)
babel-plugin-proposal-object-rest-spread,babel-plugin-transform-modules-systemjsbabel-generator,babel-parser,babel-plugin-transform-flow-strip-types,babel-traversebabel-plugin-transform-proto-to-assign- #9533 Add import/no-extraneous-dependencies to ESLint (@nicolo-ribaudo)
v7.3.3 (2019-02-15)
👓 Spec Compliance
babel-generator- #9501 Correctly output escapes in directives (@nicolo-ribaudo)
🐛 Bug Fix
babel-parser
💅 Polish
babel-plugin-proposal-class-properties,babel-plugin-transform-classes,babel-plugin-transform-parameters- #9458 Fix duplicated assertThisInitialized calls in constructors (@rubennorte)
🏠 Internal
- Other
- #9517 Add duplicate-package-checker-webpack-plugin (@nicolo-ribaudo)
- #9469 Exclude generate @babel/types files from coverage report (@nicolo-ribaudo)
babel-parser
v7.3.2 (2019-02-04)
Various spec compliance fixes and better support for smart pipelines and private methods.
Thanks @gverni, @naffiq, @spondbob and @dstaley for their first PRs!
👓 Spec Compliance
babel-parser
🚀 New Feature
babel-plugin-proposal-pipeline-operator- #9401 Support for await and yield in pipelines. (@thiagoarrais)
🐛 Bug Fix
babel-plugin-proposal-private-methods,babel-typesbabel-helper-create-class-features-plugin,babel-plugin-proposal-private-methods- #9423 Transform private async and generator functions. (@nicolo-ribaudo)
babel-plugin-proposal-object-rest-spread,babel-plugin-transform-destructuringbabel-plugin-transform-typescriptbabel-parser- #9406 Fix location/range on TypeScript ExportNamedDeclarations. (@existentialism)
- #9371 Allow toplevel await with option and correctly mark await keyword as unexpected. (@danez)
babel-plugin-transform-typescript,babel-types- #8738 Fix typescript side effects. (@yuri-karadzhov)
babel-generator,babel-types- #9396 Fix support for Flow's QualifiedTypeIdentifier. (@existentialism)
💅 Polish
babel-parserbabel-parser,babel-preset-typescript
v7.3.1 (2019-01-22)
This release fixes some regressions introduced in v7.3.0
🐛 Bug Fix
babel-helpers,babel-plugin-proposal-object-rest-spread,babel-preset-envbabel-parser
v7.3.0 (2019-01-21)
Thanks to @jamesgeorge007 and @armano2 for their first PR!
👓 Spec Compliance
babel-parser- #9314 Disallow async functions as loop body. (@nicolo-ribaudo)
- #9315 Parse class heritage as strict mode code. (@nicolo-ribaudo)
- #9313 Disallow
new import(x)andimport(x,). (@nicolo-ribaudo) - #9311 Disallow trailing comma after rest. (@nicolo-ribaudo)
🚀 New Feature
babel-helper-create-class-features-plugin,babel-helpers,babel-plugin-proposal-private-methodsbabel-plugin-proposal-pipeline-operator,babel-plugin-syntax-pipeline-operator- #9179 Transform for the smart pipeline operator proposal. (@thiagoarrais)
babel-preset-env-standalone,babel-preset-env- #9345 Add support for transform-named-capturing-groups-regex in preset-env. (@existentialism)
babel-helpers,babel-plugin-transform-named-capturing-groups-regex- #7105 Add @babel/plugin-transform-named-capturing-groups-regex. (@nicolo-ribaudo)
babel-preset-env- #9323 Add support for proposal-json-strings in preset-env. (@existentialism)
babel-generator,babel-typesbabel-parser
🐛 Bug Fix
babel-parser- #9336 Disallow usage of invalid keyword after export abstract statement in Typescript. (@armano2)
- #9328 Fix handling newline with TypeScript declare and abstract classes. (@existentialism)
- #9335 Fix range on TypeScript index signature parameters. (@existentialism)
- #9292 Throw error if TypeScript class has empty implements. (@existentialism)
- #9284 Fix location for typescript type assertions in AST. (@danez)
- #9276 Ensure modifiers are included in TSParameterProperty ranges. (@existentialism)
- #9230 babel-parser: typescript: add missing bigint keyword. (@armano2)
babel-types- #9333 Copy "optional" property when cloning Identifier node. (@unconfident)
babel-helper-create-class-features-plugin,babel-helpers,babel-plugin-proposal-decorators- #9244 [decorators] Set method names at compile time instead of at runtime. (@nicolo-ribaudo)
babel-helper-builder-react-jsx,babel-plugin-transform-react-jsxbabel-helper-create-class-features-plugin,babel-plugin-proposal-private-methods- #9248 [private methods] Define private methods before executing initializers. (@nicolo-ribaudo)
babel-preset-env- #9219 Fix handling scoped packages in preset-env include/exclude options. (@existentialism)
💅 Polish
📝 Documentation
🏠 Internal
babel-parser- #9312 Merge declaration and init of props in parser's state. (@nicolo-ribaudo)
babel-types- #9245 [@babel/types] Moved generators related to babel-types into the babel-types package directory.. (@cameron-martin)
- Other
- #9288 Test262 update. (@existentialism)
- #9290 Use 2014-present in license. (@xtuc)
- #9271 Bump license years for 2019. (@berlamhenderson)
babel-helpers- #9166 Add mixins support to the _decorate helper. (@nicolo-ribaudo)
v7.2.5 (2018-12-21)
@babel/polyfill didn't get published correctly in v7.2.3 (#9227).
v7.2.4 (2018-12-20)
Minify @babel/standalone and @babel/preset-env-standalone.
v7.2.3 (2018-12-20)
This is a small release, mainly to test Lerna 3.
We force-published @babel/polyfill and @babel/preset-env, since they should have been released respectively in v7.1.0 and v7.2.2 but for different reasons they didn't get updated.
Half of the commits in this release are made by first time contributors! Thanks to @cameron-martin, @cphamlet, @tanhauhau and @jedwards1211. 🎉
🚀 New Feature
- #9110 Added type-level mapping between aliases and nodes that have that alias. (@cameron-martin)
🐛 Bug Fix
babel-plugin-transform-flow-strip-types- #9197 Strips flow directive fully. (@tanhauhau)
babel-parser
🏠 Internal
babel-plugin-proposal-class-properties,babel-plugin-proposal-decorators,babel-plugin-proposal-private-methods,babel-traverse- #9206 Use @babel/eslint-plugin-developement. (@nicolo-ribaudo)
v7.2.2 (2018-12-15)
Mostly bug fixes and internal changes. Thanks to @paleite, @saschanaz and @joeldenning for their first PRs!
🐛 Bug Fix
babel-plugin-transform-destructuring,babel-plugin-transform-spreadbabel-parserbabel-helper-module-transforms,babel-plugin-transform-modules-commonjsbabel-node- #9148 Fix --root-mode option in babel-node. (@nicolo-ribaudo)
babel-plugin-transform-classes- #9135 Inherit properties in function from method in loose mode. (@rubennorte)
babel-preset-env- #9140 Disable parameter-destructuring in Edge 18. (@saschanaz)
babel-plugin-transform-arrow-functions,babel-traverse- #9060 Not depending on return value of super(). Closes #9020.. (@joeldenning)
🏠 Internal
babel-helper-create-class-features-plugin,babel-plugin-proposal-nullish-coalescing-operator,babel-plugin-syntax-bigint,babel-plugin-transform-dotall-regex- Other
- #9158 add triage label to new issues [skip ci]. (@danez)
- #9143 Fix a typo from the issue template for bugs. (@saschanaz)
- #9133 Move to travis vm based builds. (@danez)
- #9132 Ensure we always use repository versions of babel dependencies in tests. (@danez)
- #9131 Update issue templates [skip ci]. (@hzoo)
babel-helper-create-class-features-plugin,babel-plugin-proposal-class-properties,babel-plugin-proposal-decorators- #9059 Move decorators transform to @babel/helper-create-class-features-plugin. (@nicolo-ribaudo)
babel-core,babel-parser,babel-template
v7.2.1 (2018-12-04)
This release fixes a regression introduced in v7.2.0 (https://github.com/babel/babel/issues/9120)
🐛 Bug Fix
babel-helper-create-class-features-plugin- #9121 Don't use isClassPrivateMethod because it isn't supported in <7.2.0. (@nicolo-ribaudo)
v7.2.0 (2018-12-03)
You can read more about this release at https://babeljs.io/blog/2018/12/03/7.2.0.
🚀 New Feature
babel-parser- #8289 Implement Smart Pipeline proposal in @babel/parser. (@mAAdhaTTah)
babel-core- #8986 Export @babel/parser#tokTypes in @babel/core. (@kaicataldo)
babel-node- #9078 Pass
rootModefrom@babel/node.. (@wtgtybhertgeghgtwtg)
- #9078 Pass
babel-generator,babel-helpers,babel-plugin-class-features,babel-plugin-proposal-private-methods,babel-plugin-syntax-class-properties,babel-typesbabel-preset-env- #9048 Update mappings for node 10 in preset-env. (@existentialism)
🐛 Bug Fix
babel-parser- #9114 Parse non-octals with leading zeros in non strict mode correctly. (@danez)
- #9074 Disallow await inside arrow functions. (@nicolo-ribaudo)
- #9069 [flow] Allow type casts in array patterns inside arrow parameters. (@nicolo-ribaudo)
- #9058 Fix compatibility between typescript and jsx plugins in interface declarations. (@danez)
- #9055 Fix bug with parsing TS generic async arrow function. (@existentialism)
- #9035 Fix parsing typescript function types with destructuring. (@danez)
babel-helper-fixtures,babel-parserbabel-preset-env- #9091 Update mapping for regex unicode plugin in preset-env. (@existentialism)
babel-plugin-transform-destructuring- #8916 Fix destructuring assignment in arrow functions without block. (@RubenVerborgh)
babel-plugin-proposal-optional-chaining- #9073 Microbouji patch/8136. (@jridgewell)
babel-core,babel-helper-wrap-function,babel-plugin-proposal-async-generator-functions,babel-plugin-proposal-function-sent,babel-plugin-transform-async-to-generator,babel-plugin-transform-classes- #9039 Fix recursive async function expressions. (@nicolo-ribaudo)
babel-core- #9034 Normalize presets before merging config with others.. (@loganfsmyth)
💅 Polish
babel-generatorbabel-node- #9079 Move
fs-readdir-recursiveandoutput-file-synctodevDependenciesfor@babel/node.. (@wtgtybhertgeghgtwtg)
- #9079 Move
babel-parserbabel-*- #8769 Add plugins name. (@nicolo-ribaudo)
🏠 Internal
babel-helper-create-class-features-plugin,babel-plugin-proposal-class-properties,babel-plugin-proposal-private-methods- #9083 Make @babel/plugin-class-features a normal helper package. (@nicolo-ribaudo)
- Other
babel-typesbabel-generator
v7.1.6 (2018-11-13)
🐛 Bug Fix
babel-generator- #9003 Fix retainLines regression for arrow functions. (@loganfsmyth)
babel-typesbabel-plugin-transform-flow-strip-types,babel-plugin-transform-react-jsxbabel-core- Other
babel-preset-env- #8555 preset-env: fix
operafromesmodulestarget and Browserslist not used. (@ylemkimon)
- #8555 preset-env: fix
babel-plugin-proposal-decorators,babel-traverse- #8970 [decorators] Correctly insert
_initialize(this)aftersuper().. (@nicolo-ribaudo)
- #8970 [decorators] Correctly insert
babel-parser
💅 Polish
🏠 Internal
- #8982 fix publish command [skip ci]. (@hzoo)
- #8988 Remove definition of micromatch which was removed.. (@danez)
v7.1.5 (2018-11-06)
👓 Spec Compliance
babel-parser,babylon- #7727 Fix await in function name and parameters. (@nicolo-ribaudo)
🚀 New Feature
babel-parser- #8828 Typescript: Validate tuple type element positions. (@Retsam)
- #8883 [flow] Add support for parsing
_as implicit instantiation in call/new. (@jbrown215)
babel-core,babel-generator,babel-parser,babel-plugin-syntax-typescript,babel-traverse- #8448 Remove Babylon plugins for features already merged to the ECMAScript spec. (@nicolo-ribaudo)
babel-parser,babel-types- #8884 [flow] Explicit inexact objects with
.... (@jbrown215)
- #8884 [flow] Explicit inexact objects with
babel-preset-env- #8898 Update preset-env data. (@existentialism)
🐛 Bug Fix
babel-parserbabel-core- #8910 Resolve babel.config.js 'babelrcRoots' values relative to the config file.. (@loganfsmyth)
- #8950 Fix message when plugin of a wrong type is passed. (@everdimension)
babel-plugin-transform-block-scoping- #8937 rename colliding let bindings with for loop init. (@byronluk)
- #8914 Treat break inside block inside loop. (@thiagoarrais)
babel-preset-env- #8926 preset-env: Edge support for arrow param destructuring. (@benmosher)
babel-generator- #8868 fix single-arg async arrows when retainLines=true. (@ryanwmarsh)
babel-traverse
💅 Polish
- #8873 fixed an extra word. (@vvyomjjain)
v7.1.4 (2018-10-11)
Just re-published @babel/traverse without ** so that it works in Node 6.
v7.1.3 (2018-10-11)
🐛 Bug Fix
babel-generator,babel-parser,babel-plugin-transform-typescript,babel-typesbabel-traverse- #8833 Insertafter jsx fix. (@kevintab95)
babel-parser- #8830 Correct handling of newline after async with paren-less arrow func. (@Retsam)
- #8756 class private methods and properties: should not allow spaces between # and identifier. (@macabeus)
- #8804 Fix parsing of slash after class expression. (@existentialism)
- #8767 [decorators] [typescript] Parse type parameters. (@nicolo-ribaudo)
- #8792 Fix perf issue in typescript parser plugin. (@matthewrobertson)
babel-generator,babel-parser,babel-plugin-transform-typescript,babel-typesbabel-typesbabel-plugin-transform-modules-systemjs- #8820 System module format - fixes function hoisting failure case. (@guybedford)
babel-plugin-transform-destructuring- #8793 Ensure destructuring's computed key handling matches object-rest-spread. (@existentialism)
7.1.2 (2018-09-28)
Same as v7.1.1, except compiled against Node 6 instead of Node 8 by accident (e.g had async functions).
v7.1.1 (2018-09-28)
EDIT: had a publish issue here as well where it compiled against Node 8 instead of Node 6 so 7.1.2 will fix this. Also force publish
@babel/runtimeand@babel/runtime-corejs2. We need to fix the publishing around that since Lerna doesn't pickup the@babel/helperschanges as there is no "dependency"
🐛 Bug Fix
babel-generator,babel-parser,babel-typesbabel-plugin-transform-destructuring- #8535 Do not unpack array patterns that update a referenced binding. (@nicolo-ribaudo)
babel-plugin-proposal-decorators- #8742 [decorators] Support async and generator methods. (@nicolo-ribaudo)
babel-helpers,babel-plugin-proposal-decorators- #8761 [decorators] Fields are enumerable. (@nicolo-ribaudo)
babel-generator- #8751 Fix some missing parens cases with OptionalMemberExpression in generator. (@existentialism)
- #8727 Handle throw expressions in generator. (@existentialism)
🏠 Internal
- Other
- #8780 Run test262 tests for exportNamespaceFrom. (@existentialism)
babel-helper-transform-fixture-test-runner- #8768 Use babel-check-duplicated-nodes. (@nicolo-ribaudo)
v7.1.0 (2018-09-17)
Check http://babeljs.io/blog/2018/09/17/7.1.0
🚀 New Feature
babel-cli,babel-core- #8660 Better support monorepos by allowing users to opt into automatically resolving 'root' with
rootMode: "upward".. (@loganfsmyth)
- #8660 Better support monorepos by allowing users to opt into automatically resolving 'root' with
babel-helper-transform-fixture-test-runnerbabel-helpers,babel-plugin-proposal-decorators,babel-plugin-syntax-decorators- #7976 Add support for the new decorators proposal. (@nicolo-ribaudo)
babel-helpers,babel-plugin-proposal-class-properties
🐛 Bug Fix
babel-parser- #8698 Fix parsing of newline between 'async' and 'function'. (@existentialism)
- #8677 Fix typescript parsing typed object shorthand methods. (@existentialism)
babel-plugin-transform-typescript- #8682 Fix TSParameterProperty getting lost with transform-classes. (@existentialism)
- #8695 Adjust TSParameterProperty handling to work with transform-parameters. (@existentialism)
- #8666 Fix typescript import elision. (@Retsam)
babel-preset-env- #8693 Fix es6.string.iterator mapping in babel-preset-env. (@existentialism)
babel-core,babel-plugin-proposal-class-properties,babel-plugin-proposal-decorators,babel-plugin-transform-runtime- #8659 Fix version checks in .availableHelper and transform-runtime definitions.. (@loganfsmyth)
- Other
babel-plugin-transform-parameters- #8414 Allow patterns as argument of RestElement. (@microbouji)
babel-core,babel-plugin-transform-runtime- #8624 Verify 'sourceMap' option with hasOwnProperty, and verify string-typed 'version'. (@loganfsmyth)
babel-helpers,babel-plugin-proposal-class-properties- #8614 [static private] Unify loose handling of static and instance props. (@nicolo-ribaudo)
💅 Polish
babel-plugin-transform-runtime- #8581 Fix grammar in error message at @babel/plugin-transform-runtime. (@tricknotes)
babel-parser- #8576 More helpful errorr message for missing decoratorsBeforeExport in parser. (@nicolo-ribaudo)
📝 Documentation
- #8561 Added pronounciation of babel. (@siddhant1)
🏠 Internal
babel-core- #8714 Fix Flow error with new versionRange test.. (@loganfsmyth)
- Other
babel-plugin-transform-runtimebabel-*- #8658 Format fixture options.json with Prettier.. (@loganfsmyth)
babel-parserbabel-*
v7.0.1 (2018-09-11)
Doing a quick patch regarding helpers versioning to prevent future issues: https://github.com/babel/babel/pull/8659
v7.0.0 (2018-08-27)
No change from rc.4. Finally released as https://babeljs.io/blog/2018/08/27/7.0.0!
v7.0.0-rc.4 (2018-08-27)
Similar to removing proposals in
@babel/polyfill, we are removing them intransform-runtime
💥 Breaking Change
babel-plugin-transform-runtime- #8547 Remove nonstandard functions and fake prototype methods from babel-runtime. (@loganfsmyth)
babel-parser- #8539 Update parser whitespace for clarity. (@jridgewell)
🐛 Bug Fix
babel-registerbabel-core- #8546 Default highlightCode:true for the parser highlighting.. (@loganfsmyth)
🏠 Internal
- Other
babel-parser- #8540 Cleanup getLineInfo. (@jridgewell)
- #8541 Update to ES6 String methods. (@jridgewell)
- #8537 Flatten TokenType class hierarchy. (@jridgewell)
- #8539 Update parser whitespace for clarity. (@jridgewell)
v7.0.0-rc.3 (2018-08-24)
💥 Breaking Change
babel-preset-envbabel-plugin-transform-runtime- #8518 Make 'useESModules' only toggle CJS vs ESM helpers when importing file is ESM.. (@loganfsmyth)
🚀 New Feature
babel-plugin-transform-runtime- #8520 Expose opt-in useESModules:"auto" from transform-runtime to toggle based on 'supportsStaticESM'. (@loganfsmyth)
🐛 Bug Fix
babel-helpers,babel-plugin-transform-classes,babel-preset-env- #8501 [_wrapNativeSuper] Don't wrap non-native constructors. (@nicolo-ribaudo)
babel-generator,babel-traverse,babel-typesbabel-plugin-proposal-object-rest-spreadbabel-traverse- #8505 Rename exported functions where name conflicts with param.. (@loganfsmyth)
🏠 Internal
babel-plugin-transform-object-set-prototype-of-to-assign- Other
v7.0.0-rc.2 (2018-08-21)
A notable change is the addition of https://github.com/babel/babel/pull/8485 which enables https://github.com/babel/babel-loader/pull/660 (automatically doing modules: false for @babel/preset-env when using babel-loader.
💥 Breaking Change
babel-core- #8470 Remove File#resolveModuleSource. (@nicolo-ribaudo)
- #8473 Allow babel-plugin/preset prefix to not be a prefix, when used in a scope.. (@loganfsmyth)
babel-core,babel-parser,babel-plugin-syntax-decorators- #8465 Require decoratorsBeforeExport option for decorators. (@nicolo-ribaudo)
🚀 New Feature
babel-preset-envbabel-cli,babel-core,babel-node,babel-preset-env,babel-register- #8485 Allow preset-env to toggle module handling based on flags from the caller (like babel-loader). (@loganfsmyth)
babel-core- #8474 Preserve 'false'-options for disabled plugins/presets.. (@loganfsmyth)
- #8473 Allow babel-plugin/preset prefix to not be a prefix, when used in a scope.. (@loganfsmyth)
babel-helper-transform-fixture-test-runner,babel-plugin-transform-runtime- #8435 Allow transform-runtime to insert runtime references with absolute paths.. (@loganfsmyth)
🐛 Bug Fix
babel-parserbabel-core- #8493 Take top-level config source into consideration when processing nested env/overrides.. (@loganfsmyth)
babel-helpers,babel-plugin-proposal-decoratorsbabel-plugin-transform-parameters- #8479 Fixes setter paratemer default value. (@nikolayemrikh)
💅 Polish
babel-core- #8494 Cache individual programmatic descriptors along with the overall list.. (@loganfsmyth)
- #8493 Take top-level config source into consideration when processing nested env/overrides.. (@loganfsmyth)
🏠 Internal
babel-core- #8493 Take top-level config source into consideration when processing nested env/overrides.. (@loganfsmyth)
babel-plugin-transform-classes- #8472 Remove unused file. (@nicolo-ribaudo)
v7.0.0-rc.1 (2018-08-09)
Same as rc.0 but fixes the peerDep issue #8443. It's changed to just be ^7.0.0-0
v7.0.0-rc.0 (2018-08-09)
This had an issue with
peerDependenciesso please userc.1.
Alright finally at the end 🙂. Shouldn't have anymore breaking changes and going to wait some time to fix bugs/regressions
Summary:
@babel/polyfillwill not include proposal polyfills by default and fixed a regression.
💥 Breaking Change
Will add this to the upgrade guide/polyfill docs. I guess we could include a
babel-upgradefor this too, not sure.
🐛 Bug Fix
babel-cli- #8436 Require v1.1.0 so that correct filter params are passed.. (@loganfsmyth)
v7.0.0-beta.56 (2018-08-03)
- Separate
@babel/runtime: should work for helpers alone and opt-into core-js if necessary. - More details in http://babeljs.io/docs/en/next/babel-runtime, http://babeljs.io/docs/en/next/babel-plugin-transform-runtime (via https://github.com/babel/babel/pull/8266, https://github.com/babel/website/pull/1714)
babel-upgradeissue: https://github.com/babel/babel-upgrade/issues/70
💥 Breaking Change
babel-plugin-transform-regenerator,babel-plugin-transform-runtime,babel-runtime-corejs2,babel-runtime- #8266 Split @babel/runtime into 2 modules via @babel/runtime-corejs2. (@loganfsmyth)
babel-core,babel-helper-module-imports,babel-helpers,babel-plugin-external-helpers,babel-plugin-transform-runtime- #8398 Only reference helpers from external/runtime helpers if they are known to be available.. (@loganfsmyth)
🚀 New Feature
babel-plugin-transform-regenerator,babel-plugin-transform-runtime,babel-runtime-corejs2,babel-runtime- #8266 Split @babel/runtime into 2 modules via @babel/runtime-corejs2. (@loganfsmyth)
🐛 Bug Fix
babel-parser,babel-plugin-transform-typescript- #8408 Allow TSInterfaceDeclaration to be default export. (@existentialism)
babel-preset-env- #8403 Ensure esmodule targets are parsed by browserslist. (@existentialism)
- Other
- #8024 Run transform-runtime on the standalone bundle so it stays ES5-compatible.. (@loganfsmyth)
📝 Documentation
- #8412 Update Documentation[skip ci]. (@leongjiameng)
v7.0.0-beta.55 (2018-07-28)
Breaking Change in beta:
Throws an error on using Stage presets: https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets
💥 Breaking Change
babel-core,babel-plugin-proposal-class-properties,babel-plugin-proposal-decorators,babel-preset-stage-0,babel-preset-stage-1,babel-preset-stage-2,babel-preset-stage-3,babel-standalone
🚀 New Feature
babel-generator,babel-parser,babel-plugin-transform-typescript,babel-types
🐛 Bug Fix
babel-cli,babel-core,babel-generator- #8380 Ensure that Identifier source mappings explicitly start and stop on the generated range. (@loganfsmyth)
babel-preset-env- #8391 Ensure preset-env doesn't clobber browserslist defaults. (@existentialism)
babel-core- #8376 Fix order of optional argument reordering. (@Qix-)
- #8381 Allow an Array for
babelrcRoots.. (@wtgtybhertgeghgtwtg) - #8342 Do not mutate ast. (@thiagoarrais)
babel-parser
💅 Polish
babel-parser- #8355 remove .then from
dynamic importparser exception message. (@dnalborczyk)
- #8355 remove .then from
🏠 Internal
babel-core,babel-preset-stage-0,babel-preset-stage-1,babel-preset-stage-2,babel-preset-stage-3,babel-standalonebabel-helpers,babel-plugin-proposal-class-properties- #8318 Save full descriptor instead of only value for private fields.. (@nicolo-ribaudo)
babel-core- #8381 Allow an Array for
babelrcRoots.. (@wtgtybhertgeghgtwtg)
- #8381 Allow an Array for
babel-cli,babel-core,babel-generator,babel-helper-define-map,babel-helper-fixtures,babel-helper-module-imports,babel-helper-module-transforms,babel-helper-regex,babel-helper-simple-access,babel-helper-transform-fixture-test-runner,babel-node,babel-plugin-transform-block-scoping,babel-register,babel-template,babel-traverse,babel-types- #8377 Bumped lodash to 4.17.10. (@Berkmann18)
v7.0.0-beta.54 (2018-07-16)
Regarding https://github.com/babel/babel/issues/8184, we aren't using
micromatchfor paths, just basic*/**substitution now. For anything more complicated we will recommend using a regex/.jsconfig. Fixed a bug in the stage presets (https://github.com/babel/babel/issues/8307), so we just removed the requirements for setting options in the meantime for ease of use. We are removing the Stage presets next release. https://github.com/babel/babel/pull/8293
💥 Breaking Change
babel-core,babel-register,babel-traverse- #8327 Treat string ignore/only/test/include/exclude values as paths with only basic pattern matching. (@loganfsmyth)
🐛 Bug Fix
babel-core,babel-register,babel-traverse- #8327 Treat string ignore/only/test/include/exclude values as paths with only basic pattern matching. (@loganfsmyth)
babel-preset-stage-0,babel-preset-stage-1- #8317 Fix stage-0/1 import of pipeline proposals array. (@mAAdhaTTah)
babel-helper-module-transforms,babel-plugin-transform-modules-commonjs- #8316 Ensure that the wildcard interop is used with re-export + default.. (@loganfsmyth)
babel-core- #8315 Remove option-filtering options from the final options results.. (@loganfsmyth)
📝 Documentation
v7.0.0-beta.53 (2018-07-11)
- Fix for regression with paths on windows due to micromatch upgrade, remove yearly presets (not published)
- (There was an issue with the Stage presets in this release, but it is also deprecated)
💥 Breaking Change
🚀 New Feature
babel-generator,babel-parser,babel-plugin-transform-typescript,babel-typesbabel-parser- #8291 Support pipeline proposal flag in
@babel/parser. (@mAAdhaTTah)
- #8291 Support pipeline proposal flag in
babel-plugin-proposal-object-rest-spreadbabel-helpers,babel-plugin-proposal-object-rest-spread,babel-plugin-transform-destructuring,babel-preset-env
🐛 Bug Fix
babel-corebabel-types- #8165 [babel-types] Fix isNodesEquivalent() behavior for TemplateElements. (@timkendrick)
💅 Polish
babel-plugin-syntax-pipeline-operator,babel-preset-stage-0,babel-preset-stage-1- #8279 Improve error messages around pipeline option. (@mAAdhaTTah)
📝 Documentation
🏠 Internal
babel-preset-envbabel-plugin-proposal-object-rest-spread- Other
- #8187 Invoke Jest main file directly. (@ishitatsuyuki)
v7.0.0-beta.52 (2018-07-06)
Deprecating the yearly/stage presets in v7 (will remove next beta). Ran npm deprecate on @babel/preset-es2015, @babel/preset-es2016, @babel/preset-es2017, @babel/preset-stage-0, @babel/preset-stage-1, @babel/preset-stage-2, @babel/preset-stage-3 only for versions >v7.0.0-beta.52. This means this will only break your build if you are using ^ in Babel v7 beta (which we have recommended against each release). (It is unfortunate that the default behavior of npm is to use ^ when using npm install though; haven't made an RFC for it yet).
Also various bugfixes, change to force the pipeline plugin to have an option.
The pipeline plugin must be configured with the minimal option. This is so people explicitly know the implementation that is being used, and someone will be able to implement and test out the other proposal options. After all, this proposal is in Stage 1 still and the semantics are being figured out: this is a great opportunity to specify via the config what people are using.
{
"plugins": [["@babel/plugin-proposal-pipeline-operator", { "proposal": "minimal" }]]
}
💥 Breaking Change
babel-core- #8198 Prefer explicit object maps, and properly load relative maps.. (@loganfsmyth)
babel-plugin-proposal-class-properties,babel-plugin-proposal-decorators,babel-plugin-proposal-pipeline-operator,babel-plugin-syntax-pipeline-operator,babel-preset-stage-0,babel-preset-stage-1- #8196 Require proposal flag for pipeline plugin. (@mAAdhaTTah)
🐛 Bug Fix
babel-types- #8273 Add visitor key for Flow typeArguments in call expressions. (@rubennorte)
babel-core- #8198 Prefer explicit object maps, and properly load relative maps.. (@loganfsmyth)
- #8197 Allow @foo/babel-plugin as an unexpanded plugin name, and @foo as a shorthand for it.. (@loganfsmyth)
babel-plugin-transform-typescript
💅 Polish
babel-cli,babel-preset-env- #8250 remove emojis from cli output. (@johnbuffington)
🏠 Internal
babel-core,babel-helpers,babel-plugin-transform-async-to-generator,babel-plugin-transform-react-constant-elements,babel-preset-env- #8267 Optimize async to generator. (@jridgewell)
babel-core,babel-parser- #8259 upgrades eslint v5 (major), babel-eslint, eslint-plugin-flowtype, eslint-plugin-prettier. (@dnalborczyk)
babel-plugin-transform-modules-commonjs,babel-plugin-transform-runtime- #8265 Rename some test fixtures so they run properly.. (@loganfsmyth)
babel-helper-fixtures,babel-plugin-proposal-class-properties,babel-plugin-transform-classes- #8208 Ensure that we don't get unexpected output files for tests that throw.. (@loganfsmyth)
babel-helper-transform-fixture-test-runner- Other
- #8158 Compile against beta 51. (@existentialism)
babel-parser- #8176 babel/parser: use charCodes throughout for improved sourcecode readability in tokenizer/parser.. (@GerHobbelt)
- #8177 babel/parser: remove dead code: constant condition. (@GerHobbelt)
v7.0.0-beta.51 (2018-06-12)
Fixed a peerDep issue
v7.0.0-beta.50 (2018-06-12)
Mostly bug fixes and some decorator updates
👓 Spec Compliance
babel-plugin-proposal-unicode-property-regex- #8127 Update plugin-proposal-unicode-property-regex for Unicode v11. (@mathiasbynens)
babel-parser- #8125 Update identifier parsing per Unicode v11. (@mathiasbynens)
babel-core,babel-generator,babel-parser,babel-plugin-proposal-decorators,babel-types- #8037 Remove parser support for decorators optional parentheses. (@nicolo-ribaudo)
💥 Breaking Change
babel-generator,babel-parser,babel-plugin-syntax-decorators- #8113 Change decoratorsBeforeExport default to false. (@nicolo-ribaudo)
babel-core,babel-generator,babel-parser,babel-plugin-proposal-decorators,babel-types- #8037 Remove parser support for decorators optional parentheses. (@nicolo-ribaudo)
babel-core,babel-plugin-syntax-decorators- #7938 Update syntax-decorators options. (@nicolo-ribaudo)
babel-helper-builder-react-jsx,babel-plugin-transform-react-inline-elements,babel-plugin-transform-react-jsx
🚀 New Feature
babel-generator- #8143 add jsesc options support. (@vincentdchan)
babel-preset-envbabel-core,babel-plugin-syntax-decorators- #7938 Update syntax-decorators options. (@nicolo-ribaudo)
babel-generator,babel-plugin-proposal-decorators- #7948 Add "decoratorsBeforeExport" option to @babel/generator. (@nicolo-ribaudo)
babel-generator,babel-parser,babel-types,babylon- #7978 Support Flow's proto modifier syntax for declared classes. (@samwgoldman)
🐛 Bug Fix
babel-helper-hoist-variables,babel-plugin-transform-modules-systemjs- #8104 System module format hoisting and export refinements. (@guybedford)
babel-plugin-proposal-class-properties,babel-traverse- #8051 Don't split an exported class when renaming an inner binding. (@nicolo-ribaudo)
- #8122 isConstantExpression should return true for immuable bindings. (@nicolo-ribaudo)
babel-plugin-transform-typescript- #7996 Adds JSXFragment to plugin-transform-typescript check for the presence of jsx. (@malbernaz)
babel-plugin-proposal-class-properties,babel-plugin-transform-typescriptbabel-parser- #8030 Allow ts modifier names to be used as function argument names. (@existentialism)
babel-preset-env- #8132 Fix Safari TP and regular versions comparison. (@yuri-karadzhov)
- #8138 Ensure regex-dot-all runs before unicode-regex in preset-env. (@existentialism)
babel-helpers,babel-plugin-transform-classes- #8100 Fix ReferenceError in the wrapNativeSuper helper. (@chocolateboy)
babel-types- #8060 make isReferenced() recognise ObjectTypeProperty. (@peter-leonov)
babel-cli- #8082 Avoid a race condition in CLI directory creation.. (@loganfsmyth)
babel-helper-builder-react-jsx,babel-plugin-transform-react-inline-elements,babel-plugin-transform-react-jsx
💅 Polish
babel-plugin-proposal-class-properties,babel-plugin-transform-classes,babel-plugin-transform-parameters,babel-plugin-transform-react-constant-elements- #8123 [class-properties] Remove unnecessary return and temp variable. (@nicolo-ribaudo)
babel-parser- #8074 nit: fix folder name. (@dnalborczyk)
📝 Documentation
🏠 Internal
- Other
- #8142 Don't regenerate babel-types docs in the readme. (@nicolo-ribaudo)
- #8139 Bump test262-stream and update test262 tests. (@existentialism)
babel-generator,babel-node,babel-standalone,babel-template- #8144 Add Labels to READMEs Generator & Update README's w. Links To Open Issues (for some pkg's). (@BeniCheni)
babel-node- #7908 Test on node 10. (@nicolo-ribaudo)
v7.0.0-beta.49 (2018-05-25)
Mostly bugfix release for a regression in decorators, and a quick fix for some new babel-node options in the last release that just didn't work right. Also one small addition to the API for official promise-returning versions of our async transform/parsing functions.
🚀 New Feature
babel-core- #8023 Add a promise-returning *Async version of the transform and parse fns. (@loganfsmyth)
🐛 Bug Fix
babel-node- #8046 Handle kebab-case args in babel-node.. (@loganfsmyth)
babel-plugin-proposal-decorators- #8047 Transform decorated classes from the export visitor. (@nicolo-ribaudo)
babel-cli,babel-core,babel-plugin-transform-react-jsx-source,babel-preset-env,babel-preset-react- #8044 Expose all filenames as absolute paths, rather than relative.. (@loganfsmyth)
🏠 Internal
v7.0.0-beta.48 (2018-05-24)
- Renamed
babylonto@babel/parserfor clarity (I will still commonly refer to it as babylon though!) - Add Private Fields implementations (now Stage 3)
class A { #a = 1 } - Add small Stage 3 (now Stage 4) Subsume JSON change https://github.com/babel/proposals/issues/43
- Fix IE10 class regression
- Various fixes, many TS fixes
👓 Spec Compliance
babel-parser,babel-plugin-proposal-json-strings,babel-plugin-syntax-json-strings,babel-preset-stage-3- #7985 Subsume json. (@jridgewell)
💥 Breaking Change
babel-core,babel-helper-fixtures,babel-helper-transform-fixture-test-runner,babel-plugin-syntax-flow,babel-plugin-syntax-jsx,babel-plugin-syntax-typescript,babel-plugin-transform-typescript,babel-preset-react,babel-preset-typescript,babel-standalone- #7955 Verify that files are .ts/.tsx before treating as Typescript files.. (@loganfsmyth)
babel-cli,babel-core,babel-plugin-transform-react-jsx-source,babel-preset-react- #7956 Make the filename option, as exposed to the plugins, consistently relative to the working directory. (@loganfsmyth)
babel-traverse,babel-types- #7900 Re-add support for local Flow bindings (TypeAlias, OpaqueTypeAlias and Interface). (@rubennorte)
🚀 New Feature
babel-node- #8010 Add more of babel-cli's options to babel-node too for consistency.. (@loganfsmyth)
babel-cli,babel-nodebabel-core,babel-generator,babel-parser,babel-types,babylon- #7928 Create InterpreterDirective AST node type and use to replace babel/core File's 'shebang' handling. (@loganfsmyth)
babel-parser,babel-plugin-proposal-json-strings,babel-plugin-syntax-json-strings,babel-preset-stage-3- #7985 Subsume json. (@jridgewell)
babel-generator,babel-plugin-syntax-flow,babel-plugin-transform-flow-strip-types,babel-types,babylon- #7934 Add support for explicit type arguments in new and call expressions. (@samwgoldman)
babel-generator,babel-types,babylon- #7959 Allow internal slot properties to be optional. (@samwgoldman)
- #7947 Internal slot properties. (@samwgoldman)
babylon- #7869 Add an option to Babylon to have decorators before export. (@nicolo-ribaudo)
🐛 Bug Fix
babel-parser- #7994 [Babylon] Take the first set of options for plugins. (@nicolo-ribaudo)
- #7968 Set exprAllowed to false when parsing TSNonNullExpression. (@existentialism)
babel-core,babel-helpers,babel-plugin-proposal-class-properties,babel-plugin-proposal-decorators,babel-plugin-transform-classes,babel-plugin-transform-exponentiation-operator,babel-plugin-transform-function-name,babel-plugin-transform-object-super,babel-plugin-transform-parameters,babel-plugin-transform-react-jsx,babel-plugin-transform-runtime,babel-preset-env- #7969 Fix class inheritance in IE10. (@jridgewell)
babel-types- #8005 Handle Infinity, -Infinity, NaN, and -0 in t.valueToNode().. (@loganfsmyth)
- #7982 Build InterfaceTypeAnnotation generated type code. (@jridgewell)
babel-generator,babel-plugin-syntax-bigint,babel-typesbabel-core,babel-generator,babel-parser,babel-types,babylon- #7928 Create InterpreterDirective AST node type and use to replace babel/core File's 'shebang' handling. (@loganfsmyth)
babel-cli,babel-core,babel-plugin-transform-react-jsx-source,babel-preset-react- #7956 Make the filename option, as exposed to the plugins, consistently relative to the working directory. (@loganfsmyth)
babel-preset-typescript- #7990 passes the jsxPragma options from preset-typescript to plugin-transform-typescript. (@malbernaz)
babel-types,babylonbabel-helpers,babel-plugin-transform-classes,babel-preset-env- #7533 Fix bugs in the _wrapNativeSuper helper. (@nicolo-ribaudo)
babel-register- #7930 Ensure that calling register() fully resets the extension state.. (@loganfsmyth)
💅 Polish
babel-parser- #7986 Better error message for invalid decorators syntax. (@nicolo-ribaudo)
📝 Documentation
babel-preset-envbabel-parser
🏠 Internal
babel-parser- #7999 [babylon] Refactor mixin plugins handling & validation. (@nicolo-ribaudo)
- #8002 Fix some flow issues in @babel/parser flow plugin. (@existentialism)
babel-plugin-proposal-decorators- #7975 Add "legacy" prefix to legacy decorators tests. (@nicolo-ribaudo)
babel-cli,babel-core- #7929 Refactor babel-cli to use async functions for async handling, and centralize option loading. (@loganfsmyth)
babel-helper-transform-fixture-test-runner- #7931 Test running bug fixing for Node 10. (@loganfsmyth)
v7.0.0-beta.47 (2018-05-14)
- Compile Babel itself to target Node 6 syntax given we dropped Node 4 support to run (this is unrelated to the output code)
- Allow
babelrcandbabelrcRootsin config files - Various bug fixes
💥 Breaking Change
babel-generator,babel-plugin-syntax-decorators,babylon- #7821 Rename decorators&decorators2 plugins to decorators-legacy&decorators.. (@nicolo-ribaudo)
- Other
🚀 New Feature
babel-core- #7911 Allow 'babelrc' and 'babelrcRoots' in config files (but not .babelrc/extends). (@loganfsmyth)
🐛 Bug Fix
babel-plugin-transform-typescriptbabel-core- #7911 Allow 'babelrc' and 'babelrcRoots' in config files (but not .babelrc/extends). (@loganfsmyth)
babel-cli- #7875 Fix watch bug with output-dir paths.. (@loganfsmyth)
babel-preset-env- #7809 Clean up and add some additional polyfill mappings in preset-env. (@existentialism)
- #7884 Fix bug with handling minor versions when parsing compat-data. (@existentialism)
- #7810 Improve useBuiltIns: usage mappins in preset-env. (@existentialism)
babel-plugin-transform-typescript,babylonbabel-preset-stage-3- #7819 fix(preset-stage-3): pass along loose flag to proposal-object-rest-spread. (@yyx990803)
babel-cli,babel-core,babel-helper-fixtures,babel-helper-transform-fixture-test-runner- #7761 Reimplement input sourcemap merging using range matching instead of closest-position matching. (@loganfsmyth)
💅 Polish
babel-plugin-transform-modules-commonjs,babel-plugin-transform-template-literals- #7855 Lazy load tagged template literal strings. (@dczombera)
babylonbabel-plugin-proposal-class-properties- #7813 Class Props: Don't rename constructor collisions with static props. (@jridgewell)
babel-cli,babel-code-frame,babel-core,babel-helper-member-expression-to-functions,babel-helper-module-imports,babel-helper-plugin-utils,babel-preset-env,babel-register,babel-template,babel-types,babylon- #7777 Use Object Spread Syntax. (@jridgewell)
📝 Documentation
babel-node- #7897 Fix typo [skip-ci]. (@rockymeza)
babel-plugin-transform-destructuring,babel-plugin-transform-exponentiation-operator,babel-plugin-transform-property-mutators,babel-plugin-transform-proto-to-assign,babel-plugin-transform-reserved-words,babel-plugin-transform-spreadbabel-preset-envbabel-plugin-transform-instanceof
🏠 Internal
- Other
- #7925 Update test262 and flow tests. (@nicolo-ribaudo)
- #7916 Use the correct Babylon plugins for Test262 tests. (@nicolo-ribaudo)
- #7906 Update @babel/plugin-codemod-object-assign-to-object-spread version. (@nicolo-ribaudo)
- #7851 remove since we have other issue templates [skip ci]. (@hzoo)
- #7839 add lock bot for closed issues [skip ci]. (@hzoo)
- #7811 Upgrade to gulp@4. (@existentialism)
- #7794 add loose to object spread. (@hzoo)
- #7792 Fix indent in .travis.yml. (@shirohana)
babel-core,babylon- #7904 Fix typescript decorator test. (@existentialism)
babel-plugin-transform-classes- #7893 fix typo in a comment. (@aaronabramov)
babel-core,babel-plugin-proposal-logical-assignment-operators,babel-plugin-proposal-nullish-coalescing-operator,babel-plugin-syntax-logical-assignment-operators,babel-plugin-syntax-nullish-coalescing-operator- #7825 Unify
mainproperty in package.json [ci skip]. (@shirohana)
- #7825 Unify
babel-core,babel-helper-module-imports,babel-helper-transform-fixture-test-runner,babel-plugin-transform-modules-commonjs,babel-preset-es2015- #7784 Upgrade Babel to self-host with beta.46. (@loganfsmyth)
babel-plugin-proposal-class-properties- #7814 Don't fold class property calls. (@jridgewell)
v7.0.0-beta.46 (2018-04-23)
- Fix regression by landing #7783
v7.0.0-beta.45 (2018-04-23)
- Drop Node 4 Support (ends 4/30).
- Make Stage 2 decorators "default" (implementation is still WIP), and require people use the
decoratorsLegacyoption for easier migration. - Change
@babel/polyfillto not throw an error but a warning if it is imported multiple times. Also introduce another entry point without the warning - Change how Babel handles config files regarding a lot of cases, especially for compiling
node_modules. Introducebabel.config.js- If you are using a monorepo an a single
.babelrc, you will need to change tobabel.config.jslike Babel itself is doing (https://github.com/babel/babel/pull/7784)
- If you are using a monorepo an a single
- Add ES2018 to
@babel/preset-env: like object rest/spread, etc. - Lots of spec and bug fixes! Shoutout to Justin (@jridgewell) and Josh (@CodingItWrong) for all the PR work for private properties!
💥 Breaking Change
babel-cli,babel-core,babel-preset-env,babel-register- #7358 Allow more flexible file-based configuration while preventing .babelrcs from breaking things. (@loganfsmyth)
babylon- #7755 drop support for Node.js v4. (@boneskull)
babel-core,babel-plugin-proposal-class-properties,babel-plugin-proposal-decorators,babel-plugin-syntax-decorators,babel-plugin-transform-function-name,babel-preset-stage-0,babel-preset-stage-1,babel-preset-stage-2- #7734 Decorators legacy option. (@nicolo-ribaudo)
🚀 New Feature
babel-polyfill- #6371 Add noConflict entry mode to @babel/polyfill. (@evan-scott-zocdoc)
babel-cli,babel-core,babel-preset-env,babel-register- #7358 Allow more flexible file-based configuration while preventing .babelrcs from breaking things. (@loganfsmyth)
babel-generator,babel-types,babylon- #7741 Add support for flow implements. (@existentialism)
babel-preset-env- #7658 Add initial support for ES2018 in preset-env. (@existentialism)
babel-core,babel-plugin-proposal-class-properties,babel-plugin-proposal-decorators,babel-plugin-proposal-function-bind,babel-plugin-transform-classes,babel-plugin-transform-flow-comments,babel-plugin-transform-flow-strip-types,babel-plugin-transform-function-name,babel-plugin-transform-jscript,babel-plugin-transform-parameters,babel-plugin-transform-react-jsx,babel-plugin-transform-runtime,babel-standalone- #7411 Add "use strict" directive. (@MarkusToe)
babel-helper-transform-fixture-test-runner- #7679 Add option to overwrite failing output fixtures. (@jridgewell)
babel-generator,babel-helper-define-map,babel-plugin-syntax-class-properties,babel-plugin-transform-parameters,babel-plugin-transform-react-constant-elements,babel-traverse,babel-types- #7666 Private Properties phase 1. (@jridgewell)
👓 Spec Compliance
babel-helper-simple-access,babel-plugin-transform-modules-commonjs,babel-plugin-transform-modules-systemjs- #7766 Correct update expression Number coercion. (@jridgewell)
babel-core,babel-generator,babel-plugin-proposal-decorators,babel-types,babylon- #7719 Update decorators parsing. (@nicolo-ribaudo)
babel-plugin-transform-classes- #7732 Fix default class super inheritance. (@jridgewell)
babel-plugin-transform-template-literals- #7722 Remove tagged template literal global caching. (@jridgewell)
babel-helper-replace-supers,babel-plugin-proposal-class-properties,babel-plugin-transform-classes,babel-plugin-transform-exponentiation-operator,babel-plugin-transform-object-super- #7691 Fix super nested class bugs. (@jridgewell)
babel-helper-replace-supers,babel-helpers,babel-plugin-proposal-class-properties,babel-plugin-transform-classes,babel-plugin-transform-exponentiation-operator,babel-plugin-transform-object-super,babel-preset-env- #7687 Get set helpers. (@jridgewell)
🐛 Bug Fix
babel-helper-simple-access,babel-plugin-transform-modules-commonjs,babel-plugin-transform-modules-systemjs- #7766 Correct update expression Number coercion. (@jridgewell)
babel-helper-replace-supers,babel-plugin-transform-classes,babel-plugin-transform-object-super- #7774 Update super property get/set/call in loose mode. (@jridgewell)
babel-helper-member-expression-to-functions,babel-helper-replace-supers,babel-plugin-transform-classes- #7776 Memoize computed super properties. (@jridgewell)
babel-core,babel-helpers,babel-plugin-proposal-class-properties,babel-plugin-proposal-decorators,babel-plugin-transform-classes,babel-plugin-transform-function-name,babel-plugin-transform-parameters,babel-plugin-transform-react-jsx,babel-plugin-transform-runtime,babel-preset-env- #7772 Move subclass inheritance to end. (@jridgewell)
babel-generatorbabylonbabel-helper-replace-supers,babel-plugin-proposal-class-properties,babel-plugin-transform-classes,babel-plugin-transform-exponentiation-operator,babel-plugin-transform-object-super- #7691 Fix super nested class bugs. (@jridgewell)
babel-types- #7706 Fix literal type annotation argument number. (@hendrikniemann)
babel-helper-function-name,babel-plugin-transform-function-namebabel-plugin-proposal-class-properties- #7659 Fix super in class fields.. (@nicolo-ribaudo)
babel-plugin-proposal-optional-chaining,babel-types- #7668 OptionalMemberExpression properties are not referenced. (@jridgewell)
💅 Polish
babel-helpersbabel-helper-replace-supers,babel-plugin-transform-classes,babel-plugin-transform-exponentiation-operator,babel-plugin-transform-object-super,babel-traverse- #7737 Classes cleanup. (@jridgewell)
babel-plugin-proposal-class-properties,babel-plugin-transform-parametersbabylon- #7717 Provide better error message for invalid default export declaration. (@dczombera)
babel-helper-replace-supers,babel-plugin-transform-classes- #7714 Use new isInStrictMode. (@jridgewell)
babel-plugin-transform-object-super- #7681 Cleanup object super traversal. (@jridgewell)
📝 Documentation
babel-plugin-proposal-decorators,babel-preset-stage-0,babel-preset-stage-1,babel-preset-stage-2- #7762 Fix small typo with decorators legacy option [skip ci]. (@existentialism)
- Other
- #7713 Add slack links to CONTRIBUTING.md. (@nicolo-ribaudo)
- #7676 update sponsors, move up [skip ci]. (@hzoo)
🏠 Internal
babel-helper-replace-supers,babel-plugin-proposal-class-properties,babel-plugin-transform-classes,babel-plugin-transform-parameters- #7750 Move more class state out of replaceSupers. (@jridgewell)
babel-helper-member-expression-to-functions,babel-helper-replace-supers,babel-plugin-transform-classes,babel-plugin-transform-exponentiation-operator,babel-plugin-transform-object-super- #7763 Implement MemberExpressionToFunctions helper. (@jridgewell)
babel-helper-replace-supers,babel-plugin-transform-classes,babel-plugin-transform-exponentiation-operator,babel-plugin-transform-object-super,babel-traverse- #7737 Classes cleanup. (@jridgewell)
babel-helper-transform-fixture-test-runner- #7729 Drop Chai from packages. (@jridgewell)
babel-helper-transform-fixture-test-runner,babel-plugin-proposal-class-properties,babel-plugin-proposal-optional-catch-binding,babel-plugin-transform-block-scoping,babel-plugin-transform-classes,babel-plugin-transform-computed-properties,babel-plugin-transform-jscript,babel-plugin-transform-object-super- #7720 Migrate more packages' tests to use jest expect assertions. (@devenbansod)
babel-cli,babel-core,babel-generator,babel-plugin-proposal-decorators,babel-plugin-proposal-logical-assignment-operators,babel-preset-es2015- #7549 Migrate
babel-cliandbabel-generatortests to use jest-expect. (@devenbansod)
- #7549 Migrate
babel-plugin-transform-classes,babel-traverse- #7712 Add Path#isInStrictMode. (@jridgewell)
- Other
- #7708 ESLint: Ignore lerna.json and .git. (@jridgewell)
- #7704 Use yarn provided by circle. (@existentialism)
babel-traverse,babel-types- #7685 Make babel-types type checking functions 36% faster. (@devongovett)
v7.0.0-beta.44 (2018-04-02)
- Publish regression: was compiled against Node 8 instead of Node 4 due to an ENV mixup
v7.0.0-beta.43 (2018-04-02)
Various fixes, also lazy-load @babel/core dependencies (should make config lookup and other API methods fast for other projects to use).
👓 Spec Compliance
babel-plugin-proposal-logical-assignment-operators- #7604 Logical Assignment: ensure computed key isn't recomputed. (@jridgewell)
🚀 New Feature
babel-nodebabel-generator,babylonbabel-templatebabel-preset-env- #7242 Add regexp support to include/exclude. (@aminmarashi)
🐛 Bug Fix
babel-types- #7639 Allow StringLiteral and NumericLiteral as ObjectTypeProperty.key. (@unconfident)
babylon- #7617 Prevent duplicate regex flags. (@existentialism)
babel-preset-env- #7586 Tweak es2015-related plugin order in preset-env. (@existentialism)
💅 Polish
🏠 Internal
babel-*- #7579 Migrate a few packages' tests to use Jest Expect (see below). (@devenbansod)
babel-node,babel-register- #7588 Have @babel/core lazy-load all dependencies and make @babel/register not explode because of that. (@loganfsmyth)
- Other
- #7609 Update to beta.42. (@existentialism)
- #7599 Centralize Babel's own compilation config to make it easier to follow.. (@loganfsmyth)
babel-plugin-transform-classes,babel-preset-envbabel-cli,babel-core,babel-helpers,babel-node,babel-plugin-transform-for-of,babel-preset-env,babylonbabel-plugin-transform-classes
v7.0.0-beta.42 (2018-03-15)
💥 Breaking Change
babel-helper-module-transforms,babel-plugin-transform-classes,babel-plugin-transform-modules-commonjs- #7545 Make
imports in.mjsfiles use node-like behavior where 'exports' is '.default' only. . (@loganfsmyth)
- #7545 Make
🚀 New Feature
babel-helper-module-transforms,babel-plugin-transform-classes,babel-plugin-transform-modules-commonjs- #7545 Make
imports in.mjsfiles use node-like behavior where 'exports' is '.default' only. . (@loganfsmyth)
- #7545 Make
babel-plugin-proposal-object-rest-spread,babel-plugin-transform-destructuring
🐛 Bug Fix
babel-preset-env- #7562 Use helper-module-import inside preset-env. (@existentialism)
babel-core,babel-helper-plugin-utils- #7580 Ensure that the backward-compat logic for plugin-utils copies over the version API properly.. (@loganfsmyth)
babel-plugin-proposal-async-generator-functions- #7575 Fix "Module build failed: Error: Cannot find module '@babel/types'". (@mgroenhoff)
babel-helpers,babel-plugin-transform-classes,babel-preset-env- #7570 Fix incorrect value of _cache in _wrapNativeSuper. (@simonkberg)
💅 Polish
babel-helpers,babel-plugin-transform-classes,babel-preset-envbabel-plugin-proposal-object-rest-spread,babel-plugin-transform-destructuring
📝 Documentation
babylon- #7571 Remove outdated spec deviation note. (@benwiley4000)
🏠 Internal
babel-generator,babel-plugin-transform-typescript- #7578 Rename actual/expected test files to input/output. (@CodingItWrong)
- Other
v7.0.0-beta.41 (2018-03-14)
💥 Breaking Change
babel-cli,babel-core,babel-generator,babel-helper-transform-fixture-test-runner- #7500 Remove the sourceMapTarget option from core and implement it in babel-cli.. (@loganfsmyth)
We'll need to update tooling for this ^. Also published gulp-babel@8.0.0-beta.2
babel-helpers,babel-plugin-transform-modules-commonjs,babel-traverse- #7491 Explicitly throw if the array rest/spread items are not iterable.. (@loganfsmyth)
babylonbabel-helper-remap-async-to-generator,babel-plugin-proposal-async-generator-functions,babel-plugin-transform-async-to-generator,babel-preset-envbabel-core,babel-helper-module-imports,babel-helper-transform-fixture-test-runner,babel-plugin-transform-modules-amd,babel-plugin-transform-modules-commonjs,babel-plugin-transform-modules-umd,babel-preset-env-standalone,babel-preset-env,babel-standalone- #7417 Rely entirely on sourceType for module vs script differentiation.. (@loganfsmyth)
babel-core,babel-helpers,babel-plugin-transform-modules-commonjs- #7436 Default to
ast:falseand do less work when loading core. (@loganfsmyth)
- #7436 Default to
babel-register- #7416 Replace instead of merging babel-register options, and resolve cwd up front. (@loganfsmyth)
👓 Spec Compliance
babylon- #7503 Update test262 test script and a few keyword escape fixes. (@existentialism)
- #7498 Disallow setters to have RestElement. (@danez)
- #7392 Spec Violation: Fix var initializer in for-in loop. (@ksashikumar)
🚀 New Feature
babel-core- #7472 Expose the partial Babel config for callers to load and mutate.. (@loganfsmyth)
babel-*- #7450 Allow plugins to assert that a specific babel version has loaded the plugin.. (@loganfsmyth)
babel-cli,babel-preset-envbabel-generator,babel-plugin-transform-typescript,babel-types,babylonbabel-generator,babel-types,babylonbabel-core,babel-plugin-proposal-logical-assignment-operators,babel-plugin-syntax-logical-assignment-operators,babel-preset-stage-0,babylon- #7385 Proposal: Logical Assignment Operators. (@jridgewell)
🐛 Bug Fix
babel-corebabel-preset-env- #7548 preset-env - add Symbol.asyncIterator to shippedProposals builtIns. (@yaelhe)
- #7421 Add Number.parseFloat/parseInt mappins for preset-env 'usage'. (@existentialism)
- #7438 Ensure babel-preset-env targets input object is not mutated. (@guybedford)
- #7400 Add missing promise polyfill deps for preset-env's useBuiltIns: usage. (@existentialism)
babylon- #7538 Make 'sourceType:unambiguous' use 'module' when import.meta is used.. (@loganfsmyth)
- #7392 Spec Violation: Fix var initializer in for-in loop. (@ksashikumar)
- #7473 Remove broken check in checkFunctionNameAndParams. (@ksashikumar)
babel-plugin-transform-destructuring- #7333 Assign another temp var when parsing assignment patterns in destructuring. (@existentialism)
babel-helpers,babel-plugin-transform-modules-commonjs,babel-traverse- #7491 Explicitly throw if the array rest/spread items are not iterable.. (@loganfsmyth)
babel-node- #7511 Restore passing SIGINT signals to spawned child processes. (@existentialism)
babel-helper-remap-async-to-generator,babel-plugin-proposal-async-generator-functions,babel-plugin-transform-async-to-generator,babel-preset-envbabel-cli- #7461 Require users to pass a filename, or specify --no-babelrc when using CLI with stdin.. (@loganfsmyth)
babel-helper-module-transforms,babel-plugin-transform-modules-commonjs- #7418 Avoid re-traversing inserted references to the namespace binding.. (@loganfsmyth)
- #7378 Preserve import binding locations during module rewriting. (@loganfsmyth)
babel-plugin-proposal-object-rest-spread- #7364 Don't extract rest elements from nested expressions. (@nicolo-ribaudo)
- #7388 Fix over-zealous traversal by object-rest-spread. (@jamesreggio)
babel-helpers,babel-plugin-proposal-object-rest-spread,babel-preset-env
💅 Polish
babel-generatorbabylon- #7538 Make 'sourceType:unambiguous' use 'module' when import.meta is used.. (@loganfsmyth)
babel-helpers,babel-plugin-proposal-class-properties,babel-plugin-proposal-decorators,babel-plugin-transform-classes,babel-plugin-transform-parameters- #7493 Reuse the
assertThisInitializedhelper inpossibleConstructorReturn. (@nicolo-ribaudo)
- #7493 Reuse the
babel-core,babel-plugin-transform-modules-commonjs,babylon- #7490 Give helpful errors if the wrong sourceType is detected. (@loganfsmyth)
babel-core- #7238 Better error message for invalid plugin/preset. (@SpainTrain)
babel-plugin-transform-async-to-generator,babel-plugin-transform-react-constant-elements,babel-plugin-transform-react-jsx,babel-traversebabel-helpers,babel-plugin-transform-modules-commonjs,babel-plugin-transform-template-literals- #7379 Solves Tagged template literal size optimization. (@debugpai2)
📝 Documentation
README.mdbabel-plugin-transform-typescriptbabel-generator- #7380 Link generator readme to Babylon AST spec [skip ci]. (@modernserf)
🏠 Internal
- Other
- #7560 Run node 9 on circleci and remove from travis. (@danez)
- #7556 Re-add TEST_ONLY and use Jest's -t for TEST_GREP.. (@loganfsmyth)
- #7530 Run build-no-bundle in the watcher to get the right files.. (@loganfsmyth)
- #7510 Use jest workers on travis-ci and circleCI. (@danez)
- #7499 Wmertens add prettier config. (@danez)
- #7191 Add eslint plugin to disallow
t.cloneandt.cloneDeep. (@nicolo-ribaudo) - #7454 Dependency cleanup. (@danez)
- #7451 Update to circleci v2. (@danez)
- #7453 Install peerDependencies and remove unused async dependency. (@danez)
babel-preset-env- #7543 update preset-env after build-data. (@yaelhe)
- #7401 Bump compat-table and regen preset-env data. (@existentialism)
babel-core,babel-helper-transform-fixture-test-runner- #7513 Migrate babel-core tests to use jest-expect. (@devenbansod)
babel-helper-transform-fixture-test-runner- #7520 Show a more useful diff when comparing fixture files.. (@loganfsmyth)
babel-registerbabel-*- #7484 Require tests to use input.mjs for modules, and output.js/.mjs based on active transforms. (@loganfsmyth)
babel-code-frame- #7485 Migrate
babel-code-frametests to useexpect. (@devenbansod)
- #7485 Migrate
babel-cli,babel-code-frame,babel-core,babel-helper-transform-fixture-test-runner,babel-preset-env-standalone,babel-preset-env,babel-register,babel-standalone,babel-traverse,babel-typesbabel-types,babylon- #7431 Upgrade flow to 0.66 and fix a few minor errors.. (@loganfsmyth)
babel-template,babel-types,babylon- #7227 Fix up flow errors. (@existentialism)
babel-helper-module-transforms,babel-helper-split-export-declaration,babel-plugin-proposal-class-properties,babel-plugin-transform-classes,babel-plugin-transform-function-name,babel-traverse
v7.0.0-beta.40 (2018-02-12)
🚀 New Feature
babel-preset-envbabel-highlight*#7351 Extract@babel/highlightpackage from@babel/code-frame(@suchipi)
🐛 Bug Fix
babel-cli- #7366 Fix CLI compilation callback calling. (@VojtechStep)
babel-code-framebabel-generator,babel-plugin-proposal-optional-chaining,babel-types,babylon- #7288 [BugFix] : OptionalChaining Bug fixes. (@nveenjain)
babel-core,babel-template,babel-traverse- #7314 Add location information to parsing errors. (@kaicataldo)
babel-plugin-proposal-pipeline-operator- #7319 Do not optimize away async/gen arrow functions. (@jridgewell)
babel-traverse- #7312 Preserve identifier location information when mapping this and arguments.. (@loganfsmyth)
babylon- #7297 [Typescript] - Fix SyntaxError in async arrow functions with rest params. (@ksashikumar)
📝 Documentation
babel-plugin-proposal-unicode-property-regex- #7311 Remove outdated sentence from README. (@mathiasbynens)
🏠 Internal
babel-preset-env- #7344 Fix failing test. (@nicolo-ribaudo)
- Other
babylon- #7240 Compile Babylon with the normal workflow and use "overrides" in our c…. (@nicolo-ribaudo)
v7.0.0-beta.39 (2018-01-30)
👓 Spec Compliance
babel-plugin-proposal-optional-chaining- #6345 Remove old optional chain features. (@jridgewell)
🚀 New Feature
babel-polyfill,babel-preset-env,babel-register,babel-runtime- #6526 Add some es5 features to babel-preset-env. (@existentialism)
babel-core- #7291 babel-core: Add parse method. (@kaicataldo)
babel-preset-env,babel-preset-es2015babel-registerbabel-preset-env- #7212 Add preset-env target esmodules. (@kristoferbaxter)
babel-generator,babylonbabel-code-frame- #7243 Add opts.message option to code frames. (@thejameskyle)
🐛 Bug Fix
babel-registerbabel-plugin-proposal-decorators,babylon- #7189 Bug-fix: export default decorated class parsed as class expression. (@nveenjain)
babel-plugin-transform-typescriptbabel-helper-annotate-as-pure- #7245 Tweak and add tests to babel-helper-annotate-as-pure. (@existentialism)
💅 Polish
babel-template- #7255 update substitution placeholder message in babel-template. (@thescientist13)
📝 Documentation
babel-preset-env
🏠 Internal
babel-*- #7149 Disallow duplicated nodes (only in tests output). (@nicolo-ribaudo)
babel-helper-transform-fixture-test-runner- #7149 Disallow duplicated nodes (only in tests output). (@nicolo-ribaudo)
babel-plugin-check-constants,babel-plugin-transform-block-scoping,babel-preset-env,babel-preset-es2015,babel-standalone- #6987 Remove check-constants plugin. (@maurobringolf)
babylon- #7246 Make comment props more consistent. (@existentialism)
babel-plugin-transform-eval,babel-standalone- Other
v7.0.0-beta.38 (2018-01-17)
🐛 Bug Fix
babylonbabel-traversebabel-plugin-transform-async-to-generator,babel-traversebabel-code-framebabel-generator,babel-plugin-transform-flow-strip-types,babylonbabel-plugin-transform-block-scoping- #6782 Minor improvements to block-scoping/tdz. (@maurobringolf)
babel-plugin-transform-react-inline-elementsbabel-helper-builder-react-jsx,babel-plugin-transform-react-jsx
💅 Polish
babel-helpers,babel-plugin-transform-react-constant-elementsbabylon*- #7181 Rename actual/expected to input/output in fixtures.. (@nicolo-ribaudo)
📝 Documentation
babel-helper-plugin-test-runner- #7185 Doc changes for https://github.com/babel/babel/issues/7063. (@rajzshkr)
babylon
🏠 Internal
babel-types- #7220 Remove old comment. (@nicolo-ribaudo)
- #7164 Fixes React isCompatTag validator accepting leading dash character. (@claudiopro)
babel-traversebabel-cli*- #7187 Remove old expected.{js,json} files. (@nicolo-ribaudo)
babel-preset-env- Other
- #7180 Regen lib/types. (@existentialism)
- #7104 update to v7-beta.37. (@hzoo)
babel-generator- #7174 Remove "quotes" internal flag from babel-generator. (@nicolo-ribaudo)
v7.0.0-beta.37 (2018-01-08)
Fixes + overrides config feature
🚀 New Feature
babel-core- #7091 Allow configs to have an 'overrides' array. (@loganfsmyth)
babylonbabel-generator,babel-typesbabel-standalone- #7119 Add syntax-typescript and transform-typescript to babel-standalone. (@alangpierce)
🐛 Bug Fix
babel-core- #7161 Process .babelignore before .babelrc. (@loganfsmyth)
babel-standalone- #7094 [@babel/standalone] Remove additional function context. (@stevefan1999)
babel-generator- #7155 Preserve jsx comment . (@rajzshkr)
- #7131 Fix turning division operator into line comment in compact mode. (@karottenreibe)
babel-plugin-proposal-class-propertiesbabylonbabel-plugin-transform-computed-properties,babel-traverse- #7116 Fix a regression introduced in #7040. (@nicolo-ribaudo)
babel-helper-remap-async-to-generator,babel-plugin-transform-async-to-generator
💅 Polish
babel-plugin-proposal-decorators- #7124 [decorators] Only transform declarations to expressions when needed. (@nicolo-ribaudo)
babylon- #7152 Suggest JSX fragment syntax in adjacent tag error. (@sophiebits)
📝 Documentation
- Other
- #7141 Update license year. (@danielbayerlein)
babel-register
🏠 Internal
babylonbabel-preset-envbabel-generator,babel-plugin-proposal-class-properties,babel-plugin-transform-flow-strip-types,babel-plugin-transform-react-jsx,babel-plugin-transform-template-literals,babel-plugin-transform-typescript,babel-preset-env,babel-preset-flow
v7.0.0-beta.36 (2017-12-25)
- First release to allow support for
class A extends Array - Add
babel-plugin-transform-dotall-regex - Add
lazyoption tomodules-commonjs - Various fixes + decorator regression fix
🚀 New Feature
babel-helpers,babel-plugin-transform-classes,babel-preset-es2015- #7020 Add support for extending builtins. (@nicolo-ribaudo)
babel-preset-env,babel-standalone- #7065 Add dot-all regex support to preset-env and standalone. (@existentialism)
babel-plugin-transform-dotall-regex- #7059 Import babel-plugin-transform-dotall-regex. (@mathiasbynens)
babel-helper-module-transforms,babel-plugin-transform-modules-commonjs- #6952 Add a 'lazy' options to modules-commonjs. (@loganfsmyth)
babel-plugin-syntax-import-meta,babel-preset-stage-3,babel-standalone- #7008 expose import.meta syntax parser option as plugin. (@dnalborczyk)
🐛 Bug Fix
babel-generatorbabel-generator,babel-plugin-transform-typescript,babylonbabel-generator,babel-plugin-transform-flow-strip-types,babylon- #7061 Treat import type * as a parser error. (@existentialism)
babel-typesbabel-plugin-proposal-decorators- #7032 [decorators] Don't transform every AssignmentExpression. (@nicolo-ribaudo)
💅 Polish
babel-plugin-transform-typescriptbabel-core
📝 Documentation
babel-plugin-proposal-unicode-property-regex- #7064 Fix installation instructions. (@mathiasbynens)
🏠 Internal
babel-preset-envbabel-core- #7090 Refactor config processing more. (@loganfsmyth)
babel-helper-wrap-function,babel-plugin-proposal-class-properties,babel-plugin-transform-typescript,babel-traverse- #7040 Make .insert{Before,After} work by default when the parent is an eport declaration. (@nicolo-ribaudo)
babel-plugin-transform-block-scoping- #7028 Fix O(n^2) getLetReferences – 40% faster on large flat files. (@sophiebits)
v7.0.0-beta.35 (2017-12-14)
Various bug fixes, first version of Babel to use the MIT version of regenerator
👓 Spec Compliance
babylon- #6986 Fix destructuring assignment spec violation. (@ksashikumar)
babel-helper-replace-supers,babel-helpers,babel-plugin-proposal-class-properties,babel-plugin-transform-classes,babel-plugin-transform-parameters- #6467
thisbeforesuper()is a runtime error, not a static one.. (@nicolo-ribaudo)
- #6467
🚀 New Feature
babel-generator,babylon- #7005 Add method property to ObjectTypeProperty. (@existentialism)
- Other
babylon
🐛 Bug Fix
babel-core,babel-helper-remap-async-to-generator,babel-helper-wrap-function,babel-plugin-proposal-async-generator-functions,babel-plugin-proposal-class-properties,babel-plugin-proposal-function-sent,babel-plugin-transform-async-to-generator,babel-preset-env- #6984 Wrap FunctionDeclarations with FunctionDeclarations, instead of using _blockHoist.. (@nicolo-ribaudo)
babel-types- #6939 Fix type definitions to fully support Typescript. (@dpoindexter)
babel-helper-remap-async-to-generator,babel-plugin-transform-async-to-generatorbabel-generatorbabylon- #6986 Fix destructuring assignment spec violation. (@ksashikumar)
- #6969 For babylon typescript parser, fix false positive for
!after a line break. (@andy-ms)
babel-helper-replace-supers,babel-helpers,babel-plugin-proposal-class-properties,babel-plugin-transform-classes,babel-plugin-transform-parameters- #6467
thisbeforesuper()is a runtime error, not a static one.. (@nicolo-ribaudo)
- #6467
💅 Polish
babel-helpers,babel-plugin-proposal-decorators- #7017 Fixes 6965. (@perinikhil)
babel-types- #7001 Improve error message in types assert. (@existentialism)
babylon- #6962 Better error message for
import.metaandimport()without plugin. (@nicolo-ribaudo)
- #6962 Better error message for
🏠 Internal
babel-core,babel-helper-fixtures,babel-plugin-transform-modules-amd,babel-plugin-transform-modules-commonjs,babel-plugin-transform-modules-umd,babel-preset-env,babel-template,babel-traverse,babel-types,babylon- #6991 Bump prettier. (@existentialism)
babel-plugin-transform-regenerator,babel-polyfill,babel-runtimebabel-plugin-transform-react-jsx-self,babel-plugin-transform-react-jsx-source,babel-plugin-transform-react-jsx,babel-traverse,babel-types- #6967 Generate better builder names for JSX* and TS*. (@nicolo-ribaudo)
babylon
v7.0.0-beta.34 (2017-12-02)
Regression Fix
babel-preset-stage-1,babel-preset-stage-2- #6949 Fix stage refs to exportNamespaceFrom and exportDefaultFrom. (@existentialism)
👓 Spec Compliance
🏠 Internal
babylon- Other
babel-types
v7.0.0-beta.33 (2017-12-01)
👓 Spec Compliance
babel-generator,babel-plugin-proposal-export-default-from,babel-plugin-proposal-export-default,babel-plugin-proposal-export-namespace-from,babel-plugin-proposal-export-namespace,babel-plugin-syntax-export-default-from,babel-plugin-syntax-export-extensions,babel-plugin-syntax-export-namespace-from,babel-standalone,babylon- #6920 Split exportExtensions into exportDefault and exportNamespace plugins…. (@existentialism)
babylon- #6725 Fix some reserved type handling and declare class with multiple extends. (@existentialism)
💥 Breaking Change
babel-core- #6905 Merge all config & programmatic plugins/preset rather than duplicating. (@loganfsmyth)
babylon- #6836 removing expression field from ArrowFunctionExpression. (@mmckeaveney)
babel-traverse- Other
🚀 New Feature
babel-plugin-transform-for-ofbabel-core- #6905 Merge all config & programmatic plugins/preset rather than duplicating. (@loganfsmyth)
babel-core,babel-preset-es2015- #6904 Add a 'cwd' option, and misc refactoring and tweaks before simple config merging. (@loganfsmyth)
babel-cli,babel-core- #6834 Expose
envNameas a top-level Babel option to avoid using environmental variables. (@loganfsmyth)
- #6834 Expose
babel-helper-module-imports- Other
babel-core,babel-helper-remap-async-to-generator,babel-plugin-proposal-async-generator-functions,babel-plugin-proposal-class-properties,babel-plugin-proposal-function-sent,babel-plugin-transform-async-to-generator,babel-plugin-transform-parameters
🐛 Bug Fix
babel-helpers,babel-plugin-transform-modules-commonjsbabel-helper-module-transforms,babel-plugin-transform-modules-amd,babel-plugin-transform-modules-commonjs,babel-plugin-transform-modules-umdbabel-generator- #6922 UpdateExpressions as callees must be parenthesized. (@nicolo-ribaudo)
- #6897 Add handling parens for extends clause in generator. (@existentialism)
babel-plugin-transform-regeneratorbabel-traverse- #6882 Fix setting deopt properly after evaluating multiple expressions. (@existentialism)
babylon- #6877 Allow yielding an arrow function withour parens around the param. (@nicolo-ribaudo)
- #6802 Parse async arrows with flow type parameters. (@nicolo-ribaudo)
babel-typesbabel-core- #6842 Add missing generator argument and remove nonexistent one.. (@loganfsmyth)
- Other
- #6663 Maintain plugin order with items in the
includeoption. (@existentialism) - #6662 Fix bug in preset-env usage plugin with destructure in for-of. (@existentialism)
- #6663 Maintain plugin order with items in the
babel-plugin-transform-block-scoping
💅 Polish
babylonbabel-helper-module-importsbabel-cli,babel-core,babylonbabel-helpers,babel-plugin-check-constants- #6862 Define readOnlyError helper and use in check-constants plugin. (@maurobringolf)
babel-typesbabel-plugin-transform-arrow-functions,babel-plugin-transform-parameters- #6792 Do not access out of bounds arguments. (@apapirovski)
babel-core,babel-traverse- #6818 Add some nice warnings if plugins happen to return promises instead of sync values.. (@loganfsmyth)
📝 Documentation
babel-plugin-transform-for-of,babylonbabel-plugin-proposal-class-propertiesbabel-register- #6899 Fixed ignore in readme for babel-register. (@MarkShulhin)
- Other
- #6868 [skip ci] Update CONTRIBUTING.md. (@yeefom)
- #6756 Documentation PR: description about building and testing babylon in CONTRIBUTING.md. (@vincentdchan)
- #6843 README: Use HTTPS and relative links when possible. (@mc10)
- #6825 docs: [skip-ci] Remove @babel scope from babel-preset-env include/exc…. (@marcioj)
babel-*babel-cli
🏠 Internal
babel-core- #6909 Rewrite config chain tests to use public loadOptions API.. (@loganfsmyth)
- Other
babylon
v7.0.0-beta.32 (2017-11-12)
Regression with loose modules + export https://github.com/babel/babel/issues/6805
💥 Breaking Change
babel-traverse- #6528 Remove support for flow bindings (remove deprecation). (@nicolo-ribaudo)
🚀 New Feature
babel-core,babylon- #6789 Allow sourceType:unambiguous as a way to tell Babylon to guess the type.. (@loganfsmyth)
babel-core,babel-plugin-transform-modules-umd,babel-plugin-transform-react-display-name,babel-plugin-transform-react-jsx-source- #6777 Add an official 'state.filename' and be more explicit about option passing.. (@loganfsmyth)
babel-helper-module-transforms,babel-plugin-transform-modules-amd,babel-plugin-transform-modules-commonjs,babel-plugin-transform-modules-umd- #6742 Add additional support for loose mode in helper-module-transforms. (@existentialism)
🐛 Bug Fix
babel-helper-function-name,babel-plugin-transform-arrow-functions,babel-plugin-transform-function-name,babel-traverse
💅 Polish
babel-register- #6651 Lazy-install sourceMapSupport. (@aminmarashi)
babel-plugin-transform-destructuring,babel-plugin-transform-spread- #6763 No unneeded empty arrays in transform spread. (@apapirovski)
babylon
📝 Documentation
babel-plugin-proposal-unicode-property-regex- #6796 Link to README on GitHub rather than the npm copy. (@mathiasbynens)
babel-core- #6794 Update README with new Sync-suffix functions.. (@loganfsmyth)
🏠 Internal
babel-generatorbabel-core,babel-register- #6783 Apply option defaults when transforming, not up front.. (@loganfsmyth)
babel-plugin-proposal-object-rest-spread,babel-plugin-proposal-unicode-property-regex,babel-plugin-transform-block-scoping,babel-plugin-transform-destructuring- #6776 Hoist more plugin options and default useUnicodeFlag to 'true'.. (@loganfsmyth)
babel-plugin-*- #6778 Use the peerDep to load types/template/traverse in plugins. (@loganfsmyth)
babel-polyfill- #6755 Remove core-js/regenerator-runtime stubs. (@existentialism)
.eslintrc,babel-helper-transform-fixture-test-runner,babylon- Other
v7.0.0-beta.31 (2017-11-03)
Yes, this was a jump from v7.0.0-beta.5 to v7.0.0-beta.31 We moved babylon into the main repo, and it was already at beta.30.
🚀 New Feature
babel-preset-react,babel-preset-stage-0,babel-preset-stage-1,babel-preset-stage-2,babel-preset-stage-3,babylonbabel-generator,babel-helper-builder-react-jsx,babel-plugin-transform-react-jsx-compat,babel-plugin-transform-react-jsx,babel-types
🐛 Bug Fix
babel-preset-envbabel-plugin-transform-spread- #6657 Avoid node duplication to fix spread bug with import.. (@loganfsmyth)
🏠 Internal
babel-cli,babel-core,babel-helper-transform-fixture-test-runner- #6556 Strictly validate Babel's options to centralize Flow refinement of datatype. (@loganfsmyth)
babel-*- #6655 Use peerDeps in register and babel-node, add missing peerDependencies, and declare devDependencies. (@loganfsmyth)
- Other
v7.0.0-beta.5 (2017-10-30)
Note: don't use ^ in your dependencies when using a beta. It can still break between (we should try not to do it but it can), so pin all the packages like
"@babel/cli" : "7.0.0-beta.4"
👓 Spec Compliance
babel-plugin-transform-optional-chainingbabel-preset-env,babel-helper-remap-async-to-generator,babel-helpers,babel-plugin-transform-async-generator-functions,babel-plugin-transform-async-to-generator,babel-plugin-transform-function-sent
💥 Breaking Change
babel-*babel-plugin-transform-async-to-generator,babel-plugin-transform-async-to-module-method,babel-standalonebabel-*babel-preset-env,babel-helper-remap-async-to-generator,babel-helpers,babel-plugin-transform-async-generator-functions,babel-plugin-transform-async-to-generator,babel-plugin-transform-function-sentbabel-helper-module-transforms,babel-helper-remap-async-to-generator,babel-helpers,babel-plugin-transform-class-properties,babel-plugin-transform-es2015-classes,babel-plugin-transform-es2015-for-of,babel-plugin-transform-es2015-modules-amd,babel-plugin-transform-es2015-modules-commonjs,babel-plugin-transform-es2015-modules-systemjs,babel-plugin-transform-es2015-parameters,babel-template,babel-types- #6492 Make babel-template nicer in a bunch of ways. (@loganfsmyth)
babel-core- #6436 Simplify dirname option in plugins/presets?. (@loganfsmyth)
babel-*
🚀 New Feature
babel-helper-builder-react-jsx,babel-plugin-transform-react-jsx,babel-typesbabel-*babel-plugin-transform-es3-member-expression-literals,babel-plugin-transform-es3-property-literals,babel-plugin-transform-es3-reserved-words,babel-types- #6479 Rename variables es3 reserved words. (@maurobringolf)
babel-preset-env,babel-plugin-transform-unicode-property-regex,babel-preset-stage-3,babel-standalone- #6499 Import babel-plugin-transform-unicode-property-regex. (@mathiasbynens)
babel-plugin-syntax-nullish-coalescing-operator,babel-plugin-transform-nullish-coalescing-operator,babel-preset-stage-1,babel-types
🐛 Bug Fix
babel-plugin-proposal-unicode-property-regex,babel-templatebabel-plugin-proposal-class-properties,babel-traversebabel-*babel-core- #6524 fix(babel-core): add missing extension to package.json dependency. (@alexjoverm)
- #6503 babel-core: Pass the right err to callback in transformFile(). (@robertrossmann)
babel-plugin-transform-react-jsx- #6519 Fix regression that leaks JSX pragma config between files.. (@loganfsmyth)
babel-plugin-transform-class-propertiesbabel-plugin-transform-pipeline-operator- #6515 Fix destructuring in pipeline operator. (@jridgewell)
💅 Polish
babel-plugin-transform-es2015-parametersbabel-code-frame
📝 Documentation
- Other
babel-*babel-preset-env- #6527 Update README:
useBuiltins: trueis changed to "entry". (@exarus) - #6508 Update reference from babel- to @babel/ in README.md. (@knittingcodemonkey)
- #6527 Update README:
babel-helper-get-function-aritybabel-helper-bindify-decoratorsbabel-helper-hoist-variables
🏠 Internal
babel-core,babel-generator,babel-template,babel-traverse,babel-typesbabel-preset-env- #6551 Re-add electron-to-chromium as preset-env devdep. (@existentialism)
- Other
babel-plugin-transform-unicode-property-regexbabel-preset-env,babel-preset-es2017- #6513 Remove syntax-trailing-function-commas from Babel presets. (@existentialism)
babel-runtime- #6509 Updating references to @babel/ and adding dependencies to package.json. (@knittingcodemonkey)
babel-core,babel-helpers,babel-plugin-transform-es2015-block-scoping,babel-runtime- #6379 Fix helper dependencies in babel runtime. (@nicolo-ribaudo)
babel-core- #6474 Removed index.js stub from packages/babel-core. (@zacharysang)
babel-register
v7.0.0-beta.4 (2017-10-30)
Had a bug with peerDeps, moving changelog to beta.5
v7.0.0-beta.3 (2017-10-15)
Update from beta.2 -> beta.3 looks like this: https://github.com/babel/babel/pull/6488
Wanted to get this release out first, but next release we should make necessary breaking changes for later: using peerDeps on babel-core so that people don't install incompatible versions of plugins/babel itself and get weird errors reported, using scoped npm packages like
@babel/coredue to issues with npm squatting, knowing what is an official package or not, etc, and renaming proposal plugins tobabel-plugin-proposal-xinstead ofbabel-plugin-transform-x
Note: don't use
^in your dependencies when using a beta. It can still break between (we should try not to do it but it can), so pin all the packages
- Pipeline Operator: (a |> b), also in the Stage 1 Preset
- Throw Expressions: (() => throw 'hi'), also in Stage 2
- Preset/Plugin options are available top level rather than previously only in the visitor state
- Many fixes
💥 Breaking Change
babel-helper-remap-async-to-generator- #6451 Drop old compatibility if statement targeting babel@6.15 and earlier. (@Andarist)
babel-core- #6350 Cache plugins and presets based on their identity. (@loganfsmyth)
babel-core,babel-helper-module-imports,babel-traverse- #6343 Remove core .metadata properties and resolveModuleSource. (@loganfsmyth)
🚀 New Feature
babel-templatebabel-core,babel-generator,babel-plugin-syntax-pipeline-operator,babel-plugin-transform-pipeline-operator,babel-preset-stage-1,babel-template,babel-traverse,babel-types- #6335 Pipeline operator. (@jridgewell)
babel-cli- #6232 Add --include-dotfiles option to babel-cli. (@existentialism)
babel-plugin-transform-es2015-modules-commonjs,babel-plugin-transform-es2015-template-literalsbabel-standalonebabel-core,babel-generator,babel-plugin-syntax-throw-expressions,babel-plugin-transform-throw-expressions,babel-preset-stage-2,babel-template,babel-traverse,babel-types- #6325 Add throw expressions. (@jridgewell)
🐛 Bug Fix
babel-plugin-transform-function-bind- #6481 Don't insert duplicated nodes when transforming function bind. (@nicolo-ribaudo)
babel-plugin-transform-class-properties- #6466 Evaluate computed class props only once. (@Qantas94Heavy)
babel-plugin-transform-do-expressions,babel-traversebabel-core- #6377 Fix "module" external helpers output. (@loganfsmyth)
babel-plugin-transform-es2015-destructuringbabel-plugin-transform-es2015-parameters,babel-traverse- #6351 Requeueing sometimes has wrong scope. (@jridgewell)
babel-traverse- #6354 unshiftContainer seems to incorrectly handle function params #6150. (@daft300punk)
babel-plugin-check-es2015-constants,babel-plugin-transform-class-properties,babel-plugin-transform-es2015-block-scoping,babel-plugin-transform-es2015-parameters,babel-traverse- #6337 Path#ensureBlock keeps path context. (@jridgewell)
babel-generator- #6334 Fix generator missing parens on Flow union types. (@existentialism)
💅 Polish
babel-traverse- #6349 Remove debug closures. (@jridgewell)
📝 Documentation
- Other
babel-preset-typescriptbabel-helper-module-imports
🏠 Internal
.eslintrc- #6457 Use no-undefined-identifier eslint rule in packages. (@existentialism)
babel-plugin-transform-async-to-module-method,babel-plugin-transform-class-properties,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-amd,babel-plugin-transform-es2015-modules-commonjs,babel-plugin-transform-es2015-modules-systemjs,babel-plugin-transform-es2015-modules-umd,babel-plugin-transform-es2015-parameters,babel-plugin-transform-es2015-spread,babel-plugin-transform-es2015-template-literals,babel-plugin-transform-optional-chaining,babel-plugin-transform-react-constant-elements,babel-plugin-transform-react-jsx,babel-plugin-transform-runtime- #6381 centralize plugin options. (@RusinovAnton)
babel-clibabel-core- #6435 Always pass an options object to presets and plugins.. (@loganfsmyth)
- #6326 Preserve object identity when loading config, for improved future caching.. (@loganfsmyth)
babel-helpers,babel-runtime- #6366 Fix runtime helpers generator. (@nicolo-ribaudo)
babel-cli,babel-core,babel-helper-transform-fixture-test-runner,babel-template,babel-traverse- #6359 Split up babel-core's File class and add Flowtype annotations. (@loganfsmyth)
babel-core,babel-helpers,babel-runtime- #6254 Add support for helper dependencies. (@nicolo-ribaudo)
babel-core,babel-generator,babel-helper-replace-supers,babel-messages,babel-plugin-check-es2015-constants,babel-plugin-transform-es2015-classes,babel-plugin-transform-es2015-for-of,babel-traverse- #6356 Remove babel-messages and inline the usages. (@JeromeFitz)
babel-helper-module-imports,babel-plugin-transform-decorators,babel-plugin-transform-typescript- #6355 Bump prettier. (@existentialism)
- Other
babel-traverse- #6349 Remove debug closures. (@jridgewell)
babel-standalone
v7.0.0-beta.2 (2017-09-26)
💥 Breaking Change
babel-core,babel-plugin-transform-es2015-template-literals- #6307 Move template object creation from core into the template transform.. (@loganfsmyth)
babel-core,babel-generator,babel-plugin-transform-class-properties,babel-template,babel-traverse,babel-types
🚀 New Feature
babel-helper-annotate-as-pure,babel-plugin-transform-es2015-classes,babel-traverse,babel-types
🐛 Bug Fix
babel-core- #6310 addMapping method call missing name parameter. (@loganfsmyth)
babel-helper-builder-react-jsx,babel-plugin-transform-react-inline-elements- #6294 Use helper-builder-react-jsx inside plugin-transform-react-inline-elements. (@nicolo-ribaudo)
babel-plugin-transform-es2015-parametersbabel-core,babel-helpers,babel-plugin-transform-async-to-generator,babel-plugin-transform-react-constant-elements
📝 Documentation
🏠 Internal
- #6279 Updates for handling codemods folder. (@existentialism)
v7.0.0-beta.1 (2017-09-19)
Mostly bug fixes
💥 Breaking Change
babel-helper-modules,babel-plugin-transform-es2015-modules-commonjs,babel-plugin-transform-strict-mode- #6244 Remove strict toggling wildcard interop. (@loganfsmyth)
🚀 New Feature
🐛 Bug Fix
babel-core,babel-helpersbabel-register- #6268 Make babel-register 7.x backward-compatible with 6.x.. (@loganfsmyth)
babel-plugin-transform-es2015-unicode-regex- #6263 Update regexpu-core to v4.1.3. (@mathiasbynens)
babel-generator- #6259 Fix newlines before the update suffix operator in babel-generator. (@zestime)
- #5651 Make terminator paren comment check more strict. (@existentialism)
babel-plugin-transform-react-jsx-source
💅 Polish
babel-helpers,babel-plugin-transform-async-to-generator,babel-plugin-transform-class-properties,babel-plugin-transform-es2015-parameters,babel-plugin-transform-es2015-spread,babel-plugin-transform-react-constant-elements,babel-runtime
🏠 Internal
babel-core,babel-plugin-syntax-async-functions,babel-plugin-syntax-exponentiation-operator,babel-plugin-syntax-trailing-function-commas,babel-plugin-transform-es2015-classes,babel-plugin-transform-es2015-parameters,babel-plugin-transform-flow-strip-types,babel-preset-es2015babel-polyfill- #6256 Add core-js stubs for parseFloat and parseInt to babel-polyfill. (@existentialism)
- #6255 Bump regenerator-runtime version in babel-polyfill. (@existentialism)
v7.0.0-alpha.20 (2017-08-30)
- Handle
Symbolintransform-es2015-computed-properties - Disallow
...[&...{inside object destructuring
// Invalid
( {...{}} = {} ); ( {...[]} = {} );
let {...{}} = {}; let {...[]} = {};
- Split
transform-export-extensionsintotransform-export-namespaceandtransform-export-defaultplugins - Move
transform-numeric-separatorto Stage 2 - Move
transform-class-propertiesto Stage 3- Change the default transform to use
Object.definePropertyandlooseoption to use assignment (this.a = 1) - Use
configurable: true
- Change the default transform to use
- Change
es2015-template-literalsto use.concatby default and concatenation inloosemode. - Remove deprecated jsx pragma check in
transform-react-jsx - Remove
preset-flowfrom thepreset-react(there was confusion on why type syntax was allowed, and it also made it incompatible withpreset-typescript - Add
--config-fileCLI flag to explicitly pass a config location - Move
babel-standaloneinto the repo (another form of this used to bebabel-browser)
👓 Spec Compliance
babel-plugin-transform-async-to-generator,babel-*babel-helpers,babel-plugin-transform-es2015-computed-properties- #6159 Allow native Symbols as computed property names. (@jridgewell)
babel-plugin-check-es2015-constants,babel-traverse,babel-types- #6100 Consistent const violations. (@maurobringolf)
babel-generator,babel-plugin-transform-es2015-destructuring,babel-plugin-transform-object-rest-spreadbabel-plugin-transform-export-default,babel-plugin-transform-export-extensions,babel-plugin-transform-export-namespace,babel-preset-stage-1,babel-preset-stage-2babel-plugin-transform-class-propertiesbabel-plugin-transform-class-properties,babel-plugin-transform-decorators,babel-plugin-transform-es2015-parameters,babel-plugin-transform-flow-comments,babel-plugin-transform-new-target,babel-plugin-transform-react-constant-elements,babel-preset-stage-2,babel-preset-stage-3- #6076 Update Class Fields to Stage 3 and change default behavior. (@kedromelon)
babel-preset-stage-1,babel-preset-stage-2
💥 Breaking Change
babel-plugin-transform-es2015-template-literals- #6098 default to spec mode for template literal transform. (@kedromelon)
babel-generator,babel-plugin-transform-es2015-destructuring,babel-plugin-transform-object-rest-spreadbabel-plugin-transform-flow-strip-types,babel-preset-flow,babel-preset-react- #6118 Remove Flow support in React preset. (@ramasilveyra)
babel-helper-fixtures,babel-*- #6157 Don't merge test options.. (@jridgewell)
🚀 New Feature
🐛 Bug Fix
babel-core- #5586 Handle cycles of plugins compiling themselves and .babelrc.js files loading themselves. (@loganfsmyth)
babel-plugin-transform-es2015-destructuring,babel-traverse- #5743 Fix issue replacement nodes not requeued for transforming after destructuring. (@buunguyen)
babel-plugin-check-es2015-constants,babel-plugin-transform-es2015-block-scoping,babel-traverse- #6156 Fix overshadowing local binding. (@jridgewell)
babel-helper-replace-supers,babel-plugin-transform-class-properties,babel-traverse- #6158 Class instance properties define their own context. (@jridgewell)
babel-plugin-transform-export-default,babel-plugin-transform-export-namespace,babel-types- #6139 Complete export transform split. (@jridgewell)
babel-plugin-transform-es2015-parameters,babel-traverse- #5741 Fix relative execution location introspection. (@jridgewell)
babel-helper-replace-supers,babel-plugin-transform-es2015-classes- #6103 Don't use _possibleConstructorReturn inside arrow functions. (@nicolo-ribaudo)
babel-plugin-transform-class-propertiesbabel-preset-stage-2babel-plugin-transform-es2015-block-scoping,babel-types
💅 Polish
babel-plugin-transform-es2015-classes,babel-plugin-transform-flow-comments,babel-plugin-transform-flow-strip-types- #5560 Closes #4840: Alias class prototype for methods in loose mode. (@oliverdon)
📝 Documentation
babel-plugin-transform-class-properties- Other
- #6121 Update babel/website link. (@maurobringolf)
babel-plugin-transform-react-inline-elements
🏠 Internal
babel-standalonebabel-plugin-transform-es2015-template-literals- #6169 re-add template literals tests, add ones that were missing. (@kedromelon)
babel-core,babel-generator,babel-template,babel-traverse,babel-typesbabel-*- #6096 linting: disallow t.identifier("undefined") in plugins. (@kedromelon)
- Other
babel-core,babel-plugin-transform-es2015-classes,babel-plugin-transform-regenerator,babel-plugin-transform-runtime,babel-runtimebabel-plugin-transform-es2015-parameters- #6116 Fix rest-member-expression-optimisation fixture. (@existentialism)
babel-plugin-transform-class-properties- #6090 Fix class prop test fixture. (@existentialism)
babel-register- #6085 Replace decache with direct removal in babel-register tests. (@existentialism)
babel-generatorbabel-plugin-syntax-typescript,babel-preset-typescript
v7.0.0-alpha.19 (2017-08-07)
Can help us documented any undocumented changes or issues at https://github.com/babel/notes/issues/30 or make an issue
💥 Breaking Change
babel-plugin-transform-flow-strip-types,babel-preset-react- #5468 Add requireDirective to strip-flow-types for use in React preset. (@existentialism)
babel-preset-react now will only handle flow if the file has a // @flow
🚀 New Feature
babel-plugin-syntax-typescript,babel-plugin-transform-typescript,babel-preset-typescript
Initial release of typescript equivalent of how Babel handles flow with a new babel-preset-typescript
{
"presets": ["typescript"]
}
🐛 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
🏠 Internal
babel-plugin-syntax-typescript,babel-plugin-transform-typescript,babel-preset-typescriptbabel-core,babel-helper-wrap-function,babel-plugin-transform-es2015-arrow-functionsbabel-plugin-transform-es2015-destructuring,babel-plugin-transform-es2015-parameters,babel-plugin-transform-object-rest-spread,babel-plugin-transform-react-constant-elements,babel-traverse- #6051 Rewrite parameter transform and drop _blockHoist reliance. (@existentialism)
babel-core,babel-generator,babel-traverse,babel-types- Other
v7.0.0-alpha.18 (2017-08-03)
👓 Spec Compliance
babel-generator,babel-plugin-transform-flow-comments,babel-plugin-transform-flow-strip-types,babel-types- #5990 Flow opaque type aliases. (@jbrown215)
babel-preset-stage-3- #6032 Add optional catch binding to stage 3 preset. (@existentialism)
💥 Breaking Change
babel-plugin-transform-es2015-block-scoping,babel-traverse,babel-types- #5923 Prevent getFunctionParent from returning Program. (@sarupbanskota)
🚀 New Feature
babel-node- #6023 Make babel-node a standalone package. (@existentialism)
babel-generator
🐛 Bug Fix
babel-plugin-transform-es2015-block-scoping,babel-preset-es2015- #6046 Fix invalid block-scoped loop. (@jridgewell)
babel-types- #6031 Fix generate interfaces script. (@existentialism)
babel-core- #6022 allow PluginPass.file.addImport to create empty import statements. (@chocolateboy)
📝 Documentation
babel-plugin-transform-optional-chaining- #6035 Fix refs in transform-optional-chaining docs [skip ci]. (@existentialism)
- Other
- #6024 add proposals repo [skip ci]. (@hzoo)
- #6013 add TEST_GREP example clarification. (@kedromelon)
🏠 Internal
babel-*babel-generatorbabel-plugin-transform-function-sent,babel-preset-stage-2babel-types
v7.0.0-alpha.17 (2017-07-26)
- Lots of bug fixes
function.sent(temporary atbabel-plugin-transform-function-sent2until we get access to the npm package) EDIT: republishedbabel-plugin-transform-function-sent- Optional catch binding
try {} catch {}:babel-plugin-transform-optional-catch-binding - es2015-parameters
loosemode that doesn't usearguments
👓 Spec Compliance
babel-plugin-check-es2015-constants- #5930 Spec compliance of check-es2015-constants plugin. (@maurobringolf)
Instead of throwing a compile time error when const is violated, Babel should insert a throw statement before the violation.
💥 Breaking Change
babel-plugin-transform-flow-comments- #5970 Remove noop. (@jridgewell)
Removes the "Noop" AST node, which was only used in the flow-comments plugin and probably unlikely in the ecosystem.
🚀 New Feature
babel-plugin-transform-react-constant-elements
If you know a certain property will be ok to hoist
{
"plugins": [
["transform-react-constant-elements", {"allowMutablePropsOnTags": ["FormattedMessage"]}],
]
}
babel-generator,babel-typesbabel-generator,babel-plugin-transform-flow-strip-types,babel-types- #5984 Add support for flow predicates in babel-generator. (@existentialism)
declare function foo(x: mixed): boolean %checks(x !== null);
babel-generator,babel-plugin-transform-flow-strip-types- #5985 Add support for export type star in babel-generator. (@existentialism)
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- #5920 Function sent. (@nicolo-ribaudo)
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- #5943 2nd try: Add loose option for es2015-parameters transformation. (@maurobringolf)
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 Fix
babel-core,babel-helpers,babel-plugin-transform-object-rest-spread,babel-plugin-transform-react-constant-elementsbabel-traversebabel-helper-builder-binary-assignment-operator-visitor,babel-helper-explode-assignable-expression,babel-plugin-transform-exponentiation-operator- #5969 Fixup builder-binary-assignment-operator-visitor. (@jridgewell)
babel-plugin-transform-es2015-for-of,babel-traverse- #5835 Fix a few type inferences. (@jridgewell)
babel-plugin-transform-numeric-separator,babel-types- #5968 Fix numeric-separator transform. (@jridgewell)
babel-plugin-transform-es2015-modules-amd,babel-plugin-transform-es2015-modules-commonjs,babel-plugin-transform-es2015-modules-umd- #5953 Support exporting deep destructuring. (@jridgewell)
babel-plugin-transform-es2015-for-of- #5964 Fix for-of loose optimization. (@jridgewell)
babel-core,babel-plugin-transform-object-rest-spread,babel-traverse- #5945 Remove maybePopFromStatements. (@jridgewell)
babel-generator- #5950 [generator] remove parens from break & continue. (@sarupbanskota)
babel-helpers,babel-plugin-transform-es2015-classes,babel-plugin-transform-es2015-typeof-symbol- #5955 Optimize and remove state from typeof-symbol transform. (@jridgewell)
babel-plugin-transform-react-inline-elements- #5958 Fix react-inline-elements bug. (@jridgewell)
🏠 Internal
babel-helper-transform-fixture-test-runnerbabel-code-framebabel-registerbabel-typesbabel-clibabel-generatorbabel-traverse- Other
- #5991 Fix clean to remove package-lock files. (@danez)
- #5959 Bump istanbul and nyc. (@existentialism)
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- #5963 Stop mutating nodes. (@jridgewell)
babel-plugin-transform-es2015-modules-systemjs- #5954 Add several test cases for systemjs exports. (@jridgewell)
v7.0.0-alpha.16 (2017-07-25)
Publish issue
v7.0.0-alpha.15 (2017-07-11)
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 ofoptimization (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);
};
💥 Breaking Change
This is just the babel-generator output, not a big deal.
🚀 New Feature
babel-traverse- #5914 babel-traverse: Mark appropriate template literals as pure. (@ashsearle)
- #5681 Add support for evaluating
String.rawexpressions. (@josephfrazier)
babel-plugin-transform-new-target- #5906 Add new.target transform. (@jridgewell)
babel-core,babel-generator,babel-plugin-syntax-optional-chaining,babel-plugin-transform-optional-chaining,babel-preset-stage-1,babel-template,babel-traverse,babel-types- #5813 Optional Chaining Operator (Stage 1). (@jridgewell)
babel-core,babel-plugin-transform-es2015-for-ofbabel-helpers,babel-plugin-transform-es2015-classes,babel-plugin-transform-flow-comments,babel-plugin-transform-flow-strip-typesbabel-generator,babel-plugin-transform-flow-strip-types,babel-types
🐛 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- #5932 Fix async-to-generator ForAwait transform. (@jridgewell)
babel-plugin-transform-es2015-modules-commonjsbabel-plugin-transform-es2015-classes- #5801 Fix bug
superref check doesn’t honor spec evaluation order. (@buunguyen) - #5802 Remove check for super calls in arrow function. (@existentialism)
- #5801 Fix bug
babel-cli- #5861 Pass SIGINT signals to the spawned child process. (@bill-improbableio)
- #5867 fix issue as a result of refactor. (@hzoo)
babel-typesbabel-generator- #5830 Fix parens issues with exponentiation in generator. (@existentialism)
- #5820 Wrap an arrow function in parentheses if it the test of a conditional expression. (@nicolo-ribaudo)
babel-plugin-transform-numeric-separator- #5825 Fix numeric separator Number transform. (@jridgewell)
babel-plugin-transform-es2015-template-literals,babel-preset-es2015babel-plugin-transform-es2015-parameters- #5810 Fix bug incorrect dereferencing rest argument. (@buunguyen)
babel-plugin-syntax-optional-chaining
💅 Polish
babel-plugin-transform-es2015-parameters- #5721 Fix optimisation of shadowed rest parameters. (@Qantas94Heavy)
babel-helper-builder-react-jsx,babel-plugin-transform-es2015-spread,babel-traverse- #5837 Hoist several closures. (@jridgewell)
babel-traverse,babel-types- #5826 Matches pattern cleanup. (@jridgewell)
babel-types- #5821 babel-types: avoid recreating validator closures. (@jridgewell)
📝 Documentation
babel-types- #5941 Update babel-types docs [skip ci]. (@existentialism)
- #5940 Removed update operators from number unary operators. (@maurobringolf)
- #5855 Minor enhancements around spacing. (@sarupbanskota)
🏠 Internal
babel-polyfill- #5939 Change trailing comma option for polyfill scripts. (@existentialism)
- Other
- #5937 Remove codecov node package and use bash uploader. (@danez)
- #5918 Gitignore package-lock. (@sarupbanskota)
babel-core,babel-generator- #5892 Fix some unneeded semis in test fixtures. (@existentialism)
babel-*babel-core,babel-generator,babel-traverse,babel-typesbabel-*- #5412 Use prettier. (@existentialism)
babel-generator,babel-traversebabel-generatorbabel-cli- #5807 Include node 8.0 to travis config & update tests. (@sarupbanskota)
babel-core,babel-helper-transform-fixture-test-runner,babel-traversebabel-core,babel-traverse
v7.0.0-alpha.14
- Skipped
v7.0.0-alpha.13
- Skipped
v7.0.0-alpha.12 (2017-05-31)
👓 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
🚀 New Feature
babel-code-framebabel-core,babel-generator,babel-plugin-syntax-numeric-separator,babel-plugin-transform-numeric-separator,babel-preset-stage-1,babel-template,babel-traverse,babel-typesbabel-cli- #5785 Allow --inspect-brk option to be used with babel-node. (@noinkling)
🐛 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
letinitialization. (@buunguyen)
- #5763 Fix incorrect destructuring in for loop
babel-core,babel-plugin-transform-es2015-block-scopingbabel-plugin-transform-flow-strip-types- #5782 Remove import declaration when stripping flowtypes if flow specifiers. (@existentialism)
📝 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- Other
🏠 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 (2017-05-31)
- Publish issues
v7.0.0-alpha.10 (2017-05-25)
- 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
👓 Spec Compliance
babel-generator,babel-plugin-transform-flow-strip-types,babel-types- #5525 Add support for object type spread. (@conartist6)
💥 Breaking Change
babel-*- #5677 Kill the "shadow-functions.js" internal plugin in favor of an explicit helper. (@loganfsmyth)
🚀 New Feature
babel-*babel-plugin-transform-es2015-arrow-functions,babel-plugin-transform-es2015-function-namebabel-plugin-transform-react-display-namebabel-register- #5669 Find cache dir. (@pwmckenna)
🐛 Bug Fix
babel-types- #5762 Fix ObjectProperty patterns. (@citycide)
- #5753 Hoist toSequenceExpression's convert helper (#5693). (@jridgewell)
- #5693 Hoist toSequenceExpression's convert helper. (@jridgewell)
- #5722 Correct the validator for ArrayPattern. (@Kovensky)
babel-plugin-transform-flow-comments- #5675 Flow comments import export. (@lightsofapollo)
babel-plugin-transform-do-expressions- #5694 Transform do-expressions on exit. (@jridgewell)
babel-plugin-transform-es2015-classes,babel-plugin-transform-es2015-destructuring,babel-traverse- #5749 Fix issue semi-colon gets inserted unnecessarily. (@buunguyen)
babel-core,babel-helpers,babel-plugin-transform-async-to-generator,babel-plugin-transform-react-constant-elementsbabel-plugin-transform-object-rest-spread- #5685 Fix incorrect property ordering with obj rest spread on nested. (@existentialism)
- #5650 Fix object destructuring in param arrays. (@CKarper)
💅 Polish
babel-plugin-transform-es2015-template-literals- #5748 Cleanup template-literals transform. (@jridgewell)
📝 Documentation
babel-plugin-transform-runtime- #5767 [Documentation change] regeneratorRuntime -> _regenerator2.default. (@adityavohra7)
babel-plugin-transform-es2015-arrow-functions- #5698 Add spec option example for transform-es2015-arrow-functions [skip ci]. (@existentialism)
- Other
babel-core- #5659 [Doc PR] naming fix in example. (@aretecode)
🏠 Internal
babel-helper-fixtures- #5765 Support specifying minimum Node version a test requires. (@buunguyen)
babel-helper-transform-fixture-test-runner- #5410 Add process to test sandbox. (@existentialism)
babel-preset-es2015- #5720 Add test cases for bad options in babel-preset-es2015. (@maurobringolf)
babel-registerbabel-core- #5649 Remove merge helper and add more type declarations.. (@loganfsmyth)
babel-core,babel-plugin-transform-react-jsx- #5642 Typecheck much more of the config loading process. (@loganfsmyth)
- Other
v7.0.0-alpha.9 (2017-04-18)
🐛 Bug Fix
babel-core- #5641 Fix a regression from adding negation support in #5625.. (@loganfsmyth)
v7.0.0-alpha.8 (2017-04-17)
👓 Spec Compliance
💥 Breaking Change
babel-core- #5547 [7.0] Require babel-(preset|plugin) or module: on plugins/presets. (@loganfsmyth)
🚀 New Feature
babel-core- #5608 Cache configs based on mtime and allow .babelrc.js functions. (@loganfsmyth)
- #5625 Allow negation of ignore and only patterns.. (@loganfsmyth)
🐛 Bug Fix
babel-plugin-transform-class-properties,babel-plugin-transform-es2015-classes,babel-plugin-transform-es2015-function-name- #5488 Ensure default exported classes keep entry in export table. (@existentialism)
babel-generatorbabel-plugin-transform-async-to-generator
💅 Polish
📝 Documentation
babel-plugin-transform-es2015-arrow-functions
🏠 Internal
babel-core,babel-messages- #5602 Refactor OptionManager to be a short class with a bunch of pure helper functions.. (@loganfsmyth)
babel-plugin-transform-regenerator- Other
- #5619 Set an 80% coverage goal instead of 'auto'?. (@loganfsmyth)
v7.0.0-alpha.7 (2017-04-05)
- Updated babylon, fixed babel-register issue, and make babel-polyfill publish the core-js polyfills individually for babel-preset-env
🚀 New Feature
🐛 Bug Fix
babel-register- #5583 Change babel-register default ignore to cwd content. (@loganfsmyth)
babel-generator,babel-helper-builder-react-jsx,babel-plugin-transform-react-jsx- #5256 Use raw value of JSXText and JSXAttribute. (@rattrayalex)
babel-core,babel-generator,babel-template,babel-traverse,babel-types
📝 Documentation
babel-plugin-transform-es2015-modules-commonjsbabel-plugin-transform-es2015-spread- #5580 Remove incorrect docs.. (@loganfsmyth)
🏠 Internal
babel-core- #5563 Separate config-file/plugin loading from config processing.. (@loganfsmyth)
- #5571 Add tests to test the plugin/preset ordering.. (@loganfsmyth)
- Other
- #5561 Ensure that incremental builds work with 'gulp build'.. (@loganfsmyth)
- #5555 Use a standard .babelignore and babel-register in tests.. (@loganfsmyth)
- #5551 use latest babel-core. (@hzoo)
v7.0.0-alpha.6 (2017-03-27)
Fix issue with babel-core not picking up the .babelrc correctly
Also started Babel to compile itself with Babel 7! (We'll be working on making it compile the last good version from master soon so we don't need to wait until after publishing to find a regression)
🐛 Bug Fix
babel-core- #5550 Fix: config lookup logic in babel-core. (@kaicataldo)
🏠 Internal
v7.0.0-alpha.5 (2017-03-24)
babel-runtime helpers weren't built correctly, and I found extra dep on babel-runtime in 2 packages.
At the point of this publish, all other packages are at
v7.0.0-alpha.3babel-registeris atv7.0.0-alpha.4
🐛 Bug Fix
🏠 Internal
babel-plugin-transform-decorators,babel-plugin-transform-react-inline-elements,babel-runtime
v7.0.0-alpha.4 (2017-03-23)
At the point of this publish, all other packages are at
v7.0.0-alpha.3
🐛 Bug Fix
babel-register- #5534 Ensure the ignore regex is consistent and initialized fully.. (@loganfsmyth)
v7.0.0-alpha.3 (2017-03-23)
💥 Breaking Change
babel-traversebabel-runtime- #5516 removed unused alias in babel-runtime. (@JulianJason)
babel-core,babel-generator,babel-plugin-transform-es2015-template-literals,babel-template,babel-traverse,babel-typesbabel-core,babel-preset-react,babel-runtime- #5489 Misc fixes + Move babel-core config processing from transformation/file/options into top-level folder. (@loganfsmyth)
babel-cli,babel-core,babel-register,babel-types- #5487 Make only/ignore relative to cwd/config file and move only/ignore checking all to core.. (@loganfsmyth)
babel-core,babel-plugin-transform-es2015-modules-umd,babel-plugin-transform-react-display-name,babel-plugin-transform-react-jsx-source- #5467 Misc reorganizing and prep for ignore/only refactoring. (@loganfsmyth)
babel-core- #5466 Resolve programmatic/CLI arguments from cwd, not file being compiled.. (@loganfsmyth)
babel-cli,babel-core- #5463 More strictly parse configs and explicitly handle arguments in babel-cli. (@loganfsmyth)
🚀 New Feature
babel-plugin-transform-runtime,babel-runtimebabel-core,babel-register
🐛 Bug Fix
babel-plugin-transform-react-inline-elements,babel-traversebabel-core,babel-runtimebabel-plugin-transform-react-constant-elements,babel-traversebabel-plugin-transform-es2015-modules-amd,babel-plugin-transform-es2015-modules-commonjsbabel-plugin-transform-do-expressions,babel-typesbabel-plugin-transform-es2015-function-name,babel-types
💅 Polish
babel-register- #5411 Separate version env cache files. (@pwmckenna)
📝 Documentation
babel-plugin-transform-runtime- #5481 Add useBuiltins and useESModules options to transform-runtime README. (@existentialism)
- #5401 Improve options documentation for
babel-plugin-transform-runtime. (@aaronang)
babel-register- #5475 Update coffescript/register reference link address. (@sergeybekrin)
babel-generatorbabel-plugin-transform-es2015-*
🏠 Internal
babel-cli- #5205 Ensure babel-cli tests compare generated output with out-files. (@existentialism)
- Other
babel-plugin-transform-regeneratorbabel-core,babel-plugin-transform-es2015-classes,babel-template,babel-traversebabel-plugin-transform-es2015-classesbabel-helper-builder-react-jsx- #5484 Removes unused lodash dep from babel-helper-builder-react-jsx. (@segphault)
babel@7.0.0-alpha.2 (2017-03-08)
🚀 New Feature
babel-core,babel-generator,babel-plugin-transform-object-rest-spread- #4892 Add support for .babelrc.js files. (@kaicataldo)
babel-plugin-transform-es2015-modules-amd,babel-plugin-transform-es2015-modules-commonjs
📝 Documentation
babel-plugin-transform-object-rest-spread- #5409 Fix transform-object-rest-spread README. (@existentialism)
- #5409 Fix transform-object-rest-spread README. (@existentialism)
🏠 Internal
babel-core,babel-helper-transform-fixture-test-runner- #5416 Use 'resolve' from npm instead of private 'module' methods.. (@loganfsmyth)
babel-*- #5413 Run new lint rules. (@existentialism)
v7.0.0-alpha.1 (2017-03-02)
💥 Breaking Change
babel-core,babel-generator,babel-helper-remap-async-to-generator,babel-plugin-transform-async-to-generator,babel-template,babel-traverse,babel-typesbabel-core,babel-generator,babel-plugin-transform-es2015-destructuring,babel-plugin-transform-es2015-duplicate-keys,babel-plugin-transform-object-rest-spread,babel-template,babel-traverse,babel-typesbabel-core- #5376 [7.0] Remove the unneeded Pipeline class.. (@loganfsmyth)
- #5132 [7.0] Deprecate babel-core/register.js. (@chicoxyzzy)
babel-core,babel-preset-es2015,babel-preset-es2016,babel-preset-es2017,babel-preset-flow,babel-preset-latest,babel-preset-react,babel-preset-stage-0,babel-preset-stage-1,babel-preset-stage-2,babel-preset-stage-3babel-core,babel-generator,babel-helper-remap-async-to-generator,babel-plugin-transform-object-rest-spread,babel-template,babel-traverse,babel-typesbabel-generator,babel-helper-remap-async-to-generator,babel-plugin-transform-object-rest-spread,babel-typesbabel-generatorbabel-plugin-transform-decoratorsbabel-generator,babel-typesbabel-*- #5218 Remove babel-runtime from packages' dependencies. (@kaicataldo)
babel-preset-stage-1,babel-preset-stage-2babel-register- #5189 Bump
home-or-tmpforbabel-register.. (@wtgtybhertgeghgtwtg)
- #5189 Bump
babel-runtimebabel-generator,babel-plugin-syntax-class-constructor-call,babel-plugin-transform-class-constructor-call,babel-preset-stage-1- #5119 Remove "class-constructor-call" syntax and transform plugins. (@ColinRTaylor)
babel-preset-stage-3- #5126 [7.0] Remove stage 4 plugins from stage 3 preset. (@varemenos)
- Other
- #5131 [7.0] Remove add module exports internally. (@chicoxyzzy)
- #5025 Drop support for Node 0.12 💀. (@siddharthkp)
- #5041 Remove node 0.10 support (CI). (@xtuc)
babel-cli,babel-core,babel-plugin-transform-react-constant-elements,babel-traversebabel-plugin-transform-es2015-unicode-regexbabel-polyfill- #5122 Remove old code used for backwards compatibility. (@Anderson-Vasques)
babel-generator,babel-plugin-transform-flow-comments- #5123 [7.0] Drop flowUsesCommas option from babel-generator. (@ChauTNguyen)
babel-plugin-transform-runtime- #5142 removed old cold from transform-runtime. (@shubheksha)
🚀 New Feature
babel-core- #5385 [7.0] Allow presets to be objects. (@danez)
- #4834 Pass
dirnameas extra metadata to preset constructor.. (@izaakschroeder)
babel-preset-stage-2- #3683 babel-preset-stage-2: Add transform-unicode-property-regex. (@mathiasbynens)
🐛 Bug Fix
babel-generatorbabel-generator,babel-plugin-transform-object-rest-spreadbabel-core- #5164 [7.0] Update babel-core browserify fixture. (@chicoxyzzy)
📝 Documentation
babel-plugin-transform-runtimebabel-plugin-transform-async-to-module-method,babel-plugin-transform-es2015-computed-properties,babel-plugin-transform-es2015-for-of,babel-plugin-transform-es2015-modules-systemjs,babel-plugin-transform-es2015-spread,babel-plugin-transform-es2015-template-literals,babel-plugin-transform-object-rest-spread,babel-plugin-transform-react-jsx,babel-plugin-transform-runtime,babel-plugin-transform-strict-mode,babel-preset-latest,babel-register,babel-templatebabel-plugin-transform-es2015-shorthand-properties- Other
🏠 Internal
babel-plugin-undeclared-variables-checkbabel-plugin-transform-class-constructor-callbabel-generator- #5338 Improve babel-generator's code coverage. (@alxpy)
- #5231 [7.0] List babylon plugins instead of * in babel-generator tests. (@existentialism)
- Other
- #5336 Enable codecov partial coverage. (@danez)
- #5350 Remove redundant NODE_ENV=test in Makefile. (@aaronang)
- #5312 [skip ci] Add devEngines to package.json. (@yavorsky)
- #5165 Add Node 7 to CI. (@chicoxyzzy)
- #5254 test lerna@2-beta.37. (@hzoo)
- #5175 Added yarn.lock. (@ChauTNguyen)
babel-cli- #5342 Add test for passing arguments to babel-node (#5163). (@outsideris)
babel-core,babel-template,babel-traversebabel-cli,babel-core,babel-generator,babel-plugin-transform-async-functions,babel-plugin-transform-async-generator-functions,babel-plugin-transform-async-to-generator,babel-plugin-transform-async-to-module-method,babel-plugin-transform-class-properties,babel-plugin-transform-decorators,babel-plugin-transform-do-expressions,babel-plugin-transform-es2015-modules-amd,babel-plugin-transform-es2015-modules-commonjs,babel-plugin-transform-es2015-modules-umd,babel-plugin-transform-exponentiation-operator,babel-plugin-transform-export-extensions,babel-plugin-transform-flow-comments,babel-plugin-transform-flow-strip-types,babel-plugin-transform-function-bind,babel-plugin-transform-object-rest-spread,babel-plugin-transform-regenerator,babel-plugin-transform-runtime,babel-traverse- #5351 Avoid usage of exports/module.exports/require().. (@loganfsmyth)
babel-preset-stage-1- #5319 Switch decorators-legacy to decorators in the Stage 1 Preset (#5318). (@sashashakun)
babel-traverse- #5296 Add test for reference paths. (@jasonLaster)
babelbabel-helper-transform-fixture-test-runner- #5263 [7.0] Run Babel's unittests in a custom sandbox (take 2).. (@loganfsmyth)
babel-register- #5189 Bump
home-or-tmpforbabel-register.. (@wtgtybhertgeghgtwtg)
- #5189 Bump
babel-cli,babel-corebabel-polyfill- #5122 Remove old code used for backwards compatibility. (@Anderson-Vasques)