Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency com.squareup:kotlinpoet to v1.17.0 #71

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate-bot
Copy link
Contributor

@renovate-bot renovate-bot commented Aug 30, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.squareup:kotlinpoet 1.2.0 -> 1.17.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

square/kotlinpoet (com.squareup:kotlinpoet)

v1.17.0

Compare Source

Thanks to @​jisungbin, @​hfhbd, @​evant, @​sgjesse, @​sebek64 for contributing to this release.

  • Change: kotlinx-metadata 0.9.0. Note that the KotlinClassMetadata.read is deprecated in 0.9.0 and replaced with readStrict (#​1830).
    • Note: we now also provide lenient parameters to map to the underlying readStrict() and readLenient() calls (#​1766).
    • We have also removed various 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).
  • New: Supertype list wraps to one-per-line if the primary constructor spans multiple lines (#​1866).
  • New: Extract MemberSpecHolder interface for constructs that can hold PropertySpecs and FunSpecs and their builders (#​1877).
  • New: joinToCode variant which operates on any type, but requires a transform lambda to convert each element into a CodeBlock (#​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.toAnnotationSpec writes 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).

v1.16.0

Compare Source

Thanks to @​drawers, @​rickclephas for contributing to this release.

  • New: Kotlin 1.9.22.
  • New: KSP 1.9.22-1.0.16.
  • New: Add NameAllocator API to control keyword pre-allocation (#​1803).
  • Fix: Fix issue with missing suspend modifier in KSTypeReference.toTypeName (#​1793).
  • Fix: Honour same-package import aliases (#​1794).
  • Fix: Always include parameter docs in the type header (#​1800).

v1.15.3

Compare Source

Thanks to @​gabrielittner for contributing to this release.

  • Fix: Fix nullability of lambdas in KSTypeReference.toTypeName (#​1756).

v1.15.2

Compare Source

Thanks to @​evant for contributing to this release.

  • New: Kotlin 1.9.21.
  • New: KSP 1.9.21-1.0.15.
  • New: KSP: more accurately represent function types (#​1742).

v1.15.1

Compare Source

  • Fix: Fix a regression introduced by #​1637, where a superfluous newline is added to a type's KDoc if it has a primary constructor with no docs (#​1727).

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.

  • New: Kotlin 1.9.20.
  • New: KSP 1.9.20-1.0.14.
  • New: Extract TypeSpecHolder interface for constructs that can hold a TypeSpec and their builders (#​1723).
  • New: Expose relative path from FileSpec (#​1720).
  • New: Return the generated path from FileSpec.writeTo(). (#​1514).
  • New: Remove default compatibility from unstable types (#​1662).
  • New: Deprecate TypeSpec.expectClassBuilder() and TypeSpec.valueClassBuilder() (#​1589).
  • New: Add option to convert KSAnnotation to AnnotationSpec while omitting default values (#​1538).
  • New: Add FileSpec.builder convenience for MemberName (#​1585).
  • Fix: Set DecimalFormatSymbols.minusSign for consistency across locales (#​1658).
  • Fix: Fix link to incremental KSP in KDoc (#​1638).
  • Fix: Emit primary constructor KDoc (#​1637).

v1.14.2

Compare Source

  • Fix: Fix one more missing API in binary compatibility override in Annotatable.Builder (#​1581).

v1.14.1

Compare Source

  • Fix: Restore ABI stability for annotatable and documentable builders (#​1580).

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 a MemberName (#​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 like Unit 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:

    val funSpec = FunSpec.builder("foo")
      .addStatement("return 1")
      .build()
    public fun foo() = 1

    This version, incorrect:

    val funSpec = FunSpec.builder("foo")
      .addStatement("return 1")
      .build()
    public fun foo(): Unit = 1 //

    This version, correct:

     val funSpec = FunSpec.builder("foo")
    +  .returns(INT)
       .addStatement("return 1")
       .build()
    public fun foo(): Int = 1 //

    Additionally, as part of this change, FunSpec.returnType has changed to be non-nullable. This is a source- and
    binary-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

  • New: Kotlin 1.8.0.
  • New: KSP 1.8.0-1.0.9.
  • New: Support context receivers on TypeSpecs + extract ContextReceivable API (#​1269).
  • New: Optimize OriginatingElements and TagMap implementations (#​1270).
  • New: Auto-generate import aliases for types and members (#​1355).
  • New: Insert underscores into large decimal literals (#​1384).
  • New: New factory function FileSpec.builder(ClassName) (#​1397).
  • Fix: Fix StackOverflowError when calling KSTypeArgument.toTypeName() for a wildcard in a recursive type bound (#​1272).
  • Fix: Fix transitive aliases (#​1306).
  • Fix: Fix Aliases as TypeArgument (#​1321).
  • Fix: Don't escape special characters inside raw strings (#​1331).
  • Fix: Fix KSP interop's output of the annotation parameter value of type Char (#​1338).
  • Fix: Fix KSP interop's output for primitive arrays (#​1340).
  • Fix: Avoid emitting public if shouldEmitPublicModifier returns false (#​1342).
  • Fix: Fix context receivers being rendered in an incorrect position when on a nullable/suspending LambdaTypeName (#​1454).
  • Fix: Do not use bestGuess for KClass.asClassName (#​1469).
  • Fix: Handle fake nested types with platform mapped parents (#​1472).
  • Fix: Fix TypeName equals (#​1477).
  • Fix: Make equals consistent with compareTo for 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.

    val spec = FileSpec.scriptBuilder("Taco")
      .addStatement("println(%S)", "hello world!")
      .addKotlinDefaultImports()
      .build()

    Generates a Taco.kts file with the following contents:

    println("hello world!")
  • New: Emit trailing commas for multi-line parameters and annotations.

  • New: Add KSAnnotation.toAnnotationSpec().

  • New: Add Unit and CharSequence conversions in javapoet-interop.

  • New: Add support for default imports in FileSpec.

    • This is particularly oriented at scripting support, but can also be used in non-script files.
  • 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, and noinline).

  • Fix: Fix CodeBlocks in class delegation getting toString()'d instead of participating in code writing.

  • Fix: Error when attempting to convert KSP error types (i.e. if KSType.isError is true) to TypeName.

v1.10.2

Compare Source

Thanks to @​glureau and @​goooler for contributing to this release.

  • [#​1175] New: Switch AnnotationSpec.get() to use the arrayOf() syntax instead of [].
  • [#​1170] Fix: Don't wrap aliasing imports with long package names.
  • [#​1174] Fix: Don't wrap type names inside line comments.
  • [#​1167] Fix: Ignore Java's @Deprecated annotations on synthetic methods for annotations.

v1.10.1

Compare Source

Thanks to @​evant for contributing to this release.

  • Fix: Correct generation of typealiases with type args in KSP interop.
  • Fix: Add missing default TypeParameterResolver.EMPTY argument to fun KSTypeArgument.toTypeName in KSP interop.

v1.10.0

Compare Source

Thanks to @​martinbonnin, @​idanakav, @​goooler, and @​anandwana001 for contributing to this release.

  • New: Add a new KSP interop artifact. See docs for more details.
  • New: Add a new JavaPoet interop artifact. See docs for more details.
  • New: Allow copying a ParameterizedTypeName with new type arguments via new copy() overload.
  • kotlinx-metadata artifacts have been consolidated to a single com.squareup:kotlinpoet-metadata maven artifact. The previous kotlinpoet-metadata-* subartifacts are no longer published.
  • New: TypeNameAliasTag has been moved to KotlinPoet's main artifact under TypeAliasTag, for reuse with KSP interop.
  • ImmutableKm* classes have been removed. They were deemed to be a needless abstraction over the base kotlinx-metadata Km types. All usages of these should be substituted with their non-immutable base types.
  • Fix: Fix self-referencing type variables in metadata parsing.
  • Fix: Use delicate APIs rather than noisy logging ones when converting annotation mirrors in AnnotationSpec.get.
  • Fix: Update error message when metadata cannot be read to a more actionable one.
  • Fix: Avoid escaping already escaped strings.
  • Add docs about kotlin-reflect usage.
  • Avoid using kotlin-reflect for looking up Unit types where possible.
  • Test all the way up to JDK 17.
  • Update Kotlin to 1.5.31.

v1.9.0

Compare Source

  • New: Kotlin 1.5.10.
  • New: Previously deprecated API to interop with Java reflection and Mirror API have been un-deprecated and marked with @DelicateKotlinPoetApi annotation.
  • New: CodeBlock.Builder.withIndent helper function.
  • New: Allow changing initializers and default values in ParameterSpec.Builder and PropertySpec.Builder after they were set.
  • New: MemberName.isExtension property that instructs KotlinPoet to always import the member, even if conflicting declarations are present in the same scope.
  • Fix: Escape member names that only contain underscores.
  • Fix: Always emit an empty primary constructor if it was set via 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

v1.3.0

Compare Source


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 has been generated by Mend Renovate. View repository job log here.

@renovate-bot renovate-bot requested a review from a team as a code owner August 30, 2021 14:40
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 30, 2021
@trusted-contributions-gcf trusted-contributions-gcf bot added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Aug 30, 2021
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 30, 2021
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-1.x branch from baab445 to c251eea Compare September 20, 2021 18:34
@renovate-bot renovate-bot changed the title chore(deps): update dependency com.squareup:kotlinpoet to v1.9.0 chore(deps): update dependency com.squareup:kotlinpoet to v1.10.0 Sep 20, 2021
@trusted-contributions-gcf trusted-contributions-gcf bot added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 20, 2021
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 20, 2021
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-1.x branch from c251eea to 96f1cab Compare September 21, 2021 17:27
@renovate-bot renovate-bot changed the title chore(deps): update dependency com.squareup:kotlinpoet to v1.10.0 chore(deps): update dependency com.squareup:kotlinpoet to v1.10.1 Sep 21, 2021
@trusted-contributions-gcf trusted-contributions-gcf bot added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 21, 2021
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 21, 2021
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-1.x branch from 96f1cab to d302e77 Compare March 7, 2022 11:06
@renovate-bot renovate-bot changed the title chore(deps): update dependency com.squareup:kotlinpoet to v1.10.1 chore(deps): update dependency com.squareup:kotlinpoet to v1.10.2 Mar 7, 2022
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-1.x branch from d302e77 to c5a10d5 Compare March 26, 2022 15:25
@renovate-bot renovate-bot changed the title chore(deps): update dependency com.squareup:kotlinpoet to v1.10.2 chore(deps): update dependency com.squareup:kotlinpoet to v1.11.0 Mar 26, 2022
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-1.x branch from c5a10d5 to 2e83cdb Compare June 18, 2022 23:57
@renovate-bot renovate-bot changed the title chore(deps): update dependency com.squareup:kotlinpoet to v1.11.0 chore(deps): update dependency com.squareup:kotlinpoet to v1.12.0 Jun 18, 2022
@renovate-bot renovate-bot changed the title chore(deps): update dependency com.squareup:kotlinpoet to v1.12.0 fix(deps): update dependency com.squareup:kotlinpoet to v1.12.0 Sep 25, 2022
@renovate-bot renovate-bot changed the title fix(deps): update dependency com.squareup:kotlinpoet to v1.12.0 fix(deps): update dependency com.squareup:kotlinpoet to v1.13.0 Apr 6, 2023
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-1.x branch from 2e83cdb to e7a8e34 Compare April 6, 2023 08:29
@renovate-bot renovate-bot changed the title fix(deps): update dependency com.squareup:kotlinpoet to v1.13.0 fix(deps): update dependency com.squareup:kotlinpoet to v1.13.1 May 1, 2023
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-1.x branch from e7a8e34 to 26c0121 Compare May 1, 2023 01:13
@renovate-bot renovate-bot changed the title fix(deps): update dependency com.squareup:kotlinpoet to v1.13.1 fix(deps): update dependency com.squareup:kotlinpoet to v1.14.2 Jun 2, 2023
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-1.x branch from 26c0121 to d3ea663 Compare June 2, 2023 14:59
@renovate-bot renovate-bot changed the title fix(deps): update dependency com.squareup:kotlinpoet to v1.14.2 fix(deps): update dependency com.squareup:kotlinpoet to v1.15.0 Nov 18, 2023
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-1.x branch 2 times, most recently from 7785c5d to 5af8776 Compare November 19, 2023 12:38
@renovate-bot renovate-bot changed the title fix(deps): update dependency com.squareup:kotlinpoet to v1.15.0 fix(deps): update dependency com.squareup:kotlinpoet to v1.15.1 Nov 19, 2023
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-1.x branch from 5af8776 to e2fef5c Compare November 30, 2023 19:31
@renovate-bot renovate-bot changed the title fix(deps): update dependency com.squareup:kotlinpoet to v1.15.1 fix(deps): update dependency com.squareup:kotlinpoet to v1.15.2 Nov 30, 2023
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-1.x branch from e2fef5c to b7c03de Compare December 4, 2023 13:30
@renovate-bot renovate-bot changed the title fix(deps): update dependency com.squareup:kotlinpoet to v1.15.2 fix(deps): update dependency com.squareup:kotlinpoet to v1.15.3 Dec 4, 2023
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-1.x branch from b7c03de to c06a187 Compare January 18, 2024 16:05
@renovate-bot renovate-bot changed the title fix(deps): update dependency com.squareup:kotlinpoet to v1.15.3 fix(deps): update dependency com.squareup:kotlinpoet to v1.16.0 Jan 18, 2024
@renovate-bot renovate-bot force-pushed the renovate/com.squareup-kotlinpoet-1.x branch from c06a187 to 5c2f99d Compare May 24, 2024 15:31
@renovate-bot renovate-bot changed the title fix(deps): update dependency com.squareup:kotlinpoet to v1.16.0 fix(deps): update dependency com.squareup:kotlinpoet to v1.17.0 May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. kokoro:force-run Add this label to force Kokoro to re-run the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant