Commit Graph
484 Commits
Author SHA1 Message Date
fisker Cheung b0d9387b95 Fix unpkg link (#13484) 2022-09-17 20:32:03 +08:00
fisker Cheung cd3e530c2e Reduce size of parser-typescript.js (#13431) 2022-09-06 20:38:50 +08:00
dependabot[bot] c51d509560 Build(deps): Bump node-fetch from 3.2.3 to 3.2.10 in /scripts/release (#13411)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 3.2.3 to 3.2.10.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v3.2.3...v3.2.10)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: direct:production
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-03 17:18:01 +08:00
Sosuke Suzuki 68bd87b24b Fix generated changelog comment for css like syntax (#13403)
Fix generated comment for css like syntax
2022-08-31 00:59:20 +09:00
Georgii Dolzhykovandfisker 2c77149e6a Add benchmark script (#13224)
Co-authored-by: fisker <lionkay@gmail.com>
2022-08-06 11:25:34 +08:00
dependabot[bot] e46aba0ab2 Build(deps): Bump terser from 5.12.1 to 5.14.2 in /scripts/tools/bundle-test (#13144)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-21 09:58:40 +08:00
Sosuke Suzuki fde0b49d78 Run prettier 2022-06-18 21:49:24 +09:00
fisker Cheung 877ae8ec16 Add repo to another git push command 2022-06-16 13:56:57 +08:00
fisker Cheung dd2af6f053 Fix --skip-dependencies-install 2022-06-16 13:21:11 +08:00
fisker Cheung b21772baaa Allow skip depencies install & set repo 2022-06-16 13:17:54 +08:00
fisker Cheung 448786fe35 Revert changes in release script 2022-06-14 14:40:25 +08:00
fisker Cheung f64c96c6f3 Skip steps 2022-06-14 14:23:50 +08:00
fisker Cheung 0fe554c2b0 Add one more step 2022-06-14 14:23:34 +08:00
fisker Cheung 3771e9c53d Skip steps 2022-06-14 14:21:26 +08:00
fisker Cheung 00ee6fb6f8 Skip depenedencies install 2022-06-14 13:04:05 +08:00
Sosuke SuzukiandSimon Lydell fdccc0f48e Add --cache CLI option (#12800)
* Install `file-entry-cache` and types

* Implement `FormatResultsCache`

* Add `--cache` and `--cache-location` option

* Implement `--cache` and `--cache-location`

* Add tests for `--cache`

* Add tests for `--cache-location`

* Avoid spellcheck error

* Update snapshots for new options

* Add `groupBy` for website

* Use `fs.promises` instead of `fs/promises`

* Use `rimraf` instead of `fs.rm`

* Fix properties order of `options`

* Install `find-cache-dir` and types

* Change default cache file location to `node_modules/.cache/prettier`

* Fix tests following to change default cache file location

* Update snapshots for changing default cache file location

* Set `os.tmpdir()` as a fallback for default cache dir

* Add docs for `--cache` and `--cache-location`

* Use `sdbm` instead of `node:crypto`

* Add changelog

* Fix `getHashOfOptions`

* Remove `cache-location`

* `prettiercache` -> `prettier-cache`

* Remove cache file when run Prettier without `--cache` option

* Implement `--cache-strategy`

* Add tests for invalid cache strategy

* Fix lint problems

* Tweaks tests

* Add tests for timestamp

* Add tests for `--cache-strategy`

* Add docs for cache-strategy

* Address review

* Fix `findCacheFile`

* Use Set.prototype.has

* Throw error with --stdin-filepath

* Update snapshots

* Fix error for cache and stdin

* Use string constructor instead of toString

* Update changelog

* Use flag validation

* Fix `cache-strategy` definition

* Update docs

* Mark highlihgt

* Throw error for `--cache-strategy` without `--cache`

* Update docs

* Fix typo

* Updates snapshots

* Update docs/cli.md

Co-authored-by: Simon Lydell <simon.lydell@gmail.com>

* Fix error message

* Remove `:::` syntax

* Defaults `content`

* Update docs

* Fix by Prettier

Co-authored-by: Simon Lydell <simon.lydell@gmail.com>
2022-06-11 23:32:32 +09:00
dependabot[bot] aa1d536e29 Build(deps): Bump tmpl from 1.0.4 to 1.0.5 in /scripts/release (#12984)
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 00:24:11 +08:00
fisker Cheung 83ec3c36e3 Build: stricter warning check (#12956) 2022-06-01 19:23:13 +08:00
fisker Cheung feb6b519ee Update release script (#12591) 2022-05-30 13:44:54 +08:00
dependabot[bot]andfisker Cheung 586a4b2a87 Build(deps): Bump css-units-list from 0.0.5 to 1.1.0 (#12684)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-04-25 14:02:59 +08:00
dependabot[bot] 10277ecf2f Build(deps): Bump semver from 7.3.5 to 7.3.7 in /scripts/release (#12667) 2022-04-17 06:32:06 +00:00
Sosuke Suzuki 41ebbb0a0d Update vendors (#12585) 2022-04-03 10:27:05 +09:00
fisker Cheung 687ca4b95d Drop Node.js 12 support for development "build" (#12557) 2022-04-03 01:42:20 +08:00
fisker Cheung caba818940 Bundle vendors from the source package (#12582) 2022-04-03 01:06:32 +08:00
dependabot[bot] c23e24ee11 Build(deps): Bump leven from 3.1.0 to 4.0.0 (#11349) 2022-04-02 11:47:46 +00:00
dependabot[bot] f4d4dc1177 Build(deps): Bump strip-ansi from 6.0.0 to 7.0.0 (#10731) 2022-04-02 11:24:18 +00:00
dependabot[bot]andfisker Cheung 237e681936 Build(deps): Bump escape-string-regexp from 4.0.0 to 5.0.0 (#10725)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-04-02 18:34:21 +08:00
fisker Cheung afd0220dea Move some bundle test code into tests/ (#12577) 2022-04-02 16:14:32 +08:00
dependabot[bot]andfisker Cheung bf148376fa Build(deps): Bump html-tag-names from 1.1.5 to 2.0.0 (#10612)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-04-02 14:02:39 +08:00
dependabot[bot]andfisker Cheung 141bd80c02 Build(deps): Bump html-element-attributes from 2.3.0 to 3.0.0 (#10617)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-04-01 09:39:29 +08:00
dependabot[bot]andfisker Cheung 1be154650b Build(deps): Bump html-void-elements from 1.0.5 to 2.0.0 (#10623)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-03-31 22:21:37 +08:00
Sosuke Suzuki 250847c2cc Install dependencies for website (#12566) 2022-03-31 22:50:48 +09:00
dependabot[bot]andSosuke Suzuki 529312e9ac Build(deps): Bump micromatch from 4.0.4 to 4.0.5 (#12550)
* Build(deps): Bump micromatch from 4.0.4 to 4.0.5

Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.4...4.0.5)

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

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

* Build(deps): Bump micromatch from 4.0.4 to 4.0.5

Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.4...4.0.5)

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

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

* Update vendors

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-03-28 02:18:16 +09:00
dependabot[bot] 464694f07b Build(deps): Bump minimist from 1.2.5 to 1.2.6 in /scripts/release (#12551)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  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>
2022-03-27 21:52:37 +08:00
fisker Cheung 6128c5c4e4 Build: Fix esbuildPluginReplaceModule (#12530) 2022-03-25 12:35:08 +08:00
fisker Cheung 11649270f6 Enable unicorn/text-encoding-identifier-case rule (#12526) 2022-03-25 09:35:28 +08:00
Sosuke Suzuki 0e6c1d58d8 Enter OTP via enquirer (#12528) 2022-03-24 23:47:29 +09:00
fisker Cheung 6664253b9e Fix error when bundle prettier with webpack (#12511) 2022-03-24 11:20:55 +08:00
fisker Cheung 4250812682 Remove require from UMD bundles (#12485) 2022-03-23 10:21:02 +08:00
fisker Cheung e67aa193ef Build: Dedupe semver package (#12468) 2022-03-21 10:37:57 +08:00
fisker Cheung 0d668bcc0d Reduce size of parser-postcss.js (#12488) 2022-03-20 21:56:09 +08:00
fisker Cheung 7544c32c53 Build: Combine replace-module and replace-text plugin (#12489) 2022-03-20 14:04:30 +08:00
fisker Cheung ef3fe51380 Fix pluginSearchDirs schema (#12474)
* Fix `pluginSearchDirs` schema

* `anyOf` -> `oneOf`

* Fix test
2022-03-20 14:50:27 +09:00
fisker Cheung ae080df3e7 Enable unicorn/template-indent rule (#12469) 2022-03-17 20:13:28 +08:00
Sosuke Suzuki 0d34974a07 Run prettier after release (#12472) 2022-03-16 18:38:31 +08:00
eb671dd983 2.6 blog post (#12412)
* Generate

* Generate

* Add TS4.6 changelog

* Regenerate

* Add changelog to switch to esbuild

* Add category

* Update changelog_unreleased/blog-post-intro.md

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

* Address review

* Regenerate

* Highlight TS 4.6

* Update changelog_unreleased/blog-post-intro.md

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

* Regenerate

* Update changelog_unreleased/typescript/12390.md

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

* Add thanks message for sponsors

* Address review!

* Update cspell.json

* Fix link of Ubie

* Generate

* Add `Thanks to our sponsors!`

* Update cspell

* Address review

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>

* Regenerate

* Add `--print-truncate` option

* Address review

* Generate

Co-authored-by: Jed Fox <git@jedfox.com>
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
2022-03-16 13:25:48 +09:00
Sosuke Suzuki 2f45d9bcc3 Fix release script 2022-03-16 13:25:18 +09:00
Sosuke Suzuki f7c4423733 Bump Prettier dependency to 2.6.0 2022-03-16 13:24:48 +09:00
fisker Cheung 4cae7e15a7 Build: Remove an extra new line in UMD bundle (#12467) 2022-03-16 10:36:32 +08:00
fisker Cheung 9a070503a3 Build: Remove mainFields override (#12466) 2022-03-16 10:36:20 +08:00