Nicolò Ribaudo
4f9ad5cc3a
Avoid infinite loops in type inference logic ( #12390 )
2020-11-23 17:03:01 +01:00
Huáng Jùnliàng
243d3b2dfd
chore: fix watcher config ( #12372 )
2020-11-23 10:43:54 -05:00
Nicolò Ribaudo
7d2a14b856
Initialize NodePath context when using getSibling ( #12387 )
2020-11-23 16:03:11 +01:00
Filipp Riabchun
2b13863680
Fix Node version check ( #12382 )
...
`process.version` always starts with `v`, so `parseInt(process.version)` always evaluates to `NaN`. See https://nodejs.org/api/process.html#process_process_version
2020-11-23 09:00:50 -05:00
Babel Bot
b36f988b10
Add v7.12.7 to CHANGELOG.md [skip ci]
2020-11-20 21:09:26 +00:00
Nicolò Ribaudo
23226d93d4
v7.12.7
2020-11-20 22:02:43 +01:00
Huáng Jùnliàng
a44151acef
optimize optional chain when expression will be cast to boolean ( #12291 )
2020-11-20 20:55:33 +01:00
Nicolò Ribaudo
e7e0c25d6a
Archive @babel/helper-regex ( #12377 )
...
babel/babel-archive@32d1b8eeaf
2020-11-20 10:40:48 -05:00
Huáng Jùnliàng
2e3eec6646
refactor: use option-validator in preset-typescript ( #12347 )
2020-11-20 15:11:20 +01:00
Huáng Jùnliàng
ab5a90ce47
refactor: remove @babel/helper-regex usage ( #12349 )
2020-11-18 10:06:59 -05:00
Nicolò Ribaudo
6a0e909c13
Don't compile import() in development ( #12288 )
2020-11-18 16:02:02 +01:00
Sosuke Suzuki
94d116052f
[ts] Allow modifiers as names of methods with type parameters ( #12356 )
2020-11-18 15:29:02 +01:00
Nicolò Ribaudo
e8457ea5d3
Update yarn-plugin-babel-release-tool ( #12369 )
2020-11-17 17:31:22 +01:00
Huáng Jùnliàng
2db500451b
Bump caniuse-lite resolutions ( #12368 )
2020-11-17 16:38:02 +01:00
Huáng Jùnliàng
b564368d6e
refactor: reorder checkLVal parameters ( #12346 )
...
* refactor: reorder checkLVal parameters
* update allow list
* Apply suggestions from code review
2020-11-17 09:07:32 -05:00
Bogdan Savluk
0f838be944
improve asserts type annotations ( #12341 )
2020-11-16 11:21:30 -05:00
Sosuke Suzuki
a4e4aede14
[ts]Set false to default value of TsTypePredicate.asserts ( #12352 )
2020-11-16 09:51:27 -06:00
Nitin Kumar
56fd90452c
chore: fix grammar in bug template ( #12362 )
...
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-11-16 16:20:12 +01:00
Huáng Jùnliàng
f54f1ee492
Fix: correctly transform this.#m?.(...arguments) ( #12350 )
...
* add tests on @babel/helper-optimise-call-expression
* fix: correctly optimise `a.b?.(...arguments)`
* add integration test with properties transform
2020-11-16 10:16:46 -05:00
Huáng Jùnliàng
7850682387
chore: pin stack-utils to 1.0.2 on legacy node tests ( #12365 )
2020-11-16 10:16:24 -05:00
Huáng Jùnliàng
cff0d7c727
chore: prompt maintainer to quit make watch before publish ( #12357 )
...
* chore: prompt maintainer to quit make watch before publish
* move shell prompt to Makefile
2020-11-14 08:23:29 -05:00
Nicolò Ribaudo
3e0fa927c0
Final configuration changes in preparation for TS ( #12351 )
2020-11-12 16:09:29 +01:00
Huáng Jùnliàng
5bbad8936b
fix: disallow all parenthesized pattern except parsing LHS ( #12327 )
...
* fix: disallow all parenthesized pattern except parsing LHS
* fix: forStatement requires LHS
* simplify toAssignable
* add more test cases
* fix: pass through isLHS on object property and assignment expression
* fix: record parenthesized identifier error for LHS
* remove duplicated skipped tests
* fix: do not record errors on ancestry arrow head
* Update packages/babel-parser/src/util/expression-scope.js
Co-authored-by: Brian Ng <bng412@gmail.com>
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-11-10 14:42:37 -05:00
Brian Ng
08c7280167
Fix support for polyfilling Array.prototype.values in core-js@2 ( #12340 )
2020-11-10 16:43:11 +01:00
ExE Boss
3505eaadba
Add type definitions for assertion methods ( #11883 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-11-10 16:42:25 +01:00
Nicolò Ribaudo
2984f0cb88
Use the correct context when re-using a cached NodePath ( #12331 )
2020-11-10 15:03:21 +01:00
Jason Miller
ddd868f838
Account for ConfigItem being generated by another copy of Babel ( #11734 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2020-11-10 15:02:46 +01:00
Nicolò Ribaudo
4b1b961bd1
Fix CircleCI test262 job ( #12338 )
2020-11-10 13:33:33 +01:00
Nicolò Ribaudo
40727ab5f6
Use chokidar@2 without fsevents@1 ( #12322 )
2020-11-10 09:12:16 +01:00
Huáng Jùnliàng
d7e32d8c3d
Add typings for recordAndTuple parser plugin ( #12326 )
2020-11-09 23:57:41 +01:00
Bogdan Savluk
089c200c8b
Convert @babel/template from Flow to TS ( #12317 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-11-09 23:17:25 +01:00
Nicolò Ribaudo
f80478c06d
Prepare repository for gradual flow->ts migration ( #12317 )
...
Co-authored-by: Bogdan Savluk <savluk.bogdan@gmail.com>
2020-11-09 23:17:24 +01:00
Nicolò Ribaudo
a9bc9becc5
Use TS3.7 when possible for @babel/type dts ( #12317 )
2020-11-09 23:17:24 +01:00
Huáng Jùnliàng
07607fa7c7
chore: remove Node.js 13 from CI ( #12328 )
2020-11-09 12:08:23 -05:00
Mateusz Burzyński
21f42544ca
Fixed incorrectly implemented tests for loadOptions ( #12301 )
2020-11-09 16:14:56 +01:00
Sosuke Suzuki
ad8a4d62fd
Fix syntax error for getter and setter with ts and estree plugin ( #12333 )
2020-11-09 08:36:39 +01:00
Nicolò Ribaudo
32279147e6
Update core-js-compat ( #12323 )
...
* Update `core-js-compat`
* Update lockfile
2020-11-06 18:19:57 +01:00
Huáng Jùnliàng
0641a15030
Reduce linear search on list traversing ( #12302 )
...
* perf: reduce linear search on list traversing
* fix: remove parent cache when replacing node
2020-11-04 20:14:51 -05:00
Huáng Jùnliàng
6cb6f9f5ea
test: add tests about behaviour of replaceWithMultiple ( #12309 )
...
* test: add tests about behaviour of replaceWithMultiple
* add more tests
2020-11-04 14:46:53 -05:00
Austin Anderson
ddf30ee233
Adding includes fix for plugin-proposal-numeric-separator ( #12311 )
...
Co-authored-by: fraywing <austin@rupie.io>
2020-11-04 13:20:04 -06:00
Babel Bot
12c6db6fae
Add v7.12.6 to CHANGELOG.md [skip ci]
2020-11-04 11:10:33 +00:00
Nicolò Ribaudo
4a6fed1335
v7.12.6
2020-11-04 12:05:56 +01:00
Nicolò Ribaudo
dd5a977048
Revert "Mark ThisExpression and Super as Purish" ( #12307 )
2020-11-04 11:50:46 +01:00
Nicolò Ribaudo
7a8c63d8db
Update lerna.json ( #12304 )
2020-11-03 23:08:15 -05:00
Mark
4141793a37
babel-node: support require flag in repl mode ( #12297 )
2020-11-04 01:39:33 +01:00
Babel Bot
487f82e446
Add v7.12.5 to CHANGELOG.md [skip ci]
2020-11-03 22:35:34 +00:00
Nicolò Ribaudo
a41da05ce9
v7.12.5
2020-11-03 23:30:17 +01:00
Joel Van Horn
f4edf62f6b
Fix typo [skip ci] ( #12294 )
2020-11-01 13:31:50 +01:00
Álvaro Mondéjar
b649f8d192
Fix packages documentation README links. ( #12289 )
2020-10-30 21:19:21 +01:00
Huáng Jùnliàng
8ee4345a61
chore: avoid duplicate coverage data upload ( #12187 )
2020-10-30 09:28:38 -05:00