Commit Graph
6292 Commits
Author SHA1 Message Date
fisker Cheung 29f408c99e Add changelog for #11892 (#11904) 2021-12-04 22:22:08 +09:00
fisker Cheung e7a74529a5 Make options argument in parsers optional (#11892) 2021-12-04 22:21:51 +09:00
Lucas Duailibe 99649c7fd2 [handlebars] Named blocks can't be self closing (#11900) 2021-12-04 22:21:37 +09:00
Sosuke Suzukiandfisker Cheung c0250b3837 Improve formatting for empty tuple types (#11884)
* Don't print trailing comma when tuple is empty

* Add tests

* Don't print softline

* Add tests

* Update tests

* Add changelog

* Update changelog_unreleased/typescript/11884.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* Fix names

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-12-04 22:21:21 +09:00
sosukesuzuki 7fc196e96b Clean changelog_unreleased 2021-11-25 23:12:16 +09:00
04aa850fde Add 2.5 blog (#11823)
* Mark highlights

* Update intro

* Draft

* Update changelog

* Update changelog

* Regenerate draft

* Update TS 4.5 blog URL

* Regenerate draft

* Fix by prettier

* Fix

* Remove changelogs released already

* Address review

* Update

* Regenerate draft

* Regenerate draft

* Regenerate

* Update changelog_unreleased/typescript/11515.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update changelog_unreleased/typescript/11721.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update changelog_unreleased/mdx/11563.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update changelog_unreleased/mdx/11563.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update website/blog/2021-11-21-2.5.0.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update website/blog/2021-11-21-2.5.0.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Regenerate

* Address reviews

* Regenerate

* Use examples

* Regenerate

* Address review

* Renegrate

* Address review

* Regenerate

* MDX 2 comments => MDX v2 comment syntax

* Fix

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Lucas Azzola <derflatulator@gmail.com>

* Update changelog_unreleased/typescript/11721.md

Co-authored-by: Lucas Azzola <derflatulator@gmail.com>

* Regenerate

* Update changelog_unreleased/typescript/11515.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Regenerate

* Address review

* Regenerate

* Address review

* Regenerate

Co-authored-by: Jed Fox <git@jedfox.com>
Co-authored-by: Lucas Azzola <derflatulator@gmail.com>
2021-11-25 23:04:16 +09:00
sosukesuzuki 255d38982f Update dependents count 2021-11-25 23:00:50 +09:00
sosukesuzuki 854ca328a2 Git blame ignore 2.5.0 2021-11-25 23:00:45 +09:00
sosukesuzuki 846dbdd7e8 Bump Prettier dependency to 2.5.0 2021-11-25 23:00:45 +09:00
sosukesuzuki e351bfc678 Release 2.5.0 2021-11-25 22:57:21 +09:00
fisker Cheung 15f869dec2 Update string-width to v4.2.3 (#11853) 2021-11-22 10:52:42 +08:00
fisker Cheung cd25b86e60 Regenerate yarn.lock (#11852) 2021-11-22 10:49:18 +08:00
dependabot[bot] 2380e11362 Build(deps-dev): Bump eslint-plugin-unicorn from 38.0.1 to 39.0.0 (#11851) 2021-11-21 15:02:16 +00:00
dependabot[bot] d3ab4a238b Build(deps-dev): Bump eslint from 8.2.0 to 8.3.0 (#11850)
Bumps [eslint](https://github.com/eslint/eslint) from 8.2.0 to 8.3.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.2.0...v8.3.0)

---
updated-dependencies:
- dependency-name: eslint
  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-11-21 21:30:41 +08:00
dependabot[bot] 1fa0d328fa Build(deps-dev): Bump webpack from 5.64.0 to 5.64.2 in /website (#11847) 2021-11-21 06:55:58 +00:00
dependabot[bot] 3e49ca7b9e Build(deps): Bump espree from 9.0.0 to 9.1.0 (#11848) 2021-11-21 06:55:42 +00:00
Sosuke Suzuki 7acdac30db Remove unnecessary parentheses for decorators (#11849)
* Remove unnecesary parans for typescript parser

* Add tests

* Update changelog
2021-11-21 15:54:18 +09:00
dependabot[bot] c9b3518ec7 Build(deps-dev): Bump @types/jest from 27.0.2 to 27.0.3 (#11842)
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 27.0.2 to 27.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  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-11-21 13:23:27 +08:00
dependabot[bot] c957da6fae Build(deps-dev): Bump eslint-plugin-react from 7.27.0 to 7.27.1 (#11844)
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.27.0 to 7.27.1.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.27.0...v7.27.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  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-11-21 13:19:51 +08:00
Sosuke Suzukiandfisker Cheung e1cc5b227c Update typescript to 4.5.2 (#11831)
* Update typescript to 4.5.2

* Try increase `--max-old-space-size`

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-11-21 14:10:50 +09:00
fisker Cheung 8a85ba4e18 Update acorn (#11835)
* Update `acorn`

* Fix test, add changelog
2021-11-21 01:44:28 +09:00
fisker Cheung ca97e4b4d2 Update execa to v6 for release script (#11829) 2021-11-19 20:50:30 +08:00
James Longandfisker Cheung 6bf6b20aed Reverts #7865, keeping class names on the same line (#11827)
* Reverts #7865, keeping class names on the same line

* Add changelog

* Fix lint

* Fix

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-11-18 16:10:41 +09:00
dependabot[bot] 722418ed2c Build(deps-dev): Bump @babel/preset-env from 7.16.0 to 7.16.4 (#11820) 2021-11-17 12:57:47 +00:00
dependabot[bot] 4493712bd3 Build(deps-dev): Bump cspell from 5.12.6 to 5.13.0 (#11824) 2021-11-17 11:55:26 +00:00
dependabot[bot] 32e897e972 Build(deps-dev): Bump eslint-plugin-compat from 3.13.0 to 4.0.0 (#11819) 2021-11-17 11:42:22 +00:00
dependabot[bot] 1b34a4d310 Build(deps): Bump @babel/parser from 7.16.3 to 7.16.4 (#11821)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-17 18:45:21 +08:00
Titusandsosukesuzuki cca8469388 Add support for MDX 2 comments (#11563)
* Add support for MDX 2 comments

This adds support for MDX 2 comments (which are the same as other
comments inside JSX) in addition to MDX 1 comments (HTML-like
constructs).

Related to GH-10706.
Related to wooorm/xdm#61.

* Fix blank line before comment

* Add `esComment` to `printer-markdown`

* Add embedded test

* Remove embedded formatter

* Add support for es-comments as blocks & test prettier-ignore comments

* Add a test for mdx pragma

* Remove duplicate fixture

* Add changelog

* Add note clarifying support

Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2021-11-17 16:49:19 +09:00
Georgii Dolzhykovandsosukesuzuki 11e43e2e17 Avoid extra offset in arrow function body when using long types (alternative solution) (#11515)
* Avoid extra offset in arrow function body when using long types

* Rename var

* Handle object types properly

* Refactor, add test

* Don't try to keep arrow signatures on one line

Regression testing showed that this was a bad idea in this case

* Add changelog

* Break lhs if it's breakable and rhs is arrow fn

* Reuse isArrowFunctionVariableDeclarator

Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2021-11-17 16:24:16 +09:00
dependabot[bot] 44dd2c0354 Build(deps): Bump camelcase from 6.2.0 to 6.2.1 (#11812)
Bumps [camelcase](https://github.com/sindresorhus/camelcase) from 6.2.0 to 6.2.1.
- [Release notes](https://github.com/sindresorhus/camelcase/releases)
- [Commits](https://github.com/sindresorhus/camelcase/compare/v6.2.0...v6.2.1)

---
updated-dependencies:
- dependency-name: camelcase
  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-11-17 12:27:31 +09:00
Sosuke Suzuki 9e1038c0eb Support TypeScript 4.5 syntax (#11813)
* Update dependencies

* Add tests for type-only module specifiers

* Add tests for ts import assertions

* Add tests for ts private-fields-in-in

* Update changelog

* Update misc tests

* Update SYNTAX_KIND_PROPERTY_DEFINITION

* List typescript from error list
2021-11-16 10:15:08 +09:00
dependabot[bot] 711f38132e Build(deps-dev): Bump eslint-plugin-react from 7.26.1 to 7.27.0 (#11808) 2021-11-16 00:49:29 +00:00
dependabot[bot] 5746d2f22f Build(deps-dev): Bump concurrently from 6.3.0 to 6.4.0 in /website (#11805) 2021-11-15 18:32:31 +00:00
dependabot[bot] 66678446a9 Build(deps): Bump @babel/parser from 7.16.2 to 7.16.3 (#11801)
Bumps [@babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser) from 7.16.2 to 7.16.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.16.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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-16 01:17:30 +09:00
dependabot[bot] 68cc23c04a Build(deps): Bump codemirror-graphql from 1.0.3 to 1.1.0 in /website (#11802)
Bumps [codemirror-graphql](https://github.com/graphql/graphiql) from 1.0.3 to 1.1.0.
- [Release notes](https://github.com/graphql/graphiql/releases)
- [Changelog](https://github.com/graphql/graphiql/blob/main/CHANGELOG.md)
- [Commits](https://github.com/graphql/graphiql/compare/codemirror-graphql@1.0.3...codemirror-graphql@1.1.0)

---
updated-dependencies:
- dependency-name: codemirror-graphql
  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-11-16 01:17:11 +09:00
dependabot[bot] dc8a4ad0af Build(deps): Bump node-fetch from 3.0.0 to 3.1.0 in /scripts/release (#11810) 2021-11-15 16:16:35 +00:00
dependabot[bot] d81b24fdaf Build(deps-dev): Bump eslint-plugin-import from 2.25.2 to 2.25.3 (#11807) 2021-11-15 16:15:56 +00:00
dependabot[bot] 3b8c0fb56d Build(deps-dev): Bump rollup from 2.59.0 to 2.60.0 (#11806) 2021-11-15 16:15:27 +00:00
dependabot[bot] 7d8d22f21d Build(deps-dev): Bump webpack from 5.62.1 to 5.64.0 in /website (#11804) 2021-11-15 16:14:34 +00:00
Sosuke Suzuki 8f7c2f77a4 Respect spacing for between expressions and parentheses in embedded CSS (#11800)
* Fix embedded css formatting

* Add changelog
2021-11-12 23:17:29 +09:00
fisker Cheung ffbd04ebe2 Fix typo in filename (#11792) 2021-11-09 15:36:42 +09:00
dependabot[bot] 30efeb1c48 Build(deps-dev): Bump node-fetch from 3.0.0 to 3.1.0 (#11789) 2021-11-09 06:36:31 +00:00
dependabot[bot] 089bb02ffb Build(deps-dev): Bump @glimmer/reference from 0.83.0 to 0.83.1 (#11788)
Bumps [@glimmer/reference](https://github.com/glimmerjs/glimmer-vm/tree/HEAD/packages/@glimmer/reference) from 0.83.0 to 0.83.1.
- [Release notes](https://github.com/glimmerjs/glimmer-vm/releases)
- [Changelog](https://github.com/glimmerjs/glimmer-vm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/glimmerjs/glimmer-vm/commits/v0.83.1/packages/@glimmer/reference)

---
updated-dependencies:
- dependency-name: "@glimmer/reference"
  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-11-09 15:35:55 +09:00
dependabot[bot] fd69858bc4 Build(deps): Bump @glimmer/syntax from 0.83.0 to 0.83.1 (#11790) 2021-11-09 02:15:28 +00:00
dependabot[bot] 14e4d2778d Build(deps): Bump @typescript-eslint/typescript-estree (#11787)
Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 5.3.0 to 5.3.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/v5.3.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-11-09 10:19:40 +09:00
dependabot[bot] bfd7be363c Build(deps-dev): Bump eslint-plugin-unicorn from 38.0.0 to 38.0.1 (#11785)
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 38.0.0 to 38.0.1.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v38.0.0...v38.0.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
  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-11-09 02:41:37 +08:00
dependabot[bot] f4c735d590 Build(deps-dev): Bump eslint-plugin-jest from 25.2.2 to 25.2.4 (#11781)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 25.2.2 to 25.2.4.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v25.2.2...v25.2.4)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  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-11-09 02:28:45 +08:00
Sosuke Suzukiandfisker Cheung aab66b846b Add more tests, update changelog (#11779)
* Update changelog

* Fix

* Add more tests

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-11-08 22:52:20 +09:00
dependabot[bot] bf3e872fe9 Build(deps): Bump actions/checkout from 2.3.5 to 2.4.0 (#11759)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-08 20:00:59 +08:00
fisker Cheung 70aa861bc1 Fix internal ESLint plugin (#11780) 2021-11-08 18:17:15 +08:00