Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

build(deps-dev): Bump prettier-plugin-java from 1.0.1 to 1.2.0 in /tools#2001

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/tools/prettier-plugin-java-1.2.0
Closed

build(deps-dev): Bump prettier-plugin-java from 1.0.1 to 1.2.0 in /tools#2001
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/tools/prettier-plugin-java-1.2.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Jun 14, 2021

Bumps prettier-plugin-java from 1.0.1 to 1.2.0.

Release notes

Sourced from prettier-plugin-java's releases.

v1.2.0

Enhancements

  • Supports of instance of pattern matching (#476)
// Input
if (o instanceof Integer i || p instanceof Point || q instanceof Circle c || r instanceof Square) {
  formatted = String.format("int %d", i);
} else if (o instanceof Long l) {
  formatted = String.format("long %d", l);
} else if (o instanceof Double d) {
  formatted = String.format("double %f", d);
} else if (o instanceof String s) {
  formatted = String.format("String %s", s);
}
// Output
if (
o instanceof Integer i ||
p instanceof Point ||
q instanceof Circle c ||
r instanceof Square
) {
formatted = String.format("int %d", i);
} else if (o instanceof Long l) {
formatted = String.format("long %d", l);
} else if (o instanceof Double d) {
formatted = String.format("double %f", d);
} else if (o instanceof String s) {
formatted = String.format("String %s", s);
}

  • Supports of sealed classes and interfaces (#478)
// Input
public sealed class Rectangle
  implements Shape
  permits Square {
private final double length;
private final double height;
public Rectangle(double length, double height) {
this.length = length;
this.height = height;
}
</tr></table>

... (truncated)

Changelog

Sourced from prettier-plugin-java's changelog.

Latest v1.2.0

Enhancements

  • Supports of instance of pattern matching (#476)
// Input
if (o instanceof Integer i || p instanceof Point || q instanceof Circle c || r instanceof Square) {
  formatted = String.format("int %d", i);
} else if (o instanceof Long l) {
  formatted = String.format("long %d", l);
} else if (o instanceof Double d) {
  formatted = String.format("double %f", d);
} else if (o instanceof String s) {
  formatted = String.format("String %s", s);
}
// Output
if (
o instanceof Integer i ||
p instanceof Point ||
q instanceof Circle c ||
r instanceof Square
) {
formatted = String.format("int %d", i);
} else if (o instanceof Long l) {
formatted = String.format("long %d", l);
} else if (o instanceof Double d) {
formatted = String.format("double %f", d);
} else if (o instanceof String s) {
formatted = String.format("String %s", s);
}

  • Supports of sealed classes and interfaces (#478)
// Input
public sealed class Rectangle
  implements Shape
  permits Square {
private final double length;
private final double height;
public Rectangle(double length, double height) {
this.length = length;
this.height = height;
}
</tr></table>

... (truncated)

Commits
  • bc0abb3 v1.2.0
  • bbfb58f chore: update CHANGELOG
  • 3c54cfe chore: fix vulnerabilities issues (#483)
  • 15cf779 build(deps): bump dot-prop from 4.2.0 to 4.2.1 (#481)
  • e23474b build(deps): bump glob-parent from 5.1.1 to 5.1.2 (#480)
  • 3dfeef4 Chore/ugrade deps (#479)
  • 0daf032 feat: support sealed classes
  • d20c1e3 docs: update parser Java spec references to Java 16
  • deda6ca docs: how to use prettier with Checkstyle
  • 5cc2fce feat: support instance of pattern matching
  • 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.0.1 to 1.2.0.
- [Release notes](https://github.com/jhipster/prettier-java/releases)
- [Changelog](https://github.com/jhipster/prettier-java/blob/main/CHANGELOG.md)
- [Commits](jhipster/prettier-java@v1.0.1...v1.2.0)

---
updated-dependencies:
- dependency-name: prettier-plugin-java
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added deps Dependency update dev-workflow Developer productivity, CI, builds, and/or processes labels Jun 14, 2021
@dependabot dependabot Bot requested a review from yukuairoy June 14, 2021 05:48
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Jun 21, 2021

Superseded by #2004.

@dependabot dependabot Bot closed this Jun 21, 2021
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/tools/prettier-plugin-java-1.2.0 branch June 21, 2021 06:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

deps Dependency update dev-workflow Developer productivity, CI, builds, and/or processes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants