5849 Commits

Author SHA1 Message Date
Babel Bot
fd0e37ea3e v7.16.9 2022-01-11 23:07:22 +00:00
Nicolò Ribaudo
928f06ca99
Follow up to #14136 (#14137) 2022-01-11 23:53:06 +01:00
Nicolò Ribaudo
db08d945d0
Restore @babel/register compat with @babel/core@7.5.x (#14136) 2022-01-11 23:26:07 +01:00
Babel Bot
bc0d1ef860 v7.16.8 2022-01-10 21:11:46 +00:00
Sosuke Suzuki
69246b6212
[babel 8] fix properties name for function-like TS nodes (#13709)
* Align AST

* Add tests for parser

* Generator

* Add babel-types support

* Address review

* Address review
2022-01-10 17:35:03 +01:00
Arthur
335622f75d
Delete useless check for variable redeclaration (#14129) 2022-01-10 15:39:52 +01:00
Ozan H
1c32b670ce
Print trailing comma after a single TS generic in arrow fns (#14113) 2022-01-10 15:37:05 +01:00
Nicolò Ribaudo
a6d77d07b4
[babel 8] Remove @babel/runtime@<=7.13.0 compat check (#14120) 2022-01-08 21:06:40 +01:00
magic-akari
910ece5e2a
Optimize transform-async-to-generator output (#14122)
* Optimize `transform-async-to-generator` output

- remove wrapper if the function length is zero.
- remove wrapper if the `assumptions.ignoreFunctionLength` is `true`.

* chore: update test case and code style

* chore: add test
2022-01-08 21:01:20 +01:00
Nicolò Ribaudo
213397be99
Always use the plugin/preset name in fixtures options (#14118) 2022-01-08 18:32:15 +01:00
Nicolò Ribaudo
393d5d74d8
[babel 8] Remove @nicolo-ribaudo/chokidar-2 fallback (#14119) 2022-01-08 16:50:37 +01:00
Nicolò Ribaudo
53ac687a59
Update core-js 3 (#14108) 2022-01-06 18:46:37 +01:00
Huáng Jùnliàng
b9ba4f9de8
fix: forward stop signal to parent path (#14105) 2022-01-06 18:38:07 +01:00
Nicolò Ribaudo
d158a48945
Don't mutate @babel/register options (#14107) 2022-01-06 18:37:45 +01:00
Sneh Khatri
ed3036d11c
Register binding for newly created vars for commonjs transforms (#14097) 2022-01-06 18:37:05 +01:00
magic-akari
bee3e35851
Fix TypeScript Enum self-references (#14093) 2022-01-06 16:47:09 +01:00
overlookmotel
3942d72745
Always print directives with double quotes when minified (#14094) 2022-01-06 16:28:28 +01:00
Babel Bot
23e884048a v7.16.7 2021-12-31 00:13:43 +00:00
Endrit Bajo
f69f1a80d5
Import the correct ./typeof.js helper in @babel/runtime (#14081) 2021-12-31 00:58:07 +01:00
Nicolò Ribaudo
2810dc6460
Fix derived classes in Chrome <= 36 (#14072) 2021-12-30 23:58:16 +01:00
Nicolò Ribaudo
e77e3de402
[babel 8] Move @babel/register transform to a separate worker (#14025) 2021-12-29 16:33:12 +01:00
Nicolò Ribaudo
d1cabf6bc8
[babel 8] Add "exports" to every package (#14013) 2021-12-29 16:29:10 +01:00
Sneh Khatri
2c68d03bf2
Allow $schema property in json config files (#14067)
* Fix: Error on  property in json config files

* options[] delete moved down
2021-12-28 22:13:14 -05:00
Sneh Khatri
d6ff91d560
Fix unicode handling in generated function names (#14047) 2021-12-20 22:03:35 +01:00
Huáng Jùnliàng
ad17fe1cce
fix: check preceding line break before exclamation (#14049) 2021-12-16 15:50:15 -05:00
Babel Bot
5687ade5e7 v7.16.6 2021-12-14 23:32:57 +00:00
Huáng Jùnliàng
7794201940
fix: handle tokens for invalid template element (#14055) 2021-12-14 17:54:09 -05:00
Babel Bot
7b7ab94066 v7.16.5 2021-12-13 22:12:58 +00:00
Nicolò Ribaudo
7dec78de28
Skip hasMoreThanOneBinding tests on publish (#14048) 2021-12-13 23:07:24 +01:00
Sneh Khatri
a7acde3885
Fix: default rest argument array elements as undefined (#14032) 2021-12-13 21:51:57 +01:00
Sneh Khatri
add64e870b
Don't resolve shadowed arguments variables from functions (#14036) 2021-12-13 18:29:10 +01:00
wentout
c59870c526
Mark class prototype as read-only (#12115)
* initial code 2 fix the issue #2025

* Mark class prototype as read-only

* Update fixtures

* Fix failure

* Update Babel 8 fixtures

* Disable in loose mode

* Update fixtures

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-12-10 21:44:48 +01:00
Huáng Jùnliàng
39080492f4
maintain estree string literal shape when cloned (#14039) 2021-12-09 17:58:25 -05:00
Huáng Jùnliàng
94af0e5c62
Improve template tokenizing (#13919)
* add benchmarks

* refactor: tokenize template as middle + tail

* perf: avoid push tc.brace

* refactor: overwrite skipSpace in jsx plugin

* transform tl.templateMiddle/Tail

* refactor: simplify JSX context tracking

* fix flow error

* refactor: move JSX context to context.js

* fix: ensure comment stack is correctly handled

* rename createPositionFromPosition

* rename token type and methods

* add tokenIsTemplate

* refactor: merge babel 7 logic in babel7CompatTokens

* fix flow error
2021-12-06 16:43:46 -05:00
Nicolò Ribaudo
3a85ddfb1b
Bring back deferred require() calls in core and cli (#14028) 2021-12-06 21:33:33 +01:00
Sneh Khatri
a943f576d1
Fix duplicate declaration error on ambient class declarations (#14016) 2021-12-05 18:24:56 +01:00
Nicolò Ribaudo
2d989a983d
Run tests in a native Node.js ESM environment (#13966) 2021-12-03 15:32:58 +01:00
Kyle Rosenberg
4079ee519f
Support flow function type annotation with no parent (#14014) 2021-12-02 20:16:19 -05:00
J. S. Choi
f4236f43a1
Extend hasPlugin to accept plugin-configuration array pairs (#13982)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-12-02 23:17:51 +01:00
renovate[bot]
ecae53a98e
chore(deps): update dependency typescript to ~4.5.0 (#14018)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-12-02 16:59:11 +01:00
Sneh Khatri
029cd15bd9
Fix JSX pragma anywhere in comment (#14012)
* Fix JSX pragma anywhere in comment

* jsx regex patterns support jsx docs

* removed extra spaces from regex patterns
2021-12-02 10:35:44 -05:00
Nicolò Ribaudo
36a5ac4145
Fix handling of this&co in computed keys in arrows transform (#14005) 2021-11-30 22:54:17 +01:00
Nicolò Ribaudo
29de280006
Use Node.js interop when importing lib in test (#13995) 2021-11-29 21:48:34 +01:00
Nicolò Ribaudo
1bbe1fc3cb
Regenerate monorepo READMEs (#14006)
* Fix script to generate readmes

* Regenerate READMEs
2021-11-29 10:03:23 -05:00
Nicolò Ribaudo
23fec0c8c9
Update to prettier 2.5.0 (#14000) 2021-11-26 10:48:16 +01:00
Bogdan Savluk
0058b7fef4
Migrate Babel from Flow to TypeScript (except Babel parser) (#11578)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-11-25 23:09:13 +01:00
Nicolò Ribaudo
473f145b27
Don't use ESM for required files in @babel/helpers tests (#13996) 2021-11-25 16:19:07 +01:00
Huáng Jùnliàng
55f020e02d
Convert proposal-object-rest-spread to TS (#13948)
* chore: add typings to object-rest-spread

* chore: bundle object-rest-spread package

* improve type inference

* address review comments
2021-11-24 10:48:31 -05:00
Nicolò Ribaudo
ad1798ed48
Only bundle the release build, and don't import src in tests (#13978)
* Only bundle the release build, and don't import `src` in tests

* Use file extension to signal skipping

* Remove unnecessary config change

* Fix imports
2021-11-24 10:08:53 -05:00
Nicolò Ribaudo
75996cb62b
Use full import specifier path in tests (#13938) 2021-11-24 11:43:18 +01:00