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
Huáng Jùnliàng
09c0ee0a8b
chore: bump Jest to v26 ( #12190 )
2020-10-30 12:06:14 +01:00
Huáng Jùnliàng
766df9c369
fix: support string assertion key in assert entries ( #12281 )
...
* fix: support string assertion key in assert entries
* Update packages/babel-parser/src/parser/statement.js
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2020-10-29 15:10:20 -04:00
Sosuke Suzuki
963537d5f5
[ts] Make ImportDeclaration always have importKind ( #12170 )
2020-10-29 20:07:10 +01:00
Sosuke Suzuki
ff6c3792bb
Make assertions optional and update AST spec ( #12280 )
2020-10-29 10:21:52 -05:00
流浪大法师
f5f9f51b5e
docs: Fix packages/babel-standalone/README.md website link[skip ci] ( #12277 )
2020-10-29 10:25:51 -04:00
Sosuke Suzuki
d04b4dd116
fix(babel-types): Add assertions to ExportAllDeclaration ( #12273 )
2020-10-29 08:24:56 -05:00
Huáng Jùnliàng
b7754d3c82
fix: disallow import assertionts in export without from ( #12264 )
2020-10-28 07:07:20 +01:00
Huáng Jùnliàng
a8c66f4680
Handle exprAllowed before ObjectLike is parsed ( #12267 )
...
* fix: disallow expression after `}` is consumed in parseObjectLike
* refactor: avoid accessing this.prodParam in context update
2020-10-27 20:25:50 -04:00
Huáng Jùnliàng
f04bbf62b5
chore: test on node 15 ( #12265 )
2020-10-27 17:33:43 -04:00
Huáng Jùnliàng
750d869db9
chore: bump compat-table and electron-to-chromium ( #12244 )
2020-10-27 13:03:07 -04:00
Huáng Jùnliàng
ea2892fefc
add declare to class properties type annotations ( #12257 )
...
* add declare to class properties type annotations
* chore: use preset-flow
2020-10-27 10:05:01 -04:00
coderaiser
9eb661b285
fix: babel-types: ImportDeclaration: add assertions ( #12263 )
2020-10-27 08:58:25 -05:00
Nicolò Ribaudo
df908fc63b
Mark ThisExpression and Super as Purish ( #12251 )
...
* Mark `ThisExpression` as `Purish`
The other purish types are functions and literals, so I
guess it means "it doesn't have side effects"
* Super & tests
* Fix tests
2020-10-27 13:12:49 +01:00
Ian Craig
87a30524f6
Correctly indent multiline comments when retainLines: true ( #12260 )
2020-10-27 12:46:25 +01:00
Huáng Jùnliàng
5b48f40a08
Polish parser errors ( #12258 )
...
* polish: update AwaitNotInAsyncFunction message
* polish: update YieldInParameter error message
* Apply suggestions from code review
Co-authored-by: Brian Ng <bng412@gmail.com>
* update test fixtures
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-10-26 20:55:04 -04:00
Huáng Jùnliàng
2782a549e9
Refactor yield await classification ( #12230 )
...
* fix: incomplete ParamKind declaration
* refactor: add expression scope handler
* test: update test262 allowlist
* chore: cleanup
* fix: push expression scope for function body
* fix: push new expression scope for initializer and static block
* test: add more test cases
* fix flow error
* refactor: remove unecessary expression scope
* fix: parameter initializer error should not cross expression scope boundary
* chore: cleanup outdated comments
* fix: do not record async arrow error on ParameterDeclaration
* Update packages/babel-parser/src/util/expression-scope.js
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
* polish: clear ancestry declaration error on validate
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-10-26 11:42:02 -04:00
Sosuke Suzuki
faaebfe91f
Support Import Assertions for re-export statement ( #12249 )
2020-10-26 15:18:45 +01:00
Sosuke Suzuki
f5bd9f2013
Allows the interface to be used as an Identifier for flow plugin ( #12254 )
2020-10-26 08:50:57 -05:00
Nicolò Ribaudo
a967910b8b
Throw a TypeError when reassigning a const ( #12252 )
2020-10-25 22:30:28 +01:00
Nicolò Ribaudo
b4ae7b7893
Update to Browserslist 4.14.5 ( #12241 )
2020-10-23 21:15:49 -04:00
Brian Ng
c00bb14f79
[ts] Error on invalid type casts in JSX ( #12221 )
2020-10-23 08:09:35 -05:00
Huáng Jùnliàng
8b579a27dc
feat: support bigInt in numeric-separator transform ( #12240 )
2020-10-22 16:49:31 -04:00
Huáng Jùnliàng
d6816f0e6c
fix: support optionalCall in replace super handler ( #12238 )
2020-10-22 16:09:19 -04:00
Brian Ng
d51aa6d761
[ts] Allow optional binding pattern parameters within types/interfaces ( #12227 )
2020-10-21 08:16:43 -05:00
Kai Cataldo
ddb7e05f07
docs: add note about TypeScript in ESLint packages ( #12222 )
2020-10-20 23:46:56 +02:00
Sosuke Suzuki
f1bc314c79
Fix parsing of imports with module string name in flow plugin ( #12224 )
2020-10-20 23:46:12 +02:00
hirochachacha
136bf231ea
packages/babel-standalone: make data-type="module" option avilable without data-presets option ( #12226 )
...
* use "env" preset instead of "es2015" preset
* configure "env" preset if data-type="module" is given
2020-10-20 18:01:53 +02:00
Nicolò Ribaudo
86f535b863
Update CHANGELOG.md
2020-10-19 21:21:43 +02:00
Babel Bot
e7c0bfe49e
Add v7.12.4 to CHANGELOG.md [skip ci]
2020-10-19 19:09:05 +00:00