From 8166872e3844963523fb34b191ee59e69bd8f007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Quenaudon?= Date: Mon, 6 Jan 2025 10:00:43 +0000 Subject: [PATCH] Prepare for release 5.2.0. --- CHANGELOG.md | 28 +++++++++++++++++++ gradle.properties | 2 +- .../gradle.properties | 2 +- .../kotlin-multiplatform/gradle.properties | 2 +- 4 files changed, 31 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 631c3205ba..3859408fb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,32 @@ Change Log ========== +Version 5.2.0 +--------------------- + +_2025-01-06_ + +### Common + +* Enforce recursion limit when parsing nested groups. (#3119) + +### CLI `wire-compiler` + +* It is now possible to set multiple targets. (#3106 & #3107) +* The option `opaque_types` introduced in `4.9.2` for the Wire Gradle plugin is now available on CLI. (#3147) + +### JVM generation + +* [KotlinPoet has been updated to `2.0.0`](https://square.github.io/kotlinpoet/changelog/#version-200) which dramatically changes how generated Kotlin files are wrapped. This is neither a source nor a binary breaking changes. +* A new `@WireEnclosingType` annotation is now applied to generated types so R8 doesn't prune too much. (#3123) +* Split the redact method into chunks when a type has more than 100 fields to avoid compilation error. (#3214 by [Damian Wieczorek][damianw]) +* Add support for mutable messages in Wire's Kotlin Generator. (#3217 by [Rahul Ravikumar][tikurahul]) + * You can opt-in by adding `mutableTypes = true` on your Kotlin target. This is unsafe and we do not recommend that you use it unless you have a sound use-case for it. + +### Swift + +* Fix buffer overflow and data corruption when a type has more than 5 layers of nesting (#3203 by [Eric Amorde][amorde]) + Version 4.9.11 --------------------- @@ -1518,6 +1544,7 @@ Initial version. [MariusVolkhart]: https://github.com/MariusVolkhart [ShayOinif]: https://github.com/ShayOinif [aaron-edwards]: https://github.com/aaron-edwards + [amorde]: https://github.com/amorde [bom]: https://docs.gradle.org/6.2/userguide/platforms.html#sub:bom_import [custom-handlers-doc]: https://square.github.io/wire/wire_compiler/#custom-handlers [custom-handlers-recipes]: https://github.com/square/wire/tree/c3c5f559556ad9d41582a0e0a025679b5493f7aa/wire-library/wire-schema-tests/src/test/java/com/squareup/wire/recipes @@ -1537,5 +1564,6 @@ Initial version. [reflect]: https://github.com/grpc/grpc/blob/master/doc/server-reflection.md [sashaweiss-signal]: https://github.com/sashaweiss-signal [swiftblogpost]: https://cashapp.github.io/2020-08-19/wire-support-for-swift-part-1 + [tikurahul]: https://github.com/tikurahul [traviscj]: https://github.com/traviscj [wire-customizing-output]: https://square.github.io/wire/wire_compiler/#customizing-output diff --git a/gradle.properties b/gradle.properties index 4e19c3cfc7..b997dcdf75 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ org.gradle.jvmargs='-Dfile.encoding=UTF-8' GROUP=com.squareup.wire -VERSION_NAME=5.1.1-SNAPSHOT +VERSION_NAME=5.2.0 # Publishing SHA 256 and 512 hashes of maven-metadata is not supported by Sonatype and Nexus. # See https://github.com/gradle/gradle/issues/11308 and https://issues.sonatype.org/browse/NEXUS-21802 diff --git a/wire-gradle-plugin/src/test/projects/configuration-cache-failure/gradle.properties b/wire-gradle-plugin/src/test/projects/configuration-cache-failure/gradle.properties index f99878e87a..b521c53f8b 100644 --- a/wire-gradle-plugin/src/test/projects/configuration-cache-failure/gradle.properties +++ b/wire-gradle-plugin/src/test/projects/configuration-cache-failure/gradle.properties @@ -1,4 +1,4 @@ org.gradle.caching=false org.gradle.unsafe.configuration-cache=true org.gradle.configuration-cache=true -VERSION_NAME=5.1.1-SNAPSHOT +VERSION_NAME=5.2.0 diff --git a/wire-gradle-plugin/src/test/projects/kotlin-multiplatform/gradle.properties b/wire-gradle-plugin/src/test/projects/kotlin-multiplatform/gradle.properties index 1aaedd8c56..beb285abff 100644 --- a/wire-gradle-plugin/src/test/projects/kotlin-multiplatform/gradle.properties +++ b/wire-gradle-plugin/src/test/projects/kotlin-multiplatform/gradle.properties @@ -1 +1 @@ -VERSION_NAME=5.1.1-SNAPSHOT +VERSION_NAME=5.2.0