Nicolò Ribaudo
22b0eb038f
[ts] Enforce order for the override modifier ( #13209 )
...
* [ts] Enforce order for the `override` modifier
* generator
* Add more checks
* Update TS tests
2021-04-28 18:21:31 +02:00
George Zahariev
8433cd0c05
Support parsing Flow's Optional Indexed Access Types ( #13224 )
2021-04-28 18:21:31 +02:00
Nicolò Ribaudo
57daba85aa
Parse string export names by default (moduleStringNames) ( #13195 )
...
* Parse string epxort names by default (`moduleStringNames`)
* Remove remaining references
2021-04-28 18:21:31 +02:00
Huáng Jùnliàng
ceaab0bae7
Parse class fields and private methods by default ( #13175 )
...
* feat: materialize class features
* chore: move testcases to es2022
* chore: update test fixtures
* chore: remove classPr\w+ from options.json
* chore: remove empty options.json
* update flow test allowlist
* update typescript allowlist
2021-04-28 18:21:31 +02:00
Sosuke Suzuki
b116865077
Use this.isThisParam in typescript parser ( #13163 )
2021-04-28 18:21:31 +02:00
Sosuke Suzuki
c949660b34
babel-parser: Deep freeze for makeErrorTemplates ( #13142 )
2021-04-28 18:21:31 +02:00
Sosuke Suzuki
7484b51e56
Support TS 4.3 get/set type members ( #13089 )
...
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-04-28 18:21:31 +02:00
Sosuke Suzuki
2521c666f7
Add internal ESLint rule for consistent parser error messages ( #13130 )
2021-04-28 18:21:31 +02:00
Pig Fang
bf14a106ad
Support TS 4.3 override syntax in class ( #13097 )
...
* support TS 4.3 `override` syntax in class
* fix types
* fix types
* tweak error message
* update TypeScript commit
* split tests
* add more tests
* update allowlist
* disallow `override` with `declare`
* disallow `override` in non-sub class
* update TypeScript allowlist
* rename error message key
* add more tests
2021-04-28 18:21:31 +02:00
Sosuke Suzuki
f8aa32f767
Support parsing Flow's Indexed Access Types ( #13053 )
2021-04-28 18:21:31 +02:00
Pig Fang
eac0259ce2
Support TS 4.3 static index signature in classes ( #13096 )
2021-04-28 18:21:31 +02:00
Sosuke Suzuki
0ee98139a6
Introduce parser error codes ( #13033 )
2021-04-28 18:21:31 +02:00
Chris West
d0fcbfccdd
perf(core): check files before interacting with them ( #13090 )
...
* perf(core): check files before interacting with them
* refactor: inline fs.exists.sync -> nodeFs.existsSync
2021-04-28 00:41:18 +02:00
Huáng Jùnliàng
47537688d2
Improve isIdentifierName performance ( #13211 )
2021-04-27 23:04:48 +02:00
Huáng Jùnliàng
88da2e80ed
perf: avoid loadFullConfig when creating block hoist plugin ( #13223 )
...
* perf: avoid loadFullConfig when creating block hoist plugin
* address code review comments
2021-04-27 14:39:18 -04:00
Nicolò Ribaudo
a0e20ac5df
Simplify the wrapRegExp helper for named groups ( #13201 )
2021-04-26 23:39:32 +02:00
Stuart Cook
026e7f5a95
Prevent ForOfStatement from printing the forbidden sequence "for ( async of" ( #13208 )
2021-04-26 11:34:10 -04:00
Simon Lydell
504d22d29b
babel-highlight: Upgrade to js-tokens@7 ( #13203 )
...
Support for ES2021: The `||=`, `&&=` and `??=` operators, as well as
undescores in numeric literals (`1_000`).
2021-04-26 16:56:59 +02:00
Stuart Cook
3d4b801bb9
Simplify the special-case printing of single-param arrow functions ( #13204 )
...
* Simplify the special-case printing of single-param arrow functions
* Update test fixtures with single-param arrow functions
* Add some explicit snapshot tests for known edge-cases
2021-04-26 10:26:45 -04:00
Huáng Jùnliàng
10f4d08efb
refactor: avoid parsing logic on locations ( #13200 )
2021-04-25 09:15:48 -04:00
Babel Bot
fb908fd87e
Update test262 ( #13196 )
...
* chore: update test262 to eca69e2c95972a4c5780ef58fe1f1e53e871b9b1
* test262: add mapping for privateIn
* test262: ignored syntax-free features
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-04-23 10:40:54 +02:00
Nicolò Ribaudo
f63d73c94e
Allow putting helpers in individual files ( #13190 )
...
* Allow putting helpers in individual files
* Lint
* Also move `objectSpread2` (to show an helper with deps)
* Update fixture and package.json
* fixture
2021-04-22 20:45:52 +02:00
Jason
66181dbe37
fix: don't deduplicate comments with same start index ( #13169 )
2021-04-21 15:57:57 +02:00
Micha Reiser
adb5adac0c
fix: Don't load browserslist in block-hoist-plugin ( #13182 )
...
* fix: Don't load browserslist in block-hoist-plugin
* Remove test case
* Remove added new line
2021-04-21 09:20:17 -04:00
Huáng Jùnliàng
0c425cfb97
chore: run coverage-test against node 16 ( #13183 )
2021-04-20 19:47:17 -04:00
Babel Bot
304f316e60
Add v7.13.17 to CHANGELOG.md [skip ci]
2021-04-20 23:19:47 +00:00
Babel Bot
006e2c9393
v7.13.17
2021-04-20 23:05:58 +00:00
Nicolò Ribaudo
87e35ae5c7
Fix undeclared variable in iterableToArrayLimit ( #13185 )
2021-04-21 00:39:00 +02:00
Anna Henningsen
b971e00eb0
Fix completion record for labeled statement ( #13084 )
...
`{labelAlthoughIMeantItToBeAKey: value}` strikes again :)
2021-04-20 11:08:46 -04:00
Moti Zilberman
691c46846f
fix(destructuring): preserve loc of original declaration in output ( #13173 )
2021-04-20 10:36:06 -04:00
Jason
ab06ccad49
fix: clone comments in cloneNode ( #13178 )
2021-04-20 10:34:12 -04:00
Babel Bot
86d9cf5020
Add v7.13.16 to CHANGELOG.md [skip ci]
2021-04-20 11:21:56 +00:00
Babel Bot
d94a8e50ed
v7.13.16
2021-04-20 11:11:32 +00:00
Nicolò Ribaudo
21ef7c8816
Workaround GitHub issue templates bug ( #13179 )
...
* Update bug_report.yml
* Update feature_request.yml
* Update bug_report.yml
* Update bug_report.yml
* Update bug_report.yml
* Update bug_report.yml
* Update bug_report.yml
* Update bug_report.yml
* Update feature_request.yml
* Update bug_report.yml
* Update feature_request.yml
2021-04-20 12:15:47 +02:00
Nicolò Ribaudo
bdbd07d170
Update browserslist and caniuse-lite ( #13174 )
2021-04-19 20:04:59 +02:00
Huáng Jùnliàng
b6168e6917
chore: update @babel/* deps ( #13166 )
2021-04-19 19:07:59 +02:00
Federico Ciardi
368bf893fa
[ts] raise SyntaxError for declare before getter/setter ( #13143 )
...
* fix: raise `SyntaxError` for `declare` before getter/setter
* fix: allow `declare` when class property name is `get` or `set`
2021-04-17 23:00:24 +02:00
Nicolò Ribaudo
e92d6b2458
Use the new GitHub issues template ( #13168 )
...
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-04-16 22:59:34 +02:00
Babel Bot
0cfe3dc107
Update test262 ( #13164 )
2021-04-16 02:20:50 +02:00
Nicolò Ribaudo
eaea9693ff
Install psmisc in vue-cli e2e tests on CircleCI ( #13162 )
2021-04-16 01:50:09 +02:00
Nicolò Ribaudo
808d437cf4
Support iterating generators in browsers without Symbol ( #13129 )
2021-04-15 23:47:53 +02:00
Huáng Jùnliàng
5d55055537
fix: add default value for browserslist config path ( #13159 )
2021-04-15 17:05:35 -04:00
Huáng Jùnliàng
cbfcee59c7
Archive helper-explode-class and helper-bindify-decorators ( #13160 )
2021-04-15 22:25:23 +02:00
Henry Zhu
ed4ccd6482
codecov: token not required ( #13158 )
2021-04-15 15:31:32 -04:00
Cody Mims
54e088b347
Update links in @babel/eslint-parser README ( #13155 )
...
Co-authored-by: Kai Cataldo <kai@kaicataldo.com>
2021-04-15 01:17:34 +02:00
Nicolò Ribaudo
5c7d2a7fa2
Archive @babel/helper-call-delegate ( #13153 )
2021-04-14 23:54:46 +02:00
Huáng Jùnliàng
d6d942ddac
docs: refine babel-types docs generator ( #13148 )
...
* docs: refine babel-types docs generator
* avoid AST node shape title when it does not have node fields
* remove h1 from the output
* refactor docs generators
2021-04-14 16:26:25 -04:00
Huáng Jùnliàng
1e31d415be
refactor: use FunctionParent on visiting var scope ( #13152 )
2021-04-14 16:00:40 -04:00
Nicolò Ribaudo
d24bd7ce5c
Remove remaining lodash dependencies ( #13139 )
2021-04-13 22:41:22 +02:00
Huáng Jùnliàng
b35c78f08d
docs: add README to helper-compilation-targets ( #13131 )
2021-04-12 12:06:05 -04:00