Release notes
*Sourced from [prettier's releases](https://github.com/prettier/prettier/releases).*
> ## 1.16.1
> 🔗 [**Changelog**](https://github.com/prettier/prettier/blob/master/CHANGELOG.md#1161)
Changelog
*Sourced from [prettier's changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md).*
> # 1.16.1
>
> [diff](https://github.com/prettier/prettier/compare/1.16.0...1.16.1)
>
> - JavaScript: Do not format functions with arguments as react hooks ([#5778] by [[**SimenB**](https://github.com/SimenB)])
>
> The formatting added in Prettier 1.16 would format any function receiving an
> arrow function and an array literal to match React Hook's documentation.
> Prettier will now format this the same as before that change if the arrow
> function receives any arguments.
>
>
> ```js
> // Input
> ["red", "white", "blue", "black", "hotpink", "rebeccapurple"].reduce(
> (allColors, color) => {
> return allColors.concat(color);
> },
> []
> );
>
> // Output (Prettier 1.16.0)
> ["red", "white", "blue", "black", "hotpink", "rebeccapurple"].reduce((
> allColors,
> color
> ) => {
> return allColors.concat(color);
> }, []);
>
> // Output (Prettier 1.16.1)
> ["red", "white", "blue", "black", "hotpink", "rebeccapurple"].reduce(
> (allColors, color) => {
> return allColors.concat(color);
> },
> []
> );
> ```
>
> - JavaScript: Add necessary parentheses for decorators ([#5785] by [[**ikatyang**](https://github.com/ikatyang)])
>
> Parentheses for decorators with nested call expressions are optional for legacy decorators
> but they're required for decorators in the current [proposal](https://tc39.github.io/proposal-decorators/#sec-syntax).
>
>
> ```js
> // Input
> class X {
> @(computed().volatile())
> prop
> }
> ... (truncated)
Commits
- [`0274f9c`](https://github.com/prettier/prettier/commit/0274f9ca420208fdd0766899cc6377dc4bf158a5) Release 1.16.1
- [`153d2d0`](https://github.com/prettier/prettier/commit/153d2d0570a19b490bf79f0eba3aa76e6fc77c4a) fix(typescript): stable parens for function type in arrow return type ([#5790](https://github-redirect.dependabot.com/prettier/prettier/issues/5790))
- [`1061be0`](https://github.com/prettier/prettier/commit/1061be070263f72653bdd69d41bfefc97699ec67) fix(mdx): correctly recognize inline JSX ([#5783](https://github-redirect.dependabot.com/prettier/prettier/issues/5783))
- [`2002ce0`](https://github.com/prettier/prettier/commit/2002ce0453d8224c5efbf8a072cd823d953cc717) fix(javascript): add necessary parentheses for decorators ([#5785](https://github-redirect.dependabot.com/prettier/prettier/issues/5785))
- [`7378843`](https://github.com/prettier/prettier/commit/737884341d20939cef68a29e5cf48ad27d41ef59) Update ext install command to match readme ([#5784](https://github-redirect.dependabot.com/prettier/prettier/issues/5784))
- [`5657316`](https://github.com/prettier/prettier/commit/565731668f8d4797e163eba812f4dac77cf63648) fix: do not format callbacks with arguments as React hooks ([#5778](https://github-redirect.dependabot.com/prettier/prettier/issues/5778))
- [`106fc36`](https://github.com/prettier/prettier/commit/106fc36c81b028bdab490a4393466cd51eb4bf11) docs: add CHANGELOG.unreleased.md ([#5775](https://github-redirect.dependabot.com/prettier/prettier/issues/5775))
- [`a01e6c7`](https://github.com/prettier/prettier/commit/a01e6c75da820457a4c7c8e3207be00ac28e4bfa) Fix typo ([#5776](https://github-redirect.dependabot.com/prettier/prettier/issues/5776))
- [`1dc3c6d`](https://github.com/prettier/prettier/commit/1dc3c6dc2d248d4ed3072795b8bcc0a406f9dfb6) docs(blog): 1.16 release ([#5752](https://github-redirect.dependabot.com/prettier/prettier/issues/5752))
- [`32f7e03`](https://github.com/prettier/prettier/commit/32f7e0390657533b80c2fb290bfbf5fbffe51464) Bump Prettier dependency to 1.16.0
- See full diff in [compare view](https://github.com/prettier/prettier/compare/1.16.0...1.16.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.
If all status checks pass Dependabot will automatically merge this pull request.
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 cancel merge` will cancel a previously requested merge
- `@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.16.0 to 1.16.1.
Release notes
*Sourced from [prettier's releases](https://github.com/prettier/prettier/releases).* > ## 1.16.1 > 🔗 [**Changelog**](https://github.com/prettier/prettier/blob/master/CHANGELOG.md#1161)Changelog
*Sourced from [prettier's changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md).* > # 1.16.1 > > [diff](https://github.com/prettier/prettier/compare/1.16.0...1.16.1) > > - JavaScript: Do not format functions with arguments as react hooks ([#5778] by [[**SimenB**](https://github.com/SimenB)]) > > The formatting added in Prettier 1.16 would format any function receiving an > arrow function and an array literal to match React Hook's documentation. > Prettier will now format this the same as before that change if the arrow > function receives any arguments. > > > ```js > // Input > ["red", "white", "blue", "black", "hotpink", "rebeccapurple"].reduce( > (allColors, color) => { > return allColors.concat(color); > }, > [] > ); > > // Output (Prettier 1.16.0) > ["red", "white", "blue", "black", "hotpink", "rebeccapurple"].reduce(( > allColors, > color > ) => { > return allColors.concat(color); > }, []); > > // Output (Prettier 1.16.1) > ["red", "white", "blue", "black", "hotpink", "rebeccapurple"].reduce( > (allColors, color) => { > return allColors.concat(color); > }, > [] > ); > ``` > > - JavaScript: Add necessary parentheses for decorators ([#5785] by [[**ikatyang**](https://github.com/ikatyang)]) > > Parentheses for decorators with nested call expressions are optional for legacy decorators > but they're required for decorators in the current [proposal](https://tc39.github.io/proposal-decorators/#sec-syntax). > > > ```js > // Input > class X { > @(computed().volatile()) > prop > } > ... (truncated)Commits
- [`0274f9c`](https://github.com/prettier/prettier/commit/0274f9ca420208fdd0766899cc6377dc4bf158a5) Release 1.16.1 - [`153d2d0`](https://github.com/prettier/prettier/commit/153d2d0570a19b490bf79f0eba3aa76e6fc77c4a) fix(typescript): stable parens for function type in arrow return type ([#5790](https://github-redirect.dependabot.com/prettier/prettier/issues/5790)) - [`1061be0`](https://github.com/prettier/prettier/commit/1061be070263f72653bdd69d41bfefc97699ec67) fix(mdx): correctly recognize inline JSX ([#5783](https://github-redirect.dependabot.com/prettier/prettier/issues/5783)) - [`2002ce0`](https://github.com/prettier/prettier/commit/2002ce0453d8224c5efbf8a072cd823d953cc717) fix(javascript): add necessary parentheses for decorators ([#5785](https://github-redirect.dependabot.com/prettier/prettier/issues/5785)) - [`7378843`](https://github.com/prettier/prettier/commit/737884341d20939cef68a29e5cf48ad27d41ef59) Update ext install command to match readme ([#5784](https://github-redirect.dependabot.com/prettier/prettier/issues/5784)) - [`5657316`](https://github.com/prettier/prettier/commit/565731668f8d4797e163eba812f4dac77cf63648) fix: do not format callbacks with arguments as React hooks ([#5778](https://github-redirect.dependabot.com/prettier/prettier/issues/5778)) - [`106fc36`](https://github.com/prettier/prettier/commit/106fc36c81b028bdab490a4393466cd51eb4bf11) docs: add CHANGELOG.unreleased.md ([#5775](https://github-redirect.dependabot.com/prettier/prettier/issues/5775)) - [`a01e6c7`](https://github.com/prettier/prettier/commit/a01e6c75da820457a4c7c8e3207be00ac28e4bfa) Fix typo ([#5776](https://github-redirect.dependabot.com/prettier/prettier/issues/5776)) - [`1dc3c6d`](https://github.com/prettier/prettier/commit/1dc3c6dc2d248d4ed3072795b8bcc0a406f9dfb6) docs(blog): 1.16 release ([#5752](https://github-redirect.dependabot.com/prettier/prettier/issues/5752)) - [`32f7e03`](https://github.com/prettier/prettier/commit/32f7e0390657533b80c2fb290bfbf5fbffe51464) Bump Prettier dependency to 1.16.0 - See full diff in [compare view](https://github.com/prettier/prettier/compare/1.16.0...1.16.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
.If all status checks pass Dependabot will automatically merge this pull request.
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 cancel merge` will cancel a previously requested merge - `@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.