vendelieu / telegram-bot

Telegram Bot API wrapper with handy Kotlin DSL.
https://vendelieu.github.io/telegram-bot/
Apache License 2.0
197 stars 15 forks source link

Update poet to v2 (major) #274

Closed renovate[bot] closed 3 weeks ago

renovate[bot] commented 3 weeks ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.squareup:kotlinpoet-ksp 1.18.1 -> 2.0.0 age adoption passing confidence
com.squareup:kotlinpoet 1.18.1 -> 2.0.0 age adoption passing confidence

Release Notes

square/kotlinpoet (com.squareup:kotlinpoet-ksp) ### [`v2.0.0`](https://redirect.github.com/square/kotlinpoet/releases/tag/2.0.0) [Compare Source](https://redirect.github.com/square/kotlinpoet/compare/1.18.1...2.0.0) Thanks to [@​brokenhappy](https://redirect.github.com/brokenhappy), [@​tajobe](https://redirect.github.com/tajobe), [@​niyajali](https://redirect.github.com/niyajali), [@​ForteScarlet](https://redirect.github.com/ForteScarlet) for contributing to this release. This release is source- and binary-compatible with KotlinPoet 1.x. The most important behavior change in this release is that spaces in generated code don't wrap by default anymore. KotlinPoet 1.x used to replace space characters with newline characters whenever a given line of code exceeded the length limit. This usually led to better code formatting, but could also lead to compilation errors in generated code. Non-breaking spaces could be marked by the `·` character, but the discoverability of this feature wasn't great. KotlinPoet 2.0 does not wrap spaces, even if the line of code they occur in exceeds the length limit. The newly introduced `♢` character can be used to mark spaces that are safe to wrap, which can improve code formatting. The `·` character has been preserved for compatibility, but its behavior is now equivalent to a regular space character. - New: Kotlin 2.0.10. - New: Spaces don't break by default. - New: New `♢` placeholder representing a space that is safe to wrap. - New: Add `KSTypeAlias.toClassName()`. ([#​1956](https://redirect.github.com/square/kotlinpoet/issues/1956)) - New: Add `KSType.toClassNameOrNull()`. ([#​1956](https://redirect.github.com/square/kotlinpoet/issues/1956)) - Fix: Enum classes that only have an init block now also generate the required semicolon. ([#​1953](https://redirect.github.com/square/kotlinpoet/issues/1953)) - Fix: Preserve typealiases in `KSAnnotation.toAnnotationSpec()`. ([#​1956](https://redirect.github.com/square/kotlinpoet/issues/1956)) - Fix: Preserve nullability in `KSType.toClassName()`. ([#​1956](https://redirect.github.com/square/kotlinpoet/issues/1956))

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 these updates again.



This PR was generated by Mend Renovate. View the repository job log.

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 81.61%. Comparing base (af4ff3c) to head (e4bfafe). Report is 39 commits behind head on dev.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev #274 +/- ## ========================================== + Coverage 80.04% 81.61% +1.57% ========================================== Files 139 143 +4 Lines 1463 1692 +229 Branches 95 95 ========================================== + Hits 1171 1381 +210 - Misses 223 240 +17 - Partials 69 71 +2 ``` [see 107 files with indirect coverage changes](https://app.codecov.io/gh/vendelieu/telegram-bot/pull/274/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jey)
renovate[bot] commented 3 weeks ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 2.x releases. But if you manually upgrade to 2.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.