14302 Commits

Author SHA1 Message Date
Nicolò Ribaudo
0fdec6b7e7
Convert runtime helpers build script to ESM (#12756) 2021-02-04 18:15:30 +01:00
Nicolò Ribaudo
77d46bcb1a
Respect the jsescOption.minimal generator option (#12755) 2021-02-04 16:45:02 +01:00
Nicolò Ribaudo
a0e3ef2117
Remove workaround for #12567 in e2e Jest tests (#12749) 2021-02-04 14:46:09 +01:00
Babel Bot
a038d787c6 Add v7.12.14 to CHANGELOG.md [skip ci] 2021-02-03 15:07:22 +00:00
Nicolò Ribaudo
dd18d87152 v7.12.14 2021-02-03 15:58:57 +01:00
Federico Ciardi
94ba66c89b
fix(ts): allow abstract methods with export default abstract class (#12748) 2021-02-03 09:48:41 -05:00
Huáng Jùnliàng
7fb6048e7c
test: add tests on {parser,generator}Override (#12740) 2021-02-02 23:18:41 -05:00
Nicolò Ribaudo
887eb0758f Remove a Babel 8 commit from CHANGELOG.md 2021-02-03 02:40:10 +01:00
Babel Bot
c56246af2d Add v7.12.13 to CHANGELOG.md [skip ci] 2021-02-03 01:13:05 +00:00
Nicolò Ribaudo
d291edbdf1 v7.12.13 2021-02-03 01:59:31 +01:00
Nicolò Ribaudo
bab5c62f90
Fix class fields when super() is in a default param (#12729)
* Fix class fields when `super()` is in a default param

* Use assertion instead of type cast
2021-02-02 15:38:07 +01:00
Nicolò Ribaudo
60ef190d05
Define class elements in the correct order (#12723)
* Define class elements in the correct order

* Object.gOPDescriptors is not available on Node.js 6

* Handle numeric keys

* Update test

* Update fixtures
2021-02-02 02:22:16 +01:00
Stuart Cook
20664a430e
Permit %%placeholder%% in left-hand-side of a let declaration (#12725)
* Permit %%placeholder%% in left-hand-side of a let declaration

* Test that "let" followed by modulo is still treated as an identifier

* More tests for edge-case handling of "let" with placeholders enabled
2021-02-01 20:00:21 -05:00
Huáng Jùnliàng
ecfe20395b
spec: disable await binding identifier within static block (#12661) 2021-02-01 21:55:43 +01:00
Nicolò Ribaudo
d0a965b71f
Throw when compiling spread in super() but not classes (#12722)
* Throw when compiling spread in `super()` but not classes

* Add comment
2021-02-01 20:16:10 +01:00
Nicolò Ribaudo
4f2d47500f
Don't use require() in ESM files (#12728)
* Update `yarn-plugin-conditions`

* Don't use `require()` in ESM files
2021-02-01 17:09:02 +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
Nicolò Ribaudo
8cf0a757d5
Recover from "missing semicolon" errors (#12437)
* Recover from "missing semicolon" errors

* Update other tests

* Fix flow

* Fix windows test

* Add back deleted test
2021-02-01 10:08:43 +01:00
Nicolò Ribaudo
2ea0a5d021
Add "📢 Deprecation" to the changelog labels (#12698) 2021-02-01 10:08:20 +01:00
Karan Sapolia
b63be942ce
Use native ESM for dev scripts (#12296)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-01-30 18:36:21 +01:00
Huáng Jùnliàng
f8fe8eaab1
breaking: throw on missing dynamic import when import() is seen in systemjs (#12700) 2021-01-29 13:14:13 -05:00
Nicolò Ribaudo
3d69dc9471
Add # to the private name in "write-only" errors (#12713) 2021-01-29 17:58:13 +01:00
Babel Bot
0138553403
chore: update test262 to 11624af8d0c3bdeb6bbc75a803a75ad146b92508 (#12708) 2021-01-28 19:39:03 -05:00
Nicolò Ribaudo
89d55d0786
Lint for extraneous dependencies in every file (#12699)
* Lint for extraneous dependencies in every file

* Deps fixes

* dedupe
2021-01-28 14:04:02 +01:00
Bogdan Savluk
9ac36b136a
convert @babel/generator to TypeScript (#12487)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-01-27 19:21:07 +01:00
Sosuke Suzuki
45fdde0ce2
(ts) Throw for abstract methods in a non-abstract class (#12686) 2021-01-27 18:56:55 +01:00
Huáng Jùnliàng
463cb332aa
refactor: move @babel/helper-bindify-decorators to ts (#12416) 2021-01-27 08:23:21 -05:00
Federico Ciardi
fbfd1b2aa6
fix(parser): throw error with wrong typescript 'export declare' (#12684) 2021-01-26 22:51:12 -06:00
Сковорода Никита Андреевич
9907bd86c9
Avoid hitting __proto__ in _inheritsLoose (#12693) 2021-01-26 20:15:41 +01:00
Federico Ciardi
f7f0560bda
fix: wrong helper version (#12694) 2021-01-26 12:48:38 -05:00
Federico Ciardi
5a020b24b7
fix: throw error when accessing private method without a getter (#12689)
* fix: class private accessor without getter

* Provide default return if 'writeOnlyError' is not available

* Add warning for old `@babel/helpers`

* Add missing helper call
2021-01-26 11:16:47 -05:00
overlookmotel
b727e67347
babel-register run default register with global module cache (#12674)
Follow-up to PR #12665.
2021-01-25 21:51:16 +01:00
Huáng Jùnliàng
446c70c6c3
fix: avoid line breaks between class members head and key (#12653) 2021-01-24 02:06:01 +01:00
Sosuke Suzuki
8fcba6eb55
Raise recoverable error for await expressions in sync functions (#12520) 2021-01-24 01:45:27 +01:00
Bogdan Savluk
d98418efbe
Convert @babel/traverse to TypeScript (#12488)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-01-24 01:33:09 +01:00
Huáng Jùnliàng
cd090e9842
[babel 8] Output minimal strings by default (#12675)
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
Co-authored-by: Justin Ridgewell <jridgewell@google.com>
2021-01-23 22:50:07 +01:00
Henry Zhu
464a02ffe1
[babel 8] Replace lodash/escapeRegExp with escape-string-regexp (#12677)
Co-authored-by: James Addison <jay@jp-hosting.net>
2021-01-23 22:21:34 +01:00
Huáng Jùnliàng
568679e301
fix: start TypePredicate node after returnToken (#12678) 2021-01-23 11:06:54 -06:00
Nicolò Ribaudo
8c03fb0152
[babel 8] Remove chokidar@2 fallback (#12679)
* Update yarn-plugin-conditions for optionalDependencies support

* Remove chokidar@2 fallback
2021-01-23 03:56:42 +01:00
Nicolò Ribaudo
f795fff1e4
[babel 8] Update globals, find-cache-dir and slash (#12656) 2021-01-22 17:57:07 +01:00
Nicolò Ribaudo
6a961497aa
[babel 8] Improve syntax highlighting (#12660)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Simon Lydell <simon.lydell@gmail.com>
2021-01-22 17:56:20 +01:00
overlookmotel
22eb99bea4
fix: babel-register transform internal dependencies (#12665)
Closes #11964, #12662.
2021-01-22 11:08:20 +01:00
ExE Boss
f1314a1683
fix: correctly transform __proto__ properties (#12664)
* fix: correctly transform `__proto__` properties

* fixup! fix: correctly transform `__proto__` properties
2021-01-22 10:58:33 +01:00
Nicolò Ribaudo
2811b535d6
Add yarn-plugin-conditions to update Babel 8 dependencies (#12659)
* Add `yarn-plugin-conditions` to update Babel 8 dependencies

https://github.com/nicolo-ribaudo/yarn-plugin-conditions

* Update .gitattributes
2021-01-22 10:45:03 +01:00
Babel Bot
dc4bace114
Update test262 (#12671) 2021-01-21 22:04:35 -06:00
Armano
6783308875
fix: allow to execute util scripts (#12670)
[skip ci]
2021-01-22 00:31:09 +01:00
Nicolò Ribaudo
10978bb65a
[babel 8] Use the JSX automatic runtime by default (#12630)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Arun Kumar Mohan <arunmohandm@gmail.com>
2021-01-19 01:41:07 +01:00
Huáng Jùnliàng
6e8250a3a6
fix: place _babel-node after process.execArgv (#12638)
Workaround https://github.com/nodejs/node/issues/36948
2021-01-18 15:15:03 -05:00
Huáng Jùnliàng
bc39a081f5
chore: update typescript to 4.1.3 (#12652) 2021-01-18 15:13:11 -05:00
Huáng Jùnliàng
ddd7cc6f83
chore: update rollup to 2.36 (#12651) 2021-01-18 15:12:55 -05:00