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
Babel Bot
e2abc19c4c
v7.13.8
2021-02-26 23:28:19 +00:00
Nicolò Ribaudo
ea6a438315
Enable external-helpers by default in tests ( #12911 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
2021-02-26 23:33:26 +01:00
Alan Lu - 川古
6a0394634f
Don't inject invalid core-js@2 polyfills ( #12901 )
2021-02-25 21:52:21 +01:00
Nicolò Ribaudo
039eb2710d
Update all the @babel/* dependencies ( #12897 )
2021-02-25 02:46:56 +01:00
pigcan
c9da9650eb
chore: downgrade semver to ^6.3.2 ( #12890 )
2021-02-24 19:55:42 +01:00
Huáng Jùnliàng
4acb73449f
Update compat table ( #12850 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-02-23 15:32:54 +01:00
Babel Bot
9a4269e7b6
v7.13.5
2021-02-23 13:52:17 +00:00
Eli Gao
1484260f62
Add es6.array.slice in corejs2 builtins ( #12870 )
2021-02-23 13:49:09 +01:00
Nicolò Ribaudo
115841e778
Ensure that @babel/runtime-corejs3 imports are injected ( #12869 )
...
* Add failing test for #12863
* Minimal
* Ensure that `@babel/runtime-corejs2` imports are injected
2021-02-23 12:47:04 +01:00
Nicolò Ribaudo
c827193d9c
v7.13.0
2021-02-22 23:35:18 +01:00
Nicolò Ribaudo
771841f764
Fix _isNativeReflectConstruct helper ( #8461 )
2021-02-22 22:49:44 +01:00
Nicolò Ribaudo
484667b54c
Use babel-plugin-polyfill-* packages in transform-runtime ( #12845 )
2021-02-22 22:30:27 +01:00
Huáng Jùnliàng
ba4ac7d587
chore: bump semver to 7.0.0 ( #12015 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-02-21 23:56:43 +01:00
Nicolò Ribaudo
143ee801e6
Use the babel-plugin-polyfill-* packages in preset-env ( #12583 )
2021-02-21 17:40:29 +01:00
Nicolò Ribaudo
7965c15557
Add @babel/core support for the new assumptions option ( #12219 )
...
- Disallow setting assumptions to `false` in presets (#12498 )
2021-02-21 17:09:45 +01:00
Nicolò Ribaudo
cb404e4776
Add targets and browserslist* options to @babel/core ( #12189 )
2021-02-21 17:09:43 +01:00
Huáng Jùnliàng
af2ed36535
chore: bump core-js-compat ( #12821 )
2021-02-19 13:27:38 +01:00
Nicolò Ribaudo
2f755ef052
v7.12.17
2021-02-18 15:58:43 +01:00
Babel Bot
dd5c9f958c
v7.12.16
2021-02-11 22:36:24 +00:00
Nicolò Ribaudo
e735266dee
Avoid importing .json files ( #12759 )
...
* Avoid importing `.json` files
* Use ESold in babel.config.json
* Use `import/extensions` eslint plugin
2021-02-05 23:34:36 +01:00
Nicolò Ribaudo
d291edbdf1
v7.12.13
2021-02-03 01:59:31 +01:00
Huáng Jùnliàng
108564fdad
refactor: raise AwaitNotInAsyncContext when an AwaitExpression will be parsed ( #12716 )
...
* refactor: raise AwaitNotInAsyncContext when an AwaitExpression will be parsed
* tweak logic
* early exit when errors are before thrown error position
* fix: always return true in assert.throws callback
See https://nodejs.org/api/assert.html#assert_assert_throws_fn_error_message
* update test fixtures
* fix flow error
2021-02-01 10:46:43 -05:00
Armano
6783308875
fix: allow to execute util scripts ( #12670 )
...
[skip ci]
2021-01-22 00:31:09 +01:00
Huáng Jùnliàng
6e9a174e7f
fix: print warning messages to stderr ( #12626 )
2021-01-14 08:45:48 -05:00