Commit Graph
6362 Commits
Author SHA1 Message Date
fisker Cheung ff1b2b52d2 Update postcss to v8.4 (#11887) 2021-12-02 13:58:41 +08:00
fisker Cheung 8ffbcbbcae Refactor integration test files to use ES Module (#11891) 2021-12-02 10:19:32 +08:00
fisker Cheung 0d6d47b30a Merge branch 'main' into next
# Conflicts:
#	package.json
#	yarn.lock
2021-12-01 16:35:15 +08:00
fisker Cheung 1d9d314b45 Update jest-docblock babel-jest jest (#11893) 2021-12-01 16:25:52 +08:00
Chris Midgley 2160e11061 docs: add docs for editorconfig to configuration and options (#11883) 2021-11-30 16:24:07 -03:00
Sosuke Suzukiandfisker Cheung e17404eeb1 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-11-30 23:48:28 +09:00
fisker Cheung f5785a90a1 Fix build script 2021-11-30 21:28:06 +08:00
fisker Cheung e2c570d913 Fix build script 2021-11-30 21:24:51 +08:00
fisker Cheung 48243c2a3e Merge remote-tracking branch 'remotes/upstream/main' into next
# Conflicts:
#	package.json
#	scripts/build/bundler.mjs
#	yarn.lock
2021-11-30 21:17:36 +08:00
fisker Cheung 62ede8b710 Build: Remove unnecessary aliases (#11868) 2021-11-29 12:52:43 +08:00
fisker Cheung 1bdd1d115c Update execa to v6 (#11826) 2021-11-29 10:07:11 +08:00
dependabot[bot]andfisker Cheung 2c9adaed39 Build(deps): Bump lines-and-columns from 1.1.6 to 2.0.3 (#11861)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-11-29 10:06:40 +08:00
dependabot[bot] 433d3303c1 Build(deps): Bump codemirror-graphql from 1.1.0 to 1.2.4 in /website (#11873)
Bumps [codemirror-graphql](https://github.com/graphql/graphiql) from 1.1.0 to 1.2.4.
- [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.1.0...codemirror-graphql@1.2.4)

---
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-29 00:14:07 +09:00
dependabot[bot] aa7f886bf3 Build(deps-dev): Bump webpack from 5.64.2 to 5.64.4 in /website (#11871) 2021-11-28 14:17:56 +00:00
dependabot[bot] 17aafa4ff1 Build(deps): Bump actions/cache from 2.1.6 to 2.1.7 (#11869)
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.6...v2.1.7)

---
updated-dependencies:
- dependency-name: actions/cache
  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-28 23:17:33 +09:00
dependabot[bot] 354ea06384 Build(deps-dev): Bump string-replace-loader from 3.0.3 to 3.1.0 (#11870)
Bumps [string-replace-loader](https://github.com/Va1/string-replace-loader) from 3.0.3 to 3.1.0.
- [Release notes](https://github.com/Va1/string-replace-loader/releases)
- [Commits](https://github.com/Va1/string-replace-loader/compare/v3.0.3...v3.1.0)

---
updated-dependencies:
- dependency-name: string-replace-loader
  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-28 10:52:51 +08:00
fisker Cheung 569111e708 Update build script (#11858) 2021-11-27 18:47:02 +08:00
dependabot[bot] dd2d527181 Build(deps): Bump ci-info from 3.2.0 to 3.3.0 (#11864) 2021-11-26 06:27:58 +00:00
dependabot[bot] 555434904e Build(deps-dev): Bump eslint-plugin-regexp from 1.5.0 to 1.5.1 (#11863) 2021-11-26 06:15:03 +00:00
dependabot[bot] c63bff5169 Build(deps-dev): Bump rollup from 2.60.0 to 2.60.1 (#11860) 2021-11-26 05:04:51 +00:00
dependabot[bot] fab701de30 Build(deps-dev): Bump cspell from 5.13.0 to 5.13.1 (#11862) 2021-11-26 05:04:12 +00:00
dependabot[bot] 43c9032db3 Build(deps-dev): Bump eslint-plugin-jest from 25.2.4 to 25.3.0 (#11865)
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 25.2.4 to 25.3.0.
- [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.4...v25.3.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  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-26 13:02:51 +08: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 44c8508e02 Merge branch 'main' into next
# Conflicts:
#	yarn.lock
2021-11-22 11:24:52 +08: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
fisker Cheung b70cef161b Drop support for Node.js 10 (#11830) 2021-11-22 09:48:28 +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
fisker Cheung 3001154f8d Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/build/bundler.mjs
#	scripts/build/config.mjs
#	yarn.lock
2021-11-18 10:40:53 +08: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