Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump com.squareup:kotlinpoet from 1.18.1 to 2.0.0 (#347)
Bumps [com.squareup:kotlinpoet](https://github.com/square/kotlinpoet) from 1.18.1 to 2.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/square/kotlinpoet/releases">com.squareup:kotlinpoet's releases</a>.</em></p> <blockquote> <h2>2.0.0</h2> <p>Thanks to <a href="https://github.com/brokenhappy"><code>@brokenhappy</code></a>, <a href="https://github.com/tajobe"><code>@tajobe</code></a>, <a href="https://github.com/niyajali"><code>@niyajali</code></a>, <a href="https://github.com/ForteScarlet"><code>@ForteScarlet</code></a> for contributing to this release.</p> <p>This release is source- and binary-compatible with KotlinPoet 1.x.</p> <p>The most important behavior change in this release is that spaces in generated code don't wrap by default anymore.</p> <p>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 <code>·</code> character, but the discoverability of this feature wasn't great.</p> <p>KotlinPoet 2.0 does not wrap spaces, even if the line of code they occur in exceeds the length limit. The newly introduced <code>♢</code> character can be used to mark spaces that are safe to wrap, which can improve code formatting. The <code>·</code> character has been preserved for compatibility, but its behavior is now equivalent to a regular space character.</p> <ul> <li>New: Kotlin 2.0.10.</li> <li>New: Spaces don't break by default.</li> <li>New: New <code>♢</code> placeholder representing a space that is safe to wrap.</li> <li>New: Add <code>KSTypeAlias.toClassName()</code>. (<a href="https://redirect.github.com/square/kotlinpoet/issues/1956">#1956</a>)</li> <li>New: Add <code>KSType.toClassNameOrNull()</code>. (<a href="https://redirect.github.com/square/kotlinpoet/issues/1956">#1956</a>)</li> <li>Fix: Enum classes that only have an init block now also generate the required semicolon. (<a href="https://redirect.github.com/square/kotlinpoet/issues/1953">#1953</a>)</li> <li>Fix: Preserve typealiases in <code>KSAnnotation.toAnnotationSpec()</code>. (<a href="https://redirect.github.com/square/kotlinpoet/issues/1956">#1956</a>)</li> <li>Fix: Preserve nullability in <code>KSType.toClassName()</code>. (<a href="https://redirect.github.com/square/kotlinpoet/issues/1956">#1956</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/square/kotlinpoet/blob/main/docs/changelog.md">com.squareup:kotlinpoet's changelog</a>.</em></p> <blockquote> <h2>Version 2.0.0</h2> <p>Thanks to [<a href="https://github.com/brokenhappy"><code>@brokenhappy</code></a>][brokenhappy], [<a href="https://github.com/tajobe"><code>@tajobe</code></a>][tajobe], [<a href="https://github.com/niyajali"><code>@niyajali</code></a>][niyajali], [<a href="https://github.com/ForteScarlet"><code>@ForteScarlet</code></a>][ForteScarlet] for contributing to this release.</p> <p><em>2024-10-23</em></p> <p>This release is source- and binary-compatible with KotlinPoet 1.x.</p> <p>The most important behavior change in this release is that spaces in generated code don't wrap by default anymore.</p> <p>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 <code>·</code> character, but the discoverability of this feature wasn't great.</p> <p>KotlinPoet 2.0 does not wrap spaces, even if the line of code they occur in exceeds the length limit. The newly introduced <code>♢</code> character can be used to mark spaces that are safe to wrap, which can improve code formatting. The <code>·</code> character has been preserved for compatibility, but its behavior is now equivalent to a regular space character.</p> <ul> <li>New: Kotlin 2.0.10.</li> <li>New: Spaces don't break by default.</li> <li>New: New <code>♢</code> placeholder representing a space that is safe to wrap.</li> <li>New: Add <code>KSTypeAlias.toClassName()</code>. (<a href="https://redirect.github.com/square/kotlinpoet/issues/1956">#1956</a>)</li> <li>New: Add <code>KSType.toClassNameOrNull()</code>. (<a href="https://redirect.github.com/square/kotlinpoet/issues/1956">#1956</a>)</li> <li>Fix: Enum classes that only have an init block now also generate the required semicolon. (<a href="https://redirect.github.com/square/kotlinpoet/issues/1953">#1953</a>)</li> <li>Fix: Preserve typealiases in <code>KSAnnotation.toAnnotationSpec()</code>. (<a href="https://redirect.github.com/square/kotlinpoet/issues/1956">#1956</a>)</li> <li>Fix: Preserve nullability in <code>KSType.toClassName()</code>. (<a href="https://redirect.github.com/square/kotlinpoet/issues/1956">#1956</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/square/kotlinpoet/commit/96d4ebed0ef97ae0e49db90cf12fe33ba6f28098"><code>96d4ebe</code></a> Prepare for release 2.0.0</li> <li><a href="https://github.com/square/kotlinpoet/commit/41d18a95440b5c0b1900baee0fbdd050f9f1a34b"><code>41d18a9</code></a> Update dependency mkdocs-material to v9.5.42</li> <li><a href="https://github.com/square/kotlinpoet/commit/bf13b16c51a367becc77ef709a094c3226ecae1b"><code>bf13b16</code></a> Update dependency MarkupSafe to v3.0.2</li> <li><a href="https://github.com/square/kotlinpoet/commit/cf9a5e20f3b720a2c7af9c093bcd2adac7d8bb16"><code>cf9a5e2</code></a> Update dependency mkdocs-macros-plugin to v1.3.6</li> <li><a href="https://github.com/square/kotlinpoet/commit/e8320553df4930273321f323417274c8644f0893"><code>e832055</code></a> Update dependency mkdocs-material to v9.5.41</li> <li><a href="https://github.com/square/kotlinpoet/commit/e4e7a6fd0583f470619e620c2e694bd0ddde45d9"><code>e4e7a6f</code></a> Apply the JS and WasmJs source sets to the main module (<a href="https://redirect.github.com/square/kotlinpoet/issues/1992">#1992</a>)</li> <li><a href="https://github.com/square/kotlinpoet/commit/57586fed0649be03a82479b4746275d51b1104e1"><code>57586fe</code></a> Update line wrapping-related documentation (<a href="https://redirect.github.com/square/kotlinpoet/issues/2003">#2003</a>)</li> <li><a href="https://github.com/square/kotlinpoet/commit/591a4a3d5a8e942558add7527fc086a7d384a3b2"><code>591a4a3</code></a> Introduce the new ♢ modifier and don't wrap spaces by default (<a href="https://redirect.github.com/square/kotlinpoet/issues/2001">#2001</a>)</li> <li><a href="https://github.com/square/kotlinpoet/commit/b84c462c9778a1ab6662b9c736015323e6704590"><code>b84c462</code></a> Update plugin mavenPublish to v0.30.0</li> <li><a href="https://github.com/square/kotlinpoet/commit/b95afb8e2d081086595b8753d5418a3506272ec8"><code>b95afb8</code></a> Update dependency termcolor to v2.5.0</li> <li>Additional commits viewable in <a href="https://github.com/square/kotlinpoet/compare/1.18.1...2.0.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=com.squareup:kotlinpoet&package-manager=gradle&previous-version=1.18.1&new-version=2.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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 show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@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) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information