14600 Commits

Author SHA1 Message Date
Babel Bot
82a2ca82ca
Update test262 (#13347)
* chore: update test262 to 5e0fc43c6641e6655632ca73479c79f1dcb86a17

* Enable `importAssertions` parser plugin

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-05-21 10:40:53 -04:00
Nicolò Ribaudo
c3e99a0cfb
Make Renovate run yarn dedupe after updating dependencies (#13348)
* Make Renovate run `yarn dedupe` after updating dependencies

* Update renovate.json

Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>

Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
2021-05-21 10:39:08 -04:00
Nicolò Ribaudo
cd7f40a564
[e2e-jest] Remove t.Noop from @types/babel__traverse (#13342) 2021-05-21 14:10:11 +02:00
renovate[bot]
205e4bf3e4
chore(deps): update actions/github-script action to v4 (#13344)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-05-21 01:06:26 +02:00
Will Binns-Smith
b4c798e754
[ts] Insert export {} when necessary to imply ESM (#13314) 2021-05-21 00:54:39 +02:00
renovate[bot]
f0b9b25a23
Configure Renovate (#13337)
Co-authored-by: Matthieu MOREL <mmorel-35@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-05-21 00:43:14 +02:00
Bogdan Savluk
8b1bcd1079
convert @babel/helper-compilation-targets to typescript (#13218)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-05-21 00:20:42 +02:00
François Servant
12190042e6 Fix error when parsing ignored files with @babel/eslint-parser (#13338)
* fix(babel-eslint-parser): prevent typeerror in maybeParse
* fix(babel-eslint-parser): prevent other typeerrors in convert modules
* test(babel-eslint-parser): test maybeParse when file is ignored
* refactor(babel-eslint-parser): use fallback options instead of typeerror protections

Co-authored-by: devfservant <43757707+devfservant@users.noreply.github.com>
Co-authored-by: François Servant <francois.servant.e@thalesdigital.io>
2021-05-20 00:20:58 +02:00
Huáng Jùnliàng
461ba2531a
refactor: add parse*Literal parser routines (#13333)
* refactor: simplify parseLiteral interface

* refactor: extract specific methods on parsing literals

* fix: avoid StringLiteral type comparison

* add test cases

* fix: remove redundant node

* Update packages/babel-parser/src/plugins/flow/index.js

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>

* update test fixtures

* fix: refine parseLiteral typings

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
2021-05-19 16:00:24 -04:00
Bogdan Savluk
053f94fc77
convert @babel/plugin-transform-classes to typescript (#13220)
* babel-plugin-transform-classes flowts rename

* babel-plugin-transform-classes flowts convert

* babel-plugin-transform-classes

* babel-plugin-transform-classes add optional paramter

* babel-plugin-transform-classes

* babel-plugin-transform-classes

* make generate-tsconfig

* yarn install

* Fix type checking

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-05-19 16:15:09 +02:00
Huáng Jùnliàng
2a5b23186a
perf: minimize identifier lookahead when parsing let (#13328) 2021-05-18 08:19:58 -04:00
Babel Bot
f7a9f10ba4 Add v7.14.3 to CHANGELOG.md [skip ci] 2021-05-17 20:45:12 +00:00
Babel Bot
1487a46dd5 v7.14.3 2021-05-17 20:26:25 +00:00
Nicolò Ribaudo
f85c6437c5
Pass assumptions set in presets to plugins (#13321) 2021-05-17 22:00:01 +02:00
Huáng Jùnliàng
0d0950f341
fix: preserve tokensLength in tryParse (#13326)
* fix: preserve tokensLength in tryParse

* Apply suggestions from code review

Co-authored-by: Brian Ng <bng412@gmail.com>

Co-authored-by: Brian Ng <bng412@gmail.com>
2021-05-17 15:32:12 -04:00
Nicolò Ribaudo
9d620c2d42
[babel 8] Move ESLint parsing to a Worker (#13199) 2021-05-17 17:04:10 +02:00
Nicolò Ribaudo
c2181343f1
Parse let declarations whose id starts with \ (#13325) 2021-05-17 08:46:59 -05:00
Nicolò Ribaudo
229a5481f4
Remove warnings about loose mode for class feats in tests (#13301) 2021-05-15 00:14:02 +02:00
Nicolò Ribaudo
989aac2a4c
Don't duplicate the base class when using constantSuper (#13303) 2021-05-15 00:02:46 +02:00
Huáng Jùnliàng
3195883923
chore: add class-static-block test262 mapping (#13313) 2021-05-14 17:11:10 -04:00
Huáng Jùnliàng
c1c8d5e1db
update yarn lockfile (#13311) 2021-05-14 14:03:08 -04:00
Nicolò Ribaudo
8732dd39c6
Compile static blocks without the intermediate priv field step (#13297)
* Remove ordering constraints for `static-blocks` plugin

* Handle static blocks directly in `helper-create-class-features-plugin`
2021-05-14 11:35:59 -04:00
Huáng Jùnliàng
b3d35cd412
[Babel 8]: remove module attributes parser/generator support (#13308)
* breaking: remove support of moduleAttributes

* Update packages/babel-parser/src/plugin-utils.js

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

* chore: remove todo comments

* make prettier happy

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-05-14 09:55:40 -04:00
Bogdan Savluk
b670c11070
convert @babel/standalone to typescript (#13212)
* babel-standalone flowts rename

* babel-standalone flowts convert

* babel-standalone - update rollup plugin to support ts files

* babel-standalone code generation update

* babel-standalone

* babel-standalone eslint fixes

* babel-standalone tsconfig.json

* babel-standalone

* babel-standalone tsconfig related fix

* make generate-tsconfig

* yarn install

* babel-standalone use fs.existsSync

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-05-14 09:54:09 -04:00
Bogdan Savluk
bb70ea47f5
convert @babel/cli to typescript (#13213)
* babel-cli flowts rename

* babel-cli flowts convert

* babel-cli

* yarn install
2021-05-14 09:32:38 +02:00
Babel Bot
5def29d1ca
chore: update test262 to 4f50cbfc771ffe41ac5e4a9d2f12b1d3a5d3b938 (#13310) 2021-05-13 20:37:26 -04:00
Bogdan Savluk
4bf5f45d42
convert @babel/plugin-transform-runtime to typescript (#13216)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-05-13 22:27:57 +02:00
Bogdan Savluk
acfff5d7fe
convert @babel/plugin-transform-typescript to typescript (#13222)
* babel-plugin-transform-typescript flowts rename

* babel-plugin-transform-typescript flowts convert

* babel-plugin-transform-typescript

* babel-plugin-transform-typescript type fixes

* babel-plugin-transform-typescript

* make generate-tsconfig

* yarn install

* babel-plugin-transform-typescript

* babel-plugin-transform-typescript avoid typecast
2021-05-13 14:37:34 -04:00
Bogdan Savluk
72371cb637
convert @babel/helper-create-regexp-features-plugin to typescript (#13215) 2021-05-12 23:18:20 -04:00
Nicolò Ribaudo
e21abad016
Add test for fixed block scoping issue (#13304) 2021-05-12 20:16:10 -05:00
Bogdan Savluk
379bc775ed
convert @babel/plugin-transform-react-jsx to typescript (#13221)
* babel-plugin-transform-react-jsx flowts rename

* babel-plugin-transform-react-jsx flowts convert

* babel-plugin-transform-react-jsx

* babel-plugin-transform-react-jsx fix

* make generate-tsconfig

* yarn install

* babel-plugin-transform-react-jsx remove unused typecast
2021-05-12 21:15:31 -04:00
Babel Bot
7c9f618dfc Add v7.14.2 to CHANGELOG.md [skip ci] 2021-05-12 17:10:23 +00:00
Babel Bot
7512095c84 v7.14.2 2021-05-12 16:58:57 +00:00
Huáng Jùnliàng
9e241fc180
Better error for export * as ns without the correct plugin (#13296) 2021-05-12 00:40:13 +02:00
Clark Jacobsohn
cca97d1e78
Fix: Only create @babel/node IPC channel when needed (#13295)
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-05-11 23:59:07 +02:00
Huáng Jùnliàng
875fc8e693
[babel 8] Do not skip requeued paths (#13291) 2021-05-11 23:55:23 +02:00
Sosuke Suzuki
b2d9156cc6
Update to Prettier 2.3 (#13288) 2021-05-10 15:34:13 +02:00
Trinangkur Chatterjee
5ae3a6c2a4
Update lodash version for fixing security vulnerability (#13289)
* Update lodash version for fixing security vulnerability

* Update yarn.lock
2021-05-10 09:20:23 -04:00
Sosuke Suzuki
1d54419ec4
Parse attributes of import expression with estree plugin (#13284)
* Parse attributes of import expression with estree plugin

* Add tests

* Update packages/babel-parser/src/types.js

Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>

Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-05-07 16:37:20 -04:00
serut
e74b3fb1c6
[DOC] Add missing Monorepo configuration (#13253)
* [DOC] Add missing Monorepo configuration

* Update eslint/babel-eslint-parser/README.md

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>

* [DOC] Unify monorepo config file

* [DOC] Clean monorepo configuration

* [DOC] Monorepo conf when eslint runned by package

Co-authored-by: Federico Ciardi <fed.ciardi@gmail.com>
2021-05-07 13:53:01 -04:00
Nicolò Ribaudo
4c725f8cf8
Support objects from other contexts in t.valueToNode (#13275) 2021-05-07 12:34:30 +02:00
Babel Bot
4c1b8cc751
chore: update test262 to c11d6b00bc2c53323fe26a5813a720fd74cd25ad (#13276) 2021-05-07 10:27:04 +02:00
Huáng Jùnliàng
a8fea4037d
Faster identifier tokenizing (#13262)
* add benchmark

* perf: faster identifier tokenizing

- Mover iterator identifier parsing to the Flow plugin
- If the character is an identifier start, pass it to readWord1
2021-05-06 18:47:19 -04:00
Nicolò Ribaudo
1879491af7
[eslint] Don't crash on multiple @babel/parser copies (#13274) 2021-05-06 23:31:19 +02:00
Stuart Cook
68bc4dfd31
Print parentheses around identifier let where necessary (#13269) 2021-05-06 21:10:45 +02:00
Huáng Jùnliàng
96fce81438
chore: bump eslint-visitor-keys (#13272) 2021-05-06 12:23:21 -04:00
Huáng Jùnliàng
a387973821
Refactor private name tokenizing (#13256)
* add benchmark

* refactor: create tt.privateName token for private names

* add backward compat privateName = hash + name to Babel 7

* perf: get private name SV from token value

* chore: tweak benchmark file

* chore: update test fixtures

* convert tt.privateName to PrivateIdentifier

* perf: avoid most isPrivateName call

* Update packages/babel-parser/src/parser/expression.js

Co-authored-by: Justin Ridgewell <justin@ridgewell.name>

* perf: use inlinable codePointAtPos

* make prettier happy

Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
2021-05-06 09:46:09 -04:00
Huáng Jùnliàng
278193b6f7
fix: update chunkStart on missing unicode escape (#13261) 2021-05-06 08:31:11 -04:00
Nicolò Ribaudo
9440318309
Update Rollup plugins (#13265) 2021-05-06 08:53:30 +02:00
Yen-Wei Liu
187094b9a6
[babel-types] Update matchesPattern to account for this (#13264) 2021-05-05 23:08:43 +02:00