Skip to content

Latest commit

 

History

History
477 lines (332 loc) · 25.3 KB

CHANGELOG.md

File metadata and controls

477 lines (332 loc) · 25.3 KB

Change Log

Note:

  • Maven artifacts are now published under a new group id: com.thesamet.scalapb
  • Classes were renamed from com.trueaccord.scalapb.X to scalapb.X

Changes:

  • Update to protobuf-java 3.5.0
  • Added file-level option to preserve unknown fields in generated classes.
  • ScalaPBC can run custom ProtocGenerator if they are available on the class path.
  • Added type member ValueType to GeneratedOneof that makes it easy to write type classes that deal with Oneofs.
  • Add support for Scala annotations on field-level, and companion object level.
  • It is now possible to specify additional traits for oneofs.
  • #235: toString is now not overridden by ScalaPB and does not generate the default TextFormat. To get the text format, use toProtoString. See issue #235 for how to achieve a backwards-compatible behavior.
  • Added support for Scala Native.
  • singleLineToString has been renamed to singleLineToProtoString. If you are using ScalaPBC, the new flag name is single_line_to_proto_string.
  • Unrecognized enum and one-of case classes are marked final.
  • withX methods convert null to None for options.

v0.6.7 (2017-11-23)

Full Changelog

  • GeneratedMessageCompanion: add nestedMessagesCompanions and Add
  • Added base class GeneratedFileObject that will be the base class for the singleton object generated for each proto file.
  • Custom base classes for enums
  • Add support for custom Scala annotations on messages.

v0.6.0 (2017-01-07)

