ShopRunner / baleen

Kotlin DSL for validating data (JSON, XML, CSV, Avro)
BSD 3-Clause "New" or "Revised" License
16 stars 5 forks source link

Bump kotlinpoet from 1.10.1 to 1.11.0 #264

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps kotlinpoet from 1.10.1 to 1.11.0.

Release notes

Sourced from kotlinpoet's releases.

1.11.0

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!")
  • 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.

1.10.2

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.
Changelog

Sourced from kotlinpoet's changelog.

Version 1.11.0

2022-03-24

Thanks to [@​liujingxing][liujingxing] and [@​BoD][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!")
  • 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.

Version 1.10.2

2021-10-22

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

  • New: Switch AnnotationSpec.get() to use the arrayOf() syntax instead of [].
  • Fix: Don't wrap aliasing imports with long package names.
  • Fix: Don't wrap type names inside line comments.
  • Fix: Ignore Java's @Deprecated annotations on synthetic methods for annotations.
Commits
  • 5f47a08 Prepare for release 1.11.0
  • a88ccd8 Prepare 1.11.0 release notes (#1227)
  • 1481838 Merge pull request #1226 from square/jw/trailing-comma-annotation/2022-03-14
  • 97073c8 Emit trailing comma for multi-line annotations
  • 47a1412 Merge pull request #1225 from square/jw/trailing-comma/2022-03-14
  • 2f72dd9 Emit trailing comma for multi-line parameters
  • 259e722 Merge pull request #1222 from square/jw/error/2022-02-28
  • 68bea3e Fail compilation if you only pass one string to ClassName
  • 9570aba Merge pull request #1220 from square/egorand/220220/inline-val
  • 8fe75ef Merge pull request #1219 from square/egorand/220220/fix-inline-example
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Superseded by #271.