14227 Commits

Author SHA1 Message Date
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
Armano
53f9fcd5f3
test: reuse lodash library within eslint tests (#12640) 2021-01-18 09:00:22 -06:00
Babel Bot
5a193cc14c
Update test262 (#12636) 2021-01-15 02:06:11 +01:00
Brian Ng
fec4a132ad
Bump prettier@2.2.1 (#12633) 2021-01-14 14:10:47 -05:00
Huáng Jùnliàng
6e9a174e7f
fix: print warning messages to stderr (#12626) 2021-01-14 08:45:48 -05:00
Chris West
bd4590e546
fix: cloneNode(deep, withoutLoc) handles absent comments (#12602)
This fragment (maybe all fragments?) throw during cloning, as
'comments' is unset here. Handle it being unset, by returning
undefined.
2021-01-12 20:40:23 -05:00
Huáng Jùnliàng
62290aa1ba
[babel 8] Don't create TSParenthesizedType nodes by default (#12608)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Sergey Melyukov <s.melukov@gmail.com>
2021-01-13 01:13:09 +01:00
Leslie Leigh (李的序)
2338b052ad
[systemjs] Fix: export star alongside with named export (#12612) 2021-01-13 00:12:12 +01:00
Nicolò Ribaudo
58d2f41930
Transform labeled for-of inside braceless if statement (#12611) 2021-01-12 12:19:15 -06:00
Huáng Jùnliàng
eda4130d5e
Tweak helper compilation targets (#12615)
* refactor: simply browserslists defaults overwriting

When `hasTargets` is `false`,  `targets` is always an empty object by definition, `objectToBrowserslist({})` always return `[]` therefore we can remove `objectToBrowserslist`.

* test: apply external-helpers on preset-env test fixtures

* test: add ie 6 to force all transforms in corejs 3, debug, corejs 2 fixtures

* Add ie 6 as targets for test fixtures
2021-01-12 13:09:45 -05:00
Huáng Jùnliàng
e004a91566
[babel 8] chore: do not push objectRestSpread parser option (#12607)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-01-12 10:46:52 +01:00
Zen
cba64f9a09
Correctly access shadowed class binding in super.* (#12544)
* rename own binding inside methods if it collides with class ref. fix #11994

* fix name collisions in constructor

* do fix name collisions in constructor

* move logic in ReplaceSupers

* fix tests of helper-create-class-features-plugin

* remove replaceSupers in pushConstructor

* use environmentVisitor

* skip classLike nodes

* fix super ref in computed key
2021-01-12 02:31:06 +01:00
Nicolò Ribaudo
4f83a09dd8
Load jsx-runtime after existing imports (#12546)
Co-authored-by: Brian Ng <bng412@gmail.com>
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
2021-01-10 16:23:22 +01:00
Zen
6c9a481e83
@babel/preset-typescript: fix tsx assigment issue (#12599) 2021-01-10 09:21:39 -06:00
Nicolò Ribaudo
fce3e7124a
[babel 8] Remove useSpread and useBuiltIns jsx options (#12593)
* [babel 8] Remove `useSpread` and `useBuiltIns` jsx options

backport of 8cc8696851fa4bf02d7f6ae591404626d1ca32a3

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Brian Ng <bng412@gmail.com>

* Update fixtures (Windows)

Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Brian Ng <bng412@gmail.com>
Co-authored-by: Babel Bot <babel-bot@users.noreply.github.com>
2021-01-08 18:16:30 +01:00
Nicolò Ribaudo
606c91cd33
[babel 8] Remove uglify target support in preset-env (#12594)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-01-08 17:58:44 +01:00
Nicolò Ribaudo
6e70deabcf
Use correct label for "Update Parser Tests" action (#12596) 2021-01-07 21:52:54 -05:00
Babel Bot
37f3aabb66
Update test262 (#12595) 2021-01-08 01:45:09 +01:00
Nicolò Ribaudo
50462eb5e4
[babel 8] Enable allowDeclareFields option by default with TS (#12461) 2021-01-08 01:28:20 +01:00
Huáng Jùnliàng
ff52acee79
[babel 8] Type checking preset-typescript options (#12460)
* refactor: extract option normalization in preset-typescript

* breaking: type checking preset-typescript options

* chore: bundle preset-typescript into a single lib

* test: disable Babel 7 test on Babel 8 breaking change test

* workaround Jest 24 error snapshot dedent issue

* skip Babel 8 test when the Breaking ENV is not available

* chore: update test snapshot

* Update packages/babel-preset-typescript/test/normalize-options.spec.js

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>

* update test fixtures

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-01-07 20:58:58 +01:00
Nicolò Ribaudo
866a742bf7
Remove remaining references to lerna (#12592) 2021-01-07 10:22:23 +01:00
Nicolò Ribaudo
c8117b6a49 fixup! Remove dependency from update-windows-fixtures job 2021-01-06 19:16:20 +01:00
Nicolò Ribaudo
47312bf1d1
Add a utility action to update fixtures in PRs (#12547) 2021-01-06 19:13:21 +01:00
Sosuke Suzuki
c1473e30b2
[ts]Add optional property to OptionalCallExpression node that has type arguments (#12562) 2021-01-06 08:41:45 -06:00
Bogdan Savluk
584518d04c
Improve types in @babel/helper-function-name (#12550) 2021-01-06 14:12:45 +01:00
Daniel Arthur Gallagher
e8b08523f4
docs: add package-specific documentation links (#12531)
[skip ci]
2021-01-06 14:11:53 +01:00