chore(deps): update wire to v5.0.0-alpha02 #478
Merged
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:
5.0.0-alpha01
->5.0.0-alpha02
5.0.0-alpha01
->5.0.0-alpha02
5.0.0-alpha01
->5.0.0-alpha02
Release Notes
square/wire (com.squareup.wire:wire-runtime)
v5.0.0-alpha02
Compare Source
2024-06-17
Common
Kotlin
expose the grpc url when converting Response to GrpcException (#2920 by [Travis Johnson][traviscj])
Support very long field names with builders (#2959)
New
enumMode
option added to Kotlin targets in order to generate enum types as sealed classes.Its value can be either
enum_class
(default value) orsealed_class
.enum_class
will generateenum types as Kotlin enum classes, which is the current behavior.
sealed_class
will generate enumtypes as Kotlin sealed classes, generated each constant of the enum type as data objects. On top of
those constants, the sealed class will contain a
Unrecognized
data class which will contain thereal decoded value for this enum if the runtime didn't have any constant matching it. This is the
analogue feature of protoc generating a
UNRECOGNIZED(-1)
constant for enums on proto3. Notehowever that Wire doesn't limit this option to proto3 enums, this can be used for proto2 enums
too.
Switching to generating sealed class for enums can break the call-site for your consumers. In
order to allow gradual migration of enum generation from/to sealed classes, a Protobuf enum option
has also been created. This, when set in the
.proto
file, takes precedence over the global enummode.
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 these updates again.
This PR has been generated by Mend Renovate. View repository job log here.