14886 Commits

Author SHA1 Message Date
Nicolò Ribaudo
e33186c68e Pre-release updates
Update the release tool to 0c289ca7ee
2021-10-30 01:25:25 +02:00
Nicolò Ribaudo
0c820a456d
Update core-js and polyfill plugins (#13897) 2021-10-30 01:09:58 +02:00
Babel Bot
bff3f4f37d
chore: update test262 to ba82d46238bd16c3e31b93d21d2846c81a9ccf7a (#13893) 2021-10-28 23:28:41 -04:00
Sosuke Suzuki
d5ba355867
Support TypeScript 4.5 type-only import/export specifiers (#13802) 2021-10-29 01:23:23 +02:00
Huáng Jùnliàng
872086a9a0
feat: support startColumn option (#13887) 2021-10-29 01:20:32 +02:00
Nicolò Ribaudo
718c6cb7de
Handle .mts and .cts files in @babel/preset-typescript (#13838) 2021-10-29 01:13:37 +02:00
Nicolò Ribaudo
381277ae35
Add ESLint 8 support to @babel/eslint-parser (#13782)
* Add ESLint 8 support to `@babel/eslint-parser`

* Only read eslint version dynamically during dev

* Fix tests

* Update ESLint

* Use ESLint 8 stable

* Review

* Check

* Fix babel config
2021-10-28 16:41:55 -04:00
J. S. Choi
ad59a2c618
Caret topic (pipe operator) (#13749)
* parser: Add caret as topic reference (tests)

* parser: Add caret as topic reference (implement)

* generator: Avoid reconstructing validTopicTokenSet

* babel-parser: Remove redundant throws in expression.js

* Minimize diff

* Update error message

Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-10-28 16:04:55 -04:00
Sosuke Suzuki
ddc45a5a50
Enable class static blocks by default (#13713)
* Remove classStaticBlock plugin

* Update tests

* Remove class static blocks from proposalPlugins

* Update tests

* Remove classStaticBlock from mapping for test262

* chore: update babel-types

Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2021-10-28 14:39:04 -04:00
Mickey Rose
99a3fefede
add skipTransparentExprWrapperNodes helper (#13687)
* overload `skipTransparentExprWrappers`

* fixes isSimpleMemberExpression
  in @babel/plugin-proposal-optional-chaining

* use skipTransparentExprWrappers<Expression> instead of the NodePath
  overload where possible in @babel/plugin-proposal-optional-chaining

* Revert "overload `skipTransparentExprWrappers`"

This reverts commit fad47596a64a8d33aadacb7695dbf1aa60a528ae.

* add helper `skipTransparentExprWrapperNodes`

* avoids constructing NodePaths when only the Node is needed

* fixes isSimpleMemberExpression
  in @babel/plugin-proposal-optional-chaining

* use this new helper instead of skipTransparentExprWrappers
  where possible in @babel/plugin-proposal-optional-chaining
2021-10-28 14:16:22 -04:00
Justin Ridgewell
b1793656e6
Add aliases for Standardized, TypeScript, and Flow (#13666)
* Ensure non-standard types have an appropriate alias

This helps with filter out the types. Eg, I'm concerned with just the core JS types, and in I can derive them via:

```typescript
type Core = Exclude<t.Node, t.TypeScript | t.Flow>;
```

* Lint

* Export deprecated alias types

* Add docs descriptions for new aliases

* Add Standardized alias

* Fix inherits aliases

* Filter aliases from node types

* Remove Proposal alias
2021-10-28 14:14:32 -04:00
Nicolò Ribaudo
248aa9d302
Use Yarn 3.1 stable (#13885) 2021-10-26 19:23:23 +02:00
Nicolò Ribaudo
fb7ddf4d38
[ts] Support private methods overloads (#13876)
* [parser] Allow private methods overloads when parsing TS

* Add transform tests

* Fix estree

* Fix flow
2021-10-26 07:29:20 +02:00
Nicolò Ribaudo
290d52fdc1
Lint benchmarks (#13881) 2021-10-25 07:23:43 +02:00
Nicolò Ribaudo
ff922962a4
Fix create-react-app and vue-cli tests on Node.js 17 (#13879)
* Fix `create-react-app` and `vue-cli` tests on Node.js 17

* Only on Node 17

* Fix
2021-10-25 07:22:42 +02:00
Nicolò Ribaudo
c7ddb1ae93
Use workspace:^ to specify @babel/ dependencies (#13772)
* Enforce `workspace:^` to specify `@babel/` dependencies

* `yarn constraints --fix`

* Update lockfile
2021-10-25 07:22:08 +02:00
Nicolò Ribaudo
62b2c5ebb9
Regenerate parser fixtures (#13882) 2021-10-24 18:12:10 +02:00
Huáng Jùnliàng
e45d86c333
[babel 8] Enable preset-env bugfixes by default (#13866) 2021-10-24 15:17:19 +02:00
Nicolò Ribaudo
f2b3134791
Update to Yarn 3.1 (#13856) 2021-10-24 14:47:03 +02:00
Mickey Rose
76a7e65229
add benchmarks for babel-types builders (#13874) 2021-10-23 23:28:47 +02:00
Mickey Rose
b5907ef967
remove executable permission from files that shouldn't have it (#13873) 2021-10-23 14:18:30 +02:00
Mickey Rose
cfe6739dc0
fix: allow enum member without initializer after non-literal member (#13865) 2021-10-22 08:52:23 -04:00
Babel Bot
c75fa21cb8
Update test262 (#13869) 2021-10-22 09:00:06 +02:00
Mickey Rose
35ec4394a7
Simplify (transpiled) babel-types builder wrappers (#13843) 2021-10-21 18:55:42 +02:00
Nicolò Ribaudo
362c623a1c
Test on Node.js 17 (#13867) 2021-10-21 13:23:11 +02:00
Emily Marigold Klassen
fca5c9a501
Don't transform declare class in proposal-class-properties (#13854)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-10-21 00:30:05 +02:00
Huáng Jùnliàng
29f697c84e
Implement @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression (#13842)
* fix: register function expression id after params

* implement bugfix plugin

* add more testcases

* fix: do not skip pattern binding referencing id

* update compat-table

* add bugfix plugin to preset-env

* update Babel 8 test fixtures

* Update packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/README.md

* chore: bundle bugfix plugin

* address review comments

* add runtime version check

* update compat table

* fix syntax error

* update test fixtures

* revert bugfixes targets update

* update Babel 8 test fixtures
2021-10-20 15:53:40 -04:00
Nicolò Ribaudo
780aa48d2a
Force loading plugins/presets from the monorepo in tests (#13858) 2021-10-18 14:03:50 +02:00
Babel Bot
513b00e60d
chore: update test262 to 8d420cef415f3501cb24d674b8c032d1f09402a0 (#13850) 2021-10-14 22:55:02 -04:00
Mickey Rose
24aa1b44fe
[ts] precise return type on createTypeAnnotationBasedOnTypeof (#13844) 2021-10-14 09:00:19 +02:00
Mickey Rose
2403a4889d
remove ineffectual helper names filter (#13841) 2021-10-12 10:30:28 -04:00
Nicolò Ribaudo
2df453d2da
Update failing fixture (#13840) 2021-10-11 15:55:40 -05:00
Huáng Jùnliàng
21eeb8e7a9
Restore traversal context after enter / traverse (#13813) 2021-10-11 19:04:01 +02:00
Nicolò Ribaudo
6880898510
[babel 8] Remove make-dir polyfill for fs.mkdirSync (#13828)
* [babel 8] Remove `make-dir` polyfill for `fs.makeDitSync`

* `yarn`

* fix

* Inject polyfills in jest tests when needed
2021-10-11 07:01:30 +02:00
Huáng Jùnliàng
49a0d65be1
Mark static block as FunctionParent (#13832)
* refactor: move StaticBlock definition to core

* update generated types

* fix: mark StaticBlock as FunctionParent

* revise testcase

* update babel-types docs
2021-10-10 20:22:27 -04:00
Mickey Rose
00f8ee3484
ignore non-js files in babel-helpers/src/helpers (#13833)
* ignore non-js files in `babel-helpers/src/helpers`

* fix misnamed `generateAsserts` -> `generateHelpers`
2021-10-11 00:21:55 +02:00
Nicolò Ribaudo
65e963e5de
Regenerate helpers-generated.ts (#13831) 2021-10-08 22:02:07 +02:00
renovate[bot]
ce2876e190
chore(deps): update third-party parser tests to 64a1628 (#13816)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-10-08 00:13:02 +02:00
Nicolò Ribaudo
b9ea196259
Await promises from sync iterators with for-await (#13824)
Co-authored-by: Mickey Rose <lightmare@users.noreply.github.com>
2021-10-07 23:57:25 +02:00
overlookmotel
6029252bec
Fix missing inner comments in function expressions (#13825) 2021-10-07 23:34:12 +02:00
Huáng Jùnliàng
c2f747c9b9
Improve transform-react-jsx typings (#13820)
* improve transform-react-jsx typings

* rename test fixtures

* remove unreachable sourceSelf check

* update test fixtures

* Update packages/babel-core/src/index.ts

* Update packages/babel-plugin-transform-react-jsx/src/create-plugin.ts

Co-authored-by: Henry Zhu <hi@henryzoo.com>

* Update packages/babel-plugin-transform-react-jsx/src/create-plugin.ts

Co-authored-by: Henry Zhu <hi@henryzoo.com>
2021-10-07 14:01:50 -04:00
renovate[bot]
41325645f8
chore(deps): update dependency through2 to v4 (#13822)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-07 00:18:04 +02:00
Nicolò Ribaudo
289e4a9bbe Update yarn.lock 2021-10-06 23:05:51 +02:00
Babel Bot
a89b315cd4 Add v7.15.8 to CHANGELOG.md [skip ci] 2021-10-06 20:55:25 +00:00
Babel Bot
c4b13725aa v7.15.8 2021-10-06 20:45:15 +00:00
renovate[bot]
e97a6baecb
chore(deps): update dependency gulp-filter to v7 (#13818)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-06 17:16:46 +02:00
overlookmotel
58a65e99c0
Fix missing inner comments in class expressions (#13821) 2021-10-06 14:54:20 +02:00
Patrick Eriksson
7acc68a86b
Improve debug logging for IgnoreList (#13814) 2021-10-06 14:53:28 +02:00
Alexander Zaytsev
42c9edaf6e
Optimization of string splitting (#13812) 2021-10-05 20:15:55 +02:00
Nicolò Ribaudo
64f14b05fa
Collect comments around parentheses in expressions (#13803)
Co-authored-by: Brian Ng <bng412@gmail.com>
2021-10-05 20:15:24 +02:00