
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
..
2022-02-06 21:18:37 -03:00
2021-03-10 02:54:50 +02:00
2022-04-03 01:31:20 +09:00
2022-06-11 23:32:32 +09:00
2020-06-28 09:47:29 +08:00
2022-05-02 12:37:05 -04:00
2020-07-20 21:17:07 +08:00
2020-01-23 18:52:24 -03:00
2022-04-12 17:47:07 +08:00
2022-03-13 17:10:58 +09:00
2021-08-05 18:33:42 +09:00
2022-03-27 00:58:49 +09:00
2021-08-31 11:47:50 +09:00
2022-01-28 15:25:30 +08:00
2022-05-02 21:48:58 +09:00
2022-01-05 09:43:23 +08:00
2021-05-20 23:40:45 +03:00
2022-03-27 00:58:49 +09:00
2021-01-23 19:14:13 +02:00
2021-12-20 09:21:53 +08:00
2020-08-21 09:11:59 +08:00
2021-12-03 00:47:10 -03:00
2020-06-28 09:47:29 +08:00