Full Changelog

  • Support for custom names for fields: https://scalapb.github.io/customizations.html#custom-names This enables users to get around name conflicts in the generated code.
  • Add messageCompanionForFieldNumber and enumCompanionForFieldNumber to retrive companion objects of message and enum fields by the field number.
  • Support for Scala protocol buffers.
  • Primitive wrappers are now the default.
  • scalapb.proto: Add no_primitive_wrappers, deprecate primitive_wrappers.
  • Add support for custom collection types (representation of repeated in Scala can be almost any Scala collection.
  • Add support for custom types for keys and values of map<>.
  • Added support for extensions (Scala.js compatible!).

BREAKING CHANGE:

  • Custom options now work on both JVM and Scala.js. To migrate, remove imports of com.trueaccord.scalapb.Implicits and use the new scalaDescriptor whenever descriptor or javaDescriptor have been used.

v0.5.47 (2017-01-07)

Full Changelog

  • GeneratedMessageCompanion.descriptor is deprecated in favor of javaDescriptor
  • Added GeneratedMessage.toByteString

v0.5.43 (2016-09-27)

Full Changelog

  • We are switching from sbt-scalapb to sbt-protoc. Migration instructions are at http://scalapb.github.io/migrating.html

  • Breaking change: The outer class of a GRPC service used to extend ServiceCompanion. The trait ServiceCompanion has been changed to a type-class ServiceCompanion[A] where A is some service, and is now used as a companion object for the service itself A. This allows you to implicitly obtain the companion object given a service T`:

    implicity[ServiceCompanion[T]].descriptor
    

    Fixes #154.

  • Add GeneratedEnum.fromName that gives an Option[EnumValue] given a name string (#160)

  • Required fields must be provided explicitly to constructor.

  • Grpc java updated to 1.0.0

v0.5.35 (2016-07-31)

Full Changelog

  • Update to protobuf 3.0.0
  • Upgrade grpc-java to 1.0.0-pre1
  • Scaladoc is automatically generated for case classes based on comments in the proto.

v0.5.34 (2016-07-15)

Full Changelog

  • Include Scala versions of well-known types, including basic support for Any.
  • Bugfix: package names with reserved words (type, val) no longer use backticks in the directory name.
  • Fix support for additional reserved keywords.
  • Bufgix: support for well-known types in conjunction with flat_package.

Full Changelog

Closed issues:

  • proto3 & grpc #127
  • PB.grpc does not exist #125
  • Publish 0.5.28 #124

v0.5.29 (2016-06-06)

Full Changelog

Closed issues:

  • Remove usages of deprecated methods from CodedOutputStream #123
  • [0.5.27 regression] serializedSize does not work with java serialization #121

Merged pull requests:

  • fixes #121: java serialization breaks serializedSize #122 (eiennohito)

v0.5.28 (2016-05-31)

Full Changelog

v0.5.27 (2016-05-30)

Full Changelog

Closed issues:

  • ScalaPB + Intellij #120
  • sbt gives error: scalapb.sbt:1: error: object trueaccord is not a member of package com addSbtPlugin("com.trueaccord.scalapb" % "sbt-scalapb" % com.trueaccord.scalapb.Version.sbtPluginVersion) This happens after downloadin zipfile from github and running sbt in the e2e folder (Fedora) #117
  • grpc should not depend on grpc-all #113
  • protoc-jar version #111
  • Make grpc service name visible in generated code #108

Merged pull requests:

v0.5.26 (2016-04-28)

Full Changelog

Closed issues:

  • Option for companion objects to extend specified classes/traits #105
  • Won't decode not packed repeated if declared as packed in .proto and vice-versa #102
  • default value unexpected behaviour #100
  • Option to change repeated fields collection type from Seq to IndexedSeq #97

Merged pull requests:

v0.5.25 (2016-04-12)

Full Changelog

Closed issues:

  • CameCase issue #94
  • multi-lined toString #82
  • Support for sealed traits #67
  • Support for options is missing. #65
  • Add support to convert messages to Json #62

v0.5.24 (2016-04-01)

Full Changelog

Closed issues:

  • scala.js link fail on sbt-scalapb 0.5.23 #98
  • Incompatibility between enums and Spark SQL #87
  • excludeFilter doesn't work #24

v0.5.23 (2016-03-28)

Full Changelog

Merged pull requests:

  • add scalacOptions for Scala.js source map #95 (xuwei-k)
  • change method descriptor from private to public #93 (matsu-chara)

v0.5.22 (2016-03-16)

Full Changelog

Closed issues:

  • scalapbc command line tool does not generate gRPC scala code. #91
  • Issue:value enablePlugins is not a member of sbt.Project possible cause #89
  • Protobuf 2.x support #88
  • Compilation fails due to attempt to write two files with the same name #86
  • Need some details for implementing grpc #85
  • Compilation not working. #84
  • Getting 'protoc not found' error #83
  • support grpc-java 0.13 #81
  • Release 0.5.20 artifact #78

Merged pull requests:

v0.5.21 (2016-01-19)

Full Changelog

Closed issues:

  • Option PB.sourceDirectories is not available in 0.4.21 #76

Merged pull requests:

v0.5.20 (2016-01-11)

Full Changelog

Closed issues:

  • Unsupported major.minor version 52.0 #75
  • broken sbt build due to sbt-protobuf dependency #74
  • Unnecessary long filename for InternalFields_xxx files #73

v0.4.21 (2016-01-08)

Full Changelog

Closed issues:

  • gRPC: Should not call onComplete after onError #71

Merged pull requests:

v0.5.19 (2016-01-02)

Full Changelog

Closed issues:

  • GeneratedMessageCompanion#parseFrom always successful even for incompatible types #66
  • Is there any plan to support GRPC? #44
  • ScalaJs compatibility #31

Merged pull requests:

  • use fully qualified name. s/Any/scala.Any #63 (xuwei-k)

v0.5.18 (2015-12-07)

Full Changelog

v0.5.17 (2015-12-05)

Full Changelog

Merged pull requests:

  • remove javaConversions = true when grpc #60 (xuwei-k)

v0.5.16 (2015-12-01)

Full Changelog

Closed issues:

  • e2e test fail #55

Merged pull requests:

  • GeneratedEnum and GeneratedOneof extends Product #59 (xuwei-k)
  • fix Encoding bug #57 (xuwei-k)
  • optimize com.trueaccord.scalapb.Encoding #56 (xuwei-k)

v0.5.15 (2015-11-16)

Full Changelog

Closed issues:

  • Add an option to wrap primitives to Option[] #54
  • Case class and object conflict #47
  • Maps in proto2 files #43
  • use printToUnicodeString instead of printToString in generated toString #41
  • Add an option not to wrap some values in Options when generating Scala values #40
  • Compile for Scala 2.12 M1 #38

Merged pull requests:

v0.4.20 (2015-09-05)

Full Changelog

v0.5.14 (2015-09-05)

Full Changelog

Closed issues:

  • Output directory conflicts with IntelliJ #37
  • 0.5.9 has sbt generated classes in the packaged scalapb-runtime jar #35
  • Make it possible to run ScalaPB outside SBT #17
  • Support for enums with unknown values #11

v0.4.19 (2015-08-23)

Full Changelog

v0.4.18 (2015-08-23)

Full Changelog

v0.4.17 (2015-08-23)

Full Changelog

v0.5.13 (2015-08-22)

Full Changelog

v0.5.12 (2015-08-22)

Full Changelog

v0.5.11 (2015-08-22)

Full Changelog

Closed issues:

  • Why are option fields with default value converted to Option[..] ? #36
  • ScalaPB uses javax, which is not available on Android #34
  • ScalaPB jar includes google proto files #33
  • In proto3, add support for file name equals message name #26

v0.4.16 (2015-08-18)

Full Changelog

v0.5.10 (2015-08-18)

Full Changelog

Closed issues:

  • import does not work correctly #32
  • Protosb descriptor isn't 2.x compatible #28
  • javaConversions Doesnt work #19

v0.5.9 (2015-06-18)

Full Changelog

v0.5.8 (2015-06-07)

Full Changelog

v0.5.7 (2015-06-07)

Full Changelog

v0.5.6 (2015-06-06)

Full Changelog

v0.5.5 (2015-06-04)

Full Changelog

Closed issues:

  • Support for hinted deserialization? #29

v0.4.15 (2015-05-31)

Full Changelog

v0.5.1 (2015-05-31)

Full Changelog

Closed issues:

  • akka serialization and scalapb #27
  • Make serializedSize field @transient #25

v0.4.14 (2015-05-16)

Full Changelog

v0.4.13 (2015-05-16)

Full Changelog

Merged pull requests:

v0.5.0 (2015-05-08)

Full Changelog

v0.4.12 (2015-05-07)

Full Changelog

Closed issues:

  • ScalaPB generates invalid class names if the original proto filename contains dot #22

v0.4.11 (2015-05-07)

Full Changelog

Closed issues:

  • doesn't respect the protoc setting of sbt-protobuf #21

v0.4.10 (2015-05-06)

Full Changelog

Closed issues:

  • Typo on website #20
  • oneof not working #18
  • Windows support? #13

v0.4.9 (2015-04-05)

Full Changelog

v0.4.8 (2015-03-28)

Full Changelog

Closed issues:

  • containingOneOfName field does not give the name #15
  • Support for generation of marker types #14
  • Allow oneofs with reserved named like 'type' #10
  • Add support for packed enums #9

Merged pull requests:

  • Fix generator to correctly provide the oneof name #16 (henrymai)
  • Fix code generator for double and float fields with [default=nan] #12 (chrischamberlin)

v0.4.7 (2015-02-09)

Full Changelog

v0.4.6 (2015-02-09)

Full Changelog

v0.4.5 (2015-02-09)

Full Changelog

v0.4.4 (2015-01-24)

Full Changelog

v0.4.3 (2015-01-24)

Full Changelog

v0.4.2 (2015-01-21)

Full Changelog

Closed issues:

  • Should use declared package name #8
  • Fields cannot be named get or tag #7
  • protoc-gen-scala: program not found or is not executable #5
  • Value classes for primitive single-element message? #4

v0.4.1 (2015-01-01)

Full Changelog

Closed issues:

  • writeDelimitedTo missing? #6
  • Support for Extensions? #3
  • For oneOfs add isDefined #2

v0.4.0 (2014-11-26)

Full Changelog

v0.3.4 (2014-11-25)

Full Changelog

v0.3.3 (2014-11-24)

Full Changelog

v0.3.2 (2014-11-23)

Merged pull requests:

  • Make conversions implicit: to/fromJavaProto, to/fromJavaValue. #1 (imikushin)

* This Change Log was automatically generated by github_changelog_generator