ModuleCheck
ModuleCheck copied to clipboard
fix(deps): update dependency com.squareup:kotlinpoet to v2
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| com.squareup:kotlinpoet | 1.16.0 -> 2.0.0 |
Release Notes
square/kotlinpoet (com.squareup:kotlinpoet)
v2.0.0
v1.18.1
Thanks to @mitasov-ra for contributing to this release.
// before, doesn't compile due to KT-18706
import com.example.one.`$Foo` as `One$Foo`
import com.example.two.`$Foo` as `Two$Foo`
// now, compiles
import com.example.one.`$Foo` as One__Foo
import com.example.two.`$Foo` as Two__Foo
v1.18.0
Thanks to @DanielGronau for contributing to this release.
- New: Kotlin 2.0.0.
- New: KSP 2.0.0-1.0.22.
- New: Promote
kotlinpoet-metadataout of preview to stable. - New: Migrate
kotlinpoet-metadatato stableorg.jetbrains.kotlin:kotlin-metadata-jvmartifact for Metadata parsing. - New: Make enum entry references in
KSAnnotation.toAnnotationSpec()andKSClassDeclaration.toClassName()more robust. - Fix: Don't expand typealiases of function types to
LambdaTypeNames inKSTypeReference.toTypeName(). - Fix: Avoid rounding small double and float values in
%Ltranslation (#1927). - Fix: Fix typealias type argument resolution in KSP2 (#1929).
v1.17.0
Thanks to @jisungbin, @hfhbd, @evant, @sgjesse, @sebek64 for contributing to this release.
- Change: kotlinx-metadata 0.9.0. Note that the
KotlinClassMetadata.readis deprecated in 0.9.0 and replaced withreadStrict(#1830).- Note: we now also provide
lenientparameters to map to the underlyingreadStrict()andreadLenient()calls (#1766). - We have also removed various
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).
- Note: we now also provide
- New: Supertype list wraps to one-per-line if the primary constructor spans multiple lines (#1866).
- New: Extract
MemberSpecHolderinterface for constructs that can holdPropertySpecs andFunSpecs and their builders (#1877). - New:
joinToCodevariant which operates on any type, but requires a transform lambda to convert each element into aCodeBlock(#1874). - New: Support annotation type arguments in
KSAnnotation.toAnnotationSpec()(#1889). - Fix: Prevent name clashes between a function in class and a function call in current scope (#1850).
- Fix: Fix extension function imports (#1814).
- Fix: Omit implicit modifiers on
FileSpec.scriptBuilder(#1813). - Fix: Fix trailing newline in
PropertySpec(#1827). - Fix:
KSAnnotation.toAnnotationSpecwrites varargs in place instead of making them an array to work around a Kotlin issue with OptIn annotations (#1833). - Fix:
MemberNames without a package are now correctly imported (#1841) - Fix: Throw if primary constructor delegates to other constructors (#1859).
- Fix: Aliased imports with nested class (#1876).
- Fix: Check for error types in
KSType.toClassName()(#1890). - Fix: Support generating a single import for overloaded
MemberNames (#1909).
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 this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.