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.1Release Notes
square/kotlinpoet (com.squareup:kotlinpoet)
v1.18.1Compare Source
Thanks to @mitasov-ra for contributing to this release.
v1.18.0Compare Source
Thanks to @DanielGronau for contributing to this release.
kotlinpoet-metadataout of preview to stable.kotlinpoet-metadatato stableorg.jetbrains.kotlin:kotlin-metadata-jvmartifact for Metadata parsing.KSAnnotation.toAnnotationSpec()andKSClassDeclaration.toClassName()more robust.LambdaTypeNames inKSTypeReference.toTypeName().%Ltranslation (#1927).v1.17.0Compare Source
Thanks to @jisungbin, @hfhbd, @evant, @sgjesse, @sebek64 for contributing to this release.
KotlinClassMetadata.readis deprecated in 0.9.0 and replaced withreadStrict(#1830).lenientparameters to map to the underlyingreadStrict()andreadLenient()calls (#1766).Class/TypeElement/Metadata-to-KmClassAPIs 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).MemberSpecHolderinterface for constructs that can holdPropertySpecs andFunSpecs and their builders (#1877).joinToCodevariant 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.toAnnotationSpecwrites varargs in place instead of making them an array to work around a Kotlin issue with OptIn annotations (#1833).MemberNames without a package are now correctly imported (#1841)KSType.toClassName()(#1890).MemberNames (#1909).v1.16.0Compare Source
Thanks to @drawers, @rickclephas for contributing to this release.
NameAllocatorAPI to control keyword pre-allocation (#1803).KSTypeReference.toTypeName(#1793).v1.15.3Compare Source
Thanks to @gabrielittner for contributing to this release.
KSTypeReference.toTypeName(#1756).v1.15.2Compare Source
Thanks to @evant for contributing to this release.
v1.15.1Compare Source
v1.15.0Compare Source
Thanks to @drawers, @fejesjoco, @takahirom, @martinbonnin, @mcarleio for contributing to this release.
In this release the
:kotlinpoetmodule has been converted to a Kotlin Multiplatform module (#1654), though for now it only supports the JVM target.TypeSpecHolderinterface for constructs that can hold aTypeSpecand their builders (#1723).FileSpec(#1720).FileSpec.writeTo(). (#1514).TypeSpec.expectClassBuilder()andTypeSpec.valueClassBuilder()(#1589).KSAnnotationtoAnnotationSpecwhile omitting default values (#1538).FileSpec.builderconvenience forMemberName(#1585).DecimalFormatSymbols.minusSignfor consistency across locales (#1658).:kotlinpoet-metadatamodule, as mostFlags-API extensions have been removed in favor of the now-available first-party versions.v1.14.2Compare Source
Annotatable.Builder(#1581).v1.14.1Compare Source
v1.14.0Compare 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
FunSpecwhich 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
Unitunless explicitly set (#1559).Previously the default was
nullwhich behaved likeUnitfor 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.returnTypehas 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.2Compare Source
What's Changed
New Contributors
Full Changelog: square/kotlinpoet@1.13.1...1.13.2
v1.13.1Compare Source
What's Changed
New Contributors
Full Changelog: square/kotlinpoet@1.13.0...1.13.1
v1.13.0Compare Source
What's Changed
OriginatingElementsandTagMapimplementations (#1270).FileSpec.builder(ClassName)(#1397).KSTypeArgument.toTypeName()for a wildcard in a recursive type bound (#1272).shouldEmitPublicModifierreturns false (#1342).LambdaTypeName(#1454).bestGuessforKClass.asClassName(#1469).TypeNameequals (#1477).ClassName(#1506).New Contributors
Full Changelog: square/kotlinpoet@1.12.0...1.13.0
v1.12.0Compare Source
What's Changed
New Contributors
Full Changelog: square/kotlinpoet@1.11.0...1.12.0
v1.11.0Compare 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
UnitandCharSequenceconversions 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
yieldto the list of reserved keywords.Fix: Enforce only allowed parameter modifiers in
ParameterSpec(i.e.crossinline,vararg, andnoinline).Fix: Fix
CodeBlocks in class delegation gettingtoString()'d instead of participating in code writing.Fix: Error when attempting to convert KSP error types (i.e. if
KSType.isErroris true) toTypeName.v1.10.2Compare Source
Thanks to @glureau and @goooler for contributing to this release.
AnnotationSpec.get()to use thearrayOf()syntax instead of[].@Deprecatedannotations on synthetic methods for annotations.v1.10.1Compare Source
Thanks to @evant for contributing to this release.
TypeParameterResolver.EMPTYargument tofun KSTypeArgument.toTypeNamein KSP interop.v1.10.0Compare Source
Thanks to @martinbonnin, @idanakav, @goooler, and @anandwana001 for contributing to this release.
ParameterizedTypeNamewith new type arguments via newcopy()overload.com.squareup:kotlinpoet-metadatamaven artifact. The previouskotlinpoet-metadata-*subartifacts are no longer published.TypeNameAliasTaghas 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-metadataKm types. All usages of these should be substituted with their non-immutable base types.AnnotationSpec.get.kotlin-reflectusage.Unittypes where possible.v1.9.0Compare Source
@DelicateKotlinPoetApiannotation.CodeBlock.Builder.withIndenthelper function.ParameterSpec.BuilderandPropertySpec.Builderafter they were set.MemberName.isExtensionproperty that instructs KotlinPoet to always import the member, even if conflicting declarations are present in the same scope.TypeSpec.primaryConstructor.v1.8.0Compare Source
v1.7.2Compare Source
v1.7.1Compare Source
v1.7.0Compare Source
v1.6.0Compare Source
v1.5.0Compare Source
v1.4.4Compare Source
v1.4.3Compare Source
v1.4.2Compare 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.