CHANGES.txt 94 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070
  1. 2019-04-29 version 3.8.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  2. C++
  3. * Use std::atomic<int32> in case of myriad2 platform
  4. * Always declare enums to be int-sized
  5. * Added DebugString() and ShortDebugString() methods on MessageLite
  6. * Specialized different parse loop control flows
  7. * Make hasbits potentially in register. The or's start forming an obstacle because it's a read modify store on the same mem address on each iteration.
  8. * Move to an internal MACRO for parser validity checks.
  9. * Improve map parsing performance.
  10. * Make MergePartialFromCodedStream non virtual. This allows direct calls, potential inlining and is also a code health improvement
  11. * Add an overall limit to parse_context to prevent reading past it. This allows to remove a annoying level of indirection.
  12. * Fix a mistake, we shouldn't verify map key/value strings for utf8 in opt mode for proto2.
  13. * Further improvements to cut binary size.
  14. * Prepare to make MergePartialFromCodedStream non-virtual.
  15. * A report on some interesting behavior change in python (caused by b/27494216) made me realize there is a check that needs to be done in case the parse ended on a end group tag.
  16. * Add a note of caution to the comments around skip in CodedOutputStream.
  17. * Simplify end check.
  18. * Add overload for ParseMessage for MessageLite/Message types. If the explicit type is not known inlining won't help de-virtualizing the virtual call.
  19. * Reduce linker input. It turns out that ParseMessage is not inlined, producing template instantiations that are used only once and save nothing but cost more.
  20. * Improve the parser.
  21. * [c++17] Changed proto2::RepeatedPtrField iterators to no longer derive from the deprecated std::iterator class.
  22. * Change the default value of case_insensitive_enum_parsing to false for JsonStringToMessage.
  23. * Add a warning if a field name doesn't match the style guide.
  24. * Fix TextFormat not round-trip correctly when float value is max float.
  25. * Added locationed info for some errors at compiler
  26. * Python reserved keywords are now working with getattr()/setattr() for most descriptors.
  27. * Added AllowUnknownField() in text_format
  28. * Append '_' to C++ reserved keywords for message, enum, extension
  29. * Fix MSVC warning C4244 in protobuf's parse_context.h.
  30. * Updating Iterators to be compatible with C++17 in MSVC.
  31. * Use capability annotation in mutex.h
  32. * Fix "UndefinedBehaviorSanitizer: cfi-bad-type"
  33. * CriticalSectionLock class as a lightweight replacement for std::mutex on Windows platforms.
  34. * Removed vestigial wire_format_lite_inl.h
  35. C#
  36. * Added System.Memory dependency.
  37. Java
  38. * Make Java protoc code generator ignore optimize_for LITE_RUNTIME. Users should instead use the Java lite protoc plugin.
  39. * Change Extension getMessageDefaultInstance() to return Message instead of MessageLite.
  40. * Prevent malicious input streams from leaking buffers for ByteString or ByteBuffer parsing.
  41. * Release new Javalite runtime.
  42. * Show warning in case potential file name conflict.
  43. * Allow Java reserved keywords to be used in extensions.
  44. * Added setAllowUnknownFields() in text format
  45. * Add memoization to ExtensionRegistryLite.getEmptyRegistry()
  46. * Improve performance of CodedOutputStream.writeUInt32NoTag
  47. * Add an optimized mismatch-finding algorithm to UnsafeUtil.
  48. * When serializing uint32 varints, check that we have MAX_VARINT32_SIZE bytes left, not just MAX_VARINT_SIZE.
  49. * Minor optimization to RopeByteString.PieceIterator
  50. JavaScript
  51. * Simplify generated toObject code when the default value is used.
  52. Python
  53. * Changes implementation of Name() for enums that allow aliases in proto2 in Python to be in line with claims in C++ implementation (to return first value).
  54. * Added double_format option in text format printer.
  55. * Added iter and __contains__ to extension dict
  56. * Added allow_unknown_field option in python text format parser
  57. * Fixed Timestamp.ToDatetime() loses precision issue
  58. * Support unknown field in text format printer.
  59. * Float field will be convert to inf if bigger than struct.unpack('f', b'\xff\xff\x7f\x7f')[0] which is about 3.4028234664e+38,
  60. convert to -inf if smaller than -3.4028234664e+38
  61. * Allowed casting str->bytes in Message.__setstate__
  62. Ruby
  63. * Helper methods to get enum name for Ruby.
  64. 2019-01-24 version 3.7.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  65. C++
  66. * Introduced new MOMI (maybe-outside-memory-interval) parser.
  67. * Add an option to json_util to parse enum as case-insensitive. In the future, enum parsing in json_util will become case-sensitive.
  68. * Added conformance test for enum aliases
  69. * Added support for --cpp_out=speed:...
  70. * Added use of C++ override keyword where appropriate
  71. * Many other cleanups and fixes.
  72. Java
  73. * Fix illegal reflective access warning in JDK 9+
  74. * Add BOM
  75. Python
  76. * Added Python 3.7 compatibility.
  77. * Modified ParseFromString to return bytes parsed .
  78. * Introduce Proto C API.
  79. * FindFileContainingSymbol in descriptor pool is now able to find field and enum values.
  80. * reflection.MakeClass() and reflection.ParseMessage() are deprecated.
  81. * Added DescriptorPool.FindMethodByName() method in pure python (c extension alreay has it)
  82. * Flipped proto3 to preserve unknown fields by default.
  83. * Added support for memoryview in python3 proto message parsing.
  84. * Added MergeFrom for repeated scalar fields in c extension (pure python already has it)
  85. * Surrogates are now rejected at setters in python3.
  86. * Added public unknown field API.
  87. * RecursionLimit is also set to max if allow_oversize_protos is enabled.
  88. * Disallow duplicate scalars in proto3 text_format parse.
  89. * Fix some segment faults for c extension map field.
  90. PHP
  91. * Most issues for json encoding/decoding in the c extension have been fixed. There are still some edge cases not fixed. For more details, check conformance/failure_list_php_c.txt.
  92. * Supports php 7.3
  93. * Added helper methods to convert between enum values and names.
  94. * Allow setting/getting wrapper message fields using primitive values.
  95. * Various bug fixes.
  96. Ruby
  97. * Ruby 2.6 support.
  98. * Drops support for ruby < 2.3.
  99. * Most issues for json encoding/decoding in the c extension have been fixed. There are still some edge cases not fixed. For more details, check conformance/failure_list_ruby.txt.
  100. * Json parsing can specify an option to ignore unknown fields: msg.decode_json(data, {ignore_unknown_fields: true}).
  101. * Added support for proto2 syntax (partially).
  102. * Various bug fixes.
  103. Csharp
  104. * More support for FieldMask include merge, intersect and more.
  105. * Increasing the default recursion limit to 100.
  106. * Support loading FileDescriptors dynamically.
  107. * Provide access to comments from descriptors.
  108. * Added Any.Is method.
  109. * Compatible with C# 6
  110. * Added IComparable and comparison operators on Timestamp.
  111. Objective C
  112. * Add ability to introspect list of enum values (#4678)
  113. * Copy the value when setting message/data fields (#5215)
  114. * Support suppressing the objc package prefix checks on a list of files (#5309)
  115. * More complete keyword and NSObject method (via categories) checks for field names, can result in more fields being rename, but avoids the collisions at runtime (#5289)
  116. * Small fixes to TextFormat generation for extensions (#5362)
  117. * Provide more details/context in deprecation messages (#5412)
  118. * Array/Dictionary enumeration blocks NS_NOESCAPE annotation for Swift (#5421)
  119. * Properly annotate extensions for ARC when their names imply behaviors (#5427)
  120. * Enum alias name collision improvements (#5480)
  121. 2018-07-27 version 3.6.1 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  122. C++
  123. * Introduced workaround for Windows issue with std::atomic and std::once_flag
  124. initialization (#4777, #4773).
  125. PHP
  126. * Added compatibility with PHP 7.3 (#4898).
  127. Ruby
  128. * Fixed Ruby crash involving Any encoding (#4718).
  129. 2018-06-01 version 3.6.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  130. C++
  131. * Starting from this release, we now require C++11. For those we cannot yet
  132. upgrade to C++11, we will try to keep the 3.5.x branch updated with
  133. critical bug fixes only. If you have any concerns about this, please
  134. comment on issue #2780.
  135. * Moved to C++11 types like std::atomic and std::unique_ptr and away from our
  136. old custom-built equivalents.
  137. * Added support for repeated message fields in lite protos using implicit
  138. weak fields. This is an experimental feature that allows the linker to
  139. strip out more unused messages than previously was possible.
  140. * Fixed SourceCodeInfo for interpreted options and extension range options.
  141. * Fixed always_print_enums_as_ints option for JSON serialization.
  142. * Added support for ignoring unknown enum values when parsing JSON.
  143. * Create std::string in Arena memory.
  144. * Fixed ValidateDateTime to correctly check the day.
  145. * Fixed bug in ZeroCopyStreamByteSink.
  146. * Various other cleanups and fixes.
  147. Java
  148. * Dropped support for Java 6.
  149. * Added a UTF-8 decoder that uses Unsafe to directly decode a byte buffer.
  150. * Added deprecation annotations to generated code for deprecated oneof
  151. fields.
  152. * Fixed map field serialization in DynamicMessage.
  153. * Cleanup and documentation for Java Lite runtime.
  154. * Various other fixes and cleanups
  155. * Fixed unboxed arraylists to handle an edge case
  156. * Improved performance for copying between unboxed arraylists
  157. * Fixed lite protobuf to avoid Java compiler warnings
  158. * Improved test coverage for lite runtime
  159. * Performance improvements for lite runtime
  160. Python
  161. * Fixed bytes/string map key incompatibility between C++ and pure-Python
  162. implementations (issue #4029)
  163. * Added __init__.py files to compiler and util subpackages
  164. * Use /MT for all Windows versions
  165. * Fixed an issue affecting the Python-C++ implementation when used with
  166. Cython (issue #2896)
  167. * Various text format fixes
  168. * Various fixes to resolve behavior differences between the pure-Python and
  169. Python-C++ implementations
  170. PHP
  171. * Added php_metadata_namespace to control the file path of generated metadata
  172. file.
  173. * Changed generated classes of nested message/enum. E.g., Foo.Bar, which
  174. previously generates Foo_Bar, now generates Foo/Bar
  175. * Added array constructor. When creating a message, users can pass a php
  176. array whose content is field name to value pairs into constructor. The
  177. created message will be initialized according to the array. Note that
  178. message field should use a message value instead of a sub-array.
  179. * Various bug fixes.
  180. Objective-C
  181. * We removed some helper class methods from GPBDictionary to shrink the size
  182. of the library, the functionary is still there, but you may need to do some
  183. specific +alloc / -init… methods instead.
  184. * Minor improvements in the performance of object field getters/setters by
  185. avoiding some memory management overhead.
  186. * Fix a memory leak during the raising of some errors.
  187. * Make header importing completely order independent.
  188. * Small code improvements for things the undefined behaviors compiler option
  189. was flagging.
  190. Ruby
  191. * Added ruby_package file option to control the module of generated class.
  192. * Various bug fixes.
  193. Javascript
  194. * Allow setting string to int64 field.
  195. Csharp
  196. * Unknown fields are now parsed and then sent back on the wire. They can be
  197. discarded at parse time via a CodedInputStream option.
  198. * Movement towards working with .NET 3.5 and Unity
  199. * Expression trees are no longer used
  200. * AOT generics issues in Unity/il2cpp have a workaround (see this commit for
  201. details)
  202. * Floating point values are now compared bitwise (affects NaN value
  203. comparisons)
  204. * The default size limit when parsing is now 2GB rather than 64MB
  205. * MessageParser now supports parsing from a slice of a byte array
  206. * JSON list parsing now accepts null values where the underlying proto
  207. representation does
  208. 2017-12-20 version 3.5.1 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  209. Planned Future Changes
  210. * Make C++ implementation C++11 only: we plan to require C++11 to build
  211. protobuf code starting from 3.6.0 release. Please join this github issue:
  212. https://github.com/protocolbuffers/protobuf/issues/2780 to provide your feedback.
  213. protoc
  214. * Fixed a bug introduced in 3.5.0 and protoc in Windows now accepts non-ascii
  215. characters in paths again.
  216. C++
  217. * Removed several usages of C++11 features in the code base.
  218. * Fixed some compiler warnings.
  219. PHP
  220. * Fixed memory leak in C-extension implementation.
  221. * Added discardUnknokwnFields API.
  222. * Removed duplicatd typedef in C-extension headers.
  223. * Avoided calling private php methods (timelib_update_ts).
  224. * Fixed Any.php to use fully-qualified name for DescriptorPool.
  225. Ruby
  226. * Added Google_Protobuf_discard_unknown for discarding unknown fields in
  227. messages.
  228. C#
  229. * Unknown fields are now preserved by default.
  230. * Floating point values are now bitwise compared, affecting message equality
  231. check and Contains() API in map and repeated fields.
  232. 2017-11-13 version 3.5.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  233. Planned Future Changes
  234. * Make C++ implementation C++11 only: we plan to require C++11 to build
  235. protobuf code starting from 3.6.0 release. Please join this github issue:
  236. https://github.com/protocolbuffers/protobuf/issues/2780 to provide your feedback.
  237. General
  238. * Unknown fields are now preserved in proto3 for most of the language
  239. implementations for proto3 by default. See the per-language section for
  240. details.
  241. * reserve keyword are now supported in enums
  242. C++
  243. * Proto3 messages are now preserving unknown fields by default. If you rely on
  244. unknowns fields being dropped. Please use DiscardUnknownFields() explicitly.
  245. * Deprecated the unsafe_arena_release_* and unsafe_arena_add_allocated_*
  246. methods for string fields.
  247. * Added move constructor and move assignment to RepeatedField,
  248. RepeatedPtrField and google::protobuf::Any.
  249. * Added perfect forwarding in Arena::CreateMessage
  250. * In-progress experimental support for implicit weak fields with lite protos.
  251. This feature allows the linker to strip out more unused messages and reduce
  252. binary size.
  253. * Various performance optimizations.
  254. Java
  255. * Proto3 messages are now preserving unknown fields by default. If you’d like
  256. to drop unknown fields, please use the DiscardUnknownFieldsParser API. For
  257. example:
  258. Parser<Foo> parser = DiscardUnknownFieldsParser.wrap(Foo.parser());
  259. Foo foo = parser.parseFrom(input);
  260. * Added a new CodedInputStream decoder for Iterable<ByteBuffer> with direct
  261. ByteBuffers.
  262. * TextFormat now prints unknown length-delimited fields as messages if
  263. possible.
  264. * FieldMaskUtil.merge() no longer creates unnecessary empty messages when a
  265. message field is unset in both source message and destination message.
  266. * Various performance optimizations.
  267. Python
  268. * Proto3 messages are now preserving unknown fields by default. Use
  269. message.DiscardUnknownFields() to drop unknown fields.
  270. * Add FieldDescriptor.file in generated code.
  271. * Add descriptor pool FindOneofByName in pure python.
  272. * Change unknown enum values into unknown field set .
  273. * Add more Python dict/list compatibility for Struct/ListValue.
  274. * Add utf-8 support for text_format.Merge()/Parse().
  275. * Support numeric unknown enum values for proto3 JSON format.
  276. * Add warning for Unexpected end-group tag in cpp extension.
  277. PHP
  278. * Proto3 messages are now preserving unknown fields.
  279. * Provide well known type messages in runtime.
  280. * Add prefix ‘PB’ to generated class of reserved names.
  281. * Fixed all conformance tests for encode/decode json in php runtime. C
  282. extension needs more work.
  283. Objective-C
  284. * Fixed some issues around copying of messages with unknown fields and then
  285. mutating the unknown fields in the copy.
  286. C#
  287. * Added unknown field support in JsonParser.
  288. * Fixed oneof message field merge.
  289. * Simplify parsing messages from array slices.
  290. Ruby
  291. * Unknown fields are now preserved by default.
  292. * Fixed several bugs for segment fault.
  293. Javascript
  294. * Decoder can handle both paced and unpacked data no matter how the proto is
  295. defined.
  296. * Decoder now accept long varint for 32 bit integers.
  297. 2017-08-14 version 3.4.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  298. Planned Future Changes
  299. * There are some changes that are not included in this release but are planned
  300. for the near future
  301. - Preserve unknown fields in proto3: We are going to bring unknown fields
  302. back into proto3. In this release, some languages start to support
  303. preserving unknown fields in proto3, controlled by flags/options. Some
  304. languages also introduce explicit APIs to drop unknown fields for
  305. migration. Please read the change log sections by languages for details.
  306. For general timeline and plan:
  307. https://docs.google.com/document/d/1KMRX-G91Aa-Y2FkEaHeeviLRRNblgIahbsk4wA14gRk/view
  308. For issues and discussions:
  309. https://github.com/protocolbuffers/protobuf/issues/272
  310. - Make C++ implementation C++11 only: we plan to require C++11 to build
  311. protobuf code starting from 3.5.0 or 3.6.0 release, after unknown fields
  312. semantic changes are finished. Please join this
  313. github issue:
  314. https://github.com/protocolbuffers/protobuf/issues/2780
  315. to provide your feedback.
  316. General
  317. * Extension ranges now accept options and are customizable.
  318. * "reserve" keyword now supports “max” in field number ranges,
  319. e.g. reserve 1000 to max;
  320. C++
  321. * Proto3 messages are now able to preserve unknown fields. The default
  322. behavior is still to drop unknowns, which will be flipped in a future
  323. release. If you rely on unknowns fields being dropped. Please use
  324. Message::DiscardUnknownFields() explicitly.
  325. * Packable proto3 fields are now packed by default in serialization.
  326. * Following C++11 features are introduced when C++11 is available:
  327. - move-constructor and move-assignment are introduced to messages
  328. - Repeated fields constructor now takes std::initializer_list
  329. - rvalue setters are introduced for string fields
  330. * Experimental Table-Driven parsing and serialization available to test. To
  331. enable it, pass in table_driven_parsing table_driven_serialization protoc
  332. generator flags for C++
  333. $ protoc --cpp_out=table_driven_parsing,table_driven_serialization:./ \
  334. test.proto
  335. * lite generator parameter supported by the generator. Once set, all generated
  336. files, use lite runtime regardless of the optimizer_for setting in the
  337. .proto file.
  338. * Various optimizations to make C++ code more performant on PowerPC platform
  339. * Fixed maps data corruption when the maps are modified by both reflection API
  340. and generated API.
  341. * Deterministic serialization on maps reflection now uses stable sort.
  342. * file() accessors are introduced to various *Descriptor classes to make
  343. writing template function easier.
  344. * ByteSize() and SpaceUsed() are deprecated.Use ByteSizeLong() and
  345. SpaceUsedLong() instead
  346. * Consistent hash function is used for maps in DEBUG and NDEBUG build.
  347. * "using namespace std" is removed from stubs/common.h
  348. * Various performance optimizations and bug fixes
  349. Java
  350. * Introduced new parser API DiscardUnknownFieldsParser in preparation of
  351. proto3 unknown fields preservation change. Users who want to drop unknown
  352. fields should migrate to use this new parser API. For example:
  353. Parser<Foo> parser = DiscardUnknownFieldsParser.wrap(Foo.parser());
  354. Foo foo = parser.parseFrom(input);
  355. * Introduced new TextFormat API printUnicodeFieldValue() that prints field
  356. value without escaping unicode characters.
  357. * Added Durations.compare(Duration, Duration) and
  358. Timestamps.compare(Timestamp, Timestamp).
  359. * JsonFormat now accepts base64url encoded bytes fields.
  360. * Optimized CodedInputStream to do less copies when parsing large bytes
  361. fields.
  362. * Optimized TextFormat to allocate less memory when printing.
  363. Python
  364. * SerializeToString API is changed to SerializeToString(self, **kwargs),
  365. deterministic parameter is accepted for deterministic serialization.
  366. * Added sort_keys parameter in json format to make the output deterministic.
  367. * Added indent parameter in json format.
  368. * Added extension support in json format.
  369. * Added __repr__ support for repeated field in cpp implementation.
  370. * Added file in FieldDescriptor.
  371. * Added pretty-print filter to text format.
  372. * Services and method descriptors are always printed even if generic_service
  373. option is turned off.
  374. * Note: AppEngine 2.5 is deprecated on June 2017 that AppEngine 2.5 will
  375. never update protobuf runtime. Users who depend on AppEngine 2.5 should use
  376. old protoc.
  377. PHP
  378. * Support PHP generic services. Specify file option php_generic_service=true
  379. to enable generating service interface.
  380. * Message, repeated and map fields setters take value instead of reference.
  381. * Added map iterator in c extension.
  382. * Support json  encode/decode.
  383. * Added more type info in getter/setter phpdoc
  384. * Fixed the problem that c extension and php implementation cannot be used
  385. together.
  386. * Added file option php_namespace to use custom php namespace instead of
  387. package.
  388. * Added fluent setter.
  389. * Added descriptor API in runtime for custom encode/decode.
  390. * Various bug fixes.
  391. Objective-C
  392. * Fix for GPBExtensionRegistry copying and add tests.
  393. * Optimize GPBDictionary.m codegen to reduce size of overall library by 46K
  394. per architecture.
  395. * Fix some cases of reading of 64bit map values.
  396. * Properly error on a tag with field number zero.
  397. * Preserve unknown fields in proto3 syntax files.
  398. * Document the exceptions on some of the writing apis.
  399. C#
  400. * Implemented IReadOnlyDictionary<K,V> in MapField<K,V>
  401. * Added TryUnpack method for Any message in addition to Unpack.
  402. * Converted C# projects to MSBuild (csproj) format.
  403. Ruby
  404. * Several bug fixes.
  405. Javascript
  406. * Added support of field option js_type. Now one can specify the JS type of a
  407. 64-bit integer field to be string in the generated code by adding option
  408. [jstype = JS_STRING] on the field.
  409. 2017-04-05 version 3.3.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  410. Planned Future Changes
  411. * There are some changes that are not included in this release but are
  412. planned for the near future:
  413. - Preserve unknown fields in proto3: please read this doc:
  414. https://docs.google.com/document/d/1KMRX-G91Aa-Y2FkEaHeeviLRRNblgIahbsk4wA14gRk/view
  415. for the timeline and follow up this github issue:
  416. https://github.com/protocolbuffers/protobuf/issues/272
  417. for discussion.
  418. - Make C++ implementation C++11 only: we plan to require C++11 to build
  419. protobuf code starting from 3.4.0 or 3.5.0 release. Please join this
  420. github issue:
  421. https://github.com/protocolbuffers/protobuf/issues/2780
  422. to provide your feedback.
  423. C++
  424. * Fixed map fields serialization of DynamicMessage to correctly serialize
  425. both key and value regardless of their presence.
  426. * Parser now rejects field number 0 correctly.
  427. * New API Message::SpaceUsedLong() that’s equivalent to
  428. Message::SpaceUsed() but returns the value in size_t.
  429. * JSON support
  430. - New flag always_print_enums_as_ints in JsonPrintOptions.
  431. - New flag preserve_proto_field_names in JsonPrintOptions. It will instruct
  432. the JSON printer to use the original field name declared in the .proto
  433. file instead of converting them to lowerCamelCase when printing JSON.
  434. - JsonPrintOptions.always_print_primtive_fields now works for oneof message
  435. fields.
  436. - Fixed a bug that doesn’t allow different fields to set the same json_name
  437. value.
  438. - Fixed a performance bug that causes excessive memory copy when printing
  439. large messages.
  440. * Various performance optimizations.
  441. Java
  442. * Map field setters eagerly validate inputs and throw NullPointerExceptions
  443. as appropriate.
  444. * Added ByteBuffer overloads to the generated parsing methods and the Parser
  445. interface.
  446. * proto3 enum's getNumber() method now throws on UNRECOGNIZED values.
  447. * Output of JsonFormat is now locale independent.
  448. Python
  449. * Added FindServiceByName() in the pure-Python DescriptorPool. This works only
  450. for descriptors added with DescriptorPool.Add(). Generated descriptor_pool
  451. does not support this yet.
  452. * Added a descriptor_pool parameter for parsing Any in text_format.Parse().
  453. * descriptor_pool.FindFileContainingSymbol() now is able to find nested
  454. extensions.
  455. * Extending empty [] to repeated field now sets parent message presence.
  456. PHP
  457. * Added file option php_class_prefix. The prefix will be prepended to all
  458. generated classes defined in the file.
  459. * When encoding, negative int32 values are sign-extended to int64.
  460. * Repeated/Map field setter accepts a regular PHP array. Type checking is
  461. done on the array elements.
  462. * encode/decode are renamed to serializeToString/mergeFromString.
  463. * Added mergeFrom, clear method on Message.
  464. * Fixed a bug that oneof accessor didn’t return the field name that is
  465. actually set.
  466. * C extension now works with php7.
  467. * This is the first GA release of PHP. We guarantee that old generated code
  468. can always work with new runtime and new generated code.
  469. Objective-C
  470. * Fixed help for GPBTimestamp for dates before the epoch that contain
  471. fractional seconds.
  472. * Added GPBMessageDropUnknownFieldsRecursively() to remove unknowns from a
  473. message and any sub messages.
  474. * Addressed a threading race in extension registration/lookup.
  475. * Increased the max message parsing depth to 100 to match the other languages.
  476. * Removed some use of dispatch_once in favor of atomic compare/set since it
  477. needs to be heap based.
  478. * Fixes for new Xcode 8.3 warnings.
  479. C#
  480. * Fixed MapField.Values.CopyTo, which would throw an exception unnecessarily
  481. if provided exactly the right size of array to copy to.
  482. * Fixed enum JSON formatting when multiple names mapped to the same numeric
  483. value.
  484. * Added JSON formatting option to format enums as integers.
  485. * Modified RepeatedField<T> to implement IReadOnlyList<T>.
  486. * Introduced the start of custom option handling; it's not as pleasant as it
  487. might be, but the information is at least present. We expect to extend code
  488. generation to improve this in the future.
  489. * Introduced ByteString.FromStream and ByteString.FromStreamAsync to
  490. efficiently create a ByteString from a stream.
  491. * Added whole-message deprecation, which decorates the class with [Obsolete].
  492. Ruby
  493. * Fixed Message#to_h for messages with map fields.
  494. * Fixed memcpy() in binary gems to work for old glibc, without breaking the
  495. build for non-glibc libc’s like musl.
  496. Javascript
  497. * Added compatibility tests for version 3.0.0.
  498. * Added conformance tests.
  499. * Fixed serialization of extensions: we need to emit a value even if it is
  500. falsy (like the number 0).
  501. * Use closurebuilder.py in favor of calcdeps.py for compiling JavaScript.
  502. 2017-01-23 version 3.2.0 (C++/Java/Python/PHP/Ruby/Objective-C/C#/JavaScript/Lite)
  503. General
  504. * Added protoc version number to protoc plugin protocol. It can be used by
  505. protoc plugin to detect which version of protoc is used with the plugin and
  506. mitigate known problems in certain version of protoc.
  507. C++
  508. * The default parsing byte size limit has been raised from 64MB to 2GB.
  509. * Added rvalue setters for non-arena string fields.
  510. * Enabled debug logging for Android.
  511. * Fixed a double-free problem when using Reflection::SetAllocatedMessage()
  512. with extension fields.
  513. * Fixed several deterministic serialization bugs:
  514. * MessageLite::SerializeAsString() now respects the global deterministic
  515. serialization flag.
  516. * Extension fields are serialized deterministically as well. Fixed protocol
  517. compiler to correctly report importing-self as an error.
  518. * Fixed FileDescriptor::DebugString() to print custom options correctly.
  519. * Various performance/codesize optimizations and cleanups.
  520. Java
  521. * The default parsing byte size limit has been raised from 64MB to 2GB.
  522. * Added recursion limit when parsing JSON.
  523. * Fixed a bug that enumType.getDescriptor().getOptions() doesn't have custom
  524. options.
  525. * Fixed generated code to support field numbers up to 2^29-1.
  526. Python
  527. * You can now assign NumPy scalars/arrays (np.int32, np.int64) to protobuf
  528. fields, and assigning other numeric types has been optimized for
  529. performance.
  530. * Pure-Python: message types are now garbage-collectable.
  531. * Python/C++: a lot of internal cleanup/refactoring.
  532. PHP (Alpha)
  533. * For 64-bit integers type (int64/uint64/sfixed64/fixed64/sint64), use PHP
  534. integer on 64-bit environment and PHP string on 32-bit environment.
  535. * PHP generated code also conforms to PSR-4 now.
  536. * Fixed ZTS build for c extension.
  537. * Fixed c extension build on Mac.
  538. * Fixed c extension build on 32-bit linux.
  539. * Fixed the bug that message without namespace is not found in the descriptor
  540. pool. (#2240)
  541. * Fixed the bug that repeated field is not iterable in c extension.
  542. * Message names Empty will be converted to GPBEmpty in generated code.
  543. * Added phpdoc in generated files.
  544. * The released API is almost stable. Unless there is large problem, we won't
  545. change it. See
  546. https://developers.google.com/protocol-buffers/docs/reference/php-generated
  547. for more details.
  548. Objective-C
  549. * Added support for push/pop of the stream limit on CodedInputStream for
  550. anyone doing manual parsing.
  551. C#
  552. * No changes.
  553. Ruby
  554. * Message objects now support #respond_to? for field getters/setters.
  555. * You can now compare “message == non_message_object” and it will return false
  556. instead of throwing an exception.
  557. * JRuby: fixed #hashCode to properly reflect the values in the message.
  558. Javascript
  559. * Deserialization of repeated fields no longer has quadratic performance
  560. behavior.
  561. * UTF-8 encoding/decoding now properly supports high codepoints.
  562. * Added convenience methods for some well-known types: Any, Struct, and
  563. Timestamp. These make it easier to convert data between native JavaScript
  564. types and the well-known protobuf types.
  565. 2016-09-23 version 3.1.0 (C++/Java/Python/PHP/Ruby/Objective-C/C#/JavaScript/Lite)
  566. General
  567. * Proto3 support in PHP (alpha).
  568. * Various bug fixes.
  569. C++
  570. * Added MessageLite::ByteSizeLong() that’s equivalent to
  571. MessageLite::ByteSize() but returns the value in size_t. Useful to check
  572. whether a message is over the 2G size limit that protobuf can support.
  573. * Moved default_instances to global variables. This allows default_instance
  574. addresses to be known at compile time.
  575. * Adding missing generic gcc 64-bit atomicops.
  576. * Restore New*Callback into google::protobuf namespace since these are used
  577. by the service stubs code
  578. * JSON support.
  579. * Fixed some conformance issues.
  580. * Fixed a JSON serialization bug for bytes fields.
  581. Java
  582. * Fixed a bug in TextFormat that doesn’t accept empty repeated fields (i.e.,
  583. “field: [ ]”).
  584. * JSON support
  585. * Fixed JsonFormat to do correct snake_case-to-camelCase conversion for
  586. non-style-conforming field names.
  587. * Fixed JsonFormat to parse empty Any message correctly.
  588. * Added an option to JsonFormat.Parser to ignore unknown fields.
  589. * Experimental API
  590. * Added UnsafeByteOperations.unsafeWrap(byte[]) to wrap a byte array into
  591. ByteString without copy.
  592. Python
  593. * JSON support
  594. * Fixed some conformance issues.
  595. PHP (Alpha)
  596. * We have added the proto3 support for PHP via both a pure PHP package and a
  597. native c extension. The pure PHP package is intended to provide usability
  598. to wider range of PHP platforms, while the c extension is intended to
  599. provide higher performance. Both implementations provide the same runtime
  600. APIs and share the same generated code. Users don’t need to re-generate
  601. code for the same proto definition when they want to switch the
  602. implementation later. The pure PHP package is included in the php/src
  603. directory, and the c extension is included in the php/ext directory.
  604. Both implementations provide idiomatic PHP APIs:
  605. * All messages and enums are defined as PHP classes.
  606. * All message fields can only be accessed via getter/setter.
  607. * Both repeated field elements and map elements are stored in containers
  608. that act like a normal PHP array.
  609. Unlike several existing third-party PHP implementations for protobuf, our
  610. implementations are built on a "strongly-typed" philosophy: message fields
  611. and array/map containers will throw exceptions eagerly when values of the
  612. incorrect type (not including those that can be type converted, e.g.,
  613. double <-> integer <-> numeric string) are inserted.
  614. Currently, pure PHP runtime supports php5.5, 5.6 and 7 on linux. C
  615. extension runtime supports php5.5 and 5.6 on linux.
  616. See php/README.md for more details about installment. See
  617. https://developers.google.com/protocol-buffers/docs/phptutorial for more
  618. details about APIs.
  619. Objective-C
  620. * Helpers are now provided for working the Any well known type (see
  621. GPBWellKnownTypes.h for the api additions).
  622. * Some improvements in startup code (especially when extensions aren’t used).
  623. Javascript
  624. * Fixed missing import of jspb.Map
  625. * Fixed valueWriterFn variable name
  626. Ruby
  627. * Fixed hash computation for JRuby's RubyMessage
  628. * Make sure map parsing frames are GC-rooted.
  629. * Added API support for well-known types.
  630. C#
  631. * Removed check on dependency in the C# reflection API.
  632. 2016-09-06 version 3.0.2 (C++/Java/Python/Ruby/Objective-C/C#/JavaScript/Lite)
  633. General
  634. * Various bug fixes.
  635. Objective C
  636. * Fix for oneofs in proto3 syntax files where fields were set to the zero
  637. value.
  638. * Fix for embedded null character in strings.
  639. * CocoaDocs support
  640. Ruby
  641. * Fixed memory corruption bug in parsing that could occur under GC pressure.
  642. Javascript
  643. * jspb.Map is now properly exported to CommonJS modules.
  644. C#
  645. * Removed legacy_enum_values flag.
  646. 2016-07-27 version 3.0.0 (C++/Java/Python/Ruby/Objective-C/C#/JavaScript/Lite)
  647. General
  648. * This log only contains changes since the beta-4 release. Summarized change
  649. log since the last stable release (v2.6.1) can be found in the github
  650. release page.
  651. Compatibility Notice
  652. * v3.0.0 is the first API stable release of the v3.x series. We do not expect
  653. any future API breaking changes.
  654. * For C++, Java Lite and Objective-C, source level compatibility is
  655. guaranteed. Upgrading from v3.0.0 to newer minor version releases will be
  656. source compatible. For example, if your code compiles against protobuf
  657. v3.0.0, it will continue to compile after you upgrade protobuf library to
  658. v3.1.0.
  659. * For other languages, both source level compatibility and binary level
  660. compatibility are guaranteed. For example, if you have a Java binary built
  661. against protobuf v3.0.0. After switching the protobuf runtime binary to
  662. v3.1.0, your built binary should continue to work.
  663. * Compatibility is only guaranteed for documented API and documented
  664. behaviors. If you are using undocumented API (e.g., use anything in the C++
  665. internal namespace), it can be broken by minor version releases in an
  666. undetermined manner.
  667. Ruby
  668. * When you assign a string field `a.string_field = "X"`, we now call
  669. #encode(UTF-8) on the string and freeze the copy. This saves you from
  670. needing to ensure the string is already encoded as UTF-8. It also prevents
  671. you from mutating the string after it has been assigned (this is how we
  672. ensure it stays valid UTF-8).
  673. * The generated file for `foo.proto` is now `foo_pb.rb` instead of just
  674. `foo.rb`. This makes it easier to see which imports/requires are from
  675. protobuf generated code, and also prevents conflicts with any `foo.rb` file
  676. you might have written directly in Ruby. It is a backward-incompatible
  677. change: you will need to update all of your `require` statements.
  678. * For package names like `foo_bar`, we now translate this to the Ruby module
  679. `FooBar`. This is more idiomatic Ruby than what we used to do (`Foo_bar`).
  680. JavaScript
  681. * Scalar fields like numbers and boolean now return defaults instead of
  682. `undefined` or `null` when they are unset. You can test for presence
  683. explicitly by calling `hasFoo()`, which we now generate for scalar fields.
  684. Java Lite
  685. * Java Lite is now implemented as a separate plugin, maintained in the
  686. `javalite` branch. Both lite runtime and protoc artifacts will be available
  687. in Maven.
  688. C#
  689. * Target platforms now .NET 4.5, selected portable subsets and .NET Core.
  690. * legacy_enum_values option is no longer supported.
  691. 2016-07-15 version 3.0.0-beta-4 (C++/Java/Python/Ruby/Objective-C/C#/JavaScript)
  692. General
  693. * Added a deterministic serialization API for C++. The deterministic
  694. serialization guarantees that given a binary, equal messages will be
  695. serialized to the same bytes. This allows applications like MapReduce to
  696. group equal messages based on the serialized bytes. The deterministic
  697. serialization is, however, NOT canonical across languages; it is also
  698. unstable across different builds with schema changes due to unknown fields.
  699. Users who need canonical serialization, e.g. persistent storage in a
  700. canonical form, fingerprinting, etc, should define their own
  701. canonicalization specification and implement the serializer using reflection
  702. APIs rather than relying on this API.
  703. * Added OneofOptions. You can now define custom options for oneof groups.
  704. import "google/protobuf/descriptor.proto";
  705. extend google.protobuf.OneofOptions {
  706. optional int32 my_oneof_extension = 12345;
  707. }
  708. message Foo {
  709. oneof oneof_group {
  710. (my_oneof_extension) = 54321;
  711. ...
  712. }
  713. }
  714. C++ (beta)
  715. * Introduced a deterministic serialization API in
  716. CodedOutputStream::SetSerializationDeterministic(bool). See the notes about
  717. deterministic serialization in the General section.
  718. * Added google::protobuf::Map::swap() to swap two map fields.
  719. * Fixed a memory leak when calling Reflection::ReleaseMessage() on a message
  720. allocated on arena.
  721. * Improved error reporting when parsing text format protos.
  722. * JSON
  723. - Added a new parser option to ignore unknown fields when parsing JSON.
  724. - Added convenient methods for message to/from JSON conversion.
  725. * Various performance optimizations.
  726. Java (beta)
  727. * File option "java_generate_equals_and_hash" is now deprecated. equals() and
  728. hashCode() methods are generated by default.
  729. * Added a new JSON printer option "omittingInsignificantWhitespace" to produce
  730. a more compact JSON output. The printer will pretty-print by default.
  731. * Updated Java runtime to be compatible with 2.5.0/2.6.1 generated protos.
  732. Python (beta)
  733. * Added support to pretty print Any messages in text format.
  734. * Added a flag to ignore unknown fields when parsing JSON.
  735. * Bugfix: "@type" field of a JSON Any message is now correctly put before
  736. other fields.
  737. Objective-C (beta)
  738. * Updated the code to support compiling with more compiler warnings
  739. enabled. (Issue 1616)
  740. * Exposing more detailed errors for parsing failures. (PR 1623)
  741. * Small (breaking) change to the naming of some methods on the support classes
  742. for map<>. There were collisions with the system provided KVO support, so
  743. the names were changed to avoid those issues. (PR 1699)
  744. * Fixed for proper Swift bridging of error handling during parsing. (PR 1712)
  745. * Complete support for generating sources that will go into a Framework and
  746. depend on generated sources from other Frameworks. (Issue 1457)
  747. C# (beta)
  748. * RepeatedField optimizations.
  749. * Support for .NET Core.
  750. * Minor bug fixes.
  751. * Ability to format a single value in JsonFormatter (advanced usage only).
  752. * Modifications to attributes applied to generated code.
  753. Javascript (alpha)
  754. * Maps now have a real map API instead of being treated as repeated fields.
  755. * Well-known types are now provided in the google-protobuf package, and the
  756. code generator knows to require() them from that package.
  757. * Bugfix: non-canonical varints are correctly decoded.
  758. Ruby (alpha)
  759. * Accessors for oneof fields now return default values instead of nil.
  760. Java Lite
  761. * Java lite support is removed from protocol compiler. It will be supported
  762. as a protocol compiler plugin in a separate code branch.
  763. 2016-05-16 version 3.0.0-beta-3 (C++/Java/Python/Ruby/Nano/Objective-C/C#/JavaScript)
  764. General
  765. * Supported Proto3 lite-runtime in C++/Java for mobile platforms.
  766. * Any type now supports APIs to specify prefixes other than
  767. type.googleapis.com
  768. * Removed javanano_use_deprecated_package option; Nano will always has its own
  769. ".nano" package.
  770. C++ (Beta)
  771. * Improved hash maps.
  772. - Improved hash maps comments. In particular, please note that equal hash
  773. maps will not necessarily have the same iteration order and
  774. serialization.
  775. - Added a new hash maps implementation that will become the default in a
  776. later release.
  777. * Arenas
  778. - Several inlined methods in Arena were moved to out-of-line to improve
  779. build performance and code size.
  780. - Added SpaceAllocatedAndUsed() to report both space used and allocated
  781. - Added convenient class UnsafeArenaAllocatedRepeatedPtrFieldBackInserter
  782. * Any
  783. - Allow custom type URL prefixes in Any packing.
  784. - TextFormat now expand the Any type rather than printing bytes.
  785. * Performance optimizations and various bug fixes.
  786. Java (Beta)
  787. * Introduced an ExperimentalApi annotation. Annotated APIs are experimental
  788. and are subject to change in a backward incompatible way in future releases.
  789. * Introduced zero-copy serialization as an ExperimentalApi
  790. - Introduction of the `ByteOutput` interface. This is similar to
  791. `OutputStream` but provides semantics for lazy writing (i.e. no
  792. immediate copy required) of fields that are considered to be immutable.
  793. - `ByteString` now supports writing to a `ByteOutput`, which will directly
  794. expose the internals of the `ByteString` (i.e. `byte[]` or `ByteBuffer`)
  795. to the `ByteOutput` without copying.
  796. - `CodedOutputStream` now supports writing to a `ByteOutput`. `ByteString`
  797. instances that are too large to fit in the internal buffer will be
  798. (lazily) written to the `ByteOutput` directly.
  799. - This allows applications using large `ByteString` fields to avoid
  800. duplication of these fields entirely. Such an application can supply a
  801. `ByteOutput` that chains together the chunks received from
  802. `CodedOutputStream` before forwarding them onto the IO system.
  803. * Other related changes to `CodedOutputStream`
  804. - Additional use of `sun.misc.Unsafe` where possible to perform fast
  805. access to `byte[]` and `ByteBuffer` values and avoiding unnecessary
  806. range checking.
  807. - `ByteBuffer`-backed `CodedOutputStream` now writes directly to the
  808. `ByteBuffer` rather than to an intermediate array.
  809. * Improved lite-runtime.
  810. - Lite protos now implement deep equals/hashCode/toString
  811. - Significantly improved the performance of Builder#mergeFrom() and
  812. Builder#mergeDelimitedFrom()
  813. * Various bug fixes and small feature enhancement.
  814. - Fixed stack overflow when in hashCode() for infinite recursive oneofs.
  815. - Fixed the lazy field parsing in lite to merge rather than overwrite.
  816. - TextFormat now supports reporting line/column numbers on errors.
  817. - Updated to add appropriate @Override for better compiler errors.
  818. Python (Beta)
  819. * Added JSON format for Any, Struct, Value and ListValue
  820. * [ ] is now accepted for both repeated scalar fields and repeated message
  821. fields in text format parser.
  822. * Numerical field name is now supported in text format.
  823. * Added DiscardUnknownFields API for python protobuf message.
  824. Objective-C (Beta)
  825. * Proto comments now come over as HeaderDoc comments in the generated sources
  826. so Xcode can pick them up and display them.
  827. * The library headers have been updated to use HeaderDoc comments so Xcode can
  828. pick them up and display them.
  829. * The per message and per field overhead in both generated code and runtime
  830. object sizes was reduced.
  831. * Generated code now include deprecated annotations when the proto file
  832. included them.
  833. C# (Beta)
  834. In general: some changes are breaking, which require regenerating messages.
  835. Most user-written code will not be impacted *except* for the renaming of enum
  836. values.
  837. * Allow custom type URL prefixes in `Any` packing, and ignore them when
  838. unpacking
  839. * `protoc` is now in a separate NuGet package (Google.Protobuf.Tools)
  840. * New option: `internal_access` to generate internal classes
  841. * Enum values are now PascalCased, and if there's a prefix which matches the
  842. name of the enum, that is removed (so an enum `COLOR` with a value
  843. `COLOR_BLUE` would generate a value of just `Blue`). An option
  844. (`legacy_enum_values`) is temporarily available to disable this, but the
  845. option will be removed for GA.
  846. * `json_name` option is now honored
  847. * If group tags are encountered when parsing, they are validated more
  848. thoroughly (although we don't support actual groups)
  849. * NuGet dependencies are better specified
  850. * Breaking: `Preconditions` is renamed to `ProtoPreconditions`
  851. * Breaking: `GeneratedCodeInfo` is renamed to `GeneratedClrTypeInfo`
  852. * `JsonFormatter` now allows writing to a `TextWriter`
  853. * New interface, `ICustomDiagnosticMessage` to allow more compact
  854. representations from `ToString`
  855. * `CodedInputStream` and `CodedOutputStream` now implement `IDisposable`,
  856. which simply disposes of the streams they were constructed with
  857. * Map fields no longer support null values (in line with other languages)
  858. * Improvements in JSON formatting and parsing
  859. Javascript (Alpha)
  860. * Better support for "bytes" fields: bytes fields can be read as either a
  861. base64 string or UInt8Array (in environments where TypedArray is supported).
  862. * New support for CommonJS imports. This should make it easier to use the
  863. JavaScript support in Node.js and tools like WebPack. See js/README.md for
  864. more information.
  865. * Some significant internal refactoring to simplify and modularize the code.
  866. Ruby (Alpha)
  867. * JSON serialization now properly uses camelCased names, with a runtime option
  868. that will preserve original names from .proto files instead.
  869. * Well-known types are now included in the distribution.
  870. * Release now includes binary gems for Windows, Mac, and Linux instead of just
  871. source gems.
  872. * Bugfix for serializing oneofs.
  873. C++/Java Lite (Alpha)
  874. A new "lite" generator parameter was introduced in the protoc for C++ and
  875. Java for Proto3 syntax messages. Example usage:
  876. ./protoc --cpp_out=lite:$OUTPUT_PATH foo.proto
  877. The protoc will treat the current input and all the transitive dependencies
  878. as LITE. The same generator parameter must be used to generate the
  879. dependencies.
  880. In Proto3 syntax files, "optimized_for=LITE_RUNTIME" is no longer supported.
  881. 2015-12-30 version 3.0.0-beta-2 (C++/Java/Python/Ruby/Nano/Objective-C/C#/JavaScript)
  882. General
  883. * Introduced a new language implementation: JavaScript.
  884. * Added a new field option "json_name". By default proto field names are
  885. converted to "lowerCamelCase" in proto3 JSON format. This option can be
  886. used to override this behavior and specify a different JSON name for the
  887. field.
  888. * Added conformance tests to ensure implementations are following proto3 JSON
  889. specification.
  890. C++ (Beta)
  891. * Various bug fixes and improvements to the JSON support utility:
  892. - Duplicate map keys in JSON are now rejected (i.e., translation will
  893. fail).
  894. - Fixed wire-format for google.protobuf.Value/ListValue.
  895. - Fixed precision loss when converting google.protobuf.Timestamp.
  896. - Fixed a bug when parsing invalid UTF-8 code points.
  897. - Fixed a memory leak.
  898. - Reduced call stack usage.
  899. Java (Beta)
  900. * Cleaned up some unused methods on CodedOutputStream.
  901. * Presized lists for packed fields during parsing in the lite runtime to
  902. reduce allocations and improve performance.
  903. * Improved the performance of unknown fields in the lite runtime.
  904. * Introduced UnsafeByteStrings to support zero-copy ByteString creation.
  905. * Various bug fixes and improvements to the JSON support utility:
  906. - Fixed a thread-safety bug.
  907. - Added a new option “preservingProtoFieldNames” to JsonFormat.
  908. - Added a new option “includingDefaultValueFields” to JsonFormat.
  909. - Updated the JSON utility to comply with proto3 JSON specification.
  910. Python (Beta)
  911. * Added proto3 JSON format utility. It includes support for all field types
  912. and a few well-known types except for Any and Struct.
  913. * Added runtime support for Any, Timestamp, Duration and FieldMask.
  914. * [ ] is now accepted for repeated scalar fields in text format parser.
  915. * Map fields now have proper O(1) performance for lookup/insert/delete
  916. when using the Python/C++ implementation. They were previously using O(n)
  917. search-based algorithms because the C++ reflection interface didn't
  918. support true map operations.
  919. Objective-C (Beta)
  920. * Various bug-fixes and code tweaks to pass more strict compiler warnings.
  921. * Now has conformance test coverage and is passing all tests.
  922. C# (Beta)
  923. * Various bug-fixes.
  924. * Code generation: Files generated in directories based on namespace.
  925. * Code generation: Include comments from .proto files in XML doc
  926. comments (naively)
  927. * Code generation: Change organization/naming of "reflection class" (access
  928. to file descriptor)
  929. * Code generation and library: Add Parser property to MessageDescriptor,
  930. and introduce a non-generic parser type.
  931. * Library: Added TypeRegistry to support JSON parsing/formatting of Any.
  932. * Library: Added Any.Pack/Unpack support.
  933. * Library: Implemented JSON parsing.
  934. Javascript (Alpha)
  935. * Added proto3 support for JavaScript. The runtime is written in pure
  936. JavaScript and works in browsers and in Node.js. To generate JavaScript
  937. code for your proto, invoke protoc with "--js_out". See js/README.md
  938. for more build instructions.
  939. 2015-08-26 version 3.0.0-beta-1 (C++/Java/Python/Ruby/Nano/Objective-C/C#)
  940. About Beta
  941. * This is the first beta release of protobuf v3.0.0. Not all languages
  942. have reached beta stage. Languages not marked as beta are still in
  943. alpha (i.e., be prepared for API breaking changes).
  944. General
  945. * Proto3 JSON is supported in several languages (fully supported in C++
  946. and Java, partially supported in Ruby/C#). The JSON spec is defined in
  947. the proto3 language guide:
  948. https://developers.google.com/protocol-buffers/docs/proto3#json
  949. We will publish a more detailed spec to define the exact behavior of
  950. proto3-conformant JSON serializers and parsers. Until then, do not rely
  951. on specific behaviors of the implementation if it’s not documented in
  952. the above spec. More specifically, the behavior is not yet finalized for
  953. the following:
  954. - Parsing invalid JSON input (e.g., input with trailing commas).
  955. - Non-camelCase names in JSON input.
  956. - The same field appears multiple times in JSON input.
  957. - JSON arrays contain “null” values.
  958. - The message has unknown fields.
  959. * Proto3 now enforces strict UTF-8 checking. Parsing will fail if a string
  960. field contains non UTF-8 data.
  961. C++ (Beta)
  962. * Introduced new utility functions/classes in the google/protobuf/util
  963. directory:
  964. - MessageDifferencer: compare two proto messages and report their
  965. differences.
  966. - JsonUtil: support converting protobuf binary format to/from JSON.
  967. - TimeUtil: utility functions to work with well-known types Timestamp
  968. and Duration.
  969. - FieldMaskUtil: utility functions to work with FieldMask.
  970. * Performance optimization of arena construction and destruction.
  971. * Bug fixes for arena and maps support.
  972. * Changed to use cmake for Windows Visual Studio builds.
  973. * Added Bazel support.
  974. Java (Beta)
  975. * Introduced a new util package that will be distributed as a separate
  976. artifact in maven. It contains:
  977. - JsonFormat: convert proto messages to/from JSON.
  978. - TimeUtil: utility functions to work with Timestamp and Duration.
  979. - FieldMaskUtil: utility functions to work with FieldMask.
  980. * The static PARSER in each generated message is deprecated, and it will
  981. be removed in a future release. A static parser() getter is generated
  982. for each message type instead.
  983. * Performance optimizations for String fields serialization.
  984. * Performance optimizations for Lite runtime on Android:
  985. - Reduced allocations
  986. - Reduced method overhead after ProGuarding
  987. - Reduced code size after ProGuarding
  988. Python (Alpha)
  989. * Removed legacy Python 2.5 support.
  990. * Moved to a single Python 2.x/3.x-compatible codebase, instead of using 2to3.
  991. * Fixed build/tests on Python 2.6, 2.7, 3.3, and 3.4.
  992. - Pure-Python works on all four.
  993. - Python/C++ implementation works on all but 3.4, due to changes in the
  994. Python/C++ API in 3.4.
  995. * Some preliminary work has been done to allow for multiple DescriptorPools
  996. with Python/C++.
  997. Ruby (Alpha)
  998. * Many bugfixes:
  999. - fixed parsing/serialization of bytes, sint, sfixed types
  1000. - other parser bugfixes
  1001. - fixed memory leak affecting Ruby 2.2
  1002. JavaNano (Alpha)
  1003. * JavaNano generated code now will be put in a nano package by default to
  1004. avoid conflicts with Java generated code.
  1005. Objective-C (Alpha)
  1006. * Added non-null markup to ObjC library. Requires SDK 8.4+ to build.
  1007. * Many bugfixes:
  1008. - Removed the class/enum filter.
  1009. - Renamed some internal types to avoid conflicts with the well-known types
  1010. protos.
  1011. - Added missing support for parsing repeated primitive fields in packed or
  1012. unpacked forms.
  1013. - Added *Count for repeated and map<> fields to avoid auto-create when
  1014. checking for them being set.
  1015. C# (Alpha)
  1016. * Namespace changed to Google.Protobuf (and NuGet package will be named
  1017. correspondingly).
  1018. * Target platforms now .NET 4.5 and selected portable subsets only.
  1019. * Removed lite runtime.
  1020. * Reimplementation to use mutable message types.
  1021. * Null references used to represent "no value" for message type fields.
  1022. * Proto3 semantics supported; proto2 files are prohibited for C# codegen.
  1023. Most proto3 features supported:
  1024. - JSON formatting (a.k.a. serialization to JSON), including well-known
  1025. types (except for Any).
  1026. - Wrapper types mapped to nullable value types (or string/ByteString
  1027. allowing nullability). JSON parsing is not supported yet.
  1028. - maps
  1029. - oneof
  1030. - enum unknown value preservation
  1031. 2015-05-25 version 3.0.0-alpha-3 (Objective-C/C#):
  1032. General
  1033. * Introduced two new language implementations (Objective-C, C#) to proto3.
  1034. * Explicit "optional" keyword are disallowed in proto3 syntax, as fields are
  1035. optional by default.
  1036. * Group fields are no longer supported in proto3 syntax.
  1037. * Changed repeated primitive fields to use packed serialization by default in
  1038. proto3 (implemented for C++, Java, Python in this release). The user can
  1039. still disable packed serialization by setting packed to false for now.
  1040. * Added well-known type protos (any.proto, empty.proto, timestamp.proto,
  1041. duration.proto, etc.). Users can import and use these protos just like
  1042. regular proto files. Additional runtime support will be added for them in
  1043. future releases (in the form of utility helper functions, or having them
  1044. replaced by language specific types in generated code).
  1045. * Added a "reserved" keyword in both proto2 and proto3 syntax. User can use
  1046. this keyword to declare reserved field numbers and names to prevent them
  1047. from being reused by other fields in the same message.
  1048. To reserve field numbers, add a reserved declaration in your message:
  1049. message TestMessage {
  1050. reserved 2, 15, 9 to 11, 3;
  1051. }
  1052. This reserves field numbers 2, 3, 9, 10, 11 and 15. If a user uses any of
  1053. these as field numbers, the protocol buffer compiler will report an error.
  1054. Field names can also be reserved:
  1055. message TestMessage {
  1056. reserved "foo", "bar";
  1057. }
  1058. * Various bug fixes since 3.0.0-alpha-2
  1059. Objective-C
  1060. Objective-C includes a code generator and a native objective-c runtime
  1061. library. By adding “--objc_out” to protoc, the code generator will generate
  1062. a header(*.pbobjc.h) and an implementation file(*.pbobjc.m) for each proto
  1063. file.
  1064. In this first release, the generated interface provides: enums, messages,
  1065. field support(single, repeated, map, oneof), proto2 and proto3 syntax
  1066. support, parsing and serialization. It’s compatible with ARC and non-ARC
  1067. usage. Besides, user can also access it via the swift bridging header.
  1068. See objectivec/README.md for details.
  1069. C#
  1070. * C# protobufs are based on project
  1071. https://github.com/jskeet/protobuf-csharp-port. The original project was
  1072. frozen and all the new development will happen here.
  1073. * Codegen plugin for C# was completely rewritten to C++ and is now an
  1074. integral part of protoc.
  1075. * Some refactorings and cleanup has been applied to the C# runtime library.
  1076. * Only proto2 is supported in C# at the moment, proto3 support is in
  1077. progress and will likely bring significant breaking changes to the API.
  1078. See csharp/README.md for details.
  1079. C++
  1080. * Added runtime support for Any type. To use Any in your proto file, first
  1081. import the definition of Any:
  1082. // foo.proto
  1083. import "google/protobuf/any.proto";
  1084. message Foo {
  1085. google.protobuf.Any any_field = 1;
  1086. }
  1087. message Bar {
  1088. int32 value = 1;
  1089. }
  1090. Then in C++ you can access the Any field using PackFrom()/UnpackTo()
  1091. methods:
  1092. Foo foo;
  1093. Bar bar = ...;
  1094. foo.mutable_any_field()->PackFrom(bar);
  1095. ...
  1096. if (foo.any_field().IsType<Bar>()) {
  1097. foo.any_field().UnpackTo(&bar);
  1098. ...
  1099. }
  1100. * In text format, entries of a map field will be sorted by key.
  1101. Java
  1102. * Continued optimizations on the lite runtime to improve performance for
  1103. Android.
  1104. Python
  1105. * Added map support.
  1106. - maps now have a dict-like interface (msg.map_field[key] = value)
  1107. - existing code that modifies maps via the repeated field interface
  1108. will need to be updated.
  1109. Ruby
  1110. * Improvements to RepeatedField's emulation of the Ruby Array API.
  1111. * Various speedups and internal cleanups.
  1112. 2015-02-26 version 3.0.0-alpha-2 (Python/Ruby/JavaNano):
  1113. General
  1114. * Introduced three new language implementations (Ruby, JavaNano, and
  1115. Python) to proto3.
  1116. * Various bug fixes since 3.0.0-alpha-1
  1117. Python:
  1118. Python has received several updates, most notably support for proto3
  1119. semantics in any .proto file that declares syntax="proto3".
  1120. Messages declared in proto3 files no longer represent field presence
  1121. for scalar fields (number, enums, booleans, or strings). You can
  1122. no longer call HasField() for such fields, and they are serialized
  1123. based on whether they have a non-zero/empty/false value.
  1124. One other notable change is in the C++-accelerated implementation.
  1125. Descriptor objects (which describe the protobuf schema and allow
  1126. reflection over it) are no longer duplicated between the Python
  1127. and C++ layers. The Python descriptors are now simple wrappers
  1128. around the C++ descriptors. This change should significantly
  1129. reduce the memory usage of programs that use a lot of message
  1130. types.
  1131. Ruby:
  1132. We have added proto3 support for Ruby via a native C extension.
  1133. The Ruby extension itself is included in the ruby/ directory, and details on
  1134. building and installing the extension are in ruby/README.md. The extension
  1135. will also be published as a Ruby gem. Code generator support is included as
  1136. part of `protoc` with the `--ruby_out` flag.
  1137. The Ruby extension implements a user-friendly DSL to define message types
  1138. (also generated by the code generator from `.proto` files). Once a message
  1139. type is defined, the user may create instances of the message that behave in
  1140. ways idiomatic to Ruby. For example:
  1141. - Message fields are present as ordinary Ruby properties (getter method
  1142. `foo` and setter method `foo=`).
  1143. - Repeated field elements are stored in a container that acts like a native
  1144. Ruby array, and map elements are stored in a container that acts like a
  1145. native Ruby hashmap.
  1146. - The usual well-known methods, such as `#to_s`, `#dup`, and the like, are
  1147. present.
  1148. Unlike several existing third-party Ruby extensions for protobuf, this
  1149. extension is built on a "strongly-typed" philosophy: message fields and
  1150. array/map containers will throw exceptions eagerly when values of the
  1151. incorrect type are inserted.
  1152. See ruby/README.md for details.
  1153. JavaNano:
  1154. JavaNano is a special code generator and runtime library designed especially
  1155. for resource-restricted systems, like Android. It is very resource-friendly
  1156. in both the amount of code and the runtime overhead. Here is an an overview
  1157. of JavaNano features compared with the official Java protobuf:
  1158. - No descriptors or message builders.
  1159. - All messages are mutable; fields are public Java fields.
  1160. - For optional fields only, encapsulation behind setter/getter/hazzer/
  1161. clearer functions is opt-in, which provide proper 'has' state support.
  1162. - For proto2, if not opted in, has state (field presence) is not available.
  1163. Serialization outputs all fields not equal to their defaults.
  1164. The behavior is consistent with proto3 semantics.
  1165. - Required fields (proto2 only) are always serialized.
  1166. - Enum constants are integers; protection against invalid values only
  1167. when parsing from the wire.
  1168. - Enum constants can be generated into container interfaces bearing
  1169. the enum's name (so the referencing code is in Java style).
  1170. - CodedInputByteBufferNano can only take byte[] (not InputStream).
  1171. - Similarly CodedOutputByteBufferNano can only write to byte[].
  1172. - Repeated fields are in arrays, not ArrayList or Vector. Null array
  1173. elements are allowed and silently ignored.
  1174. - Full support for serializing/deserializing repeated packed fields.
  1175. - Support extensions (in proto2).
  1176. - Unset messages/groups are null, not an immutable empty default
  1177. instance.
  1178. - toByteArray(...) and mergeFrom(...) are now static functions of
  1179. MessageNano.
  1180. - The 'bytes' type translates to the Java type byte[].
  1181. See javanano/README.txt for details.
  1182. 2014-12-01 version 3.0.0-alpha-1 (C++/Java):
  1183. General
  1184. * Introduced Protocol Buffers language version 3 (aka proto3).
  1185. When protobuf was initially opensourced it implemented Protocol Buffers
  1186. language version 2 (aka proto2), which is why the version number
  1187. started from v2.0.0. From v3.0.0, a new language version (proto3) is
  1188. introduced while the old version (proto2) will continue to be supported.
  1189. The main intent of introducing proto3 is to clean up protobuf before
  1190. pushing the language as the foundation of Google's new API platform.
  1191. In proto3, the language is simplified, both for ease of use and to
  1192. make it available in a wider range of programming languages. At the
  1193. same time a few features are added to better support common idioms
  1194. found in APIs.
  1195. The following are the main new features in language version 3:
  1196. 1. Removal of field presence logic for primitive value fields, removal
  1197. of required fields, and removal of default values. This makes proto3
  1198. significantly easier to implement with open struct representations,
  1199. as in languages like Android Java, Objective C, or Go.
  1200. 2. Removal of unknown fields.
  1201. 3. Removal of extensions, which are instead replaced by a new standard
  1202. type called Any.
  1203. 4. Fix semantics for unknown enum values.
  1204. 5. Addition of maps.
  1205. 6. Addition of a small set of standard types for representation of time,
  1206. dynamic data, etc.
  1207. 7. A well-defined encoding in JSON as an alternative to binary proto
  1208. encoding.
  1209. This release (v3.0.0-alpha-1) includes partial proto3 support for C++ and
  1210. Java. Items 6 (well-known types) and 7 (JSON format) in the above feature
  1211. list are not implemented.
  1212. A new notion "syntax" is introduced to specify whether a .proto file
  1213. uses proto2 or proto3:
  1214. // foo.proto
  1215. syntax = "proto3";
  1216. message Bar {...}
  1217. If omitted, the protocol compiler will generate a warning and "proto2" will
  1218. be used as the default. This warning will be turned into an error in a
  1219. future release.
  1220. We recommend that new Protocol Buffers users use proto3. However, we do not
  1221. generally recommend that existing users migrate from proto2 from proto3 due
  1222. to API incompatibility, and we will continue to support proto2 for a long
  1223. time.
  1224. * Added support for map fields (implemented in C++/Java for both proto2 and
  1225. proto3).
  1226. Map fields can be declared using the following syntax:
  1227. message Foo {
  1228. map<string, string> values = 1;
  1229. }
  1230. Data of a map field will be stored in memory as an unordered map and it
  1231. can be accessed through generated accessors.
  1232. C++
  1233. * Added arena allocation support (for both proto2 and proto3).
  1234. Profiling shows memory allocation and deallocation constitutes a significant
  1235. fraction of CPU-time spent in protobuf code and arena allocation is a
  1236. technique introduced to reduce this cost. With arena allocation, new
  1237. objects will be allocated from a large piece of preallocated memory and
  1238. deallocation of these objects is almost free. Early adoption shows 20% to
  1239. 50% improvement in some Google binaries.
  1240. To enable arena support, add the following option to your .proto file:
  1241. option cc_enable_arenas = true;
  1242. Protocol compiler will generate additional code to make the generated
  1243. message classes work with arenas. This does not change the existing API
  1244. of protobuf messages and does not affect wire format. Your existing code
  1245. should continue to work after adding this option. In the future we will
  1246. make this option enabled by default.
  1247. To actually take advantage of arena allocation, you need to use the arena
  1248. APIs when creating messages. A quick example of using the arena API:
  1249. {
  1250. google::protobuf::Arena arena;
  1251. // Allocate a protobuf message in the arena.
  1252. MyMessage* message = Arena::CreateMessage<MyMessage>(&arena);
  1253. // All submessages will be allocated in the same arena.
  1254. if (!message->ParseFromString(data)) {
  1255. // Deal with malformed input data.
  1256. }
  1257. // Must not delete the message here. It will be deleted automatically
  1258. // when the arena is destroyed.
  1259. }
  1260. Currently arena does not work with map fields. Enabling arena in a .proto
  1261. file containing map fields will result in compile errors in the generated
  1262. code. This will be addressed in a future release.
  1263. 2014-10-20 version 2.6.1:
  1264. C++
  1265. * Added atomicops support for Solaris.
  1266. * Released memory allocated by InitializeDefaultRepeatedFields() and
  1267. GetEmptyString(). Some memory sanitizers reported them as memory leaks.
  1268. Java
  1269. * Updated DynamicMessage.setField() to handle repeated enum values
  1270. correctly.
  1271. * Fixed a bug that caused NullPointerException to be thrown when
  1272. converting manually constructed FileDescriptorProto to
  1273. FileDescriptor.
  1274. Python
  1275. * Fixed WhichOneof() to work with de-serialized protobuf messages.
  1276. * Fixed a missing file problem of Python C++ implementation.
  1277. 2014-08-15 version 2.6.0:
  1278. General
  1279. * Added oneofs(unions) feature. Fields in the same oneof will share
  1280. memory and at most one field can be set at the same time. Use the
  1281. oneof keyword to define a oneof like:
  1282. message SampleMessage {
  1283. oneof test_oneof {
  1284. string name = 4;
  1285. YourMessage sub_message = 9;
  1286. }
  1287. }
  1288. * Files, services, enums, messages, methods and enum values can be marked
  1289. as deprecated now.
  1290. * Added Support for list values, including lists of messages, when
  1291. parsing text-formatted protos in C++ and Java.
  1292. For example: foo: [1, 2, 3]
  1293. C++
  1294. * Enhanced customization on TestFormat printing.
  1295. * Added SwapFields() in reflection API to swap a subset of fields.
  1296. Added SetAllocatedMessage() in reflection API.
  1297. * Repeated primitive extensions are now packable. The
  1298. [packed=true] option only affects serializers. Therefore, it is
  1299. possible to switch a repeated extension field to packed format
  1300. without breaking backwards-compatibility.
  1301. * Various speed optimizations.
  1302. Java
  1303. * writeTo() method in ByteString can now write a substring to an
  1304. output stream. Added endWith() method for ByteString.
  1305. * ByteString and ByteBuffer are now supported in CodedInputStream
  1306. and CodedOutputStream.
  1307. * java_generate_equals_and_hash can now be used with the LITE_RUNTIME.
  1308. Python
  1309. * A new C++-backed extension module (aka "cpp api v2") that replaces the
  1310. old ("cpp api v1") one. Much faster than the pure Python code. This one
  1311. resolves many bugs and is recommended for general use over the
  1312. pure Python when possible.
  1313. * Descriptors now have enum_types_by_name and extension_types_by_name dict
  1314. attributes.
  1315. * Support for Python 3.
  1316. 2013-02-27 version 2.5.0:
  1317. General
  1318. * New notion "import public" that allows a proto file to forward the content
  1319. it imports to its importers. For example,
  1320. // foo.proto
  1321. import public "bar.proto";
  1322. import "baz.proto";
  1323. // qux.proto
  1324. import "foo.proto";
  1325. // Stuff defined in bar.proto may be used in this file, but stuff from
  1326. // baz.proto may NOT be used without importing it explicitly.
  1327. This is useful for moving proto files. To move a proto file, just leave
  1328. a single "import public" in the old proto file.
  1329. * New enum option "allow_alias" that specifies whether different symbols can
  1330. be assigned the same numeric value. Default value is "true". Setting it to
  1331. false causes the compiler to reject enum definitions where multiple symbols
  1332. have the same numeric value.
  1333. Note: We plan to flip the default value to "false" in a future release.
  1334. Projects using enum aliases should set the option to "true" in their .proto
  1335. files.
  1336. C++
  1337. * New generated method set_allocated_foo(Type* foo) for message and string
  1338. fields. This method allows you to set the field to a pre-allocated object
  1339. and the containing message takes the ownership of that object.
  1340. * Added SetAllocatedExtension() and ReleaseExtension() to extensions API.
  1341. * Custom options are now formatted correctly when descriptors are printed in
  1342. text format.
  1343. * Various speed optimizations.
  1344. Java
  1345. * Comments in proto files are now collected and put into generated code as
  1346. comments for corresponding classes and data members.
  1347. * Added Parser to parse directly into messages without a Builder. For
  1348. example,
  1349. Foo foo = Foo.PARSER.ParseFrom(input);
  1350. Using Parser is ~25% faster than using Builder to parse messages.
  1351. * Added getters/setters to access the underlying ByteString of a string field
  1352. directly.
  1353. * ByteString now supports more operations: substring(), prepend(), and
  1354. append(). The implementation of ByteString uses a binary tree structure
  1355. to support these operations efficiently.
  1356. * New method findInitializationErrors() that lists all missing required
  1357. fields.
  1358. * Various code size and speed optimizations.
  1359. Python
  1360. * Added support for dynamic message creation. DescriptorDatabase,
  1361. DescriptorPool, and MessageFactory work like their C++ counterparts to
  1362. simplify Descriptor construction from *DescriptorProtos, and MessageFactory
  1363. provides a message instance from a Descriptor.
  1364. * Added pickle support for protobuf messages.
  1365. * Unknown fields are now preserved after parsing.
  1366. * Fixed bug where custom options were not correctly populated. Custom
  1367. options can be accessed now.
  1368. * Added EnumTypeWrapper that provides better accessibility to enum types.
  1369. * Added ParseMessage(descriptor, bytes) to generate a new Message instance
  1370. from a descriptor and a byte string.
  1371. 2011-05-01 version 2.4.1:
  1372. C++
  1373. * Fixed the friendship problem for old compilers to make the library now gcc 3
  1374. compatible again.
  1375. * Fixed vcprojects/extract_includes.bat to extract compiler/plugin.h.
  1376. Java
  1377. * Removed usages of JDK 1.6 only features to make the library now JDK 1.5
  1378. compatible again.
  1379. * Fixed a bug about negative enum values.
  1380. * serialVersionUID is now defined in generated messages for java serializing.
  1381. * Fixed protoc to use java.lang.Object, which makes "Object" now a valid
  1382. message name again.
  1383. Python
  1384. * Experimental C++ implementation now requires C++ protobuf library installed.
  1385. See the README.txt in the python directory for details.
  1386. 2011-02-02 version 2.4.0:
  1387. General
  1388. * The RPC (cc|java|py)_generic_services default value is now false instead of
  1389. true.
  1390. * Custom options can have aggregate types. For example,
  1391. message MyOption {
  1392. optional string comment = 1;
  1393. optional string author = 2;
  1394. }
  1395. extend google.protobuf.FieldOptions {
  1396. optional MyOption myoption = 12345;
  1397. }
  1398. This option can now be set as follows:
  1399. message SomeType {
  1400. optional int32 field = 1 [(myoption) = { comment:'x' author:'y' }];
  1401. }
  1402. C++
  1403. * Various speed and code size optimizations.
  1404. * Added a release_foo() method on string and message fields.
  1405. * Fixed gzip_output_stream sub-stream handling.
  1406. Java
  1407. * Builders now maintain sub-builders for sub-messages. Use getFooBuilder() to
  1408. get the builder for the sub-message "foo". This allows you to repeatedly
  1409. modify deeply-nested sub-messages without rebuilding them.
  1410. * Builder.build() no longer invalidates the Builder for generated messages
  1411. (You may continue to modify it and then build another message).
  1412. * Code generator will generate efficient equals() and hashCode()
  1413. implementations if new option java_generate_equals_and_hash is enabled.
  1414. (Otherwise, reflection-based implementations are used.)
  1415. * Generated messages now implement Serializable.
  1416. * Fields with [deprecated=true] will be marked with @Deprecated in Java.
  1417. * Added lazy conversion of UTF-8 encoded strings to String objects to improve
  1418. performance.
  1419. * Various optimizations.
  1420. * Enum value can be accessed directly, instead of calling getNumber() on the
  1421. enum member.
  1422. * For each enum value, an integer constant is also generated with the suffix
  1423. _VALUE.
  1424. Python
  1425. * Added an experimental C++ implementation for Python messages via a Python
  1426. extension. Implementation type is controlled by an environment variable
  1427. PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION (valid values: "cpp" and "python")
  1428. The default value is currently "python" but will be changed to "cpp" in
  1429. future release.
  1430. * Improved performance on message instantiation significantly.
  1431. Most of the work on message instantiation is done just once per message
  1432. class, instead of once per message instance.
  1433. * Improved performance on text message parsing.
  1434. * Allow add() to forward keyword arguments to the concrete class.
  1435. E.g. instead of
  1436. item = repeated_field.add()
  1437. item.foo = bar
  1438. item.baz = quux
  1439. You can do:
  1440. repeated_field.add(foo=bar, baz=quux)
  1441. * Added a sort() interface to the BaseContainer.
  1442. * Added an extend() method to repeated composite fields.
  1443. * Added UTF8 debug string support.
  1444. 2010-01-08 version 2.3.0:
  1445. General
  1446. * Parsers for repeated numeric fields now always accept both packed and
  1447. unpacked input. The [packed=true] option only affects serializers.
  1448. Therefore, it is possible to switch a field to packed format without
  1449. breaking backwards-compatibility -- as long as all parties are using
  1450. protobuf 2.3.0 or above, at least.
  1451. * The generic RPC service code generated by the C++, Java, and Python
  1452. generators can be disabled via file options:
  1453. option cc_generic_services = false;
  1454. option java_generic_services = false;
  1455. option py_generic_services = false;
  1456. This allows plugins to generate alternative code, possibly specific to some
  1457. particular RPC implementation.
  1458. protoc
  1459. * Now supports a plugin system for code generators. Plugins can generate
  1460. code for new languages or inject additional code into the output of other
  1461. code generators. Plugins are just binaries which accept a protocol buffer
  1462. on stdin and write a protocol buffer to stdout, so they may be written in
  1463. any language. See src/google/protobuf/compiler/plugin.proto.
  1464. **WARNING**: Plugins are experimental. The interface may change in a
  1465. future version.
  1466. * If the output location ends in .zip or .jar, protoc will write its output
  1467. to a zip/jar archive instead of a directory. For example:
  1468. protoc --java_out=myproto_srcs.jar --python_out=myproto.zip myproto.proto
  1469. Currently the archive contents are not compressed, though this could change
  1470. in the future.
  1471. * inf, -inf, and nan can now be used as default values for float and double
  1472. fields.
  1473. C++
  1474. * Various speed and code size optimizations.
  1475. * DynamicMessageFactory is now fully thread-safe.
  1476. * Message::Utf8DebugString() method is like DebugString() but avoids escaping
  1477. UTF-8 bytes.
  1478. * Compiled-in message types can now contain dynamic extensions, through use
  1479. of CodedInputStream::SetExtensionRegistry().
  1480. * Now compiles shared libraries (DLLs) by default on Cygwin and MinGW, to
  1481. match other platforms. Use --disable-shared to avoid this.
  1482. Java
  1483. * parseDelimitedFrom() and mergeDelimitedFrom() now detect EOF and return
  1484. false/null instead of throwing an exception.
  1485. * Fixed some initialization ordering bugs.
  1486. * Fixes for OpenJDK 7.
  1487. Python
  1488. * 10-25 times faster than 2.2.0, still pure-Python.
  1489. * Calling a mutating method on a sub-message always instantiates the message
  1490. in its parent even if the mutating method doesn't actually mutate anything
  1491. (e.g. parsing from an empty string).
  1492. * Expanded descriptors a bit.
  1493. 2009-08-11 version 2.2.0:
  1494. C++
  1495. * Lite mode: The "optimize_for = LITE_RUNTIME" option causes the compiler
  1496. to generate code which only depends libprotobuf-lite, which is much smaller
  1497. than libprotobuf but lacks descriptors, reflection, and some other features.
  1498. * Fixed bug where Message.Swap(Message) was only implemented for
  1499. optimize_for_speed. Swap now properly implemented in both modes
  1500. (Issue 91).
  1501. * Added RemoveLast and SwapElements(index1, index2) to Reflection
  1502. interface for repeated elements.
  1503. * Added Swap(Message) to Reflection interface.
  1504. * Floating-point literals in generated code that are intended to be
  1505. single-precision now explicitly have 'f' suffix to avoid pedantic warnings
  1506. produced by some compilers.
  1507. * The [deprecated=true] option now causes the C++ code generator to generate
  1508. a GCC-style deprecation annotation (no-op on other compilers).
  1509. * google::protobuf::GetEnumDescriptor<SomeGeneratedEnumType>() returns the
  1510. EnumDescriptor for that type -- useful for templates which cannot call
  1511. SomeGeneratedEnumType_descriptor().
  1512. * Various optimizations and obscure bug fixes.
  1513. Java
  1514. * Lite mode: The "optimize_for = LITE_RUNTIME" option causes the compiler
  1515. to generate code which only depends libprotobuf-lite, which is much smaller
  1516. than libprotobuf but lacks descriptors, reflection, and some other features.
  1517. * Lots of style cleanups.
  1518. Python
  1519. * Fixed endianness bug with floats and doubles.
  1520. * Text format parsing support.
  1521. * Fix bug with parsing packed repeated fields in embedded messages.
  1522. * Ability to initialize fields by passing keyword args to constructor.
  1523. * Support iterators in extend and __setslice__ for containers.
  1524. 2009-05-13 version 2.1.0:
  1525. General
  1526. * Repeated fields of primitive types (types other that string, group, and
  1527. nested messages) may now use the option [packed = true] to get a more
  1528. efficient encoding. In the new encoding, the entire list is written
  1529. as a single byte blob using the "length-delimited" wire type. Within
  1530. this blob, the individual values are encoded the same way they would
  1531. be normally except without a tag before each value (thus, they are
  1532. tightly "packed").
  1533. * For each field, the generated code contains an integer constant assigned
  1534. to the field number. For example, the .proto file:
  1535. message Foo { optional int bar_baz = 123; }
  1536. would generate the following constants, all with the integer value 123:
  1537. C++: Foo::kBarBazFieldNumber
  1538. Java: Foo.BAR_BAZ_FIELD_NUMBER
  1539. Python: Foo.BAR_BAZ_FIELD_NUMBER
  1540. Constants are also generated for extensions, with the same naming scheme.
  1541. These constants may be used as switch cases.
  1542. * Updated bundled Google Test to version 1.3.0. Google Test is now bundled
  1543. in its verbatim form as a nested autoconf package, so you can drop in any
  1544. other version of Google Test if needed.
  1545. * optimize_for = SPEED is now the default, by popular demand. Use
  1546. optimize_for = CODE_SIZE if code size is more important in your app.
  1547. * It is now an error to define a default value for a repeated field.
  1548. Previously, this was silently ignored (it had no effect on the generated
  1549. code).
  1550. * Fields can now be marked deprecated like:
  1551. optional int32 foo = 1 [deprecated = true];
  1552. Currently this does not have any actual effect, but in the future the code
  1553. generators may generate deprecation annotations in each language.
  1554. * Cross-compiling should now be possible using the --with-protoc option to
  1555. configure. See README.txt for more info.
  1556. protoc
  1557. * --error_format=msvs option causes errors to be printed in Visual Studio
  1558. format, which should allow them to be clicked on in the build log to go
  1559. directly to the error location.
  1560. * The type name resolver will no longer resolve type names to fields. For
  1561. example, this now works:
  1562. message Foo {}
  1563. message Bar {
  1564. optional int32 Foo = 1;
  1565. optional Foo baz = 2;
  1566. }
  1567. Previously, the type of "baz" would resolve to "Bar.Foo", and you'd get
  1568. an error because Bar.Foo is a field, not a type. Now the type of "baz"
  1569. resolves to the message type Foo. This change is unlikely to make a
  1570. difference to anyone who follows the Protocol Buffers style guide.
  1571. C++
  1572. * Several optimizations, including but not limited to:
  1573. - Serialization, especially to flat arrays, is 10%-50% faster, possibly
  1574. more for small objects.
  1575. - Several descriptor operations which previously required locking no longer
  1576. do.
  1577. - Descriptors are now constructed lazily on first use, rather than at
  1578. process startup time. This should save memory in programs which do not
  1579. use descriptors or reflection.
  1580. - UnknownFieldSet completely redesigned to be more efficient (especially in
  1581. terms of memory usage).
  1582. - Various optimizations to reduce code size (though the serialization speed
  1583. optimizations increased code size).
  1584. * Message interface has method ParseFromBoundedZeroCopyStream() which parses
  1585. a limited number of bytes from an input stream rather than parsing until
  1586. EOF.
  1587. * GzipInputStream and GzipOutputStream support reading/writing gzip- or
  1588. zlib-compressed streams if zlib is available.
  1589. (google/protobuf/io/gzip_stream.h)
  1590. * DescriptorPool::FindAllExtensions() and corresponding
  1591. DescriptorDatabase::FindAllExtensions() can be used to enumerate all
  1592. extensions of a given type.
  1593. * For each enum type Foo, protoc will generate functions:
  1594. const string& Foo_Name(Foo value);
  1595. bool Foo_Parse(const string& name, Foo* result);
  1596. The former returns the name of the enum constant corresponding to the given
  1597. value while the latter finds the value corresponding to a name.
  1598. * RepeatedField and RepeatedPtrField now have back-insertion iterators.
  1599. * String fields now have setters that take a char* and a size, in addition
  1600. to the existing ones that took char* or const string&.
  1601. * DescriptorPool::AllowUnknownDependencies() may be used to tell
  1602. DescriptorPool to create placeholder descriptors for unknown entities
  1603. referenced in a FileDescriptorProto. This can allow you to parse a .proto
  1604. file without having access to other .proto files that it imports, for
  1605. example.
  1606. * Updated gtest to latest version. The gtest package is now included as a
  1607. nested autoconf package, so it should be able to drop new versions into the
  1608. "gtest" subdirectory without modification.
  1609. Java
  1610. * Fixed bug where Message.mergeFrom(Message) failed to merge extensions.
  1611. * Message interface has new method toBuilder() which is equivalent to
  1612. newBuilderForType().mergeFrom(this).
  1613. * All enums now implement the ProtocolMessageEnum interface.
  1614. * Setting a field to null now throws NullPointerException.
  1615. * Fixed tendency for TextFormat's parsing to overflow the stack when
  1616. parsing large string values. The underlying problem is with Java's
  1617. regex implementation (which unfortunately uses recursive backtracking
  1618. rather than building an NFA). Worked around by making use of possessive
  1619. quantifiers.
  1620. * Generated service classes now also generate pure interfaces. For a service
  1621. Foo, Foo.Interface is a pure interface containing all of the service's
  1622. defined methods. Foo.newReflectiveService() can be called to wrap an
  1623. instance of this interface in a class that implements the generic
  1624. RpcService interface, which provides reflection support that is usually
  1625. needed by RPC server implementations.
  1626. * RPC interfaces now support blocking operation in addition to non-blocking.
  1627. The protocol compiler generates separate blocking and non-blocking stubs
  1628. which operate against separate blocking and non-blocking RPC interfaces.
  1629. RPC implementations will have to implement the new interfaces in order to
  1630. support blocking mode.
  1631. * New I/O methods parseDelimitedFrom(), mergeDelimitedFrom(), and
  1632. writeDelimitedTo() read and write "delimited" messages from/to a stream,
  1633. meaning that the message size precedes the data. This way, you can write
  1634. multiple messages to a stream without having to worry about delimiting
  1635. them yourself.
  1636. * Throw a more descriptive exception when build() is double-called.
  1637. * Add a method to query whether CodedInputStream is at the end of the input
  1638. stream.
  1639. * Add a method to reset a CodedInputStream's size counter; useful when
  1640. reading many messages with the same stream.
  1641. * equals() and hashCode() now account for unknown fields.
  1642. Python
  1643. * Added slicing support for repeated scalar fields. Added slice retrieval and
  1644. removal of repeated composite fields.
  1645. * Updated RPC interfaces to allow for blocking operation. A client may
  1646. now pass None for a callback when making an RPC, in which case the
  1647. call will block until the response is received, and the response
  1648. object will be returned directly to the caller. This interface change
  1649. cannot be used in practice until RPC implementations are updated to
  1650. implement it.
  1651. * Changes to input_stream.py should make protobuf compatible with appengine.
  1652. 2008-11-25 version 2.0.3:
  1653. protoc
  1654. * Enum values may now have custom options, using syntax similar to field
  1655. options.
  1656. * Fixed bug where .proto files which use custom options but don't actually
  1657. define them (i.e. they import another .proto file defining the options)
  1658. had to explicitly import descriptor.proto.
  1659. * Adjacent string literals in .proto files will now be concatenated, like in
  1660. C.
  1661. * If an input file is a Windows absolute path (e.g. "C:\foo\bar.proto") and
  1662. the import path only contains "." (or contains "." but does not contain
  1663. the file), protoc incorrectly thought that the file was under ".", because
  1664. it thought that the path was relative (since it didn't start with a slash).
  1665. This has been fixed.
  1666. C++
  1667. * Generated message classes now have a Swap() method which efficiently swaps
  1668. the contents of two objects.
  1669. * All message classes now have a SpaceUsed() method which returns an estimate
  1670. of the number of bytes of allocated memory currently owned by the object.
  1671. This is particularly useful when you are reusing a single message object
  1672. to improve performance but want to make sure it doesn't bloat up too large.
  1673. * New method Message::SerializeAsString() returns a string containing the
  1674. serialized data. May be more convenient than calling
  1675. SerializeToString(string*).
  1676. * In debug mode, log error messages when string-type fields are found to
  1677. contain bytes that are not valid UTF-8.
  1678. * Fixed bug where a message with multiple extension ranges couldn't parse
  1679. extensions.
  1680. * Fixed bug where MergeFrom(const Message&) didn't do anything if invoked on
  1681. a message that contained no fields (but possibly contained extensions).
  1682. * Fixed ShortDebugString() to not be O(n^2). Durr.
  1683. * Fixed crash in TextFormat parsing if the first token in the input caused a
  1684. tokenization error.
  1685. * Fixed obscure bugs in zero_copy_stream_impl.cc.
  1686. * Added support for HP C++ on Tru64.
  1687. * Only build tests on "make check", not "make".
  1688. * Fixed alignment issue that caused crashes when using DynamicMessage on
  1689. 64-bit Sparc machines.
  1690. * Simplify template usage to work with MSVC 2003.
  1691. * Work around GCC 4.3.x x86_64 compiler bug that caused crashes on startup.
  1692. (This affected Fedora 9 in particular.)
  1693. * Now works on "Solaris 10 using recent Sun Studio".
  1694. Java
  1695. * New overload of mergeFrom() which parses a slice of a byte array instead
  1696. of the whole thing.
  1697. * New method ByteString.asReadOnlyByteBuffer() does what it sounds like.
  1698. * Improved performance of isInitialized() when optimizing for code size.
  1699. Python
  1700. * Corrected ListFields() signature in Message base class to match what
  1701. subclasses actually implement.
  1702. * Some minor refactoring.
  1703. * Don't pass self as first argument to superclass constructor (no longer
  1704. allowed in Python 2.6).
  1705. 2008-09-29 version 2.0.2:
  1706. General
  1707. * License changed from Apache 2.0 to 3-Clause BSD.
  1708. * It is now possible to define custom "options", which are basically
  1709. annotations which may be placed on definitions in a .proto file.
  1710. For example, you might define a field option called "foo" like so:
  1711. import "google/protobuf/descriptor.proto"
  1712. extend google.protobuf.FieldOptions {
  1713. optional string foo = 12345;
  1714. }
  1715. Then you annotate a field using the "foo" option:
  1716. message MyMessage {
  1717. optional int32 some_field = 1 [(foo) = "bar"]
  1718. }
  1719. The value of this option is then visible via the message's
  1720. Descriptor:
  1721. const FieldDescriptor* field =
  1722. MyMessage::descriptor()->FindFieldByName("some_field");
  1723. assert(field->options().GetExtension(foo) == "bar");
  1724. This feature has been implemented and tested in C++ and Java.
  1725. Other languages may or may not need to do extra work to support
  1726. custom options, depending on how they construct descriptors.
  1727. C++
  1728. * Fixed some GCC warnings that only occur when using -pedantic.
  1729. * Improved static initialization code, making ordering more
  1730. predictable among other things.
  1731. * TextFormat will no longer accept messages which contain multiple
  1732. instances of a singular field. Previously, the latter instance
  1733. would overwrite the former.
  1734. * Now works on systems that don't have hash_map.
  1735. Java
  1736. * Print @Override annotation in generated code where appropriate.
  1737. Python
  1738. * Strings now use the "unicode" type rather than the "str" type.
  1739. String fields may still be assigned ASCII "str" values; they will
  1740. automatically be converted.
  1741. * Adding a property to an object representing a repeated field now
  1742. raises an exception. For example:
  1743. # No longer works (and never should have).
  1744. message.some_repeated_field.foo = 1
  1745. Windows
  1746. * We now build static libraries rather than DLLs by default on MSVC.
  1747. See vsprojects/readme.txt for more information.
  1748. 2008-08-15 version 2.0.1:
  1749. protoc
  1750. * New flags --encode and --decode can be used to convert between protobuf text
  1751. format and binary format from the command-line.
  1752. * New flag --descriptor_set_out can be used to write FileDescriptorProtos for
  1753. all parsed files directly into a single output file. This is particularly
  1754. useful if you wish to parse .proto files from programs written in languages
  1755. other than C++: just run protoc as a background process and have it output
  1756. a FileDescriptorList, then parse that natively.
  1757. * Improved error message when an enum value's name conflicts with another
  1758. symbol defined in the enum type's scope, e.g. if two enum types declared
  1759. in the same scope have values with the same name. This is disallowed for
  1760. compatibility with C++, but this wasn't clear from the error.
  1761. * Fixed absolute output paths on Windows.
  1762. * Allow trailing slashes in --proto_path mappings.
  1763. C++
  1764. * Reflection objects are now per-class rather than per-instance. To make this
  1765. possible, the Reflection interface had to be changed such that all methods
  1766. take the Message instance as a parameter. This change improves performance
  1767. significantly in memory-bandwidth-limited use cases, since it makes the
  1768. message objects smaller. Note that source-incompatible interface changes
  1769. like this will not be made again after the library leaves beta.
  1770. * Heuristically detect sub-messages when printing unknown fields.
  1771. * Fix static initialization ordering bug that caused crashes at startup when
  1772. compiling on Mac with static linking.
  1773. * Fixed TokenizerTest when compiling with -DNDEBUG on Linux.
  1774. * Fixed incorrect definition of kint32min.
  1775. * Fix bytes type setter to work with byte sequences with embedded NULLs.
  1776. * Other irrelevant tweaks.
  1777. Java
  1778. * Fixed UnknownFieldSet's parsing of varints larger than 32 bits.
  1779. * Fixed TextFormat's parsing of "inf" and "nan".
  1780. * Fixed TextFormat's parsing of comments.
  1781. * Added info to Java POM that will be required when we upload the
  1782. package to a Maven repo.
  1783. Python
  1784. * MergeFrom(message) and CopyFrom(message) are now implemented.
  1785. * SerializeToString() raises an exception if the message is missing required
  1786. fields.
  1787. * Code organization improvements.
  1788. * Fixed doc comments for RpcController and RpcChannel, which had somehow been
  1789. swapped.
  1790. * Fixed text_format_test on Windows where floating-point exponents sometimes
  1791. contain extra zeros.
  1792. * Fix Python service CallMethod() implementation.
  1793. Other
  1794. * Improved readmes.
  1795. * VIM syntax highlighting improvements.
  1796. 2008-07-07 version 2.0.0:
  1797. * First public release.