v7.0.0-beta.45 (2018-04-23)
Summary
EDIT: Released v7.0.0-beta.46
Yes, seems that it's taken that long for us to finish v7 ๐
- Drop Node 4 Support (ends 4/30).
- Make Stage 2 decorators "default" (implementation is still WIP), and require people use the
decoratorsLegacy
option for easier migration. - Change
@babel/polyfill
to 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.js
like Babel itself is doing (#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!
Changelog
๐ฅ 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 Compliancy
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-generator
babylon
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-types
- #7706 Fix literal type annotation argument number. (@hendrikniemann)
babel-helper-function-name
,babel-plugin-transform-function-name
babel-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-helpers
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-plugin-proposal-class-properties
,babel-plugin-transform-parameters
babylon
- #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-cli
andbabel-generator
tests 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)
Committers: 17
- Andy (andy-ms)
- Axel Nyffenegger (Axnyff)
- Brian Ng (existentialism)
- Christopher Hiller (boneskull)
- Dennis Czombera (dczombera)
- Deven Bansod (devenbansod)
- Devon Govett (devongovett)
- Evan Scott (evan-scott-zocdoc)
- Hendrik Niemann (hendrikniemann)
- Henry Zhu (hzoo)
- Jason Quense (jquense)
- Justin Ridgewell (jridgewell)
- Logan Smyth (loganfsmyth)
- Markus Tรถrรถk (MarkusToe)
- Mateusz Burzyลski (Andarist)
- Nicolรฒ Ribaudo (nicolo-ribaudo)
- Yosuke Kurami (Quramy)