From bbd789b74908b9bdf87a4dd8e2c2c7b88c36739c Mon Sep 17 00:00:00 2001 From: Calciumdibromid Bot Date: Fri, 10 Feb 2023 14:53:51 +0000 Subject: [PATCH] Update dependency prettier to v2.8.4 (#1775) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [prettier](https://prettier.io) ([source](https://github.com/prettier/prettier)) | devDependencies | patch | [`2.8.3` -> `2.8.4`](https://renovatebot.com/diffs/npm/prettier/2.8.3/2.8.4) | --- ### Release Notes
prettier/prettier ### [`v2.8.4`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#​284) [Compare Source](https://github.com/prettier/prettier/compare/2.8.3...2.8.4) [diff](https://github.com/prettier/prettier/compare/2.8.3...2.8.4) ##### Fix leading comments in mapped types with `readonly` ([#​13427](https://github.com/prettier/prettier/pull/13427) by [@​thorn0](https://github.com/thorn0), [@​sosukesuzuki](https://github.com/sosukesuzuki)) ```tsx // Input type Type = { // comment readonly [key in Foo]; }; // Prettier 2.8.3 type Type = { readonly // comment [key in Foo]; }; // Prettier 2.8.4 type Type = { // comment readonly [key in Foo]; }; ``` ##### Group params in opening block statements ([#​14067](https://github.com/prettier/prettier/pull/14067) by [@​jamescdavis](https://github.com/jamescdavis)) This is a follow-up to [#​13930](https://github.com/prettier/prettier/issues/13930) to establish wrapping consistency between opening block statements and else blocks by grouping params in opening blocks. This causes params to break to a new line together and not be split across lines unless the length of params exceeds the print width. This also updates the else block wrapping to behave exactly the same as opening blocks. ```hbs {{! Input }} {{#block param param param param param param param param param param as |blockParam|}} Hello {{else block param param param param param param param param param param as |blockParam|}} There {{/block}} {{! Prettier 2.8.3 }} {{#block param param param param param param param param param param as |blockParam| }} Hello {{else block param param param param param param param param param param}} There {{/block}} {{! Prettier 2.8.4 }} {{#block param param param param param param param param param param as |blockParam| }} Hello {{else block param param param param param param param param param param as |blockParam| }} There {{/block}} ``` ##### Ignore files in `.sl/` ([#​14206](https://github.com/prettier/prettier/pull/14206) by [@​bolinfest](https://github.com/bolinfest)) In [Sapling SCM](https://sapling-scm.com/), `.sl/` is the folder where it stores its state, analogous to `.git/` in Git. It should be ignored in Prettier like the other SCM folders. ##### Recognize `@satisfies` in Closure-style type casts ([#​14262](https://github.com/prettier/prettier/pull/14262) by [@​fisker](https://github.com/fisker)) ```jsx // Input const a = /** @​satisfies {Record} */ ({hello: 1337}); const b = /** @​type {Record} */ ({hello: 1337}); // Prettier 2.8.3 const a = /** @​satisfies {Record} */ { hello: 1337 }; const b = /** @​type {Record} */ ({ hello: 1337 }); // Prettier 2.8.4 const a = /** @​satisfies {Record} */ ({hello: 1337}); const b = /** @​type {Record} */ ({hello: 1337}); ``` ##### Fix parens in inferred function return types with `extends` ([#​14279](https://github.com/prettier/prettier/pull/14279) by [@​fisker](https://github.com/fisker)) ```ts // Input type Foo = T extends ((a) => a is infer R extends string) ? R : never; // Prettier 2.8.3 (First format) type Foo = T extends (a) => a is infer R extends string ? R : never; // Prettier 2.8.3 (Second format) SyntaxError: '?' expected. // Prettier 2.8.4 type Foo = T extends ((a) => a is infer R extends string) ? R : never; ```
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Co-authored-by: cabr2-bot Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1775 Reviewed-by: Epsilon_02 Co-authored-by: Calciumdibromid Bot Co-committed-by: Calciumdibromid Bot --- frontend/package.json | 2 +- frontend/yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 1b8d5570f..2c5bbbde1 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -74,7 +74,7 @@ "karma-coverage": "2.2.0", "karma-jasmine": "5.1.0", "karma-jasmine-html-reporter": "2.0.0", - "prettier": "2.8.3", + "prettier": "2.8.4", "ts-node": "10.9.1", "typescript": "4.9.5", "webpack-bundle-analyzer": "4.7.0" diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 5e7a3d5df..8105aa2a4 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -7780,10 +7780,10 @@ prettier-linter-helpers@^1.0.0: dependencies: fast-diff "^1.1.2" -prettier@2.8.3: - version "2.8.3" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.3.tgz#ab697b1d3dd46fb4626fbe2f543afe0cc98d8632" - integrity sha512-tJ/oJ4amDihPoufT5sM0Z1SKEuKay8LfVAMlbbhnnkvt6BUserZylqo2PN+p9KeljLr0OHa2rXHU1T8reeoTrw== +prettier@2.8.4: + version "2.8.4" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.4.tgz#34dd2595629bfbb79d344ac4a91ff948694463c3" + integrity sha512-vIS4Rlc2FNh0BySk3Wkd6xmwxB0FpOndW5fisM5H8hsZSxU2VWVB5CWIkIjWvrHjIhxk2g3bfMKM87zNTrZddw== pretty-bytes@^5.3.0: version "5.6.0"