fix(deps): update dependency com.squareup:kotlinpoet to v1.18.1 #79
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.3.0
->1.18.1
Release Notes
square/kotlinpoet (com.squareup:kotlinpoet)
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).v1.16.0
Compare Source
Thanks to @drawers, @rickclephas for contributing to this release.
NameAllocator
API to control keyword pre-allocation (#1803).KSTypeReference.toTypeName
(#1793).v1.15.3
Compare Source
Thanks to @gabrielittner for contributing to this release.
KSTypeReference.toTypeName
(#1756).v1.15.2
Compare Source
Thanks to @evant for contributing to this release.
v1.15.1
Compare Source
v1.15.0
Compare Source
Thanks to @drawers, @fejesjoco, @takahirom, @martinbonnin, @mcarleio for contributing to this release.
In this release the
:kotlinpoet
module has been converted to a Kotlin Multiplatform module (#1654), though for now it only supports the JVM target.TypeSpecHolder
interface for constructs that can hold aTypeSpec
and their builders (#1723).FileSpec
(#1720).FileSpec.writeTo()
. (#1514).TypeSpec.expectClassBuilder()
andTypeSpec.valueClassBuilder()
(#1589).KSAnnotation
toAnnotationSpec
while omitting default values (#1538).FileSpec.builder
convenience forMemberName
(#1585).DecimalFormatSymbols.minusSign
for consistency across locales (#1658).:kotlinpoet-metadata
module, as mostFlags
-API extensions have been removed in favor of the now-available first-party versions.v1.14.2
Compare Source
Annotatable.Builder
(#1581).v1.14.1
Compare Source
v1.14.0
Compare Source
Thanks to @Omico, @drawers, @RBusarow for contributing to this release.
New: Kotlin 1.8.21.
New: KSP 1.8.21-1.0.11.
New: Enable default methods in Java bytecode (#1561).
New: Group Kotlin and Renovate updates together in Renovate (#1562).
New: Extract trait interface for annotatable constructs and their builders (#1564).
New: Extract trait interface for documentable constructs and their builders (#1571).
New: Document the usage of
STAR
(#1572).New: Add builder for
FunSpec
which accepts aMemberName
(#1574).Fix: Omit public modifier on override function or constructor parameters (#1550).
Fix: Correct handling of members in various types (#1558).
Fix: Function return types now default to
Unit
unless explicitly set (#1559).Previously the default was
null
which behaved likeUnit
for block bodies. When an expression body was produced,however, no return type would be emitted. This meant that the return type was implicit based on the contents of
the body.
With this change, when no return type is specified and an expression body is produced, the return type will be
explicitly
Unit
. Specify the actual return type explicitly to correct the output.Old versions:
This version, incorrect:
This version, correct:
val funSpec = FunSpec.builder("foo") + .returns(INT) .addStatement("return 1") .build()
Additionally, as part of this change,
FunSpec.returnType
has changed to be non-nullable. This is a source- andbinary-compatible change, although if you were performing null-checks then new warnings may appear after upgrade.
Fix: Append nested class names to alias during name lookup (#1568).
Fix: Allow PropertySpec with context receivers and without getter or setter (#1575).
v1.13.2
Compare Source
What's Changed
New Contributors
Full Changelog: square/kotlinpoet@1.13.1...1.13.2
v1.13.1
Compare Source
What's Changed
New Contributors
Full Changelog: square/kotlinpoet@1.13.0...1.13.1
v1.13.0
Compare Source
What's Changed
OriginatingElements
andTagMap
implementations (#1270).FileSpec.builder(ClassName)
(#1397).KSTypeArgument.toTypeName()
for a wildcard in a recursive type bound (#1272).shouldEmitPublicModifier
returns false (#1342).LambdaTypeName
(#1454).bestGuess
forKClass.asClassName
(#1469).TypeName
equals (#1477).ClassName
(#1506).New Contributors
Full Changelog: square/kotlinpoet@1.12.0...1.13.0
v1.12.0
Compare Source
What's Changed
New Contributors
Full Changelog: square/kotlinpoet@1.11.0...1.12.0
v1.11.0
Compare Source
Thanks to @liujingxing and @BoD for contributing to this release.
New: Kotlin scripting support in
FileSpec
.Generates a Taco.kts file with the following contents:
New: Emit trailing commas for multi-line parameters and annotations.
New: Add
KSAnnotation.toAnnotationSpec()
.New: Add
Unit
andCharSequence
conversions in javapoet-interop.New: Add support for default imports in
FileSpec
.New: Update to Kotlin 1.6.10.
Fix: Fail compilation if you only pass one string to
ClassName
.Fix: Inline val property if its getter is inline.
Fix: Add
yield
to the list of reserved keywords.Fix: Enforce only allowed parameter modifiers in
ParameterSpec
(i.e.crossinline
,vararg
, andnoinline
).Fix: Fix
CodeBlock
s in class delegation gettingtoString()
'd instead of participating in code writing.Fix: Error when attempting to convert KSP error types (i.e. if
KSType.isError
is true) toTypeName
.v1.10.2
Compare Source
Thanks to @glureau and @goooler for contributing to this release.
AnnotationSpec.get()
to use thearrayOf()
syntax instead of[]
.@Deprecated
annotations on synthetic methods for annotations.v1.10.1
Compare Source
Thanks to @evant for contributing to this release.
TypeParameterResolver.EMPTY
argument tofun KSTypeArgument.toTypeName
in KSP interop.v1.10.0
Compare Source
Thanks to @martinbonnin, @idanakav, @goooler, and @anandwana001 for contributing to this release.
ParameterizedTypeName
with new type arguments via newcopy()
overload.com.squareup:kotlinpoet-metadata
maven artifact. The previouskotlinpoet-metadata-*
subartifacts are no longer published.TypeNameAliasTag
has been moved to KotlinPoet's main artifact underTypeAliasTag
, for reuse with KSP interop.ImmutableKm*
classes have been removed. They were deemed to be a needless abstraction over the basekotlinx-metadata
Km types. All usages of these should be substituted with their non-immutable base types.AnnotationSpec.get
.kotlin-reflect
usage.Unit
types where possible.v1.9.0
Compare Source
@DelicateKotlinPoetApi
annotation.CodeBlock.Builder.withIndent
helper function.ParameterSpec.Builder
andPropertySpec.Builder
after they were set.MemberName.isExtension
property that instructs KotlinPoet to always import the member, even if conflicting declarations are present in the same scope.TypeSpec.primaryConstructor
.v1.8.0
Compare Source
v1.7.2
Compare Source
v1.7.1
Compare Source
v1.7.0
Compare Source
v1.6.0
Compare Source
v1.5.0
Compare Source
v1.4.4
Compare Source
v1.4.3
Compare Source
v1.4.2
Compare Source
Configuration
📅 Schedule: Branch creation - "every 3 weeks 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 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 was generated by Mend Renovate. View the repository job log.