Commit Graph
633 Commits
Author SHA1 Message Date
renovate[bot] 2dc687c613 Update dependency jest to v29.0.3 (#13459)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-13 14:08:37 +08:00
Sosuke Suzuki e92dcbd1a5 Add new ESLint prefer-ast-path-node (#13470)
* Add new lint rule `prefer-path-get-value`

* Add new rule

* Apply fix

* Ingore projects in benchmark

* Add comment
2022-09-11 18:39:06 +09:00
fisker Cheung 6082e3ec9e Remove outdated hack for flow parser (#13442) 2022-09-08 09:43:47 +08:00
Sosuke Suzuki e3ef1e4566 Drop Node.js 14 for development build (#13439)
* Drop Node.js 16 for development

* Fix engine

* Address review
2022-09-08 01:03:45 +09:00
renovate[bot]andfisker Cheung bd5f91545f Update dependency typescript to v4.8.2 (#13381)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-09-07 21:02:51 +08:00
Sosuke Suzuki 1142cf0cb7 Fix generate truncate comment (#13437)
Fix condition
2022-09-07 18:11:10 +09:00
fisker Cheung a6d6c9c3a2 Merge remote-tracking branch 'remotes/upstream/main' into next
# Conflicts:
#	scripts/build/config.mjs
2022-09-06 20:43:52 +08:00
fisker Cheung cd3e530c2e Reduce size of parser-typescript.js (#13431) 2022-09-06 20:38:50 +08:00
fisker Cheung 151ab582b5 Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/release/yarn.lock
#	yarn.lock
2022-09-06 19:22:51 +08:00
renovate[bot] 6de25047f6 Update dependency jest to v29.0.2 (#13418)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-06 09:46:57 +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
renovate[bot] b7cfea5d5f Update dependency jest to v29 (#13389)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-28 23:09:40 +08:00
Sosuke Suzuki 503045c050 Use import() for postcss parsers (#13277)
* Import core parsers

* Import media parser

* Import selector parser

* Import value parser

* Remove require

* Improve imports

* Fix bundle config
2022-08-15 22:30:46 +09:00
fisker Cheung 2052ce5cb8 Bundle CLI as ES Module (#13091) 2022-08-11 14:08:08 +08:00
fisker Cheung a6661e850c Use import() in parsers (#13261) 2022-08-10 19:32:44 +08:00
fisker CheungandGeorgii Dolzhykov 0b9cb96f58 Remove support for custom parser api (#13250)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2022-08-08 01:09:10 +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 Dolzhykovandfisker 2c77149e6a Add benchmark script (#13224)
Co-authored-by: fisker <lionkay@gmail.com>
2022-08-06 11:25:34 +08:00
fisker Cheung 33e621133c Remove prettier.doc.builders.concat (#13203) 2022-08-06 11:03:47 +08:00
fisker Cheung f7cdd326f8 Minor refactor (#13221) 2022-08-05 19:48:42 +08:00
renovate[bot] 0780ba4590 Update dependency webpack to v5.74.0 (#13195)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-01 11:07:33 +08:00
renovate[bot] a4954041af Update dependency node-fetch to v3.2.10 (#13199)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-01 10:59:36 +08:00
fisker Cheung 44d246a2a2 Support config file in ESM (#13130) 2022-08-01 10:51:31 +08:00
renovate[bot] 581ec3c3f8 Update dependency node-fetch to v3.2.9 (#13167)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-25 12:19:34 +08:00
fisker Cheung 1d750585fd Missing lock file 2022-07-23 18:24:34 +08:00
fisker Cheung 73b8c86cc4 Merge branch 'main' into next
# Conflicts:
#	scripts/tools/bundle-test/yarn.lock
2022-07-23 18:19:22 +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
renovate[bot] c840596d9e Update dependency node-fetch to v3.2.8 (#13122)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-18 10:20:29 +08:00
Sosuke Suzuki 6c722c7990 [next]Enforce fs/promises (#13119)
* Add new ESLint rule `prefer-fs-promises`

* Apply rule

* Renaming
2022-07-17 16:02:22 +09:00
renovate[bot] 3f9c2fec0b Update dependency jest to v28.1.3 (#13121)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-17 13:50:08 +08:00
Sosuke Suzuki 75c8d46ab4 Drop Node.js 12 Support (#13118)
* Drop Node.js 12 Support

* Update CHANGELOG

* Update build target

* Comment out

* Remove node 14 from `exclude`

* Update CI

* Update changelog_unreleased/api/11830.md
2022-07-17 04:26:27 +09:00
Sosuke Suzuki 33fcc6c4dd Update requirements (#13117) 2022-07-17 00:08:47 +09:00
fisker Cheung 29f6bc2c6d Migrate third-party.js to ES Module (#13092) 2022-07-12 10:20:11 +08:00
renovate[bot] 11cf33c0a6 Update dependency jest to v28.1.2 (#13069)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-10 19:28:55 +08:00
renovate[bot] be1d40831b Update dependency node-fetch to v3.2.6 (#13001)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-20 08:55:09 +08:00
renovate[bot] dcdbcb3720 Update dependency jest to v28.1.1 (#13000)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-06-19 22:41:56 +08:00
renovate[bot]andfisker Cheung ba2192a134 Update dependency esbuild to v0.14.46 (#12999)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-06-19 19:12:51 +08:00
fisker 3cbc068613 Fix spell check 2022-06-19 12:41:03 +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
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