Commit Graph
6026 Commits
Author SHA1 Message Date
Oskari Noppa 6a5efe7fa8 Print semi before Flow variance sigil w/ no-semi (#11398)
* Print semi before Flow variance sigil w/ no-semi

Fixes #11397. Omitting semicolon before class property with a Flow
variance sigil `+` or `-` may lead to output that is syntatically
incorrect or has incorrect runtime behaviour.

* Add changelog for PR 11398

* Put semi to the end of previous line

Put the semicolon for Flow class property variance sigil to the end of
the previous line, not at the beginning of the the line where the
variance sigil is.

This approach was suggested in the comments of #11398.

* Add babel-flow to parser to Flow no-semi specs

As per discussion in PR #11398, babel-flow parser should also be tested.

* Print semi before private fields w/ variance

* Add private fields to changelog

* Use existing isClassProperty helper

Use existing helper function `isClassProperty` to simplify the conditional
a bit.
Note that this also adds new case, `type === "PropertyDefinition"`, that
would be a match. However, nextNode.type can't be "PropertyDefinition"
in practice, as it's part of estree parser output which doesn't support
Flow. There's no real downside in checking that extra case, though, and
this does simplify the code a bit.

* Add new property tests to the snapshot spec

* Change one of the variance sigils to `-` (contravariant)
* Add one computed property
* Make one of the property values be a function

These cases also require semi in the previous line.

* Add new testcases from previous patch to changelog

* Add variance sigil to computed property in spec
2021-08-30 21:19:05 +09:00
dependabot[bot] a547330ca9 Build(deps): Bump @angular/compiler from 12.2.2 to 12.2.3 (#11417)
Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) from 12.2.2 to 12.2.3.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/12.2.3/packages/compiler)

