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

chore(deps): update wire to v5.0.0-alpha02 #478

Merged
merged 1 commit into from
Jun 18, 2024
Merged

chore(deps): update wire to v5.0.0-alpha02 #478

merged 1 commit into from
Jun 18, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 17, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.squareup.wire 5.0.0-alpha01 -> 5.0.0-alpha02 age adoption passing confidence
com.squareup.wire:wire-runtime 5.0.0-alpha01 -> 5.0.0-alpha02 age adoption passing confidence
com.squareup.wire:wire-grpc-client 5.0.0-alpha01 -> 5.0.0-alpha02 age adoption passing confidence

Release Notes

square/wire (com.squareup.wire:wire-runtime)

v5.0.0-alpha02

Compare Source

2024-06-17

Common
  • ⚠ Paths and Definitions are properly claims by a SchemaHandler only when it generated something (#​2943)
  • No eager source access on Task for the Wire Gradle plugin (#​2923)
  • Fix the UTF-32 BOM in SchemaLoader (#​2937 by [Endeavour233][Endeavour233])
  • Add support for parsing extensionRangeOptions (#​2966)
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) or sealed_class. enum_class will generate
    enum types as Kotlin enum classes, which is the current behavior. sealed_class will generate enum
    types 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 the
    real 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. Note
    however that Wire doesn't limit this option to proto3 enums, this can be used for proto2 enums
    too.

    wire {
      kotlin {
        enumMode = "sealed_class"
      }
    }

    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 enum
    mode.

    import "wire/extensions.proto";
    
    enum Period {
      option (wire.enum_mode) = "sealed_class"; // or `enum_class`.
      CRETACEOUS = 1;
      JURASSIC = 2;
      TRIASSIC = 3;
    }

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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Copy link

Code Coverage

Total Project Coverage 84.58%

Copy link

codecov bot commented Jun 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.01%. Comparing base (a1f8b88) to head (796d1b9).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #478   +/-   ##
=======================================
  Coverage   84.01%   84.01%           
=======================================
  Files          84       84           
  Lines        2046     2046           
  Branches       89       89           
=======================================
  Hits         1719     1719           
  Misses        272      272           
  Partials       55       55           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@osoykan osoykan merged commit 65a3d55 into main Jun 18, 2024
3 checks passed
@osoykan osoykan deleted the renovate/wire branch June 18, 2024 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant