chore(deps): update dependency com.squareup:kotlinpoet to v2 #584
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.16.0
->2.0.0
Release Notes
square/kotlinpoet (com.squareup:kotlinpoet)
v2.0.0
Compare Source
Thanks to @brokenhappy, @tajobe, @niyajali, @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.♢
placeholder representing a space that is safe to wrap.KSTypeAlias.toClassName()
. (#1956)KSType.toClassNameOrNull()
. (#1956)KSAnnotation.toAnnotationSpec()
. (#1956)KSType.toClassName()
. (#1956)v1.18.1
Compare Source
Thanks to @mitasov-ra for contributing to this release.
v1.18.0
Compare Source
Thanks to @DanielGronau for contributing to this release.
kotlinpoet-metadata
out of preview to stable.kotlinpoet-metadata
to stableorg.jetbrains.kotlin:kotlin-metadata-jvm
artifact for Metadata parsing.KSAnnotation.toAnnotationSpec()
andKSClassDeclaration.toClassName()
more robust.LambdaTypeName
s inKSTypeReference.toTypeName()
.%L
translation (#1927).v1.17.0
Compare Source
Thanks to @jisungbin, @hfhbd, @evant, @sgjesse, @sebek64 for contributing to this release.
KotlinClassMetadata.read
is deprecated in 0.9.0 and replaced withreadStrict
(#1830).lenient
parameters to map to the underlyingreadStrict()
andreadLenient()
calls (#1766).Class
/TypeElement
/Metadata
-to-KmClass
APIs from the public API, as these are trivial to write now with kotlinx-metadata's newer APIs and allows us to focus the API surface area of this artifact better (#1891).MemberSpecHolder
interface for constructs that can holdPropertySpec
s andFunSpec
s and their builders (#1877).joinToCode
variant which operates on any type, but requires a transform lambda to convert each element into aCodeBlock
(#1874).KSAnnotation.toAnnotationSpec()
(#1889).FileSpec.scriptBuilder
(#1813).PropertySpec
(#1827).KSAnnotation.toAnnotationSpec
writes varargs in place instead of making them an array to work around a Kotlin issue with OptIn annotations (#1833).MemberName
s without a package are now correctly imported (#1841)KSType.toClassName()
(#1890).MemberName
s (#1909).Configuration
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.