Huáng Jùnliàng
90d5eb7f2f
fix: sync default_extensions to babel-cli usage ( #13508 )
2021-06-25 07:58:28 -04:00
Tony Gorez
b0fe6bdbc3
chore(parser): add test to handle optional paramteter in async call ( #13504 )
...
* chore(parser): add test to handle optional paramteter in async call
* chore(parser): add flow test
* chore(parser): add ts test
2021-06-23 11:11:06 -04:00
Huáng Jùnliàng
3840893b48
Add typeParameters to tagged template visitor keys ( #13500 )
...
* refactor: move ES2022 AST nodes to core
* fix: add typeParameters to visitor keys
* chore: update artifacts
* fix: add typeAnnotation to visitor keys
2021-06-22 17:40:42 -04:00
overlookmotel
5ac5e3572f
Fix const violations in ESM imports when transformed to CJS ( #13258 )
2021-06-22 19:33:46 +02:00
Bogdan Savluk
47ad54a057
convert @babel/preset-env to typescript ( #13217 )
...
* babel-preset-env flowts rename
* babel-preset-env flowts convert
* babel-preset-env fixes
* babel-preset-env
* make generate-tsconfig
* Minimize diff
* Fix many type errors
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-06-22 10:58:08 -04:00
Babel Bot
268e4ca0de
v7.14.7
2021-06-21 21:44:55 +00:00
Lively
8ae0efe98a
Don't hoist template literal keys in object-rest-spread ( #13483 )
...
* remove hoisting when using template strings in proposal-object-rest-spread
* remove const from test
2021-06-21 22:48:12 +02:00
Huáng Jùnliàng
5145c98a73
Simplify token context ( #13450 )
...
* refactor: unify tc.brace and tc.templateQuasi
* refactor: remove unused context check
* perf: reduce arrayPrototype call and hoist variables
2021-06-21 10:51:00 -04:00
Nicolò Ribaudo
8c229e7657
Bump core-js packages ( #13496 )
2021-06-21 09:34:49 -05:00
Tony Gorez
101249f3aa
refactor(parser): remove refNeedsArrowPos ( #13419 )
...
* fix(parser:expression): remove refNeedsArrowPos in parseExprListItem
* feat: use refExpressionErrors to catch optional parameters
* feat: delete useless refNeedArrowPos
* fix: forgotten deletion
* fix: lint and factorize
* fix: delete useless comment
* fix: review corrections
* fix: review corrections pt2
* fix: review correction pt2
* fix: nit correction
* fix: update types
* Update packages/babel-parser/src/parser/util.js
* fix: add invariant comment in flow and ts file
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-06-19 10:40:52 +02:00
Lively
eb22659817
remove unnecessary hosting when using template strings ( #13482 )
2021-06-17 21:43:08 -04:00
Huáng Jùnliàng
dddb4133d2
fix: remove traverse trap on NODE_ENV == "test" ( #13475 )
2021-06-17 16:29:56 +02:00
Sagiv ben giat
a3c7497eb7
fix: tagged template incorrect receiver ( #13395 )
...
* fix: tagged template incorrect receiver
* review changes
* func exp instead of arrow
* review comments
* update tests output
* swap arrow funcs to regular funcs
Co-authored-by: sagiv.bengiat <sagiv.bengiat@appsflyer.com>
2021-06-15 12:01:07 -04:00
Babel Bot
1774e2aaef
v7.14.6
2021-06-14 21:45:36 +00:00
Sosuke Suzuki
f79e9ffe44
Follow up formatting by Prettier 2.3.1 ( #13463 )
2021-06-14 19:30:32 +02:00
Sosuke Suzuki
ad693cc0a0
Update prettier to 2.3.1 ( #13460 )
2021-06-14 17:33:58 +02:00
Bogdan Savluk
66cbd6091e
babel-plugin-transform-spread add missing argument in build calls ( #13459 )
...
* babel-plugin-transform-spread add missing argument in build calls
* update tests for babel 8 test
2021-06-14 11:33:19 -04:00
Lively
950d3519e8
fix destructuring of empty string ( #13444 )
...
* fix destructuring empty string
* use variable on expect
* overwrite all tests
* fix test cases
2021-06-14 17:07:12 +02:00
Lively
903b600522
fix: reference to class expression in private method ( #13429 )
...
Co-authored-by: Henry Zhu <hi@henryzoo.com>
Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-06-14 17:06:22 +02:00
Huáng Jùnliàng
6c8b2336f6
Faster readRegexp ( #13453 )
2021-06-10 19:00:21 -04:00
Sosuke Suzuki
0eb2853732
[ts] Support override modifiers for parameter properties ( #13428 )
2021-06-10 22:29:38 +02:00
Huáng Jùnliàng
b1fe831e4a
fix: disallow JSX tag after non-null assertion ( #13449 )
2021-06-10 15:07:47 -04:00
Nicolò Ribaudo
e914d1219f
Correctly transform spreads of arrays with holes ( #13439 )
...
* Correctly transform spreads of arrays with holes
* Use `arrayWithoutHoles` helper
* Add exec test
* Update for Babel 8
Co-authored-by: phapp88 <phapp1988@gmail.com>
2021-06-10 12:34:42 +02:00
Babel Bot
7a2a928398
v7.14.5
2021-06-09 23:03:30 +00:00
Nicolò Ribaudo
a59522df83
Disallow dependency cycles ( #13442 )
2021-06-10 00:48:57 +02:00
Huáng Jùnliàng
d3f4c22c28
update test fixtures ( #13440 )
...
* update test fixtures
* chore: typo
2021-06-09 11:48:29 -04:00
Huáng Jùnliàng
b9c1884a58
Reduce exprAllowed usage ( #13431 )
2021-06-09 16:36:09 +02:00
Nicolò Ribaudo
9252da782b
Update @nicolo-ribaudo/chokidar-2 ( #13438 )
2021-06-09 16:32:13 +02:00
Federico Ciardi
a64d08c101
fix(parser): correctly parse record and tuple tokens ( #13418 )
...
* fix(parser): correctly parse token location for `#{` and `#[`
* fix: `bar` tokens
* fix: don't parse record and tuple pipe closing tokens as operators
2021-06-08 20:58:48 -04:00
Eyoatam Tamirat
56db172b0e
fix(@babel/parser): fix tokenizer context update code ( #13422 )
...
* fix(`@babel/parser`): fix `_function` update code
* fmt
2021-06-08 08:26:50 -04:00
Nicolò Ribaudo
f6f37fb8cd
Update packages related to compat data ( #13432 )
...
* Update `core-js@3`
* Update `compat-table`
* Update pinned `caniuse-lite` and `electron-to-chromium`
* Regenerate fixtures
* Regenerate Babel 8 fixtures
2021-06-08 08:24:16 -04:00
Huáng Jùnliàng
4eda1c8605
chore: bump eslint and its plugins ( #13412 )
2021-06-03 23:42:32 -04:00
Huáng Jùnliàng
8720919665
fix: hoist variable declaration within do block ( #13122 )
...
* fix: hoist variable declaration within do block
* test: add input for variable-declaration-start
* test: actually write a test for this issue
* make prettier happy
2021-06-03 21:39:19 -04:00
Tony Gorez
a0369fdbfa
fix: throw when async() call param is object with assignement ( #13410 )
2021-06-03 16:12:15 +02:00
Daniel Tschinder
176bc24312
[Babel 8] Remove optional field from MemberExpression ( #13407 )
2021-06-03 16:08:34 +02:00
Huáng Jùnliàng
b8175ec060
Relax import assertion key-is-type constraint ( #13409 )
2021-06-02 07:51:56 -04:00
Huáng Jùnliàng
b281fe352c
Use set in parser scope ( #13408 )
...
* chore: rename benchmark
* perf: back parser scope names storage by set
* chore: add benchmark
2021-06-01 10:35:19 -04:00
Huáng Jùnliàng
cbad50ac1d
Faster checkReservedWord ( #13386 )
...
* perf: faster parser scope check
* perf: early return for identifier length > 10
* perf: early return for normal identifier names
* chore: add benchmark
* Update packages/babel-parser/src/parser/expression.js
2021-06-01 08:42:23 -04:00
Huáng Jùnliàng
ae3f5d905a
Back parser state exportedIdentifiers by set ( #13406 )
2021-06-01 07:17:30 -04:00
lightmare
b397aca024
fix generate-helpers failing in URL-encoded path ( #13404 )
...
HELPERS_FOLDER.pathname may be URL-encoded, if the working tree's
absolute path contains spaces, some reserved characters, or anything
beyond ASCII.
readFile accepts a plain String or URL for the path, but does not
automatically decode URL-encoded Strings.
2021-05-31 21:45:54 +02:00
Nicolò Ribaudo
08772e28f2
Update polyfill plugins ( #13373 )
2021-05-31 18:47:13 +02:00
Kristoffer K
140ec5aa5c
chore: setup Yarn constraints ( #13363 )
2021-05-31 18:46:03 +02:00
Yosuke Ota
0b29b5c2c0
Add support for d flag of regex literals in parser ( #13396 )
2021-05-31 08:34:53 -04:00
Babel Bot
219fd3ab1f
v7.14.4
2021-05-28 16:50:09 +00:00
Alan Orozco
f35513fbaa
Hoist omitted keys from object spread operator ( #13384 )
2021-05-28 18:32:30 +02:00
Sosuke Suzuki
c6bebfe653
[ts] Remove override modifier ( #13381 )
2021-05-27 09:21:22 -05:00
Nicolò Ribaudo
1341e560ff
Skip flow/typecasts/3 test on Node.js 6 ( #13382 )
2021-05-27 09:20:45 -05:00
Huáng Jùnliàng
079f8cd5bc
fix: disallow surrogate in the end of contextual name ( #13377 )
2021-05-26 22:57:59 -04:00
Tobias Koppers
dbfa87740c
Improve performance ( #13376 )
2021-05-26 20:04:58 -05:00
Bogdan Savluk
4ee6a27780
convert @babel/helper-create-class-features-plugin to TS ( #13214 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-05-26 15:49:35 +02:00