Skip to content

Bump prettier from 2.8.5 to 2.8.6

Dependabot requested to merge dependabot-npm_and_yarn-prettier-2.8.6 into master

Bumps prettier from 2.8.5 to 2.8.6.

Release notes

Sourced from prettier's releases.

2.8.6

  • Allow decorators on private members and class expressions

🔗 Changelog

Changelog

Sourced from prettier's changelog.

2.8.6

diff

Allow decorators on private members and class expressions (#14548 by @​fisker)

// Input
class A {
  @decorator()
  #privateMethod () {}
}
// Prettier 2.8.5
SyntaxError: Decorators are not valid here. (2:3)
1 | class A {
> 2 |   @decorator()
|   ^^^^^^^^^^^^
3 |   #privateMethod () {}
4 | }
// Prettier 2.8.6
class A {
@decorator()
#privateMethod() {}
}
Commits


Dependabot commands
You can trigger Dependabot actions by commenting on this MR
  • $dependabot rebase will rebase this MR
  • $dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts

Merge request reports

Loading