Release notes
*Sourced from [prettier's releases](https://github.com/prettier/prettier/releases).*
> ## 1.17.1
> 🔗 [**Changelog**](https://github.com/prettier/prettier/blob/master/CHANGELOG.md#1171)
Changelog
*Sourced from [prettier's changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md).*
> # 1.17.1
>
> [diff](https://github.com/prettier/prettier/compare/1.17.0...1.17.1)
>
> - Range: Fix ranged formatting not using the correct line width ([#6050] by [@mathieulj])
>
>
> ```js
> // Input
> function f() {
> if (true) {
> call("this line is 79 chars", "long", "it should", "stay as single line");
> }
> }
>
> // Output (Prettier 1.17.0 run with --range-start 30 --range-end 110)
> function f() {
> if (true) {
> call(
> "this line is 79 chars",
> "long",
> "it should",
> "stay as single line"
> );
> }
> }
>
> // Output (Prettier 1.17.0 run without range)
> function f() {
> if (true) {
> call("this line is 79 chars", "long", "it should", "stay as single line");
> }
> }
>
> // Output (Prettier 1.17.1 with and without range)
> function f() {
> if (true) {
> call("this line is 79 chars", "long", "it should", "stay as single line");
> }
> }
> ```
>
> - JavaScript: Fix closure compiler typecasts ([#5947] by [@jridgewell])
>
> If a closing parenthesis follows after a typecast in an inner expression, the typecast would wrap everything to the that following parenthesis.
>
>
> ```js
> // Input
> test(/** [@type](https://github.com/type) {!Array} */(arrOrString).length);
> ... (truncated)
Commits
- [`aa7b68c`](https://github.com/prettier/prettier/commit/aa7b68c0f098f3292012c5ea82cba6a4a31a5249) Release 1.17.1
- [`b44748e`](https://github.com/prettier/prettier/commit/b44748eecbf56a363c7147913192c2148d68e8a8) Fix lint
- [`58b08c9`](https://github.com/prettier/prettier/commit/58b08c991567f6e3966b1eff128f2e4c61806ae3) Update CHANGELOG.unreleased.md
- [`54b7655`](https://github.com/prettier/prettier/commit/54b7655daba78bf766e5cfc3ef16c957bf4bbc2c) Improved multiline closure comment detection ([#6070](https://github-redirect.dependabot.com/prettier/prettier/issues/6070))
- [`26183e5`](https://github.com/prettier/prettier/commit/26183e5be2c07eeb392b3a6b7822517cf6f43fc6) Use same print width for range formatting as normal formatting. ([#6050](https://github-redirect.dependabot.com/prettier/prettier/issues/6050))
- [`84cc273`](https://github.com/prettier/prettier/commit/84cc273c7d7e18cae1e5b5ad110c2c335d14ba05) fix(glimmer): {{else}}{{#if}} into {{else if}} merging ([#6080](https://github-redirect.dependabot.com/prettier/prettier/issues/6080))
- [`157b020`](https://github.com/prettier/prettier/commit/157b020de6cdf297346b2dd3185cb10e0c7a2d9f) fix(javascript): correctly handle comments in empty arrow function expression...
- [`c085aeb`](https://github.com/prettier/prettier/commit/c085aeb152a7d881e4b85ebfc8a071f3aa1eb36e) Fix closure compiler type casts ([#5947](https://github-redirect.dependabot.com/prettier/prettier/issues/5947))
- [`ed15b6d`](https://github.com/prettier/prettier/commit/ed15b6d04e60a75d81c406ee899a86690187d44e) Add exit code information to cli docs ([#6049](https://github-redirect.dependabot.com/prettier/prettier/issues/6049))
- [`9179743`](https://github.com/prettier/prettier/commit/91797439d9f841a7e91e690ede1836bcefcf03da) docs(blog): add missing subheader ([#6060](https://github-redirect.dependabot.com/prettier/prettier/issues/6060))
- Additional commits viewable in [compare view](https://github.com/prettier/prettier/compare/1.17.0...1.17.1)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps prettier from 1.17.0 to 1.17.1.
Release notes
*Sourced from [prettier's releases](https://github.com/prettier/prettier/releases).* > ## 1.17.1 > 🔗 [**Changelog**](https://github.com/prettier/prettier/blob/master/CHANGELOG.md#1171)Changelog
*Sourced from [prettier's changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md).* > # 1.17.1 > > [diff](https://github.com/prettier/prettier/compare/1.17.0...1.17.1) > > - Range: Fix ranged formatting not using the correct line width ([#6050] by [@mathieulj]) > > > ```js > // Input > function f() { > if (true) { > call("this line is 79 chars", "long", "it should", "stay as single line"); > } > } > > // Output (Prettier 1.17.0 run with --range-start 30 --range-end 110) > function f() { > if (true) { > call( > "this line is 79 chars", > "long", > "it should", > "stay as single line" > ); > } > } > > // Output (Prettier 1.17.0 run without range) > function f() { > if (true) { > call("this line is 79 chars", "long", "it should", "stay as single line"); > } > } > > // Output (Prettier 1.17.1 with and without range) > function f() { > if (true) { > call("this line is 79 chars", "long", "it should", "stay as single line"); > } > } > ``` > > - JavaScript: Fix closure compiler typecasts ([#5947] by [@jridgewell]) > > If a closing parenthesis follows after a typecast in an inner expression, the typecast would wrap everything to the that following parenthesis. > > > ```js > // Input > test(/** [@type](https://github.com/type) {!Array} */(arrOrString).length); > ... (truncated)Commits
- [`aa7b68c`](https://github.com/prettier/prettier/commit/aa7b68c0f098f3292012c5ea82cba6a4a31a5249) Release 1.17.1 - [`b44748e`](https://github.com/prettier/prettier/commit/b44748eecbf56a363c7147913192c2148d68e8a8) Fix lint - [`58b08c9`](https://github.com/prettier/prettier/commit/58b08c991567f6e3966b1eff128f2e4c61806ae3) Update CHANGELOG.unreleased.md - [`54b7655`](https://github.com/prettier/prettier/commit/54b7655daba78bf766e5cfc3ef16c957bf4bbc2c) Improved multiline closure comment detection ([#6070](https://github-redirect.dependabot.com/prettier/prettier/issues/6070)) - [`26183e5`](https://github.com/prettier/prettier/commit/26183e5be2c07eeb392b3a6b7822517cf6f43fc6) Use same print width for range formatting as normal formatting. ([#6050](https://github-redirect.dependabot.com/prettier/prettier/issues/6050)) - [`84cc273`](https://github.com/prettier/prettier/commit/84cc273c7d7e18cae1e5b5ad110c2c335d14ba05) fix(glimmer): {{else}}{{#if}} into {{else if}} merging ([#6080](https://github-redirect.dependabot.com/prettier/prettier/issues/6080)) - [`157b020`](https://github.com/prettier/prettier/commit/157b020de6cdf297346b2dd3185cb10e0c7a2d9f) fix(javascript): correctly handle comments in empty arrow function expression... - [`c085aeb`](https://github.com/prettier/prettier/commit/c085aeb152a7d881e4b85ebfc8a071f3aa1eb36e) Fix closure compiler type casts ([#5947](https://github-redirect.dependabot.com/prettier/prettier/issues/5947)) - [`ed15b6d`](https://github.com/prettier/prettier/commit/ed15b6d04e60a75d81c406ee899a86690187d44e) Add exit code information to cli docs ([#6049](https://github-redirect.dependabot.com/prettier/prettier/issues/6049)) - [`9179743`](https://github.com/prettier/prettier/commit/91797439d9f841a7e91e690ede1836bcefcf03da) docs(blog): add missing subheader ([#6060](https://github-redirect.dependabot.com/prettier/prettier/issues/6060)) - Additional commits viewable in [compare view](https://github.com/prettier/prettier/compare/1.17.0...1.17.1)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.