Commit Graph
966 Commits
Author SHA1 Message Date
renovate[bot] 73551b0355 Update dependency codemirror-graphql to v2 (#13382)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-28 20:25:16 +08:00
renovate[bot] 4b44fbde59 Update dependency @babel/core to v7.18.13 (#13366)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-28 20:05:23 +08:00
Georgii Dolzhykov 05c873f09d Playground: fix 'show doc', add folding for doc-explorer (#13336) 2022-08-22 09:25:18 +03:00
fisker Cheung 5fa0802315 Add getVisitorKeys (#13255) 2022-08-17 09:47:08 +08:00
fisker Cheung 18a31ebc7e Merge branch 'main' into next 2022-08-08 01:11:08 +08:00
Georgii Dolzhykov 67efa96da6 Custom parser API: deprecation notice (#13252) 2022-08-07 14:12:17 +03:00
renovate[bot] 3341cc4e77 Update babel to v7.18.10 (#13238)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-07 11:46:57 +08:00
Georgii Dolzhykov 21b4045dfa Link option philosophy from the main page (#13231)
website: link Option Philosophy from the main page
2022-08-06 19:48:37 +03:00
fisker 07ac240dfb Fix 2022-08-06 11:47:29 +08:00
fisker 5daa8eba6c Merge remote-tracking branch 'remotes/upstream/main' into next
# Conflicts:
#	.gitignore
#	website/playground/PrettierFormat.js
#	website/static/worker.js
2022-08-06 11:42:33 +08:00
Georgii Dolzhykov bbbeeb07f6 Playground: "Rethrow embed errors" checkbox (#13227) 2022-08-05 17:05:50 +03:00
fisker Cheung 14968e4c59 Enable eslint rule to forbid cli/ import code from other directories (#13209) 2022-08-03 18:30:45 +08:00
fisker Cheung 298347c9fb Merge branch 'main' into next
# Conflicts:
#	netlify.toml
#	src/cli/find-cache-file.js
#	src/cli/utils.js
#	src/main/parser.js
#	website/playground/PrettierFormat.js
#	website/static/worker.js
2022-08-01 11:27:34 +08:00
renovate[bot] eba02d42ab Update dependency webpack to v5.74.0 (#13196)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-01 11:07:21 +08:00
jinxdash 80ec70f81f Add rust to community plugins (#13180)
Add prettier-plugin-rust
2022-07-28 13:06:11 +03:00
renovate[bot] 5cce128ec1 Update dependency concurrently to v7.3.0 (#13169)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-24 11:31:59 +08:00
renovate[bot] b95ecc8a6d Update babel to v7.18.9 (#13163)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-24 11:31:26 +08:00
Georgii Dolzhykov b65cb6c1f6 Playground: doc explorer (#10183) 2022-07-23 22:46:16 +03:00
fisker Cheung 4d4947c284 Merge branch 'main' into next
# Conflicts:
#	src/cli/logger.js
#	src/language-js/print/binaryish.js
#	website/package.json
#	website/yarn.lock
2022-07-19 14:13:01 +08:00
fisker Cheung 8880afe9d1 Update dependencies in /website (#13112) 2022-07-15 22:55:29 +08:00
renovate[bot] 2b9a2d3973 Update babel to v7.18.6 (#13064)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-10 19:30:48 +08:00
renovate[bot] 349fc53d19 Update dependency codemirror to v5.65.6 (#13043)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-28 11:26:26 +08:00
renovate[bot] 37074482c8 Update react to v18.2.0 (#13028)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-19 21:54:40 +08:00
renovate[bot] 3ad967cca9 Update dependency concurrently to v7.2.2 (#13023)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-19 15:32:23 +08:00
renovate[bot] 8bb15ea099 Update dependency @babel/core to v7.18.5 (#13020)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-19 13:49:45 +08:00
renovate[bot] 53d10e1c14 Update dependency webpack-cli to v4.10.0 (#13027)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-19 13:49:25 +08:00
fisker 0e0f879c1a Merge branch 'main' into next
# Conflicts:
#	docs/browser.md
#	package.json
#	scripts/release/yarn.lock
#	scripts/vendors/vendor-meta.json
#	scripts/vendors/vendors.mjs
#	src/cli/expand-patterns.js
#	src/cli/format.js
#	src/cli/utils.js
#	src/language-js/index.js
#	src/language-js/parse/postprocess/index.js
#	src/language-js/parse/postprocess/typescript.js
#	tests/format/misc/errors/invalid/jsfmt.spec.js
#	tests/integration/__tests__/__snapshots__/support-info.js.snap
#	website/playground/sidebar/SidebarOptions.js
#	yarn.lock
2022-06-19 11:12:22 +08:00
fisker Cheung eeed611c72 Release 2.7.1 2022-06-16 13:36:19 +08:00
renovate[bot]andRenovate Bot d6cb8bce78 Update dependency codemirror-graphql to v1.3.2 (#12998)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-16 13:24:53 +08:00
Sosuke Suzuki 6b388faa50 Add truncate 2022-06-14 15:36:02 +09:00
fisker Cheung 59ec4f2ef4 Bump Prettier dependency to 2.7.0 2022-06-14 14:33:25 +08:00
fisker Cheung 00a6a9d021 Update dependents count 2022-06-14 14:27:11 +08:00
Sosuke Suzukiandfisker Cheung 934068ac6a Add 2.7 blog post (#12966)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-06-14 14:25:40 +08:00
fisker Cheung 13dcc16330 Release 2.7.0 2022-06-14 13:06:41 +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
renovate[bot]andRenovate Bot f8ce3b3d96 Update dependency codemirror to v5.65.5 (#12969)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-07 09:08:06 +08:00
renovate[bot]andRenovate Bot c6c18be3c9 Update dependency webpack to v5.73.0 (#12978)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-06 21:46:58 +08:00
renovate[bot]andRenovate Bot c6255dc2dc Update dependency concurrently to v7.2.1 (#12939)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-29 11:10:57 +08:00
renovate[bot]andRenovate Bot 29f22bb217 Update babel (#12941)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-29 10:59:18 +08:00
renovate[bot]andRenovate Bot 8460cdfffa Update dependency codemirror to v5.65.4 (#12903)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-29 10:51:06 +08:00
fisker Cheung 9569ab12aa Merge branch 'main' into next
# Conflicts:
#	.github/renovate.json5
#	.github/workflows/lint.yml
#	package.json
#	src/cli/format.js
#	src/language-js/print/type-annotation.js
#	src/language-js/print/typescript.js
#	src/language-js/utils/index.js
#	tests/format/typescript/enum/jsfmt.spec.js
#	tests/format/vue/with-plugins/jsfmt.spec.js
#	website/yarn.lock
#	yarn.lock
2022-05-28 11:19:03 +08:00
renovate[bot]andRenovate Bot 9f08ac5e2e Update dependency @babel/preset-env to v7.18.0 (#12909)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-22 16:00:47 +08:00
Jed Fox de16657ba0 Remove all references to Gitter (#12885) 2022-05-16 11:08:44 -04:00
fisker Cheung 9b11f99124 Refresh yarn.lock in /website (#12883) 2022-05-16 13:47:53 +08:00
Harry Hopkinson ebc436fcc1 Updated caniuse-lite to remove yarn build:website warning. (#12867) 2022-05-16 11:03:30 +08:00
renovate[bot]andRenovate Bot aa75818b64 Update dependency webpack to v5.72.1 (#12873)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-16 10:27:59 +08:00
renovate[bot]andRenovate Bot 577278262a Update dependency concurrently to v7.2.0 (#12879)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-16 10:22:56 +08:00
renovate[bot]andRenovate Bot 17ab1a8482 Update dependency codemirror-graphql to v1.3.0 (#12847)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-08 19:09:00 +08:00
renovate[bot]andRenovate Bot 777d07ad6d Update dependency codemirror to v5.65.3 (#12820)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-08 18:55:27 +08:00
renovate[bot]andRenovate Bot 2105825d5d Update react to v18 (major) (#12849)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-08 18:43:11 +08:00