Samuel Gaus
830b99dc83
Add support for rhino as a compilation target ( #13448 )
...
* Add support for rhino as a compilation target
* Add tests for target: rhino
* Fix test failing due to whitespace
* Keep consistent names for rhino tests in babel 7 and 8
* Bump core-js-compat to 3.15.0
* Change references to rhino to include patch version
* Update compat table data import
* Split transpilation of arrow function features more finely
* Rename rhino fixtures to include the patch number and update to include syntax that is and isn't supported for better testing
* Only use the relevant features for transform-new-target and transform-classes
2021-08-03 23:03:16 +02:00
Nicolò Ribaudo
a254ea38a4
Enable ergonomic brand checks (#priv in) by default ( #13554 )
...
* Enable ergonomic brand checks by default in `@babel/parser`
* Enable ergonomic brand checks by default in `preset-env`
* Fix error position
* Update Babel 8 tests
2021-08-03 23:02:17 +02:00
Babel Bot
aa2cac5edc
v7.14.9
2021-08-01 07:42:57 +00:00
Nicolò Ribaudo
93bade2a71
Update core-js@3 packages ( #13621 )
...
* Update `core-js@3` packages
* Update fixtures
* Update Babel 8 fixtures
2021-08-01 09:22:09 +02:00
Babel Bot
e591780244
v7.14.8
2021-07-20 17:51:55 +00:00
Bogdan Savluk
47ad54a057
convert @babel/preset-env to typescript ( #13217 )
...
* babel-preset-env flowts rename
* babel-preset-env flowts convert
* babel-preset-env fixes
* babel-preset-env
* make generate-tsconfig
* Minimize diff
* Fix many type errors
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-06-22 10:58:08 -04:00
Babel Bot
268e4ca0de
v7.14.7
2021-06-21 21:44:55 +00:00
Nicolò Ribaudo
8c229e7657
Bump core-js packages ( #13496 )
2021-06-21 09:34:49 -05:00
Babel Bot
7a2a928398
v7.14.5
2021-06-09 23:03:30 +00:00
Nicolò Ribaudo
f6f37fb8cd
Update packages related to compat data ( #13432 )
...
* Update `core-js@3`
* Update `compat-table`
* Update pinned `caniuse-lite` and `electron-to-chromium`
* Regenerate fixtures
* Regenerate Babel 8 fixtures
2021-06-08 08:24:16 -04:00
Huáng Jùnliàng
4eda1c8605
chore: bump eslint and its plugins ( #13412 )
2021-06-03 23:42:32 -04:00
Nicolò Ribaudo
08772e28f2
Update polyfill plugins ( #13373 )
2021-05-31 18:47:13 +02:00
Kristoffer K
140ec5aa5c
chore: setup Yarn constraints ( #13363 )
2021-05-31 18:46:03 +02:00
Babel Bot
219fd3ab1f
v7.14.4
2021-05-28 16:50:09 +00:00
Alan Orozco
f35513fbaa
Hoist omitted keys from object spread operator ( #13384 )
2021-05-28 18:32:30 +02:00
dependabot[bot]
342fec1a78
Update compat data dependencies ( #13368 )
...
* Bump browserslist from 4.16.4 to 4.16.5
Bumps [browserslist](https://github.com/browserslist/browserslist ) from 4.16.4 to 4.16.5.
- [Release notes](https://github.com/browserslist/browserslist/releases )
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md )
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.4...4.16.5 )
Signed-off-by: dependabot[bot] <support@github.com>
* Update compat data packages
* Update tests
* Add to resolutions
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-05-26 15:27:13 +02:00
Bogdan Savluk
8b1bcd1079
convert @babel/helper-compilation-targets to typescript ( #13218 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-05-21 00:20:42 +02:00
Nicolò Ribaudo
8732dd39c6
Compile static blocks without the intermediate priv field step ( #13297 )
...
* Remove ordering constraints for `static-blocks` plugin
* Handle static blocks directly in `helper-create-class-features-plugin`
2021-05-14 11:35:59 -04:00
Babel Bot
7512095c84
v7.14.2
2021-05-12 16:58:57 +00:00
Nicolò Ribaudo
9440318309
Update Rollup plugins ( #13265 )
2021-05-06 08:53:30 +02:00
Babel Bot
3ecc7919c5
v7.14.1
2021-05-04 01:46:37 +00:00
Nicolò Ribaudo
910b1f266f
Archive @babel/plugin-syntax-class-properties ( #13232 )
...
babel/babel-archive@b95d3626ad
2021-04-29 23:56:03 +02:00
Nicolò Ribaudo
3c0152a217
v7.14.0
2021-04-29 21:59:57 +02:00
Nicolò Ribaudo
f30c99aa24
Mark WeakMaps of private fields as pure ( #13194 )
2021-04-28 18:25:17 +02:00
Nicolò Ribaudo
b4c21c729f
Enable class fields & private methods by default ( #13091 )
2021-04-28 18:25:17 +02:00
Nicolò Ribaudo
5a7a782da2
Add private brand checks to shippedProposals ( #13176 )
2021-04-28 18:25:17 +02:00
Nicolò Ribaudo
3c2b98ff06
Add class static blocks to preset-env's shippedProposals ( #13114 )
2021-04-28 18:25:17 +02:00
Sosuke Suzuki
2521c666f7
Add internal ESLint rule for consistent parser error messages ( #13130 )
2021-04-28 18:21:31 +02:00
Stuart Cook
3d4b801bb9
Simplify the special-case printing of single-param arrow functions ( #13204 )
...
* Simplify the special-case printing of single-param arrow functions
* Update test fixtures with single-param arrow functions
* Add some explicit snapshot tests for known edge-cases
2021-04-26 10:26:45 -04:00
Nicolò Ribaudo
f63d73c94e
Allow putting helpers in individual files ( #13190 )
...
* Allow putting helpers in individual files
* Lint
* Also move `objectSpread2` (to show an helper with deps)
* Update fixture and package.json
* fixture
2021-04-22 20:45:52 +02:00
Nicolò Ribaudo
bdbd07d170
Update browserslist and caniuse-lite ( #13174 )
2021-04-19 20:04:59 +02:00
Nicolò Ribaudo
808d437cf4
Support iterating generators in browsers without Symbol ( #13129 )
2021-04-15 23:47:53 +02:00
Babel Bot
e50f6f7eef
v7.13.15
2021-04-08 15:40:57 +00:00
Nicolò Ribaudo
be1003b837
[preset-env - debug] Print targets that need each plugin ( #13115 )
2021-04-07 22:50:14 +02:00
Nicolò Ribaudo
8d4da69e9d
Update polyfill plugins ( #13079 )
...
* Update polyfill plugins
* Update fixtures
* Update Babel 8 fixtures
2021-03-31 13:46:15 -04:00
Nicolò Ribaudo
d563773723
Compile classes when spread is unsupported ( #13075 )
2021-03-31 16:42:52 +02:00
Huáng Jùnliàng
3e174e9cbd
perf: lazy load preset-env plugins ( #13076 )
2021-03-30 21:43:41 +02:00
Nicolò Ribaudo
b0d83daceb
Resolve .browserslistrc as a project-wide file ( #13028 )
2021-03-25 21:37:42 +01:00
Nicolò Ribaudo
2ae19d01b1
Update fixtures ( #13045 )
...
* Update fixtures
* Update standalone tests
2021-03-24 14:18:02 +01:00
Huáng Jùnliàng
6ee87eea49
[babel 8] fallback targets to "defaults, not ie 11" ( #12989 )
2021-03-23 20:17:16 +01:00
Babel Bot
edb11baabf
v7.13.12
2021-03-22 15:36:45 +00:00
Huáng Jùnliàng
c2a42492db
Implement @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining ( #13009 )
2021-03-19 13:26:28 -04:00
Huáng Jùnliàng
020c88e74b
Update compat data ( #13008 )
2021-03-19 08:33:59 -04:00
Nicolò Ribaudo
8ad6b75cde
Use function rather than var to compile private methods ( #12990 )
2021-03-11 02:08:31 +01:00
Babel Bot
d1d404b9a3
v7.13.10
2021-03-08 22:23:36 +00:00
Nicolò Ribaudo
d04842a700
Avoid using CJS globals in internal source files ( #12963 )
...
* Lint against CJS globals in modules
* Use `import.meta.url` instead of `__filename` in `src` files
* Prepare fixtures runner for `import.meta.url`
* Use `import.meta.url` instead of `__filename` in `test/index` files
* Remove `__dirname` from remaining test files
dirname
* Avoid using `module` in `src` files
* Avoid using `require` in `src` files
* Avoid using `require` in `test` files
* Update `@types/node`
* Compile dynamic import in `@babel/node`
* Fix windows
* Use `@babel/plugin-proposal-dynamic-import` from npm
2021-03-05 19:55:36 +01:00
Nicolò Ribaudo
d9ebfab07f
[internal] Use the Node.js behavior for default imports ( #12795 )
2021-03-04 13:55:15 +01:00
Nicolò Ribaudo
0d9ad433b4
Fix esmodules: true without specified browsers ( #12908 )
...
* Fix `esmodules: true` without specified browsers
* fix
2021-03-02 08:16:25 +01:00
Babel Bot
2c0e8d0008
v7.13.9
2021-03-01 21:33:11 +00:00
Nicolò Ribaudo
c155caf1e8
Load .browserslistrc when using old @babel/core versions ( #12934 )
2021-03-01 20:46:02 +01:00