- Remove experimental support for throw expressions (https://github.com/tc39/proposal-throw-expressions)
Breaking changes ahead!
Note for all Flow users: all projects in adeira/universe
now use implicit exact Flow types ({}
for strict objects and { ... }
for open objects, syntax {||}
is deprecated). We do not expect any issues as long as you are using exact_by_default=true
Flow option.
-
Enabled experimental support for Flow Enums. Please note: you still have to install
flow-enums-runtime
explicitly if you want to use it. -
Added support for
@babel/eslint-parser
instead of the deprecatedbabel-eslint
, see: https://babeljs.io/blog/2020/07/13/the-state-of-babel-eslint -
Enabled
allowDeclareFields
options for@babel/plugin-transform-flow-strip-types
. This is the default in Babel 8. You should migrate all type only fields to usedeclare
syntax like so:class C { declare foo: string; bar: string; } // becomes class C { bar; }
For more information visit the following links:
Support for Node.js 12 has been removed. This package might continue working on older Node.js versions, however, it's highly recommended upgrading to Node.js version 14 or newer. For more details, see: https://nodejs.org/en/about/releases/, or discuss here: adeira/universe#1588
- Set reactRuntime to
automatic
as default. This means that if you are not using the new JSX transform, see https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html, you need to setreactRuntime: 'classic'
as an option to this package.
- Add support for new JSX transform, see https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html
- Upgraded babel dependencies
- Stable release (upgraded dependencies and some internal changes).
- Upgraded dependencies.
- Output in which file you are trying to redeclare
__DEV__
- New error preventing abuse of
__DEV__
added. You cannot redeclare this virtual constant in your code!
- Babel dependencies upgraded to the latest versions (7.6), see: https://babeljs.io/blog/2019/09/05/7.6.0
- Babel bug preventing usage of
string.matchAll
was fixed, see: babel/babel#10136 - Added parser support for
BigInt
. - Added parser support for throw expressions.
- This release doesn't add any visible changes. However, there are many bugfixes from Babel side, upgraded dependencies as well as some internal changes usually around some new syntaxes which are now officially supported (see readme file). Please upgrade to this version and let us know about any issues.
- Now it's possible to configure not only transpilation targets but also different environments via
environments
option. Check readme file to see how to.
- Flow comments are now being transpiled to normal Flow types when you use
target:flow
. We changed it so that Babel understands them correctly (see this reported issue). Please report any issues related to this change. - Parsing of private class properties is now officially supported.
- Numeric separators are now officially supported. Read more in this proposal: https://github.com/tc39/proposal-numeric-separator
- Added support for new transpilation target
js-esm
. This target works the same asjs
except it supports ES6 modules.
- This version just reverts previous changes from version 3.1.0. We discovered unexpected behavior in some specific cases which forces us to revert it. Better strategy will follow.
- Modules transformation is now determined automatically based on your Babel executor (see: https://babeljs.io/docs/en/babel-preset-env#modules). It should not break anything. They only difference is that previously we supported only CommonJS but now you can get even ES6 modules if your Babel executor supports it (
babel-loader
for example).
- Added support for dynamic
import()
syntax. This fits well with@adeira/relay
version 1.0+ and allows you to use@match
/@module
directives for data-driven code splitting. - Breaking: Relay plugin is no longer part of this preset. It was moved to
@adeira/relay
. Please, edit your Babel configuration files (example for Next.js applications):
module.exports = {
presets: ['@adeira/babel-preset-adeira', 'next/babel'],
plugins: ['relay'],
};
- Upgrade Relay to version 4.0 (see: https://github.com/facebook/relay/releases/tag/v4.0.0)
- Browser environment is now supported correctly (last 2 versions, ie >= 11). We are now distributing
@babel/runtime
as a dependency so you may want to remove it from your project. Please report any issues with your environment.
- Add support for Relay 3.0 (no breaking changes expected, should be backward compatible)
- Added support for
invariant
transpilation (from@kiwicom/js
) - Fixed
warning
transpilation for require
- Added support for
warning
transpilation (from@kiwicom/js
)
- Added
@kiwicom/babel-plugin-orbit-components
- Target
flow
now doesn't perform transpilation but only parsing and__DEV__
declaration instead
- Add transpilation targets: JS and Flow
- Upgrade
babel-plugin-relay
to the version 2.0 (potentially breaking change)
- Add
@babel/preset-react
into default presets
- Add
babel-plugin-relay
into default plugins
- Babel dependencies upgraded to the latest versions
- Added support for
__DEV__
expression