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
813f2a3cce
Add v7.14.4 to CHANGELOG.md [skip ci]
2021-05-28 17:00:38 +00: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
Babel Bot
612f19fbdc
chore: update test262 to d454b8389b07dae252c008adb64ae242b812c801 ( #13385 )
2021-05-28 09:27:05 +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
dependabot[bot]
342fec1a78
Update compat data dependencies ( #13368 )
...
* Bump browserslist from 4.16.4 to 4.16.5
Bumps [browserslist](https://github.com/browserslist/browserslist ) from 4.16.4 to 4.16.5.
- [Release notes](https://github.com/browserslist/browserslist/releases )
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md )
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.4...4.16.5 )
Signed-off-by: dependabot[bot] <support@github.com>
* Update compat data packages
* Update tests
* Add to resolutions
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-05-26 15:27:13 +02:00
renovate[bot]
2b06883a5b
chore(deps): update dependency jest to v27 ( #13375 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-05-26 15:26:47 +02:00
fisker Cheung
9332579fc0
Fix @babel/plugin-syntax-private-property-in-object README.md ( #13372 )
...
[skip ci]
2021-05-26 11:22:43 +02:00
Huáng Jùnliàng
acf2a10899
Faster tokenizer lookahead ( #13341 )
...
* refactor: simplify token context structure
* add benchmark
* perf: return a sub-state on tokenizer lookahead
* Update packages/babel-parser/src/tokenizer/index.js
Co-authored-by: Brian Ng <bng412@gmail.com>
* Update packages/babel-parser/src/tokenizer/index.js
Co-authored-by: Brian Ng <bng412@gmail.com>
* remove irrelevant comment
* fix: guard curPosition with isLookahead
* add test cases
Co-authored-by: Brian Ng <bng412@gmail.com>
2021-05-25 21:12:38 -04:00
Daniel Tschinder
b1f57e5fb5
Only allow TSParameterProperty in ClassMethod parameters ( #13349 )
2021-05-23 20:14:21 +02:00
Sosuke Suzuki
d6a5f6190d
[ts] Default typeAnnotation of TSTypePredicate to null ( #13354 )
2021-05-23 20:12:42 +02:00
Kristoffer K
533e63af52
chore(eslint-tests): add missing dependency @babel/core ( #13355 )
2021-05-23 17:59:14 +02:00
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