All Versions
55
Latest Version
Avg Release Cycle
76 days
Latest Release
-

Changelog History
Page 1

  • v4.0.0-alpha.4 Changes

    2021-06-15

    Kotlin + Java

    • New: Define oneofName in @WireField.
    • New: Option in SchemaLoader to exhaustively load imported files. By default we only load what's immediately necessary to generate code; this new option loads everything reachable into the schema.
  • v4.0.0-alpha.3 Changes

    2021-06-03

    Kotlin + Java

    • New: Support for special float literals.
    • New: Support for Android variants.
    • New: Add 'nameSuffix' parameter for configuring generated service-class names in Kotlin.
    • New: Support for glob syntax in srcJar includes.
    • Fix: Redacted Kotlin scalars now respect nullability.
    • Update: Update KotlinPoet to 1.8.0.
    • Bye: Drop support for emitKotlinxSerialization.
  • v4.0.0-alpha.2 Changes

    2021-05-11

    Kotlin + Java

    • New: @WireRpc has a new sourceFile attribute.
    • New: wire-reflector bundles gRPC's reflection.proto which it is built upon.
  • v4.0.0-alpha.1 Changes

    2021-05-01

    Kotlin + Java

    • New: GrpcClient.Builder.minMessageToCompress() configures which messages are compressed. This will completely disable compression if the size is Long.MAX_VALUE. We've seen problems where some Golang gRPC servers don't support compression; setting this to MAX_VALUE is necessary to interop with them.
    • New: SchemaReflector is our initial implementation of the [gRPC Server Reflection Protocol][reflect]. Note that although we implement the business logic of gRPC reflection, we don't offer a gRPC server built into Wire.
    • New: Support rpcRole = 'none' in the Gradle plugin to generate neither client nor server code.
    • Fix: Generate @Deprecated annotations on deprecated messages, fields, enums, and enum constants.
    • Fix: Update the Wire Gradle plugin to register generated .java sources with the Java compiler. Previously this was broken if the Kotlin plugin was installed.
    • Fix: Use Gradle's logging mechanism to reduce output when Wire generates code.
    • Fix: Update the Wire Gradle plugin to clear the output directory before generating code. This prevents the need to do a clean build after removing a message type.
    • Fix: Permit values other than 0 and 1 when decoding protobuf-encoded booleans. Previously we threw an IOException for other values; now all non-zero values are true.
    • Upgrade: [Okio 3.0.0-alpha.3][okio_3_0_0_a_3]. We now use Okio 3's FileSystem in SchemaLoader, which makes it easier to load .proto files from the classpath.

    Swift:

    • New: Support Timestamp and Duration.
    • Fix: Throw an error when encountering an unexpected ProtoReader.beginMessage() rather than calling fatalError().
  • v3.7.0 Changes

    2021-03-25

    • New: srcProject(":project-name") makes it easier to depend on .proto files of other projects.
    • Fix: Don't require source that .proto directories exist at Gradle plugin configuration time. This was preventing Wire from using other tasks' outputs as its inputs.
    • Fix: Don't fail if options have a . prefix.
  • v3.6.1 Changes

    2021-03-09

    • Fix: The Wire Gradle plugin now supports Java only Android projects.
    • Fix: In the Wire Gradle plugin, sourcePath will now include only protos defined with include if the option is present. It used to include all existing .proto files even if include was used.
    • New: Full support Optional Int64 and UInt64 for JSONString in Swift.
  • v3.6.0 Changes

    2021-02-08

    • New: Automatically add a dependency when a protoPath or protoSource depends on a project.
    • New: protoPath and protoSource dependencies are now not transitive by default.
    • New: New protoLibrary option for the Wire Gradle plugin. Configuring a project as a protoLibrary will cause the generated .jar file to include .proto sources.
    • New: Code generation for plain gRPC server. The Kotlin target now has a new grpcServerCompatible option which if set to true will generate gRPC server-compatible classes.
    • New: Introduce GrpcException.
    • New: Add GrpcMethod tag to the request.
    • New: Adds redacting support for Moshi JSON adapters.
    • New: Publish plugin marker for Gradle plugin.
    • Fix: Escape square brackets in Kotlin generated code documentation.
    • Fix: Improved proto parsing performance.
  • v3.5.1-alpha2

    November 02, 2020
  • v3.5.1-alpha1

    October 30, 2020
  • v3.5.0 Changes

    October 27, 2020

    2020-10-27

    • New: Wire Gradle plugin improvements:
      • A task is now created for each available sources (main, Android variants, etc).
      • The wire-runtime dependency is automatically added.
      • Generated code directories are automatically added into their module's source sets.
    • New: Wire's proto parser now knows about oneOfOptions.
    • New: Wire will throw when two enum constants are ambiguous, like ZERO and zero.
    • New: Bytes options are not eligible anymore as annotation members.
    • Fix: Optional fields in proto3 are now generated as nullable fields.
    • Fix: JSON camel-casing is updated to fit latest protobuf specifications.
    • Fix: Exception messages when gRPC fails have been improved.
    • Fix: Allow ; as entry separator in option maps.
    • Fix: Enum constants are now properly escaped when conflicting with keywords of their generated target platform.
    • Fix: Update to KotlinPoet 1.7.2 which makes a lot of change in how Kotlin code is generated.