lovetodream / capacitor-plugin-siri-shortcuts

Capacitor Plugin for Siri Shortcuts
MIT License
18 stars 6 forks source link

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

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

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

Release Notes

jhipster/prettier-java (prettier-plugin-java) ### [`v2.3.0`](https://togithub.com/jhipster/prettier-java/blob/HEAD/CHANGELOG.md#Latest-v230) [Compare Source](https://togithub.com/jhipster/prettier-java/compare/prettier-plugin-java@2.2.0...prettier-plugin-java@2.3.0) #### Enhancements - Break long lines on type arguments ([#​584](https://togithub.com/jhipster/prettier-java/pull/584)) - Break and indent binary expression with cast properly ([#​587](https://togithub.com/jhipster/prettier-java/pull/587)) - Adjust indentation of multiline string (Issue [#​593](https://togithub.com/jhipster/prettier-java/pull/593) fixed with [#​596](https://togithub.com/jhipster/prettier-java/pull/596)) - Improves binary expression formatting ([#​594](https://togithub.com/jhipster/prettier-java/pull/594)) - Supports JLS annotation style ([#​586](https://togithub.com/jhipster/prettier-java/pull/586) Thanks to [@​jtkiesel](https://togithub.com/jtkiesel) for all of these contributions ! #### Fixes - Fix browser compatibility issue when run in browser (Issue [#​597](https://togithub.com/jhipster/prettier-java/pull/597) fixed with [#​598](https://togithub.com/jhipster/prettier-java/pull/598)) Thanks to [@​magic-akari](https://togithub.com/magic-akari) for the contribution ### [`v2.2.0`](https://togithub.com/jhipster/prettier-java/blob/HEAD/CHANGELOG.md#Latest-v220) [Compare Source](https://togithub.com/jhipster/prettier-java/compare/prettier-plugin-java@2.1.0...prettier-plugin-java@2.2.0) #### Enhancements - Upgrade prettier version to Prettier v3 ### [`v2.1.0`](https://togithub.com/jhipster/prettier-java/blob/HEAD/CHANGELOG.md#v210) [Compare Source](https://togithub.com/jhipster/prettier-java/compare/prettier-plugin-java@2.0.0...prettier-plugin-java@2.1.0) ### [`v2.0.0`](https://togithub.com/jhipster/prettier-java/blob/HEAD/CHANGELOG.md#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.