Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 28, 2022

Bumps prettier-plugin-java from 1.3.1 to 2.0.0.

Release notes

Sourced from prettier-plugin-java's releases.

v2.0.0

Breaking changes

  • Drop support of Node.js 12

Enhancements

  • Support pattern matching guards (Issue #535 closed with #559)
// Input
class T {
void test(Buyer other) {
    return switch (other) {
        case null -> true;
        case Buyer b && this.bestPrice > b.bestPrice -> true;
        case Buyer b && this.bestPrice > b.bestPrice -> {
            return true;
        }
        case (Buyer b && this.bestPrice > b.bestPrice) -> true;
        case Buyer b && this.bestPrice > b.bestPrice && this.bestPrice > b.bestPrice && this.bestPrice > b.bestPrice && this.bestPrice > b.bestPrice -> true;
        case Buyer b && this.bestPrice > b.bestPrice && this.bestPrice > b.bestPrice && this.bestPrice > b.bestPrice && this.bestPrice > b.bestPrice -> {
            return true;
        }
        case (Buyer b && this.bestPrice > b.bestPrice && this.bestPrice > b.bestPrice && this.bestPrice > b.bestPrice && this.bestPrice > b.bestPrice) -> true;
        case (Buyer b && this.bestPrice > b.bestPrice && this.bestPrice > b.bestPrice && this.bestPrice > b.bestPrice && this.bestPrice > b.bestPrice) -> {
            return true;
        }
        default -> false;
    };
}

}
// Output
class T {
void test(Buyer other) {
return switch (other) {
case null -> true;
case Buyer b && this.bestPrice > b.bestPrice -> true;
case Buyer b && this.bestPrice > b.bestPrice -> {
return true;
}
case (Buyer b && this.bestPrice > b.bestPrice) -> true;
case Buyer b &&
this.bestPrice > b.bestPrice &&
this.bestPrice > b.bestPrice &&
this.bestPrice > b.bestPrice &&
this.bestPrice > b.bestPrice -> true;
case Buyer b &&
this.bestPrice > b.bestPrice &&
</tr></table>

... (truncated)

Changelog

Sourced from prettier-plugin-java's changelog.

Latest v2.0.0

Breaking changes

  • Drop support of Node.js 12

Enhancements

  • Support pattern matching guards (Issue #535 closed with #559)
// Input
class T {
void test(Buyer other) {
    return switch (other) {
        case null -&gt; true;
        case Buyer b &amp;&amp; this.bestPrice &gt; b.bestPrice -&gt; true;
        case Buyer b &amp;&amp; this.bestPrice &gt; b.bestPrice -&gt; {
            return true;
        }
        case (Buyer b &amp;&amp; this.bestPrice &gt; b.bestPrice) -&gt; true;
        case Buyer b &amp;&amp; this.bestPrice &gt; b.bestPrice &amp;&amp; this.bestPrice &gt; b.bestPrice &amp;&amp; this.bestPrice &gt; b.bestPrice &amp;&amp; this.bestPrice &gt; b.bestPrice -&gt; true;
        case Buyer b &amp;&amp; this.bestPrice &gt; b.bestPrice &amp;&amp; this.bestPrice &gt; b.bestPrice &amp;&amp; this.bestPrice &gt; b.bestPrice &amp;&amp; this.bestPrice &gt; b.bestPrice -&gt; {
            return true;
        }
        case (Buyer b &amp;&amp; this.bestPrice &gt; b.bestPrice &amp;&amp; this.bestPrice &gt; b.bestPrice &amp;&amp; this.bestPrice &gt; b.bestPrice &amp;&amp; this.bestPrice &gt; b.bestPrice) -&gt; true;
        case (Buyer b &amp;&amp; this.bestPrice &gt; b.bestPrice &amp;&amp; this.bestPrice &gt; b.bestPrice &amp;&amp; this.bestPrice &gt; b.bestPrice &amp;&amp; this.bestPrice &gt; b.bestPrice) -&gt; {
            return true;
        }
        default -&gt; false;
    };
}

}
// Output
class T {
void test(Buyer other) {
return switch (other) {
case null -> true;
case Buyer b && this.bestPrice > b.bestPrice -> true;
case Buyer b && this.bestPrice > b.bestPrice -> {
return true;
}
case (Buyer b && this.bestPrice > b.bestPrice) -> true;
case Buyer b &&
this.bestPrice > b.bestPrice &&
this.bestPrice > b.bestPrice &&
this.bestPrice > b.bestPrice &&
this.bestPrice > b.bestPrice -> true;
case Buyer b &&
</tr></table>

... (truncated)

Commits
  • d1d1e41 Publish
  • 4dd9016 chore: update CHANGELOG
  • bc41613 refactor: prepare migration to Prettier v3
  • 8d7b901 build(deps): bump node-fetch from 2.6.1 to 2.6.7 (#540)
  • 3735953 build(deps): bump trim-off-newlines from 1.0.1 to 1.0.3 (#539)
  • ea0005a build(deps): bump path-parse from 1.0.6 to 1.0.7 (#494)
  • 2f9d09c build(deps): bump minimatch from 3.0.4 to 3.0.5 (#562)
  • a331886 Chore/update dependencies (#560)
  • a36b2cc feat(printer): add guarded pattern matching support
  • bfdc38e feat(parser): support pattern matching guards
  • Additional commits viewable in compare view

Dependabot compatibility score

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 close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor 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)

Bumps [prettier-plugin-java](https://github.com/jhipster/prettier-java) from 1.3.1 to 2.0.0.
- [Release notes](https://github.com/jhipster/prettier-java/releases)
- [Changelog](https://github.com/jhipster/prettier-java/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jhipster/prettier-java/compare/v1.3.1...prettier-plugin-java@2.0.0)

---
updated-dependencies:
- dependency-name: prettier-plugin-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Nov 28, 2022
@dependabot dependabot bot requested a review from DiogoTheCoder November 28, 2022 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant