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
Nicolò Ribaudo
f31a3a6cc6
v7.12.4
2020-10-19 21:04:23 +02:00
Nicolò Ribaudo
02fc9e835c
Revert "add .js extension to react runtime for JSX transform" ( #12213 )
2020-10-19 19:50:43 +02:00
Nicolò Ribaudo
ed498a772b
Use workspace:* for devDependencies (again) ( #12217 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2020-10-19 18:32:06 +02:00
Nicolò Ribaudo
63567f0667
Run jest's tests in the e2e tests ( #12202 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2020-10-16 23:19:39 +02:00
Babel Bot
9f83b5a4df
Add v7.12.3 to CHANGELOG.md [skip ci]
2020-10-16 21:15:45 +00:00
Nicolò Ribaudo
2562c8d8fa
v7.12.3
2020-10-16 23:11:14 +02:00
Huáng Jùnliàng
1964c961ae
chore: update test262 tests ( #12204 )
2020-10-16 16:55:10 -04:00
Mongkii
7870465b62
[ts] Add parser test: destructuring-with-annotation-newline ( #12203 )
2020-10-16 16:45:11 +02:00
Huáng Jùnliàng
a9cd0945b7
fix: properly wrap private class methods ( #12192 )
2020-10-16 10:12:50 -04:00
Nicolò Ribaudo
31396b286d
Make loadPartialConfig's options optional ( #12200 )
2020-10-16 15:46:49 +02:00
Brian Ng
47250ffa65
[ts] Disallow invalid type annotations in ExpressionStatements ( #12185 )
...
* Fix regression with invalid type annotations in ExpressionStatements
2020-10-16 10:20:53 +02:00
Babel Bot
ee1f742035
Add v7.12.2 to CHANGELOG.md [skip ci]
2020-10-16 06:51:08 +00:00
Nicolò Ribaudo
a534d8746e
v7.12.2
2020-10-16 08:47:05 +02:00
Nicolò Ribaudo
4fe8c3acc5
Revert "Fix: check if param is assignable when parsing arrow return type annotation" ( #12198 )
...
This reverts commit 84987a00e632e65bdafdf7f70df46ded7fb083c8.
2020-10-16 08:16:37 +02:00
Babel Bot
93e7261e0f
Add v7.12.1 to CHANGELOG.md [skip ci]
2020-10-15 22:43:36 +00:00
Nicolò Ribaudo
7f4b83833f
v7.12.1
2020-10-16 00:36:30 +02:00
Nicolò Ribaudo
b877726a89
Don't force chokidar@2 to be downloaded from registry.npmjs.org ( #12182 )
2020-10-16 00:30:20 +02:00
Huáng Jùnliàng
19dc038907
Guard against yarn-issue-1882 ( #12188 )
2020-10-16 00:15:11 +02:00
Nicolò Ribaudo
9018716905
Allow importing @babel/runtime/package ( #12184 )
2020-10-15 23:15:03 +02:00
Huáng Jùnliàng
eec01fe078
chore: use workspace:* for dev deps ( #12186 )
2020-10-15 14:03:50 -04:00
Nicolò Ribaudo
84987a00e6
Reland "Fix: check if param is assignable when parsing arrow return type annotation" ( #12183 )
...
* Reland "Fix: check if param is assignable when parsing arrow return type annotation"
This reverts commit 91a7a64b4b0c30ab1fdfbb12f77522afa2285ec4.
* Mark `RestElement` as assignable
2020-10-15 11:32:37 -04:00
Nicolò Ribaudo
6cb0056519
Remove unused dependencies and devDependencies ( #12175 )
2020-10-15 10:01:30 +02:00
Nicolò Ribaudo
2d43341019
Update @babel/* deps ( #12174 )
2020-10-15 01:08:18 +02:00
Nicolò Ribaudo
c9990d6034
Update CHANGELOG.md
2020-10-14 22:30:38 +02:00
Babel Bot
65613eb89d
Add v7.12.0 to CHANGELOG.md [skip ci]
2020-10-14 20:07:47 +00:00
Nicolò Ribaudo
726154c78e
v7.12.0
2020-10-14 21:48:45 +02:00
Nicolò Ribaudo
9ad0d45b41
Update version check in proposal-class-static-block plugin
2020-10-14 21:48:05 +02:00
Nicolò Ribaudo
49fe00cc0d
Update version check in proposal-class-static-block plugin
2020-10-14 21:46:34 +02:00
Nicolò Ribaudo
02975b9ae1
Use a yarn plugin to manage releases ( #12138 )
2020-10-14 21:43:53 +02:00
Nicolò Ribaudo
91a7a64b4b
Revert "Fix: check if param is assignable when parsing arrow return type annotation" ( #12173 )
...
This reverts commit 136e6301cbfa9448cfb20396f82f93f0d3e10c12.
2020-10-14 21:42:05 +02:00
Sven Sauleau
af8e0facc1
Parse import-assertions ( #12139 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-10-14 21:18:16 +02:00
iamfotx
59d97d9bca
[parser] Better error message for missing number exponent ( #12072 )
...
* fix(babel-parser) better error message for missing number exponent after 'e'
* fix(babel-parser) requested changes
* msg
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-10-14 21:17:38 +02:00
Huáng Jùnliàng
f697e7995d
Transform class static block ( #12143 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-10-14 21:16:24 +02:00
Huáng Jùnliàng
3ccca88178
Parse class static block ( #12079 )
...
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-10-14 21:16:24 +02:00
Brian Ng
6830c90ac9
Support TypeScript mapped type 'as' clauses ( #12129 )
2020-10-14 20:16:22 +02:00
Nicolò Ribaudo
3fd963fdc8
[ts] Add support for template interpolations in types ( #12131 )
...
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-10-14 20:15:42 +02:00