---
updated-dependencies:
- dependency-name: "@angular/compiler"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-30 11:46:20 +08:00
dependabot[bot] 47cfb6beb3 Build(deps): Bump typescript from 4.3.5 to 4.4.2 (#11423) 2021-08-29 09:37:09 +00:00
dependabot[bot] e22b2d738c Build(deps-dev): Bump jest from 27.0.6 to 27.1.0 (#11416) 2021-08-29 09:07:26 +00:00
dependabot[bot] 108fd1f60a Build(deps): Bump codecov/codecov-action from 2.0.2 to 2.0.3 (#11413) 2021-08-29 09:02:46 +00:00
dependabot[bot] 5921b279ec Build(deps-dev): Bump babel-jest from 27.0.6 to 27.1.0 (#11419) 2021-08-29 07:29:27 +00:00
dependabot[bot] 8c23e6c011 Build(deps): Bump @typescript-eslint/typescript-estree (#11418) 2021-08-29 07:29:02 +00:00
dependabot[bot] 66c0ca55e2 Build(deps-dev): Bump eslint-plugin-import from 2.24.1 to 2.24.2 (#11420) 2021-08-29 07:28:52 +00:00
dependabot[bot] bdfe906119 Build(deps-dev): Bump core-js from 3.16.2 to 3.16.3 (#11421) 2021-08-29 07:28:17 +00:00
dependabot[bot]andSosuke Suzuki 493f393ac7 Build(deps): Bump flow-parser from 0.157.0 to 0.158.0 (#11385)
* Build(deps): Bump flow-parser from 0.157.0 to 0.158.0

Bumps [flow-parser](https://github.com/facebook/flow) from 0.157.0 to 0.158.0.
- [Release notes](https://github.com/facebook/flow/releases)
- [Changelog](https://github.com/facebook/flow/blob/main/Changelog.md)
- [Commits](https://github.com/facebook/flow/compare/v0.157.0...v0.158.0)

---
updated-dependencies:
- dependency-name: flow-parser
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add tests for class fields feature (#11394)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2021-08-24 13:23:31 +09:00
dependabot[bot]andfisker Cheung ea701359b7 Build(deps-dev): Bump eslint-plugin-regexp from 0.13.2 to 1.0.0 (#11351)
* Build(deps-dev): Bump eslint-plugin-regexp from 0.13.2 to 1.0.0

Bumps [eslint-plugin-regexp](https://github.com/ota-meshi/eslint-plugin-regexp) from 0.13.2 to 1.0.0.
- [Release notes](https://github.com/ota-meshi/eslint-plugin-regexp/releases)
- [Commits](https://github.com/ota-meshi/eslint-plugin-regexp/compare/v0.13.2...v1.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-regexp
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update options for `regexp/no-useless-flag` rule

* Remove useless flag

* Fix style

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-08-24 10:31:24 +09:00
dependabot[bot] e361704268 Build(deps-dev): Bump eslint-plugin-compat from 3.11.1 to 3.13.0 (#11376) 2021-08-24 01:30:39 +00:00
TagawaHirotaka 3ff6dd476e Fix comment about espree link (#11387) 2021-08-23 14:12:08 +09:00
dependabot[bot] c74713bb43 Build(deps-dev): Bump webpack-cli from 4.7.2 to 4.8.0 in /website (#11377) 2021-08-23 02:22:41 +00:00
dependabot[bot] dcf7f6ba4b Build(deps-dev): Bump webpack from 5.50.0 to 5.51.1 in /website (#11379)
Bumps [webpack](https://github.com/webpack/webpack) from 5.50.0 to 5.51.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.50.0...v5.51.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-23 08:40:32 +08:00
dependabot[bot] da0f1e1a6e Build(deps): Bump actions-cool/issues-helper from 2.3.1 to 2.4.0 (#11375)
Bumps [actions-cool/issues-helper](https://github.com/actions-cool/issues-helper) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/actions-cool/issues-helper/releases)
- [Changelog](https://github.com/actions-cool/issues-helper/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions-cool/issues-helper/compare/v2.3.1...v2.4.0)

---
updated-dependencies:
- dependency-name: actions-cool/issues-helper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-23 08:39:41 +08:00
dependabot[bot] 1a6c7fb1a1 Build(deps): Bump @angular/compiler from 12.2.1 to 12.2.2 (#11380)
Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) from 12.2.1 to 12.2.2.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/12.2.2/packages/compiler)

---
updated-dependencies:
- dependency-name: "@angular/compiler"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-23 08:38:33 +08:00
dependabot[bot] 1d753e53d0 Build(deps-dev): Bump eslint-plugin-import from 2.24.0 to 2.24.1 (#11381)
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.24.0 to 2.24.1.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.24.0...v2.24.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-23 08:37:41 +08:00
dependabot[bot] 21bb4c7fff Build(deps-dev): Bump core-js from 3.16.1 to 3.16.2 (#11386)
Bumps [core-js](https://github.com/zloirock/core-js) from 3.16.1 to 3.16.2.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/compare/v3.16.1...v3.16.2)

---
updated-dependencies:
- dependency-name: core-js
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-23 08:36:44 +08:00
dependabot[bot] e619714088 Build(deps): Bump cosmiconfig from 7.0.0 to 7.0.1 (#11382)
Bumps [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/davidtheclark/cosmiconfig/releases)
- [Changelog](https://github.com/davidtheclark/cosmiconfig/blob/main/CHANGELOG.md)
- [Commits](https://github.com/davidtheclark/cosmiconfig/compare/v7.0.0...v7.0.1)

---
updated-dependencies:
- dependency-name: cosmiconfig
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-23 08:29:52 +08:00
dependabot[bot] 18539ed8e9 Build(deps): Bump @typescript-eslint/typescript-estree (#11378) 2021-08-22 02:35:40 +00:00
dependabot[bot]andSosuke Suzuki 29b116b4a1 Build(deps): Bump @babel/parser from 7.15.2 to 7.15.3 (#11345)
* Build(deps): Bump @babel/parser from 7.15.2 to 7.15.3

Bumps [@babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser) from 7.15.2 to 7.15.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.15.3/packages/babel-parser)

---
updated-dependencies:
- dependency-name: "@babel/parser"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add tests for `@babel/parser` 7.15.3 (#11366)

* Add tests for babel/babel#13659

* Add tests for babel/babel#13655

* Add tests for babel/babel#13645

* Update tests

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2021-08-19 07:26:12 +08:00
fisker Cheung 051e20591a Lint dist files with eslint-plugin-compat (#11245) 2021-08-16 15:08:19 +08:00
dependabot[bot] 43124add3e Build(deps-dev): Bump webpack from 5.49.0 to 5.50.0 in /website (#11346)
Bumps [webpack](https://github.com/webpack/webpack) from 5.49.0 to 5.50.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.49.0...v5.50.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-16 08:39:13 +08:00
dependabot[bot] 121c5ea994 Build(deps-dev): Bump concurrently from 6.2.0 to 6.2.1 in /website (#11348)
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 6.2.0 to 6.2.1.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v6.2.0...v6.2.1)

---
updated-dependencies:
- dependency-name: concurrently
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-16 08:38:53 +08:00
dependabot[bot] 90ae164949 Build(deps-dev): Bump eslint-plugin-import from 2.23.4 to 2.24.0 (#11347)
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.23.4 to 2.24.0.
- [Release notes](https://github.com/import-js/eslint-plugin-import/releases)
- [Changelog](https://github.com/import-js/eslint-plugin-import/blob/master/CHANGELOG.md)
- [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.23.4...v2.24.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-import
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-16 08:38:29 +08:00
dependabot[bot] 155e171281 Build(deps-dev): Bump core-js from 3.16.0 to 3.16.1 (#11353)
Bumps [core-js](https://github.com/zloirock/core-js) from 3.16.0 to 3.16.1.
- [Release notes](https://github.com/zloirock/core-js/releases)
- [Changelog](https://github.com/zloirock/core-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/zloirock/core-js/compare/v3.16.0...v3.16.1)

---
updated-dependencies:
- dependency-name: core-js
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-16 08:32:17 +08:00
dependabot[bot] 7e5624e2ea Build(deps-dev): Bump node-actionlint from 1.1.0 to 1.2.0 (#11354)
Bumps node-actionlint from 1.1.0 to 1.2.0.

---
updated-dependencies:
- dependency-name: node-actionlint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-16 08:32:00 +08:00
dependabot[bot] 011ed00b48 Build(deps): Bump @typescript-eslint/typescript-estree (#11355)
Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 4.29.0 to 4.29.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/typescript-estree/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.29.1/packages/typescript-estree)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/typescript-estree"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-16 08:31:43 +08:00
dependabot[bot] 381bbf3d72 Build(deps): Bump actions-cool/issues-helper from 2.2.1 to 2.3.1 (#11356)
Bumps [actions-cool/issues-helper](https://github.com/actions-cool/issues-helper) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/actions-cool/issues-helper/releases)
- [Changelog](https://github.com/actions-cool/issues-helper/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions-cool/issues-helper/compare/v2.2.1...v2.3.1)

---
updated-dependencies:
- dependency-name: actions-cool/issues-helper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-16 08:31:25 +08:00
dependabot[bot] 38f9bfbe9b Build(deps): Bump @angular/compiler from 12.2.0 to 12.2.1 (#11352)
Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) from 12.2.0 to 12.2.1.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/12.2.1/packages/compiler)

---
updated-dependencies:
- dependency-name: "@angular/compiler"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-16 08:29:57 +08:00
Sosuke Suzuki 53f95f3500 Support hack-style pipeline (#11335)
* Avoid to conflicts to v8intrinsic plugin

* Support hack-style pipeline

* Update tests for hask-style pipeline

* Update tests 2

* Add changelog

* Update misc tests

* Address reviews

* Fix type error

* Copy plugin array

* Add tests

* Address review

* Add error tests
2021-08-15 01:16:13 +09:00
Sosuke Suzuki 83e5ebe891 Add a script to generate unreleased changelog (#10988)
* Add script to generate changelog

* Fix by prettier

* Use CHANGELOG_CATEGORIES from utils

* Fix filename

* Fix typo

* Add comments

* Replace codeblock

* Fix typo

* Avoid to use top-level await

* Use enquirer

* Address review

* Use meriyah for mjs

* Add comment

* Update usase comment

* Update CONTRIBUTING.md
2021-08-13 12:47:18 +09:00
dependabot[bot] c5e33a3094 Build(deps): Bump @angular/compiler from 12.1.4 to 12.2.0 (#11319)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-13 11:26:07 +08:00
Sosuke Suzuki 0507897bde Use cspell options (#11336) 2021-08-12 18:55:21 +09:00
Sosuke Suzuki a14c55009a Improve types for using babel parser (#11316) 2021-08-11 23:06:52 +09:00
Sosuke Suzuki 9e34cbcc98 Update @babel/parser to 7.15.2 (#11331)
* Install new babel

* Remove ts-expect-error
2021-08-09 02:26:42 +09:00
Sosuke Suzuki 9dcfd16e6a Use ts-expect-error instead of ts-ignore (#11330) 2021-08-09 00:00:22 +09:00
dependabot[bot] d8c4bd8ea7 Build(deps-dev): Bump @babel/preset-env from 7.14.8 to 7.15.0 (#11322)
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.14.8 to 7.15.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.15.0/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-08 22:03:54 +08:00
dependabot[bot] bec1bcd0c9 Build(deps-dev): Bump webpack from 5.47.1 to 5.49.0 in /website (#11318) 2021-08-08 12:21:07 +00:00
dependabot[bot] 2117962fb6 Build(deps-dev): Bump @babel/core from 7.14.8 to 7.15.0 (#11323) 2021-08-08 11:54:26 +00:00
dependabot[bot] 58e1ca4168 Build(deps): Bump actions/setup-node from 2.3.0 to 2.4.0 (#11317)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-08 17:43:01 +08:00
dependabot[bot] 9adeffd4d3 Build(deps): Bump flow-parser from 0.156.0 to 0.157.0 (#11321) 2021-08-08 09:41:47 +00:00
dependabot[bot] a3095a4bc9 Build(deps): Bump @typescript-eslint/typescript-estree (#11324) 2021-08-08 09:40:15 +00:00
dependabot[bot] 8ea405b6f4 Build(deps-dev): Bump webpack from 5.47.1 to 5.49.0 (#11325) 2021-08-08 09:39:31 +00:00
dependabot[bot] 36482b8954 Build(deps-dev): Bump @babel/types from 7.14.8 to 7.15.0 (#11327)
Bumps [@babel/types](https://github.com/babel/babel/tree/HEAD/packages/babel-types) from 7.14.8 to 7.15.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.15.0/packages/babel-types)

---
updated-dependencies:
- dependency-name: "@babel/types"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-08 17:39:09 +08:00
dependabot[bot] 71f737c6bd Build(deps-dev): Bump eslint-plugin-unicorn from 34.0.1 to 35.0.0 (#11328)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-08 17:38:58 +08:00
Sosuke Suzuki 6ea2aa22c4 Follow up #11314 (#11315) 2021-08-07 03:18:53 +09:00
Sosuke Suzuki e315513178 Use regexp instead of two include methods (#11314) 2021-08-06 23:34:35 +09:00
Sosuke Suzuki 1645e7a9c4 Update to babel/parser 7.15.0 (#11310)
* Update to babel/parser 7.15

* Avoid plugin conflicts

* Remove allowAwaitOutsideFunction

* Add remove private-in

* Update tests for top-level-await

* Update typescript tests

* Handle bar style record/tuple

* Update tests

* Use appendPlugin

* Dont consider about bar style record and tuple

* Revert appendChild

* Update appendPlugins
2021-08-05 19:14:42 +09:00