Cap-go / capacitor-flash

Switch the Flashlight / Torch of your device.
https://capgo.app
13 stars 4 forks source link

chore(deps): update dependency prettier-plugin-java to v2 #12

Closed renovate[bot] closed 2 years ago

renovate[bot] commented 2 years ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
prettier-plugin-java ^1.6.2 -> ^2.0.0 age adoption passing confidence

Release Notes

jhipster/prettier-java ### [`v2.0.0`](https://togithub.com/jhipster/prettier-java/blob/HEAD/CHANGELOG.md#Latest-v200) [Compare Source](https://togithub.com/jhipster/prettier-java/compare/prettier-plugin-java@1.6.2...prettier-plugin-java@2.0.0) #### Breaking changes - Drop support of Node.js 12 #### Enhancements - Support pattern matching guards (Issue [#​535](https://togithub.com/jhipster/prettier-java/issues/535) closed with [#​559](https://togithub.com/jhipster/prettier-java/pull/559)) ```java // 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 && 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; }; } } ``` #### Fixes - Fix parsing of escaped spaces in strings (Issue [#​541](https://togithub.com/jhipster/prettier-java/issues/541) closed with [#​543](https://togithub.com/jhipster/prettier-java/pull/543)) ```java public class Test { public static final String REGEX = "^\s$"; } ``` - Fix unwanted space in "exports"-statement in module-info.java (Issue [#​550](https://togithub.com/jhipster/prettier-java/issues/550) closed with [#​551](https://togithub.com/jhipster/prettier-java/pull/551)) Thanks to [@​BjornJaspers](https://togithub.com/BjornJaspers) for the fix ```java // Input open module org.myorg.module { requires some.required.module; exports org.myorg.module.exportpackage1; exports org.myorg.module.exportpackage2; } ``` ```java // Prettier 1.6.2 open module org.myorg.module { requires some.required.module; exports org.myorg.module.exportpackage1 ; exports org.myorg.module.exportpackage2 ; } ``` ```java // Prettier 1.6.3 open module org.myorg.module { requires some.required.module; exports org.myorg.module.exportpackage1; exports org.myorg.module.exportpackage2; } ``` #### Misc - doc: add VSCode Java import order configuration ([#​546](https://togithub.com/jhipster/prettier-java/pull/546)) Thanks to [@​derkoe](https://togithub.com/derkoe) for the contribution

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.