CHANGES.txt 134 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952
  1. 2021-10-04 version 3.18.1 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  2. Python
  3. * Update setup.py to reflect that we now require at least Python 3.5 (#8989)
  4. * Performance fix for DynamicMessage: force GetRaw() to be inlined (#9023)
  5. Ruby
  6. * Update ruby_generator.cc to allow proto2 imports in proto3 (#9003)
  7. 2021-09-13 version 3.18.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  8. C++
  9. * Fix warnings raised by clang 11 (#8664)
  10. * Make StringPiece constructible from std::string_view (#8707)
  11. * Add missing capability attributes for LLVM 12 (#8714)
  12. * Stop using std::iterator (deprecated in C++17). (#8741)
  13. * Move field_access_listener from libprotobuf-lite to libprotobuf (#8775)
  14. * Fix #7047 Safely handle setlocale (#8735)
  15. * Remove deprecated version of SetTotalBytesLimit() (#8794)
  16. * Support arena allocation of google::protobuf::AnyMetadata (#8758)
  17. * Fix undefined symbol error around SharedCtor() (#8827)
  18. * Fix default value of enum(int) in json_util with proto2 (#8835)
  19. * Better Smaller ByteSizeLong
  20. * Introduce event filters for inject_field_listener_events
  21. * Reduce memory usage of DescriptorPool
  22. * For lazy fields copy serialized form when allowed.
  23. * Re-introduce the InlinedStringField class
  24. * v2 access listener
  25. * Reduce padding in the proto's ExtensionRegistry map.
  26. * GetExtension performance optimizations
  27. * Make tracker a static variable rather than call static functions
  28. * Support extensions in field access listener
  29. * Annotate MergeFrom for field access listener
  30. * Fix incomplete types for field access listener
  31. * Add map_entry/new_map_entry to SpecificField in MessageDifferencer. They
  32. record the map items which are different in MessageDifferencer's reporter.
  33. * Reduce binary size due to fieldless proto messages
  34. * TextFormat: ParseInfoTree supports getting field end location in addition to
  35. start.
  36. * Fix repeated enum extension size in field listener
  37. * Enable Any Text Expansion for Descriptors::DebugString()
  38. * Switch from int{8,16,32,64} to int{8,16,32,64}_t
  39. Java
  40. * Fix errorprone conflict (#8723)
  41. * Removing deprecated TimeUtil class. (#8749)
  42. * Optimized FieldDescriptor.valueOf() to avoid array copying.
  43. * Removing deprecated TimeUtil class.
  44. * Add Durations.parseUnchecked(String) and Timestamps.parseUnchecked(String)
  45. * FieldMaskUtil: Add convenience method to mask the fields out of a given proto.
  46. JavaScript
  47. * Optimize binary parsing of repeated float64
  48. * Fix for optimization when reading doubles from binary wire format
  49. * Replace toArray implementation with toJSON.
  50. Python
  51. * Drops support for 2.7 and 3.5.
  52. PHP
  53. * Migrate PHP & Ruby to ABSL wyhash (#8854)
  54. * Added support for PHP 8.1 (currently in RC1) to the C extension (#8964)
  55. * Fixed PHP SEGV when constructing messages from a destructor. (#8969)
  56. Ruby
  57. * Move DSL implementation from C to pure Ruby (#8850)
  58. * Fixed a memory bug with RepeatedField#+. (#8970)
  59. Other
  60. * [csharp] ByteString.CreateCodedInput should use ArraySegment offset and count (#8740)
  61. * [ObjC] Add support for using the proto package to prefix symbols. (#8760)
  62. * field_presence.md: fix Go example (#8788)
  63. 2021-06-04 version 3.17.3 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  64. C++
  65. * Introduce FieldAccessListener.
  66. * Stop emitting boilerplate {Copy/Merge}From in each ProtoBuf class
  67. * Fixed some uninitialized variable warnings in generated_message_reflection.cc.
  68. Kotlin
  69. * Fix duplicate proto files error (#8699)
  70. Java
  71. * Fixed parser to check that we are at a proper limit when a sub-message has
  72. finished parsing.
  73. 2021-05-25 version 3.17.2 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  74. Kotlin
  75. * Fix duplicate class error (#8653)
  76. PHP
  77. * Fixed SEGV in sub-message getters for well-known types when message is unset
  78. (#8670)
  79. 2021-05-07 version 3.17.1 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  80. PHP
  81. * Fixed PHP memory leaks and arginfo errors. (#8614)
  82. * Fixed JSON parser to allow multiple values from the same oneof as long as
  83. all but one are null.
  84. Ruby
  85. * Fixed memory bug: properly root repeated/map field when assigning. (#8639)
  86. * Fixed JSON parser to allow multiple values from the same oneof as long as
  87. all but one are null.
  88. 2021-05-07 version 3.17.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  89. Protocol Compiler
  90. * Fix the generated source information for reserved values in Enums.
  91. C++
  92. * Fix -Wunused-parameter in map<string, int> fields (fixes #8494) (#8500)
  93. * Use byteswap.h when building against musl libc (#8503)
  94. * Fix -Wundefined-inline error when using SharedCtor() or SharedDtor() (#8532)
  95. * Fix bug where `Descriptor::DebugString()` printed proto3 synthetic oneofs.
  96. * Provide stable versions of `SortAndUnique()`.
  97. * Make sure to cache proto3 optional message fields when they are cleared.
  98. * Expose UnsafeArena methods to Reflection.
  99. * Use std::string::empty() rather than std::string::size() > 0.
  100. Kotlin
  101. * Restrict extension setter and getter operators to non-nullable T.
  102. Java
  103. * updating GSON and Guava to more recent versions (#8524)
  104. * Reduce the time spent evaluating isExtensionNumber by storing the extension
  105. ranges in a TreeMap for faster queries. This is particularly relevant for
  106. protos which define a large number of extension ranges, for example when
  107. each tag is defined as an extension.
  108. * Fix java bytecode estimation logic for optional fields.
  109. * Optimize Descriptor.isExtensionNumber.
  110. Python
  111. * Add MethodDescriptor.CopyToProto() (#8327)
  112. * Remove unused python_protobuf.{cc,h} (#8513)
  113. * Start publishing python aarch64 manylinux wheels normally (#8530)
  114. * Fix constness issue detected by MSVC standard conforming mode (#8568)
  115. * Make JSON parsing match C++ and Java when multiple fields from the same
  116. oneof are present and all but one is null.
  117. Ruby
  118. * Add support for proto3 json_name in compiler and field definitions (#8356)
  119. * Fixed memory leak of Ruby arena objects. (#8461)
  120. * Fix source gem compilation (#8471)
  121. * Fix various exceptions in Ruby on 64-bit Windows (#8563)
  122. * Fix crash when calculating Message hash values on 64-bit Windows (#8565)
  123. Conformance Tests
  124. * Added a conformance test for the case of multiple fields from the same
  125. oneof.
  126. 2021-04-06 version 3.16.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  127. Other
  128. * Opensourcing kotlin protos (#8272)
  129. * Use a newer version of rules_proto, with the new rule `proto_descriptor_set` (#8469)
  130. C++
  131. * Fix compiler warnings issue found in conformance_test_runner #8189 (#8190)
  132. * Fix MinGW-w64 build issues. (#8286)
  133. * [Protoc] C++ Resolved an issue where NO_DESTROY and CONSTINIT are in incorrect order (#8296)
  134. * Fix PROTOBUF_CONSTINIT macro redefinition (#8323)
  135. * Delete StringPiecePod (#8353)
  136. * Fix gcc error: comparison of unsigned expression in '>= 0' is always … (#8309)
  137. * Fix cmake install on iOS (#8301)
  138. * Create a CMake option to control whether or not RTTI is enabled (#8347)
  139. * Fix endian.h location on FreeBSD (#8351)
  140. * Refactor util::Status (#8354)
  141. * Make util::Status more similar to absl::Status (#8405)
  142. * Fix -Wsuggest-destructor-override for generated C++ proto classes. (#8408)
  143. * Refactor StatusOr and StringPiece (#8406)
  144. * Refactor uint128 (#8416)
  145. * The ::pb namespace is no longer exposed due to conflicts.
  146. * Allow MessageDifferencer::TreatAsSet() (and friends) to override previous
  147. calls instead of crashing.
  148. * Reduce the size of generated proto headers for protos with `string` or
  149. `bytes` fields.
  150. * Move arena() operation on uncommon path to out-of-line routine
  151. * For iterator-pair function parameter types, take both iterators by value.
  152. * Code-space savings and perhaps some modest performance improvements in
  153. RepeatedPtrField.
  154. * Eliminate nullptr check from every tag parse.
  155. * Remove unused _$name$_cached_byte_size_ fields.
  156. * Serialize extension ranges together when not broken by a proto field in the
  157. middle.
  158. * Do out-of-line allocation and deallocation of string object in ArenaString.
  159. * Streamline ParseContext::ParseMessage<T> to avoid code bloat and improve
  160. performance.
  161. * New member functions RepeatedField::Assign, RepeatedPtrField::{Add, Assign}.
  162. * Fix undefined behavior warning due to innocuous uninitialization of value
  163. on an error path.
  164. * Avoid expensive inlined code space for encoding message length for messages
  165. >= 128 bytes and instead do a procedure call to a shared out-of-line routine.
  166. * util::DefaultFieldComparator will be final in a future version of protobuf.
  167. Subclasses should inherit from SimpleFieldComparator instead.
  168. C#
  169. * Add .NET 5 target and improve WriteString performance with SIMD (#8147)
  170. Java
  171. * deps: update JUnit and Truth (#8319)
  172. * Detect invalid overflow of byteLimit and return InvalidProtocolBufferException as documented.
  173. * Exceptions thrown while reading from an InputStream in parseFrom are now
  174. included as causes.
  175. * Support potentially more efficient proto parsing from RopeByteStrings.
  176. * Clarify runtime of ByteString.Output.toStringBuffer().
  177. * Added UnsafeByteOperations to protobuf-lite (#8426)
  178. JavaScript
  179. * Make Any.pack() chainable.
  180. Python
  181. * Fix some constness / char literal issues being found by MSVC standard conforming mode (#8344)
  182. * Switch on "new" buffer API (#8339)
  183. * Enable crosscompiling aarch64 python wheels under dockcross manylinux docker image (#8280)
  184. * Fixed a bug in text format where a trailing colon was printed for repeated field.
  185. * When TextFormat encounters a duplicate message map key, replace the current
  186. one instead of merging.
  187. Objective-C
  188. * Move the class map to a CFDictionary. (#8328)
  189. PHP
  190. * read_property() handler is not supposed to return NULL (#8362)
  191. * Changed parameter type from long to integer (#7613)
  192. * fix: README supported PHP version for C extension (#8236)
  193. Ruby
  194. * Fixed quadratic memory usage when appending to arrays. (#8364)
  195. * Fixed memory leak of Ruby arena objects. (#8461)
  196. * Add support for proto3 json_name in compiler and field definitions. (#8356)
  197. Other
  198. * Some doc on AOT compilation and protobuf (#8294)
  199. * [CMake] Ability to pass options to protoc executable from cmake (#8374)
  200. * Add --fatal_warnings flag to treat warnings as errors (#8131)
  201. * [bazel] Remove deprecated way to depend on googletest (#8396)
  202. * add error returns missing from protoc to prevent it from exiting with… (#8409)
  203. 2021-04-07 version 3.15.8 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  204. Ruby
  205. * Fixed memory leak of Ruby arena objects (#8461)
  206. 2021-04-02 version 3.15.7 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  207. C++
  208. * Remove the ::pb namespace (alias) (#8423)
  209. Ruby
  210. * Fix unbounded memory growth for Ruby <2.7 (#8429)
  211. * Fixed message equality in cases where the message type is different (#8434)
  212. 2021-03-10 version 3.15.6 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  213. Ruby
  214. * Fixed bug in string comparison logic (#8386)
  215. 2021-03-04 version 3.15.5 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  216. Ruby
  217. * Fixed quadratic memory use in array append (#8379)
  218. PHP
  219. * Fixed quadratic memory use in array append (#8379)
  220. C++
  221. * Do not disable RTTI by default in the CMake build (#8377)
  222. 2021-03-02 version 3.15.4 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  223. Ruby
  224. * Fixed SEGV when users pass nil messages (#8363)
  225. * Fixed quadratic memory usage when appending to arrays (#8364)
  226. C++
  227. * Create a CMake option to control whether or not RTTI is enabled (#8361)
  228. PHP
  229. * read_property() handler is not supposed to return NULL (#8362)
  230. 2021-02-25 version 3.15.3 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  231. Ruby
  232. * Ruby <2.7 now uses WeakMap too, which prevents memory leaks. (#8341)
  233. 2021-02-23 version 3.15.2 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  234. Ruby
  235. * Fix for FieldDescriptor.get(msg) (#8330)
  236. C++
  237. * Fix PROTOBUF_CONSTINIT macro redefinition (#8323)
  238. 2021-02-05 version 3.15.1 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  239. Ruby
  240. * Bugfix for Message.[] for repeated or map fields (#8313)
  241. 2021-02-05 version 3.15.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  242. Protocol Compiler
  243. * Optional fields for proto3 are enabled by default, and no longer require
  244. the --experimental_allow_proto3_optional flag.
  245. C++
  246. * MessageDifferencer: fixed bug when using custom ignore with multiple
  247. unknown fields
  248. * Use init_seg in MSVC to push initialization to an earlier phase.
  249. * Runtime no longer triggers -Wsign-compare warnings.
  250. * Fixed -Wtautological-constant-out-of-range-compare warning.
  251. * DynamicCastToGenerated works for nullptr input for even if RTTI is disabled
  252. * Arena is refactored and optimized.
  253. * Clarified/specified that the exact value of Arena::SpaceAllocated() is an
  254. implementation detail users must not rely on. It should not be used in
  255. unit tests.
  256. * Change the signature of Any::PackFrom() to return false on error.
  257. * Add fast reflection getter API for strings.
  258. * Constant initialize the global message instances
  259. * Avoid potential for missed wakeup in UnknownFieldSet
  260. * Now Proto3 Oneof fields have "has" methods for checking their presence in
  261. C++.
  262. * Bugfix for NVCC
  263. * Return early in _InternalSerialize for empty maps.
  264. * Adding functionality for outputting map key values in proto path logging
  265. output (does not affect comparison logic) and stop printing 'value' in the
  266. path. The modified print functionality is in the
  267. MessageDifferencer::StreamReporter.
  268. * Fixed https://github.com/protocolbuffers/protobuf/issues/8129
  269. * Ensure that null char symbol, package and file names do not result in a
  270. crash.
  271. * Constant initialize the global message instances
  272. * Pretty print 'max' instead of numeric values in reserved ranges.
  273. * Removed remaining instances of std::is_pod, which is deprecated in C++20.
  274. * Changes to reduce code size for unknown field handling by making uncommon
  275. cases out of line.
  276. * Fix std::is_pod deprecated in C++20 (#7180)
  277. * Fix some -Wunused-parameter warnings (#8053)
  278. * Fix detecting file as directory on zOS issue #8051 (#8052)
  279. * Don't include sys/param.h for _BYTE_ORDER (#8106)
  280. * remove CMAKE_THREAD_LIBS_INIT from pkgconfig CFLAGS (#8154)
  281. * Fix TextFormatMapTest.DynamicMessage issue#5136 (#8159)
  282. * Fix for compiler warning issue#8145 (#8160)
  283. * fix: support deprecated enums for GCC < 6 (#8164)
  284. * Fix some warning when compiling with Visual Studio 2019 on x64 target (#8125)
  285. Python
  286. * Provided an override for the reverse() method that will reverse the internal
  287. collection directly instead of using the other methods of the BaseContainer.
  288. * MessageFactory.CreateProtoype can be overridden to customize class creation.
  289. * Fix PyUnknownFields memory leak (#7928)
  290. * Add macOS Big Sur compatibility (#8126)
  291. JavaScript
  292. * Generate `getDescriptor` methods with `*` as their `this` type.
  293. * Enforce `let/const` for generated messages.
  294. * js/binary/utils.js: Fix jspb.utils.joinUnsignedDecimalString to work with negative bitsLow and low but non-zero bitsHigh parameter. (#8170)
  295. PHP
  296. * Added support for PHP 8. (#8105)
  297. * unregister INI entries and fix invalid read on shutdown (#8042)
  298. * Fix PhpDoc comments for message accessors to include "|null". (#8136)
  299. * fix: convert native PHP floats to single precision (#8187)
  300. * Fixed PHP to support field numbers >=2**28. (#8235)
  301. * feat: add support for deprecated fields to PHP compiler (#8223)
  302. * Protect against stack overflow if the user derives from Message. (#8248)
  303. * Fixed clone for Message, RepeatedField, and MapField. (#8245)
  304. * Updated upb to allow nonzero offset minutes in JSON timestamps. (#8258)
  305. Ruby
  306. * Added support for Ruby 3. (#8184)
  307. * Rewrote the data storage layer to be based on upb_msg objects from the
  308. upb library. This should lead to much better parsing performance,
  309. particularly for large messages. (#8184).
  310. * Fill out JRuby support (#7923)
  311. * [Ruby] Fix: (SIGSEGV) gRPC-Ruby issue on Windows. memory alloc infinite
  312. recursion/run out of memory (#8195)
  313. * Fix jruby support to handle messages nested more than 1 level deep (#8194)
  314. Java
  315. * Avoid possible UnsupportedOperationException when using CodedInputSteam
  316. with a direct ByteBuffer.
  317. * Make Durations.comparator() and Timestamps.comparator() Serializable.
  318. * Add more detailed error information for dynamic message field type
  319. validation failure
  320. * Removed declarations of functions declared in java_names.h from
  321. java_helpers.h.
  322. * Now Proto3 Oneof fields have "has" methods for checking their presence in
  323. Java.
  324. * Annotates Java proto generated *_FIELD_NUMBER constants.
  325. * Add -assumevalues to remove JvmMemoryAccessor on Android.
  326. C#
  327. * Fix parsing negative Int32Value that crosses segment boundary (#8035)
  328. * Change ByteString to use memory and support unsafe create without copy (#7645)
  329. * Optimize MapField serialization by removing MessageAdapter (#8143)
  330. * Allow FileDescriptors to be parsed with extension registries (#8220)
  331. * Optimize writing small strings (#8149)
  332. 2020-11-11 version 3.14.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  333. Protocol Compiler
  334. * The proto compiler no longer requires a .proto filename when it is not
  335. generating code.
  336. * Added flag `--deterministic_output` to `protoc --encode=...`.
  337. * Fixed deadlock when using google.protobuf.Any embedded in aggregate options.
  338. C++
  339. * Arenas are now unconditionally enabled. cc_enable_arenas no longer has
  340. any effect.
  341. * Removed inlined string support, which is incompatible with arenas.
  342. * Fix a memory corruption bug in reflection when mixing optional and
  343. non-optional fields.
  344. * Make SpaceUsed() calculation more thorough for map fields.
  345. * Add stack overflow protection for text format with unknown field values.
  346. * FieldPath::FollowAll() now returns a bool to signal if an out-of-bounds
  347. error was encountered.
  348. * Performance improvements for Map.
  349. * Minor formatting fix when dumping a descriptor to .proto format with
  350. DebugString.
  351. * UBSAN fix in RepeatedField (#2073).
  352. * When running under ASAN, skip a test that makes huge allocations.
  353. * Fixed a crash that could happen when creating more than 256 extensions in
  354. a single message.
  355. * Fix a crash in BuildFile when passing in invalid descriptor proto.
  356. * Parser security fix when operating with CodedInputStream.
  357. * Warn against the use of AllowUnknownExtension.
  358. * Migrated to C++11 for-range loops instead of index-based loops where
  359. possible. This fixes a lot of warnings when compiling with -Wsign-compare.
  360. * Fix segment fault for proto3 optional (#7805)
  361. * Adds a CMake option to build `libprotoc` separately (#7949)
  362. Java
  363. * Bugfix in mergeFrom() when a oneof has multiple message fields.
  364. * Fix RopeByteString.RopeInputStream.read() returning -1 when told to read
  365. 0 bytes when not at EOF.
  366. * Redefine remove(Object) on primitive repeated field Lists to avoid
  367. autoboxing.
  368. * Support "\u" escapes in textformat string literals.
  369. * Trailing empty spaces are no longer ignored for FieldMask.
  370. * Fix FieldMaskUtil.subtract to recursively remove mask.
  371. * Mark enums with `@java.lang.Deprecated` if the proto enum has option
  372. `deprecated = true;`.
  373. * Adding forgotten duration.proto to the lite library (#7738)
  374. Python
  375. * Print google.protobuf.NullValue as null instead of "NULL_VALUE" when it is
  376. used outside WKT Value/Struct.
  377. * Fix bug occurring when attempting to deep copy an enum type in python 3.
  378. * Add a setuptools extension for generating Python protobufs (#7783)
  379. * Remove uses of pkg_resources in non-namespace packages. (#7902)
  380. * [bazel/py] Omit google/__init__.py from the Protobuf runtime. (#7908)
  381. * Removed the unnecessary setuptools package dependency for Python package (#7511)
  382. * Fix PyUnknownFields memory leak (#7928)
  383. PHP
  384. * Added support for "==" to the PHP C extension (#7883)
  385. * Added `==` operators for Map and Array. (#7900)
  386. * Native C well-known types (#7944)
  387. * Optimized away hex2bin() call in generated code (#8006)
  388. * New version of upb, and a new hash function wyhash in third_party. (#8000)
  389. * add missing hasOneof method to check presence of oneof fields (#8003)
  390. Go:
  391. * Update go_package options to reference google.golang.org/protobuf module.
  392. C#:
  393. * annotate ByteString.CopyFrom(ReadOnlySpan<byte>) as SecuritySafeCritical (#7701)
  394. * Fix C# optional field reflection when there are regular fields too (#7705)
  395. * Fix parsing negative Int32Value that crosses segment boundary (#8035)
  396. Javascript:
  397. * JS: parse (un)packed fields conditionally (#7379)
  398. 2020-07-14 version 3.13.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  399. PHP:
  400. * The C extension is completely rewritten. The new C extension has significantly
  401. better parsing performance and fixes a handful of conformance issues. It will
  402. also make it easier to add support for more features like proto2 and proto3 presence.
  403. * The new C extension does not support PHP 5.x. PHP 5.x users can still use pure-PHP.
  404. C++:
  405. * Removed deprecated unsafe arena string accessors
  406. * Enabled heterogeneous lookup for std::string keys in maps.
  407. * Removed implicit conversion from StringPiece to std::string
  408. * Fix use-after-destroy bug when the Map is allocated in the arena.
  409. * Improved the randomness of map ordering
  410. * Added stack overflow protection for text format with unknown fields
  411. * Use std::hash for proto maps to help with portability.
  412. * Added more Windows macros to proto whitelist.
  413. * Arena constructors for map entry messages are now marked "explicit"
  414. (for regular messages they were already explicit).
  415. * Fix subtle aliasing bug in RepeatedField::Add
  416. * Fix mismatch between MapEntry ByteSize and Serialize with respect to unset
  417. fields.
  418. Python:
  419. * JSON format conformance fixes:
  420. * Reject lowercase t for Timestamp json format.
  421. * Print full_name directly for extensions (no camelCase).
  422. * Reject boolean values for integer fields.
  423. * Reject NaN, Infinity, -Infinity that is not quoted.
  424. * Base64 fixes for bytes fields: accept URL-safe base64 and missing padding.
  425. * Bugfix for fields/files named "async" or "await".
  426. * Improved the error message when AttributeError is returned from __getattr__
  427. in EnumTypeWrapper.
  428. Java:
  429. * Fixed a bug where setting optional proto3 enums with setFooValue() would
  430. not mark the value as present.
  431. * Add Subtract function to FieldMaskUtil.
  432. C#:
  433. * Dropped support for netstandard1.0 (replaced by support for netstandard1.1).
  434. This was required to modernize the parsing stack to use the `Span<byte>`
  435. type internally. (#7351)
  436. * Add `ParseFrom(ReadOnlySequence<byte>)` method to enable GC friendly
  437. parsing with reduced allocations and buffer copies. (#7351)
  438. * Add support for serialization directly to a `IBufferWriter<byte>` or
  439. to a `Span<byte>` to enable GC friendly serialization.
  440. The new API is available as extension methods on the `IMessage` type. (#7576)
  441. * Add `GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE` define to make
  442. generated code compatible with old C# compilers (pre-roslyn compilers
  443. from .NET framework and old versions of mono) that do not support
  444. ref structs. Users that are still on a legacy stack that does
  445. not support C# 7.2 compiler might need to use the new define
  446. in their projects to be able to build the newly generated code. (#7490)
  447. * Due to the major overhaul of parsing and serialization internals (#7351 and #7576),
  448. it is recommended to regenerate your generated code to achieve the best
  449. performance (the legacy generated code will still work, but might incur
  450. a slight performance penalty).
  451. 2020-07-28 version 3.12.4 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  452. This release contains no significant changes, but exists because 3.12.3 was
  453. mistakenly tagged at the wrong commit.
  454. 2020-06-01 version 3.12.3 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  455. Objective-C
  456. * Tweak the union used for Extensions to support old generated code. #7573
  457. 2020-05-26 version 3.12.2 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  458. C++
  459. * Simplified the template export macros to fix the build for mingw32. (#7539)
  460. Objective-C
  461. * Fix for the :protobuf_objc target in the Bazel BUILD file. (#7538)
  462. 2020-05-20 version 3.12.1 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  463. Ruby
  464. * Re-add binary gems for Ruby 2.3 and 2.4. These are EOL upstream, however
  465. many people still use them and dropping support will require more
  466. coordination.
  467. 2020-05-12 version 3.12.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  468. Protocol Compiler
  469. * [experimental] Singular, non-message typed fields in proto3 now support
  470. presence tracking. This is enabled by adding the "optional" field label and
  471. passing the --experimental_allow_proto3_optional flag to protoc.
  472. * For usage info, see docs/field_presence.md.
  473. * During this experimental phase, code generators should update to support
  474. proto3 presence, see docs/implementing_proto3_presence.md for instructions.
  475. * Allow duplicate symbol names when multiple descriptor sets are passed on
  476. the command-line, to match the behavior when multiple .proto files are passed.
  477. * Deterministic `protoc --descriptor_set_out` (#7175)
  478. C++
  479. * [experimental] Added proto3 presence support.
  480. * New descriptor APIs to support proto3 presence.
  481. * Enable Arenas by default on all .proto files.
  482. * Documented that users are not allowed to subclass Message or MessageLite.
  483. * Mark generated classes as final; inheriting from protos is strongly discouraged.
  484. * Add stack overflow protection for text format with unknown fields.
  485. * Add accessors for map key and value FieldDescriptors.
  486. * Add FieldMaskUtil::FromFieldNumbers().
  487. * MessageDifferencer: use ParsePartial() on Any fields so the diff does not
  488. fail when there are missing required fields.
  489. * ReflectionOps::Merge(): lookup messages in the right factory, if it can.
  490. * Added Descriptor::WellKnownTypes enum and Descriptor::well_known_type()
  491. accessor as an easier way of determining if a message is a Well-Known Type.
  492. * Optimized RepeatedField::Add() when it is used in a loop.
  493. * Made proto move/swap more efficient.
  494. * De-virtualize the GetArena() method in MessageLite.
  495. * Improves performance of json_stream_parser.cc by factor 1000 (#7230)
  496. * bug: #7076 undefine Windows OUT and OPTIONAL macros (#7087)
  497. * Fixed a bug in FieldDescriptor::DebugString() that would erroneously print
  498. an "optional" label for a field in a oneof.
  499. * Fix bug in parsing bool extensions that assumed they are always 1 byte.
  500. * Fix off-by-one error in FieldOptions::ByteSize() when extensions are present.
  501. * Clarified the comments to show an example of the difference between
  502. Descriptor::extension and DescriptorPool::FindAllExtensions.
  503. * Add a compiler option 'code_size' to force optimize_for=code_size on all
  504. protos where this is possible.
  505. Java
  506. * [experimental] Added proto3 presence support.
  507. * Mark java enum _VALUE constants as @Deprecated if the enum field is deprecated
  508. * reduce <clinit> size for enums with allow_alias set to true.
  509. * Sort map fields alphabetically by the field's key when printing textproto.
  510. * Fixed a bug in map sorting that appeared in -rc1 and -rc2 (#7508).
  511. * TextFormat.merge() handles Any as top level type.
  512. * Throw a descriptive IllegalArgumentException when calling
  513. getValueDescriptor() on enum special value UNRECOGNIZED instead of
  514. ArrayIndexOutOfBoundsException.
  515. * Fixed an issue with JsonFormat.printer() where setting printingEnumsAsInts()
  516. would override the configuration passed into includingDefaultValueFields().
  517. * Implement overrides of indexOf() and contains() on primitive lists returned
  518. for repeated fields to avoid autoboxing the list contents.
  519. * Add overload to FieldMaskUtil.fromStringList that accepts a descriptor.
  520. * [bazel] Move Java runtime/toolchains into //java (#7190)
  521. Python
  522. * [experimental] Added proto3 presence support.
  523. * [experimental] fast import protobuf module, only works with cpp generated code linked in.
  524. * Truncate 'float' fields to 4 bytes of precision in setters for pure-Python
  525. implementation (C++ extension was already doing this).
  526. * Fixed a memory leak in C++ bindings.
  527. * Added a deprecation warning when code tries to create Descriptor objects
  528. directly.
  529. * Fix unintended comparison between bytes and string in descriptor.py.
  530. * Avoid printing excess digits for float fields in TextFormat.
  531. * Remove Python 2.5 syntax compatibility from the proto compiler generated _pb2.py module code.
  532. * Drop 3.3, 3.4 and use single version docker images for all python tests (#7396)
  533. JavaScript
  534. * Fix js message pivot selection (#6813)
  535. PHP
  536. * Persistent Descriptor Pool (#6899)
  537. * Implement lazy loading of php class for proto messages (#6911)
  538. * Correct @return in Any.unpack docblock (#7089)
  539. * Ignore unknown enum value when ignore_unknown specified (#7455)
  540. Ruby
  541. * [experimental] Implemented proto3 presence for Ruby. (#7406)
  542. * Stop building binary gems for ruby <2.5 (#7453)
  543. * Fix for wrappers with a zero value (#7195)
  544. * Fix for JSON serialization of 0/empty-valued wrapper types (#7198)
  545. * Call "Class#new" over rb_class_new_instance in decoding (#7352)
  546. * Build extensions for Ruby 2.7 (#7027)
  547. * assigning 'nil' to submessage should clear the field. (#7397)
  548. C#
  549. * [experimental] Add support for proto3 presence fields in C# (#7382)
  550. * Mark GetOption API as obsolete and expose the "GetOptions()" method on descriptors instead (#7491)
  551. * Remove Has/Clear members for C# message fields in proto2 (#7429)
  552. * Enforce recursion depth checking for unknown fields (#7132)
  553. * Fix conformance test failures for Google.Protobuf (#6910)
  554. * Cleanup various bits of Google.Protobuf (#6674)
  555. * Fix latest ArgumentException for C# extensions (#6938)
  556. * Remove unnecessary branch from ReadTag (#7289)
  557. Objective-C
  558. * [experimental] ObjC Proto3 optional support (#7421)
  559. * Block subclassing of generated classes (#7124)
  560. * Use references to Obj C classes instead of names in descriptors. (#7026)
  561. * Revisit how the WKTs are bundled with ObjC. (#7173)
  562. Other
  563. * Add a proto_lang_toolchain for javalite (#6882)
  564. * [bazel] Update gtest and deprecate //external:{gtest,gtest_main} (#7237)
  565. * Add application note for explicit presence tracking. (#7390)
  566. * Howto doc for implementing proto3 presence in a code generator. (#7407)
  567. 2020-02-14 version 3.11.4 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  568. C#
  569. * Fix latest ArgumentException for C# extensions (#7188)
  570. * Enforce recursion depth checking for unknown fields (#7210)
  571. Ruby
  572. * Fix wrappers with a zero value (#7195)
  573. * Fix JSON serialization of 0/empty-valued wrapper types (#7198)
  574. 2020-01-31 version 3.11.3 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  575. C++
  576. * Add OUT and OPTIONAL to windows portability files (#7087)
  577. PHP
  578. * Refactored ulong to zend_ulong for php7.4 compatibility (#7147)
  579. * Call register_class before getClass from desc to fix segfault (#7077)
  580. 2019-12-10 version 3.11.2 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  581. PHP
  582. * Make c extension portable for php 7.4 (#6968)
  583. 2019-12-02 version 3.11.1 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  584. PHP
  585. * Extern declare protobuf_globals (#6946)
  586. 2019-11-19 version 3.11.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  587. C++
  588. * Make serialization method naming consistent
  589. * Make proto runtime + generated code free of deprecation warnings
  590. * Moved ShutdownProtobufLibrary() to message_lite.h. For backward compatibility a declaration is still available in stubs/common.h, but users should prefer message_lite.h
  591. * Removed non-namespace macro EXPECT_OK()
  592. * Removed mathlimits.h from stubs in favor of using std::numeric_limits from C++11
  593. * Fixed bug in parser when ending on a group tag
  594. * Add a helper function to UnknownFieldSet to deal with the changing return value of message::unknown_fields()
  595. * Fix incorrect use of string_view iterators
  596. * Support direct pickling of nested messages
  597. * Skip extension tag validation for MessageSet if unknown dependencies are allowed
  598. * Updated deprecation macros to annotate deprecated code (#6612)
  599. * Remove conversion warning in MapEntryFuncs::ByteSizeLong (#6766)
  600. * Revert "Make shared libraries be able to link to MSVC static runtime libraries, so that VC runtime is not required." (#6914)
  601. Java
  602. * Remove the usage of MethodHandle, so that Android users prior to API version 26 can use protobuf-java
  603. * Publish ProGuard config for javalite
  604. * Fix for StrictMode disk read violation in ExtensionRegistryLite
  605. * Include part of the ByteString's content in its toString().
  606. * Include unknown fields when merging proto3 messages in Java lite builders
  607. Python
  608. * Add float_precision option in json format printer
  609. * Optionally print bytes fields as messages in unknown fields, if possible
  610. * FieldPath: fix testing IsSet on root path ''
  611. * Experimental code gen (fast import protobuf module) which only work with cpp generated code linked in
  612. JavaScript
  613. * Remove guard for Symbol iterator for jspb.Map
  614. PHP
  615. * Avoid too much overhead in layout_init (#6716)
  616. * Lazily Create Singular Wrapper Message (#6833)
  617. * Implement lazy loading of php class for proto messages (#6911)
  618. Ruby
  619. * Ruby lazy wrappers optimization (#6797)
  620. C#
  621. * (RepeatedField): Capacity property to resize the internal array (#6530)
  622. * Experimental proto2 support is now officially available (#4642, #5183, #5350, #5936)
  623. * Getting started doc: https://github.com/protocolbuffers/protobuf/blob/master/docs/csharp/proto2.md
  624. * Add length checks to ExtensionCollection (#6759)
  625. * Optimize parsing of some primitive and wrapper types (#6843)
  626. * Use 3 parameter Encoding.GetString for default string values (#6828)
  627. * Change _Extensions property to normal body rather than expression (#6856)
  628. Objective C
  629. * Fixed unaligned reads for 32bit arm with newer Xcode versions (#6678)
  630. 2019-09-03 version 3.10.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  631. C++
  632. * Switch the proto parser to the faster MOMI parser.
  633. * Properly escape Struct keys in the proto3 JSON serializer.
  634. * Fix crash on uninitialized map entries.
  635. * Informed the compiler of has-bit invariant to produce better code
  636. * Unused imports of files defining descriptor extensions will now be reported
  637. * Add proto2::util::RemoveSubranges to remove multiple subranges in linear time.
  638. * Added BaseTextGenerator::GetCurrentIndentationSize()
  639. * Made implicit weak fields compatible with the Apple linker
  640. * Support 32 bit values for ProtoStreamObjectWriter to Struct.
  641. * Removed the internal-only header coded_stream_inl.h and the internal-only methods defined there.
  642. * Enforced no SWIG wrapping of descriptor_database.h (other headers already had this restriction).
  643. * Implementation of the equivalent of the MOMI parser for serialization. This removes one of the two serialization routines, by making the fast array serialization routine completely general. SerializeToCodedStream can now be implemented in terms of the much much faster array serialization. The array serialization regresses slightly, but when array serialization is not possible this wins big.
  644. * Do not convert unknown field name to snake case to accurately report error.
  645. * Fix a UBSAN warnings. (#6333)
  646. * Add podspec for C++ (#6404)
  647. * protoc: fix source code info location for missing label (#6436)
  648. * C++ Add move constructor for Reflection's SetString (#6477)
  649. Java
  650. * Call loadDescriptor outside of synchronized block to remove one possible source of deadlock.
  651. * Have oneof enums implement a separate interface (other than EnumLite) for clarity.
  652. * Opensource Android Memory Accessors
  653. * Update TextFormat to make use of the new TypeRegistry.
  654. * Support getFieldBuilder and getRepeatedFieldBuilder in ExtendableBuilder
  655. * Update JsonFormat to make use of the new TypeRegistry.
  656. * Add proguard config generator for GmmBenchmarkSuiteLite.
  657. * Change ProtobufArrayList to use Object[] instead of ArrayList for 5-10% faster parsing
  658. * Implement ProtobufArrayList.add(E) for 20% (5%-40%) faster overall protolite2 parsing
  659. * Make a copy of JsonFormat.TypeRegistry at the protobuf top level package. This will eventually replace JsonFormat.TypeRegistry.
  660. * Fix javadoc warnings in generated files (#6231)
  661. * Java: Add Automatic-Module-Name entries to the Manifest (#6568)
  662. Python
  663. * Add descriptor methods in descriptor_pool are deprecated.
  664. * Uses explicit imports to prevent multithread test failures in py3.
  665. * Added __delitem__ for Python extension dict
  666. * Update six version to 1.12.0 and fix legacy_create_init issue (#6391)
  667. JavaScript
  668. * Remove deprecated boolean option to getResultBase64String().
  669. * Fix sint64 zig-zag encoding.
  670. * Simplify hash64 string conversion to avoid DIGIT array. Should reduce overhead if these functions aren't used, and be more efficient by avoiding linear array searches.
  671. * Change the parameter types of binaryReaderFn in ExtensionFieldBinaryInfo to (number, ?, ?).
  672. * Create dates.ts and time_of_days.ts to mirror Java versions. This is a near-identical conversion of c.g.type.util.{Dates,TimeOfDays} respectively.
  673. * Migrate moneys to TypeScript.
  674. PHP
  675. * Fix incorrect leap day for Timestamp (#6696)
  676. * Initialize well known type values (#6713)
  677. Ruby
  678. * Fix scope resolution for Google namespace (#5878)
  679. * Support hashes for struct initializers (#5716)
  680. * Optimized away the creation of empty string objects. (#6502)
  681. * Roll forward Ruby upb changes now that protobuf Ruby build is fixed (#5866)
  682. * Optimized layout_mark() for Ruby (#6521)
  683. * Optimization for layout_init() (#6547)
  684. * Fix for GC of Ruby map frames. (#6533)
  685. * Fixed leap year handling by reworking upb_mktime() -> upb_timegm(). (#6695)
  686. Objective C
  687. * Remove OSReadLittle* due to alignment requirements (#6678)
  688. * Don't use unions and instead use memcpy for the type swaps. (#6672)
  689. Other
  690. * Override CocoaPods module to lowercase (#6464)
  691. 2019-06-28 version 3.9.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  692. C++
  693. * Optimize and simplify implementation of RepeatedPtrFieldBase
  694. * Don't create unnecessary unknown field sets.
  695. * Remove branch from accessors to repeated field element array.
  696. * Added delimited parse and serialize util.
  697. * Reduce size by not emitting constants for fieldnumbers
  698. * Fix a bug when comparing finite and infinite field values with explicit tolerances.
  699. * TextFormat::Parser should use a custom Finder to look up extensions by number if one is provided.
  700. * Add MessageLite::Utf8DebugString() to make MessageLite more compatible with Message.
  701. * Fail fast for better performance in DescriptorPool::FindExtensionByNumber() if descriptor has no defined extensions.
  702. * Adding the file name to help debug colliding extensions
  703. * Added FieldDescriptor::PrintableNameForExtension() and DescriptorPool::FindExtensionByPrintableName().
  704. The latter will replace Reflection::FindKnownExtensionByName().
  705. * Replace NULL with nullptr
  706. * Created a new Add method in repeated field that allows adding a range of elements all at once.
  707. * Enabled enum name-to-value mapping functions for C++ lite
  708. * Avoid dynamic initialization in descriptor.proto generated code
  709. * Move stream functions to MessageLite from Message.
  710. * Move all zero_copy_stream functionality to io_lite.
  711. * Do not create array of matched fields for simple repeated fields
  712. * Enabling silent mode by default to reduce make compilation noise. (#6237)
  713. Java
  714. * Expose TextFormat.Printer and make it configurable. Deprecate the static methods.
  715. * Library for constructing google.protobuf.Struct and google.protobuf.Value
  716. * Make OneofDescriptor extend GenericDescriptor.
  717. * Expose streamingness of service methods from MethodDescriptor.
  718. * Fix a bug where TextFormat fails to parse Any filed with > 1 embedded message sub-fields.
  719. * Establish consistent JsonFormat behavior for nulls in oneofs, regardless of order.
  720. * Update GSON version to 3.8.5. (#6268)
  721. * Add `protobuf_java_lite` Bazel target. (#6177)
  722. Python
  723. * Change implementation of Name() for enums that allow aliases in proto2 in Python
  724. to be in line with claims in C++ implementation (to return first value).
  725. * Explicitly say what field cannot be set when the new value fails a type check.
  726. * Duplicate register in descriptor pool will raise errors
  727. * Add __slots__ to all well_known_types classes, custom attributes are not allowed anymore.
  728. * text_format only present 8 valid digits for float fields by default
  729. JavaScript
  730. * Add Oneof enum to the list of goog.provide
  731. PHP
  732. * Make php message class final to avoid mocking. (#6277)
  733. * Rename get/setXXXValue to get/setXXXWrapper. (#6295)
  734. Ruby
  735. * Remove to_hash methods. (#6166)
  736. 2019-04-29 version 3.8.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  737. C++
  738. * Use std::atomic<int32> in case of myriad2 platform
  739. * Always declare enums to be int-sized
  740. * Added DebugString() and ShortDebugString() methods on MessageLite
  741. * Specialized different parse loop control flows
  742. * 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.
  743. * Move to an internal MACRO for parser validity checks.
  744. * Improve map parsing performance.
  745. * Make MergePartialFromCodedStream non virtual. This allows direct calls, potential inlining and is also a code health improvement
  746. * Add an overall limit to parse_context to prevent reading past it. This allows to remove a annoying level of indirection.
  747. * Fix a mistake, we shouldn't verify map key/value strings for utf8 in opt mode for proto2.
  748. * Further improvements to cut binary size.
  749. * Prepare to make MergePartialFromCodedStream non-virtual.
  750. * 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.
  751. * Add a note of caution to the comments around skip in CodedOutputStream.
  752. * Simplify end check.
  753. * Add overload for ParseMessage for MessageLite/Message types. If the explicit type is not known inlining won't help de-virtualizing the virtual call.
  754. * 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.
  755. * Improve the parser.
  756. * [c++17] Changed proto2::RepeatedPtrField iterators to no longer derive from the deprecated std::iterator class.
  757. * Change the default value of case_insensitive_enum_parsing to false for JsonStringToMessage.
  758. * Add a warning if a field name doesn't match the style guide.
  759. * Fix TextFormat not round-trip correctly when float value is max float.
  760. * Added locationed info for some errors at compiler
  761. * Python reserved keywords are now working with getattr()/setattr() for most descriptors.
  762. * Added AllowUnknownField() in text_format
  763. * Append '_' to C++ reserved keywords for message, enum, extension
  764. * Fix MSVC warning C4244 in protobuf's parse_context.h.
  765. * Updating Iterators to be compatible with C++17 in MSVC.
  766. * Use capability annotation in mutex.h
  767. * Fix "UndefinedBehaviorSanitizer: cfi-bad-type"
  768. * CriticalSectionLock class as a lightweight replacement for std::mutex on Windows platforms.
  769. * Removed vestigial wire_format_lite_inl.h
  770. C#
  771. * Added System.Memory dependency.
  772. Java
  773. * Make Java protoc code generator ignore optimize_for LITE_RUNTIME. Users should instead use the Java lite protoc plugin.
  774. * Change Extension getMessageDefaultInstance() to return Message instead of MessageLite.
  775. * Prevent malicious input streams from leaking buffers for ByteString or ByteBuffer parsing.
  776. * Release new Javalite runtime.
  777. * Show warning in case potential file name conflict.
  778. * Allow Java reserved keywords to be used in extensions.
  779. * Added setAllowUnknownFields() in text format
  780. * Add memoization to ExtensionRegistryLite.getEmptyRegistry()
  781. * Improve performance of CodedOutputStream.writeUInt32NoTag
  782. * Add an optimized mismatch-finding algorithm to UnsafeUtil.
  783. * When serializing uint32 varints, check that we have MAX_VARINT32_SIZE bytes left, not just MAX_VARINT_SIZE.
  784. * Minor optimization to RopeByteString.PieceIterator
  785. JavaScript
  786. * Simplify generated toObject code when the default value is used.
  787. Python
  788. * 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).
  789. * Added double_format option in text format printer.
  790. * Added iter and __contains__ to extension dict
  791. * Added allow_unknown_field option in python text format parser
  792. * Fixed Timestamp.ToDatetime() loses precision issue
  793. * Support unknown field in text format printer.
  794. * 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,
  795. convert to -inf if smaller than -3.4028234664e+38
  796. * Allowed casting str->bytes in Message.__setstate__
  797. Ruby
  798. * Helper methods to get enum name for Ruby.
  799. 2019-01-24 version 3.7.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  800. C++
  801. * Introduced new MOMI (maybe-outside-memory-interval) parser.
  802. * Add an option to json_util to parse enum as case-insensitive. In the future, enum parsing in json_util will become case-sensitive.
  803. * Added conformance test for enum aliases
  804. * Added support for --cpp_out=speed:...
  805. * Added use of C++ override keyword where appropriate
  806. * Many other cleanups and fixes.
  807. Java
  808. * Fix illegal reflective access warning in JDK 9+
  809. * Add BOM
  810. Python
  811. * Added Python 3.7 compatibility.
  812. * Modified ParseFromString to return bytes parsed .
  813. * Introduce Proto C API.
  814. * FindFileContainingSymbol in descriptor pool is now able to find field and enum values.
  815. * reflection.MakeClass() and reflection.ParseMessage() are deprecated.
  816. * Added DescriptorPool.FindMethodByName() method in pure python (c extension already has it)
  817. * Flipped proto3 to preserve unknown fields by default.
  818. * Added support for memoryview in python3 proto message parsing.
  819. * Added MergeFrom for repeated scalar fields in c extension (pure python already has it)
  820. * Surrogates are now rejected at setters in python3.
  821. * Added public unknown field API.
  822. * RecursionLimit is also set to max if allow_oversize_protos is enabled.
  823. * Disallow duplicate scalars in proto3 text_format parse.
  824. * Fix some segment faults for c extension map field.
  825. PHP
  826. * 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.
  827. * Supports php 7.3
  828. * Added helper methods to convert between enum values and names.
  829. * Allow setting/getting wrapper message fields using primitive values.
  830. * Various bug fixes.
  831. Ruby
  832. * Ruby 2.6 support.
  833. * Drops support for ruby < 2.3.
  834. * 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.
  835. * Json parsing can specify an option to ignore unknown fields: msg.decode_json(data, {ignore_unknown_fields: true}).
  836. * Added support for proto2 syntax (partially).
  837. * Various bug fixes.
  838. Csharp
  839. * More support for FieldMask include merge, intersect and more.
  840. * Increasing the default recursion limit to 100.
  841. * Support loading FileDescriptors dynamically.
  842. * Provide access to comments from descriptors.
  843. * Added Any.Is method.
  844. * Compatible with C# 6
  845. * Added IComparable and comparison operators on Timestamp.
  846. Objective C
  847. * Add ability to introspect list of enum values (#4678)
  848. * Copy the value when setting message/data fields (#5215)
  849. * Support suppressing the objc package prefix checks on a list of files (#5309)
  850. * 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)
  851. * Small fixes to TextFormat generation for extensions (#5362)
  852. * Provide more details/context in deprecation messages (#5412)
  853. * Array/Dictionary enumeration blocks NS_NOESCAPE annotation for Swift (#5421)
  854. * Properly annotate extensions for ARC when their names imply behaviors (#5427)
  855. * Enum alias name collision improvements (#5480)
  856. 2018-07-27 version 3.6.1 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  857. C++
  858. * Introduced workaround for Windows issue with std::atomic and std::once_flag
  859. initialization (#4777, #4773).
  860. PHP
  861. * Added compatibility with PHP 7.3 (#4898).
  862. Ruby
  863. * Fixed Ruby crash involving Any encoding (#4718).
  864. 2018-06-01 version 3.6.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  865. C++
  866. * Starting from this release, we now require C++11. For those we cannot yet
  867. upgrade to C++11, we will try to keep the 3.5.x branch updated with
  868. critical bug fixes only. If you have any concerns about this, please
  869. comment on issue #2780.
  870. * Moved to C++11 types like std::atomic and std::unique_ptr and away from our
  871. old custom-built equivalents.
  872. * Added support for repeated message fields in lite protos using implicit
  873. weak fields. This is an experimental feature that allows the linker to
  874. strip out more unused messages than previously was possible.
  875. * Fixed SourceCodeInfo for interpreted options and extension range options.
  876. * Fixed always_print_enums_as_ints option for JSON serialization.
  877. * Added support for ignoring unknown enum values when parsing JSON.
  878. * Create std::string in Arena memory.
  879. * Fixed ValidateDateTime to correctly check the day.
  880. * Fixed bug in ZeroCopyStreamByteSink.
  881. * Various other cleanups and fixes.
  882. Java
  883. * Dropped support for Java 6.
  884. * Added a UTF-8 decoder that uses Unsafe to directly decode a byte buffer.
  885. * Added deprecation annotations to generated code for deprecated oneof
  886. fields.
  887. * Fixed map field serialization in DynamicMessage.
  888. * Cleanup and documentation for Java Lite runtime.
  889. * Various other fixes and cleanups
  890. * Fixed unboxed arraylists to handle an edge case
  891. * Improved performance for copying between unboxed arraylists
  892. * Fixed lite protobuf to avoid Java compiler warnings
  893. * Improved test coverage for lite runtime
  894. * Performance improvements for lite runtime
  895. Python
  896. * Fixed bytes/string map key incompatibility between C++ and pure-Python
  897. implementations (issue #4029)
  898. * Added __init__.py files to compiler and util subpackages
  899. * Use /MT for all Windows versions
  900. * Fixed an issue affecting the Python-C++ implementation when used with
  901. Cython (issue #2896)
  902. * Various text format fixes
  903. * Various fixes to resolve behavior differences between the pure-Python and
  904. Python-C++ implementations
  905. PHP
  906. * Added php_metadata_namespace to control the file path of generated metadata
  907. file.
  908. * Changed generated classes of nested message/enum. E.g., Foo.Bar, which
  909. previously generates Foo_Bar, now generates Foo/Bar
  910. * Added array constructor. When creating a message, users can pass a php
  911. array whose content is field name to value pairs into constructor. The
  912. created message will be initialized according to the array. Note that
  913. message field should use a message value instead of a sub-array.
  914. * Various bug fixes.
  915. Objective-C
  916. * We removed some helper class methods from GPBDictionary to shrink the size
  917. of the library, the functionary is still there, but you may need to do some
  918. specific +alloc / -init… methods instead.
  919. * Minor improvements in the performance of object field getters/setters by
  920. avoiding some memory management overhead.
  921. * Fix a memory leak during the raising of some errors.
  922. * Make header importing completely order independent.
  923. * Small code improvements for things the undefined behaviors compiler option
  924. was flagging.
  925. Ruby
  926. * Added ruby_package file option to control the module of generated class.
  927. * Various bug fixes.
  928. Javascript
  929. * Allow setting string to int64 field.
  930. Csharp
  931. * Unknown fields are now parsed and then sent back on the wire. They can be
  932. discarded at parse time via a CodedInputStream option.
  933. * Movement towards working with .NET 3.5 and Unity
  934. * Expression trees are no longer used
  935. * AOT generics issues in Unity/il2cpp have a workaround (see this commit for
  936. details)
  937. * Floating point values are now compared bitwise (affects NaN value
  938. comparisons)
  939. * The default size limit when parsing is now 2GB rather than 64MB
  940. * MessageParser now supports parsing from a slice of a byte array
  941. * JSON list parsing now accepts null values where the underlying proto
  942. representation does
  943. 2017-12-20 version 3.5.1 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  944. Planned Future Changes
  945. * Make C++ implementation C++11 only: we plan to require C++11 to build
  946. protobuf code starting from 3.6.0 release. Please join this github issue:
  947. https://github.com/protocolbuffers/protobuf/issues/2780 to provide your feedback.
  948. protoc
  949. * Fixed a bug introduced in 3.5.0 and protoc in Windows now accepts non-ascii
  950. characters in paths again.
  951. C++
  952. * Removed several usages of C++11 features in the code base.
  953. * Fixed some compiler warnings.
  954. PHP
  955. * Fixed memory leak in C-extension implementation.
  956. * Added discardUnknokwnFields API.
  957. * Removed duplicated typedef in C-extension headers.
  958. * Avoided calling private php methods (timelib_update_ts).
  959. * Fixed Any.php to use fully-qualified name for DescriptorPool.
  960. Ruby
  961. * Added Google_Protobuf_discard_unknown for discarding unknown fields in
  962. messages.
  963. C#
  964. * Unknown fields are now preserved by default.
  965. * Floating point values are now bitwise compared, affecting message equality
  966. check and Contains() API in map and repeated fields.
  967. 2017-11-13 version 3.5.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  968. Planned Future Changes
  969. * Make C++ implementation C++11 only: we plan to require C++11 to build
  970. protobuf code starting from 3.6.0 release. Please join this github issue:
  971. https://github.com/protocolbuffers/protobuf/issues/2780 to provide your feedback.
  972. General
  973. * Unknown fields are now preserved in proto3 for most of the language
  974. implementations for proto3 by default. See the per-language section for
  975. details.
  976. * reserve keyword are now supported in enums
  977. C++
  978. * Proto3 messages are now preserving unknown fields by default. If you rely on
  979. unknowns fields being dropped. Please use DiscardUnknownFields() explicitly.
  980. * Deprecated the unsafe_arena_release_* and unsafe_arena_add_allocated_*
  981. methods for string fields.
  982. * Added move constructor and move assignment to RepeatedField,
  983. RepeatedPtrField and google::protobuf::Any.
  984. * Added perfect forwarding in Arena::CreateMessage
  985. * In-progress experimental support for implicit weak fields with lite protos.
  986. This feature allows the linker to strip out more unused messages and reduce
  987. binary size.
  988. * Various performance optimizations.
  989. Java
  990. * Proto3 messages are now preserving unknown fields by default. If you’d like
  991. to drop unknown fields, please use the DiscardUnknownFieldsParser API. For
  992. example:
  993. Parser<Foo> parser = DiscardUnknownFieldsParser.wrap(Foo.parser());
  994. Foo foo = parser.parseFrom(input);
  995. * Added a new CodedInputStream decoder for Iterable<ByteBuffer> with direct
  996. ByteBuffers.
  997. * TextFormat now prints unknown length-delimited fields as messages if
  998. possible.
  999. * FieldMaskUtil.merge() no longer creates unnecessary empty messages when a
  1000. message field is unset in both source message and destination message.
  1001. * Various performance optimizations.
  1002. Python
  1003. * Proto3 messages are now preserving unknown fields by default. Use
  1004. message.DiscardUnknownFields() to drop unknown fields.
  1005. * Add FieldDescriptor.file in generated code.
  1006. * Add descriptor pool FindOneofByName in pure python.
  1007. * Change unknown enum values into unknown field set .
  1008. * Add more Python dict/list compatibility for Struct/ListValue.
  1009. * Add utf-8 support for text_format.Merge()/Parse().
  1010. * Support numeric unknown enum values for proto3 JSON format.
  1011. * Add warning for Unexpected end-group tag in cpp extension.
  1012. PHP
  1013. * Proto3 messages are now preserving unknown fields.
  1014. * Provide well known type messages in runtime.
  1015. * Add prefix ‘PB’ to generated class of reserved names.
  1016. * Fixed all conformance tests for encode/decode json in php runtime. C
  1017. extension needs more work.
  1018. Objective-C
  1019. * Fixed some issues around copying of messages with unknown fields and then
  1020. mutating the unknown fields in the copy.
  1021. C#
  1022. * Added unknown field support in JsonParser.
  1023. * Fixed oneof message field merge.
  1024. * Simplify parsing messages from array slices.
  1025. Ruby
  1026. * Unknown fields are now preserved by default.
  1027. * Fixed several bugs for segment fault.
  1028. Javascript
  1029. * Decoder can handle both paced and unpacked data no matter how the proto is
  1030. defined.
  1031. * Decoder now accept long varint for 32 bit integers.
  1032. 2017-08-14 version 3.4.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  1033. Planned Future Changes
  1034. * There are some changes that are not included in this release but are planned
  1035. for the near future
  1036. - Preserve unknown fields in proto3: We are going to bring unknown fields
  1037. back into proto3. In this release, some languages start to support
  1038. preserving unknown fields in proto3, controlled by flags/options. Some
  1039. languages also introduce explicit APIs to drop unknown fields for
  1040. migration. Please read the change log sections by languages for details.
  1041. For general timeline and plan:
  1042. https://docs.google.com/document/d/1KMRX-G91Aa-Y2FkEaHeeviLRRNblgIahbsk4wA14gRk/view
  1043. For issues and discussions:
  1044. https://github.com/protocolbuffers/protobuf/issues/272
  1045. - Make C++ implementation C++11 only: we plan to require C++11 to build
  1046. protobuf code starting from 3.5.0 or 3.6.0 release, after unknown fields
  1047. semantic changes are finished. Please join this
  1048. github issue:
  1049. https://github.com/protocolbuffers/protobuf/issues/2780
  1050. to provide your feedback.
  1051. General
  1052. * Extension ranges now accept options and are customizable.
  1053. * "reserve" keyword now supports “max” in field number ranges,
  1054. e.g. reserve 1000 to max;
  1055. C++
  1056. * Proto3 messages are now able to preserve unknown fields. The default
  1057. behavior is still to drop unknowns, which will be flipped in a future
  1058. release. If you rely on unknowns fields being dropped. Please use
  1059. Message::DiscardUnknownFields() explicitly.
  1060. * Packable proto3 fields are now packed by default in serialization.
  1061. * Following C++11 features are introduced when C++11 is available:
  1062. - move-constructor and move-assignment are introduced to messages
  1063. - Repeated fields constructor now takes std::initializer_list
  1064. - rvalue setters are introduced for string fields
  1065. * Experimental Table-Driven parsing and serialization available to test. To
  1066. enable it, pass in table_driven_parsing table_driven_serialization protoc
  1067. generator flags for C++
  1068. $ protoc --cpp_out=table_driven_parsing,table_driven_serialization:./ \
  1069. test.proto
  1070. * lite generator parameter supported by the generator. Once set, all generated
  1071. files, use lite runtime regardless of the optimizer_for setting in the
  1072. .proto file.
  1073. * Various optimizations to make C++ code more performant on PowerPC platform
  1074. * Fixed maps data corruption when the maps are modified by both reflection API
  1075. and generated API.
  1076. * Deterministic serialization on maps reflection now uses stable sort.
  1077. * file() accessors are introduced to various *Descriptor classes to make
  1078. writing template function easier.
  1079. * ByteSize() and SpaceUsed() are deprecated.Use ByteSizeLong() and
  1080. SpaceUsedLong() instead
  1081. * Consistent hash function is used for maps in DEBUG and NDEBUG build.
  1082. * "using namespace std" is removed from stubs/common.h
  1083. * Various performance optimizations and bug fixes
  1084. Java
  1085. * Introduced new parser API DiscardUnknownFieldsParser in preparation of
  1086. proto3 unknown fields preservation change. Users who want to drop unknown
  1087. fields should migrate to use this new parser API. For example:
  1088. Parser<Foo> parser = DiscardUnknownFieldsParser.wrap(Foo.parser());
  1089. Foo foo = parser.parseFrom(input);
  1090. * Introduced new TextFormat API printUnicodeFieldValue() that prints field
  1091. value without escaping unicode characters.
  1092. * Added Durations.compare(Duration, Duration) and
  1093. Timestamps.compare(Timestamp, Timestamp).
  1094. * JsonFormat now accepts base64url encoded bytes fields.
  1095. * Optimized CodedInputStream to do less copies when parsing large bytes
  1096. fields.
  1097. * Optimized TextFormat to allocate less memory when printing.
  1098. Python
  1099. * SerializeToString API is changed to SerializeToString(self, **kwargs),
  1100. deterministic parameter is accepted for deterministic serialization.
  1101. * Added sort_keys parameter in json format to make the output deterministic.
  1102. * Added indent parameter in json format.
  1103. * Added extension support in json format.
  1104. * Added __repr__ support for repeated field in cpp implementation.
  1105. * Added file in FieldDescriptor.
  1106. * Added pretty-print filter to text format.
  1107. * Services and method descriptors are always printed even if generic_service
  1108. option is turned off.
  1109. * Note: AppEngine 2.5 is deprecated on June 2017 that AppEngine 2.5 will
  1110. never update protobuf runtime. Users who depend on AppEngine 2.5 should use
  1111. old protoc.
  1112. PHP
  1113. * Support PHP generic services. Specify file option php_generic_service=true
  1114. to enable generating service interface.
  1115. * Message, repeated and map fields setters take value instead of reference.
  1116. * Added map iterator in c extension.
  1117. * Support json  encode/decode.
  1118. * Added more type info in getter/setter phpdoc
  1119. * Fixed the problem that c extension and php implementation cannot be used
  1120. together.
  1121. * Added file option php_namespace to use custom php namespace instead of
  1122. package.
  1123. * Added fluent setter.
  1124. * Added descriptor API in runtime for custom encode/decode.
  1125. * Various bug fixes.
  1126. Objective-C
  1127. * Fix for GPBExtensionRegistry copying and add tests.
  1128. * Optimize GPBDictionary.m codegen to reduce size of overall library by 46K
  1129. per architecture.
  1130. * Fix some cases of reading of 64bit map values.
  1131. * Properly error on a tag with field number zero.
  1132. * Preserve unknown fields in proto3 syntax files.
  1133. * Document the exceptions on some of the writing apis.
  1134. C#
  1135. * Implemented IReadOnlyDictionary<K,V> in MapField<K,V>
  1136. * Added TryUnpack method for Any message in addition to Unpack.
  1137. * Converted C# projects to MSBuild (csproj) format.
  1138. Ruby
  1139. * Several bug fixes.
  1140. Javascript
  1141. * Added support of field option js_type. Now one can specify the JS type of a
  1142. 64-bit integer field to be string in the generated code by adding option
  1143. [jstype = JS_STRING] on the field.
  1144. 2017-04-05 version 3.3.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript)
  1145. Planned Future Changes
  1146. * There are some changes that are not included in this release but are
  1147. planned for the near future:
  1148. - Preserve unknown fields in proto3: please read this doc:
  1149. https://docs.google.com/document/d/1KMRX-G91Aa-Y2FkEaHeeviLRRNblgIahbsk4wA14gRk/view
  1150. for the timeline and follow up this github issue:
  1151. https://github.com/protocolbuffers/protobuf/issues/272
  1152. for discussion.
  1153. - Make C++ implementation C++11 only: we plan to require C++11 to build
  1154. protobuf code starting from 3.4.0 or 3.5.0 release. Please join this
  1155. github issue:
  1156. https://github.com/protocolbuffers/protobuf/issues/2780
  1157. to provide your feedback.
  1158. C++
  1159. * Fixed map fields serialization of DynamicMessage to correctly serialize
  1160. both key and value regardless of their presence.
  1161. * Parser now rejects field number 0 correctly.
  1162. * New API Message::SpaceUsedLong() that’s equivalent to
  1163. Message::SpaceUsed() but returns the value in size_t.
  1164. * JSON support
  1165. - New flag always_print_enums_as_ints in JsonPrintOptions.
  1166. - New flag preserve_proto_field_names in JsonPrintOptions. It will instruct
  1167. the JSON printer to use the original field name declared in the .proto
  1168. file instead of converting them to lowerCamelCase when printing JSON.
  1169. - JsonPrintOptions.always_print_primtive_fields now works for oneof message
  1170. fields.
  1171. - Fixed a bug that doesn’t allow different fields to set the same json_name
  1172. value.
  1173. - Fixed a performance bug that causes excessive memory copy when printing
  1174. large messages.
  1175. * Various performance optimizations.
  1176. Java
  1177. * Map field setters eagerly validate inputs and throw NullPointerExceptions
  1178. as appropriate.
  1179. * Added ByteBuffer overloads to the generated parsing methods and the Parser
  1180. interface.
  1181. * proto3 enum's getNumber() method now throws on UNRECOGNIZED values.
  1182. * Output of JsonFormat is now locale independent.
  1183. Python
  1184. * Added FindServiceByName() in the pure-Python DescriptorPool. This works only
  1185. for descriptors added with DescriptorPool.Add(). Generated descriptor_pool
  1186. does not support this yet.
  1187. * Added a descriptor_pool parameter for parsing Any in text_format.Parse().
  1188. * descriptor_pool.FindFileContainingSymbol() now is able to find nested
  1189. extensions.
  1190. * Extending empty [] to repeated field now sets parent message presence.
  1191. PHP
  1192. * Added file option php_class_prefix. The prefix will be prepended to all
  1193. generated classes defined in the file.
  1194. * When encoding, negative int32 values are sign-extended to int64.
  1195. * Repeated/Map field setter accepts a regular PHP array. Type checking is
  1196. done on the array elements.
  1197. * encode/decode are renamed to serializeToString/mergeFromString.
  1198. * Added mergeFrom, clear method on Message.
  1199. * Fixed a bug that oneof accessor didn’t return the field name that is
  1200. actually set.
  1201. * C extension now works with php7.
  1202. * This is the first GA release of PHP. We guarantee that old generated code
  1203. can always work with new runtime and new generated code.
  1204. Objective-C
  1205. * Fixed help for GPBTimestamp for dates before the epoch that contain
  1206. fractional seconds.
  1207. * Added GPBMessageDropUnknownFieldsRecursively() to remove unknowns from a
  1208. message and any sub messages.
  1209. * Addressed a threading race in extension registration/lookup.
  1210. * Increased the max message parsing depth to 100 to match the other languages.
  1211. * Removed some use of dispatch_once in favor of atomic compare/set since it
  1212. needs to be heap based.
  1213. * Fixes for new Xcode 8.3 warnings.
  1214. C#
  1215. * Fixed MapField.Values.CopyTo, which would throw an exception unnecessarily
  1216. if provided exactly the right size of array to copy to.
  1217. * Fixed enum JSON formatting when multiple names mapped to the same numeric
  1218. value.
  1219. * Added JSON formatting option to format enums as integers.
  1220. * Modified RepeatedField<T> to implement IReadOnlyList<T>.
  1221. * Introduced the start of custom option handling; it's not as pleasant as it
  1222. might be, but the information is at least present. We expect to extend code
  1223. generation to improve this in the future.
  1224. * Introduced ByteString.FromStream and ByteString.FromStreamAsync to
  1225. efficiently create a ByteString from a stream.
  1226. * Added whole-message deprecation, which decorates the class with [Obsolete].
  1227. Ruby
  1228. * Fixed Message#to_h for messages with map fields.
  1229. * Fixed memcpy() in binary gems to work for old glibc, without breaking the
  1230. build for non-glibc libc’s like musl.
  1231. Javascript
  1232. * Added compatibility tests for version 3.0.0.
  1233. * Added conformance tests.
  1234. * Fixed serialization of extensions: we need to emit a value even if it is
  1235. falsy (like the number 0).
  1236. * Use closurebuilder.py in favor of calcdeps.py for compiling JavaScript.
  1237. 2017-01-23 version 3.2.0 (C++/Java/Python/PHP/Ruby/Objective-C/C#/JavaScript/Lite)
  1238. General
  1239. * Added protoc version number to protoc plugin protocol. It can be used by
  1240. protoc plugin to detect which version of protoc is used with the plugin and
  1241. mitigate known problems in certain version of protoc.
  1242. C++
  1243. * The default parsing byte size limit has been raised from 64MB to 2GB.
  1244. * Added rvalue setters for non-arena string fields.
  1245. * Enabled debug logging for Android.
  1246. * Fixed a double-free problem when using Reflection::SetAllocatedMessage()
  1247. with extension fields.
  1248. * Fixed several deterministic serialization bugs:
  1249. * MessageLite::SerializeAsString() now respects the global deterministic
  1250. serialization flag.
  1251. * Extension fields are serialized deterministically as well. Fixed protocol
  1252. compiler to correctly report importing-self as an error.
  1253. * Fixed FileDescriptor::DebugString() to print custom options correctly.
  1254. * Various performance/codesize optimizations and cleanups.
  1255. Java
  1256. * The default parsing byte size limit has been raised from 64MB to 2GB.
  1257. * Added recursion limit when parsing JSON.
  1258. * Fixed a bug that enumType.getDescriptor().getOptions() doesn't have custom
  1259. options.
  1260. * Fixed generated code to support field numbers up to 2^29-1.
  1261. Python
  1262. * You can now assign NumPy scalars/arrays (np.int32, np.int64) to protobuf
  1263. fields, and assigning other numeric types has been optimized for
  1264. performance.
  1265. * Pure-Python: message types are now garbage-collectable.
  1266. * Python/C++: a lot of internal cleanup/refactoring.
  1267. PHP (Alpha)
  1268. * For 64-bit integers type (int64/uint64/sfixed64/fixed64/sint64), use PHP
  1269. integer on 64-bit environment and PHP string on 32-bit environment.
  1270. * PHP generated code also conforms to PSR-4 now.
  1271. * Fixed ZTS build for c extension.
  1272. * Fixed c extension build on Mac.
  1273. * Fixed c extension build on 32-bit linux.
  1274. * Fixed the bug that message without namespace is not found in the descriptor
  1275. pool. (#2240)
  1276. * Fixed the bug that repeated field is not iterable in c extension.
  1277. * Message names Empty will be converted to GPBEmpty in generated code.
  1278. * Added phpdoc in generated files.
  1279. * The released API is almost stable. Unless there is large problem, we won't
  1280. change it. See
  1281. https://developers.google.com/protocol-buffers/docs/reference/php-generated
  1282. for more details.
  1283. Objective-C
  1284. * Added support for push/pop of the stream limit on CodedInputStream for
  1285. anyone doing manual parsing.
  1286. C#
  1287. * No changes.
  1288. Ruby
  1289. * Message objects now support #respond_to? for field getters/setters.
  1290. * You can now compare “message == non_message_object” and it will return false
  1291. instead of throwing an exception.
  1292. * JRuby: fixed #hashCode to properly reflect the values in the message.
  1293. Javascript
  1294. * Deserialization of repeated fields no longer has quadratic performance
  1295. behavior.
  1296. * UTF-8 encoding/decoding now properly supports high codepoints.
  1297. * Added convenience methods for some well-known types: Any, Struct, and
  1298. Timestamp. These make it easier to convert data between native JavaScript
  1299. types and the well-known protobuf types.
  1300. 2016-09-23 version 3.1.0 (C++/Java/Python/PHP/Ruby/Objective-C/C#/JavaScript/Lite)
  1301. General
  1302. * Proto3 support in PHP (alpha).
  1303. * Various bug fixes.
  1304. C++
  1305. * Added MessageLite::ByteSizeLong() that’s equivalent to
  1306. MessageLite::ByteSize() but returns the value in size_t. Useful to check
  1307. whether a message is over the 2G size limit that protobuf can support.
  1308. * Moved default_instances to global variables. This allows default_instance
  1309. addresses to be known at compile time.
  1310. * Adding missing generic gcc 64-bit atomicops.
  1311. * Restore New*Callback into google::protobuf namespace since these are used
  1312. by the service stubs code
  1313. * JSON support.
  1314. * Fixed some conformance issues.
  1315. * Fixed a JSON serialization bug for bytes fields.
  1316. Java
  1317. * Fixed a bug in TextFormat that doesn’t accept empty repeated fields (i.e.,
  1318. “field: [ ]”).
  1319. * JSON support
  1320. * Fixed JsonFormat to do correct snake_case-to-camelCase conversion for
  1321. non-style-conforming field names.
  1322. * Fixed JsonFormat to parse empty Any message correctly.
  1323. * Added an option to JsonFormat.Parser to ignore unknown fields.
  1324. * Experimental API
  1325. * Added UnsafeByteOperations.unsafeWrap(byte[]) to wrap a byte array into
  1326. ByteString without copy.
  1327. Python
  1328. * JSON support
  1329. * Fixed some conformance issues.
  1330. PHP (Alpha)
  1331. * We have added the proto3 support for PHP via both a pure PHP package and a
  1332. native c extension. The pure PHP package is intended to provide usability
  1333. to wider range of PHP platforms, while the c extension is intended to
  1334. provide higher performance. Both implementations provide the same runtime
  1335. APIs and share the same generated code. Users don’t need to re-generate
  1336. code for the same proto definition when they want to switch the
  1337. implementation later. The pure PHP package is included in the php/src
  1338. directory, and the c extension is included in the php/ext directory.
  1339. Both implementations provide idiomatic PHP APIs:
  1340. * All messages and enums are defined as PHP classes.
  1341. * All message fields can only be accessed via getter/setter.
  1342. * Both repeated field elements and map elements are stored in containers
  1343. that act like a normal PHP array.
  1344. Unlike several existing third-party PHP implementations for protobuf, our
  1345. implementations are built on a "strongly-typed" philosophy: message fields
  1346. and array/map containers will throw exceptions eagerly when values of the
  1347. incorrect type (not including those that can be type converted, e.g.,
  1348. double <-> integer <-> numeric string) are inserted.
  1349. Currently, pure PHP runtime supports php5.5, 5.6 and 7 on linux. C
  1350. extension runtime supports php5.5 and 5.6 on linux.
  1351. See php/README.md for more details about installment. See
  1352. https://developers.google.com/protocol-buffers/docs/phptutorial for more
  1353. details about APIs.
  1354. Objective-C
  1355. * Helpers are now provided for working the Any well known type (see
  1356. GPBWellKnownTypes.h for the api additions).
  1357. * Some improvements in startup code (especially when extensions aren’t used).
  1358. Javascript
  1359. * Fixed missing import of jspb.Map
  1360. * Fixed valueWriterFn variable name
  1361. Ruby
  1362. * Fixed hash computation for JRuby's RubyMessage
  1363. * Make sure map parsing frames are GC-rooted.
  1364. * Added API support for well-known types.
  1365. C#
  1366. * Removed check on dependency in the C# reflection API.
  1367. 2016-09-06 version 3.0.2 (C++/Java/Python/Ruby/Objective-C/C#/JavaScript/Lite)
  1368. General
  1369. * Various bug fixes.
  1370. Objective C
  1371. * Fix for oneofs in proto3 syntax files where fields were set to the zero
  1372. value.
  1373. * Fix for embedded null character in strings.
  1374. * CocoaDocs support
  1375. Ruby
  1376. * Fixed memory corruption bug in parsing that could occur under GC pressure.
  1377. Javascript
  1378. * jspb.Map is now properly exported to CommonJS modules.
  1379. C#
  1380. * Removed legacy_enum_values flag.
  1381. 2016-07-27 version 3.0.0 (C++/Java/Python/Ruby/Objective-C/C#/JavaScript/Lite)
  1382. General
  1383. * This log only contains changes since the beta-4 release. Summarized change
  1384. log since the last stable release (v2.6.1) can be found in the github
  1385. release page.
  1386. Compatibility Notice
  1387. * v3.0.0 is the first API stable release of the v3.x series. We do not expect
  1388. any future API breaking changes.
  1389. * For C++, Java Lite and Objective-C, source level compatibility is
  1390. guaranteed. Upgrading from v3.0.0 to newer minor version releases will be
  1391. source compatible. For example, if your code compiles against protobuf
  1392. v3.0.0, it will continue to compile after you upgrade protobuf library to
  1393. v3.1.0.
  1394. * For other languages, both source level compatibility and binary level
  1395. compatibility are guaranteed. For example, if you have a Java binary built
  1396. against protobuf v3.0.0. After switching the protobuf runtime binary to
  1397. v3.1.0, your built binary should continue to work.
  1398. * Compatibility is only guaranteed for documented API and documented
  1399. behaviors. If you are using undocumented API (e.g., use anything in the C++
  1400. internal namespace), it can be broken by minor version releases in an
  1401. undetermined manner.
  1402. Ruby
  1403. * When you assign a string field `a.string_field = "X"`, we now call
  1404. #encode(UTF-8) on the string and freeze the copy. This saves you from
  1405. needing to ensure the string is already encoded as UTF-8. It also prevents
  1406. you from mutating the string after it has been assigned (this is how we
  1407. ensure it stays valid UTF-8).
  1408. * The generated file for `foo.proto` is now `foo_pb.rb` instead of just
  1409. `foo.rb`. This makes it easier to see which imports/requires are from
  1410. protobuf generated code, and also prevents conflicts with any `foo.rb` file
  1411. you might have written directly in Ruby. It is a backward-incompatible
  1412. change: you will need to update all of your `require` statements.
  1413. * For package names like `foo_bar`, we now translate this to the Ruby module
  1414. `FooBar`. This is more idiomatic Ruby than what we used to do (`Foo_bar`).
  1415. JavaScript
  1416. * Scalar fields like numbers and boolean now return defaults instead of
  1417. `undefined` or `null` when they are unset. You can test for presence
  1418. explicitly by calling `hasFoo()`, which we now generate for scalar fields.
  1419. Java Lite
  1420. * Java Lite is now implemented as a separate plugin, maintained in the
  1421. `javalite` branch. Both lite runtime and protoc artifacts will be available
  1422. in Maven.
  1423. C#
  1424. * Target platforms now .NET 4.5, selected portable subsets and .NET Core.
  1425. * legacy_enum_values option is no longer supported.
  1426. 2016-07-15 version 3.0.0-beta-4 (C++/Java/Python/Ruby/Objective-C/C#/JavaScript)
  1427. General
  1428. * Added a deterministic serialization API for C++. The deterministic
  1429. serialization guarantees that given a binary, equal messages will be
  1430. serialized to the same bytes. This allows applications like MapReduce to
  1431. group equal messages based on the serialized bytes. The deterministic
  1432. serialization is, however, NOT canonical across languages; it is also
  1433. unstable across different builds with schema changes due to unknown fields.
  1434. Users who need canonical serialization, e.g. persistent storage in a
  1435. canonical form, fingerprinting, etc, should define their own
  1436. canonicalization specification and implement the serializer using reflection
  1437. APIs rather than relying on this API.
  1438. * Added OneofOptions. You can now define custom options for oneof groups.
  1439. import "google/protobuf/descriptor.proto";
  1440. extend google.protobuf.OneofOptions {
  1441. optional int32 my_oneof_extension = 12345;
  1442. }
  1443. message Foo {
  1444. oneof oneof_group {
  1445. (my_oneof_extension) = 54321;
  1446. ...
  1447. }
  1448. }
  1449. C++ (beta)
  1450. * Introduced a deterministic serialization API in
  1451. CodedOutputStream::SetSerializationDeterministic(bool). See the notes about
  1452. deterministic serialization in the General section.
  1453. * Added google::protobuf::Map::swap() to swap two map fields.
  1454. * Fixed a memory leak when calling Reflection::ReleaseMessage() on a message
  1455. allocated on arena.
  1456. * Improved error reporting when parsing text format protos.
  1457. * JSON
  1458. - Added a new parser option to ignore unknown fields when parsing JSON.
  1459. - Added convenient methods for message to/from JSON conversion.
  1460. * Various performance optimizations.
  1461. Java (beta)
  1462. * File option "java_generate_equals_and_hash" is now deprecated. equals() and
  1463. hashCode() methods are generated by default.
  1464. * Added a new JSON printer option "omittingInsignificantWhitespace" to produce
  1465. a more compact JSON output. The printer will pretty-print by default.
  1466. * Updated Java runtime to be compatible with 2.5.0/2.6.1 generated protos.
  1467. Python (beta)
  1468. * Added support to pretty print Any messages in text format.
  1469. * Added a flag to ignore unknown fields when parsing JSON.
  1470. * Bugfix: "@type" field of a JSON Any message is now correctly put before
  1471. other fields.
  1472. Objective-C (beta)
  1473. * Updated the code to support compiling with more compiler warnings
  1474. enabled. (Issue 1616)
  1475. * Exposing more detailed errors for parsing failures. (PR 1623)
  1476. * Small (breaking) change to the naming of some methods on the support classes
  1477. for map<>. There were collisions with the system provided KVO support, so
  1478. the names were changed to avoid those issues. (PR 1699)
  1479. * Fixed for proper Swift bridging of error handling during parsing. (PR 1712)
  1480. * Complete support for generating sources that will go into a Framework and
  1481. depend on generated sources from other Frameworks. (Issue 1457)
  1482. C# (beta)
  1483. * RepeatedField optimizations.
  1484. * Support for .NET Core.
  1485. * Minor bug fixes.
  1486. * Ability to format a single value in JsonFormatter (advanced usage only).
  1487. * Modifications to attributes applied to generated code.
  1488. Javascript (alpha)
  1489. * Maps now have a real map API instead of being treated as repeated fields.
  1490. * Well-known types are now provided in the google-protobuf package, and the
  1491. code generator knows to require() them from that package.
  1492. * Bugfix: non-canonical varints are correctly decoded.
  1493. Ruby (alpha)
  1494. * Accessors for oneof fields now return default values instead of nil.
  1495. Java Lite
  1496. * Java lite support is removed from protocol compiler. It will be supported
  1497. as a protocol compiler plugin in a separate code branch.
  1498. 2016-05-16 version 3.0.0-beta-3 (C++/Java/Python/Ruby/Nano/Objective-C/C#/JavaScript)
  1499. General
  1500. * Supported Proto3 lite-runtime in C++/Java for mobile platforms.
  1501. * Any type now supports APIs to specify prefixes other than
  1502. type.googleapis.com
  1503. * Removed javanano_use_deprecated_package option; Nano will always has its own
  1504. ".nano" package.
  1505. C++ (Beta)
  1506. * Improved hash maps.
  1507. - Improved hash maps comments. In particular, please note that equal hash
  1508. maps will not necessarily have the same iteration order and
  1509. serialization.
  1510. - Added a new hash maps implementation that will become the default in a
  1511. later release.
  1512. * Arenas
  1513. - Several inlined methods in Arena were moved to out-of-line to improve
  1514. build performance and code size.
  1515. - Added SpaceAllocatedAndUsed() to report both space used and allocated
  1516. - Added convenient class UnsafeArenaAllocatedRepeatedPtrFieldBackInserter
  1517. * Any
  1518. - Allow custom type URL prefixes in Any packing.
  1519. - TextFormat now expand the Any type rather than printing bytes.
  1520. * Performance optimizations and various bug fixes.
  1521. Java (Beta)
  1522. * Introduced an ExperimentalApi annotation. Annotated APIs are experimental
  1523. and are subject to change in a backward incompatible way in future releases.
  1524. * Introduced zero-copy serialization as an ExperimentalApi
  1525. - Introduction of the `ByteOutput` interface. This is similar to
  1526. `OutputStream` but provides semantics for lazy writing (i.e. no
  1527. immediate copy required) of fields that are considered to be immutable.
  1528. - `ByteString` now supports writing to a `ByteOutput`, which will directly
  1529. expose the internals of the `ByteString` (i.e. `byte[]` or `ByteBuffer`)
  1530. to the `ByteOutput` without copying.
  1531. - `CodedOutputStream` now supports writing to a `ByteOutput`. `ByteString`
  1532. instances that are too large to fit in the internal buffer will be
  1533. (lazily) written to the `ByteOutput` directly.
  1534. - This allows applications using large `ByteString` fields to avoid
  1535. duplication of these fields entirely. Such an application can supply a
  1536. `ByteOutput` that chains together the chunks received from
  1537. `CodedOutputStream` before forwarding them onto the IO system.
  1538. * Other related changes to `CodedOutputStream`
  1539. - Additional use of `sun.misc.Unsafe` where possible to perform fast
  1540. access to `byte[]` and `ByteBuffer` values and avoiding unnecessary
  1541. range checking.
  1542. - `ByteBuffer`-backed `CodedOutputStream` now writes directly to the
  1543. `ByteBuffer` rather than to an intermediate array.
  1544. * Improved lite-runtime.
  1545. - Lite protos now implement deep equals/hashCode/toString
  1546. - Significantly improved the performance of Builder#mergeFrom() and
  1547. Builder#mergeDelimitedFrom()
  1548. * Various bug fixes and small feature enhancement.
  1549. - Fixed stack overflow when in hashCode() for infinite recursive oneofs.
  1550. - Fixed the lazy field parsing in lite to merge rather than overwrite.
  1551. - TextFormat now supports reporting line/column numbers on errors.
  1552. - Updated to add appropriate @Override for better compiler errors.
  1553. Python (Beta)
  1554. * Added JSON format for Any, Struct, Value and ListValue
  1555. * [ ] is now accepted for both repeated scalar fields and repeated message
  1556. fields in text format parser.
  1557. * Numerical field name is now supported in text format.
  1558. * Added DiscardUnknownFields API for python protobuf message.
  1559. Objective-C (Beta)
  1560. * Proto comments now come over as HeaderDoc comments in the generated sources
  1561. so Xcode can pick them up and display them.
  1562. * The library headers have been updated to use HeaderDoc comments so Xcode can
  1563. pick them up and display them.
  1564. * The per message and per field overhead in both generated code and runtime
  1565. object sizes was reduced.
  1566. * Generated code now include deprecated annotations when the proto file
  1567. included them.
  1568. C# (Beta)
  1569. In general: some changes are breaking, which require regenerating messages.
  1570. Most user-written code will not be impacted *except* for the renaming of enum
  1571. values.
  1572. * Allow custom type URL prefixes in `Any` packing, and ignore them when
  1573. unpacking
  1574. * `protoc` is now in a separate NuGet package (Google.Protobuf.Tools)
  1575. * New option: `internal_access` to generate internal classes
  1576. * Enum values are now PascalCased, and if there's a prefix which matches the
  1577. name of the enum, that is removed (so an enum `COLOR` with a value
  1578. `COLOR_BLUE` would generate a value of just `Blue`). An option
  1579. (`legacy_enum_values`) is temporarily available to disable this, but the
  1580. option will be removed for GA.
  1581. * `json_name` option is now honored
  1582. * If group tags are encountered when parsing, they are validated more
  1583. thoroughly (although we don't support actual groups)
  1584. * NuGet dependencies are better specified
  1585. * Breaking: `Preconditions` is renamed to `ProtoPreconditions`
  1586. * Breaking: `GeneratedCodeInfo` is renamed to `GeneratedClrTypeInfo`
  1587. * `JsonFormatter` now allows writing to a `TextWriter`
  1588. * New interface, `ICustomDiagnosticMessage` to allow more compact
  1589. representations from `ToString`
  1590. * `CodedInputStream` and `CodedOutputStream` now implement `IDisposable`,
  1591. which simply disposes of the streams they were constructed with
  1592. * Map fields no longer support null values (in line with other languages)
  1593. * Improvements in JSON formatting and parsing
  1594. Javascript (Alpha)
  1595. * Better support for "bytes" fields: bytes fields can be read as either a
  1596. base64 string or UInt8Array (in environments where TypedArray is supported).
  1597. * New support for CommonJS imports. This should make it easier to use the
  1598. JavaScript support in Node.js and tools like WebPack. See js/README.md for
  1599. more information.
  1600. * Some significant internal refactoring to simplify and modularize the code.
  1601. Ruby (Alpha)
  1602. * JSON serialization now properly uses camelCased names, with a runtime option
  1603. that will preserve original names from .proto files instead.
  1604. * Well-known types are now included in the distribution.
  1605. * Release now includes binary gems for Windows, Mac, and Linux instead of just
  1606. source gems.
  1607. * Bugfix for serializing oneofs.
  1608. C++/Java Lite (Alpha)
  1609. A new "lite" generator parameter was introduced in the protoc for C++ and
  1610. Java for Proto3 syntax messages. Example usage:
  1611. ./protoc --cpp_out=lite:$OUTPUT_PATH foo.proto
  1612. The protoc will treat the current input and all the transitive dependencies
  1613. as LITE. The same generator parameter must be used to generate the
  1614. dependencies.
  1615. In Proto3 syntax files, "optimized_for=LITE_RUNTIME" is no longer supported.
  1616. 2015-12-30 version 3.0.0-beta-2 (C++/Java/Python/Ruby/Nano/Objective-C/C#/JavaScript)
  1617. General
  1618. * Introduced a new language implementation: JavaScript.
  1619. * Added a new field option "json_name". By default proto field names are
  1620. converted to "lowerCamelCase" in proto3 JSON format. This option can be
  1621. used to override this behavior and specify a different JSON name for the
  1622. field.
  1623. * Added conformance tests to ensure implementations are following proto3 JSON
  1624. specification.
  1625. C++ (Beta)
  1626. * Various bug fixes and improvements to the JSON support utility:
  1627. - Duplicate map keys in JSON are now rejected (i.e., translation will
  1628. fail).
  1629. - Fixed wire-format for google.protobuf.Value/ListValue.
  1630. - Fixed precision loss when converting google.protobuf.Timestamp.
  1631. - Fixed a bug when parsing invalid UTF-8 code points.
  1632. - Fixed a memory leak.
  1633. - Reduced call stack usage.
  1634. Java (Beta)
  1635. * Cleaned up some unused methods on CodedOutputStream.
  1636. * Presized lists for packed fields during parsing in the lite runtime to
  1637. reduce allocations and improve performance.
  1638. * Improved the performance of unknown fields in the lite runtime.
  1639. * Introduced UnsafeByteStrings to support zero-copy ByteString creation.
  1640. * Various bug fixes and improvements to the JSON support utility:
  1641. - Fixed a thread-safety bug.
  1642. - Added a new option “preservingProtoFieldNames” to JsonFormat.
  1643. - Added a new option “includingDefaultValueFields” to JsonFormat.
  1644. - Updated the JSON utility to comply with proto3 JSON specification.
  1645. Python (Beta)
  1646. * Added proto3 JSON format utility. It includes support for all field types
  1647. and a few well-known types except for Any and Struct.
  1648. * Added runtime support for Any, Timestamp, Duration and FieldMask.
  1649. * [ ] is now accepted for repeated scalar fields in text format parser.
  1650. * Map fields now have proper O(1) performance for lookup/insert/delete
  1651. when using the Python/C++ implementation. They were previously using O(n)
  1652. search-based algorithms because the C++ reflection interface didn't
  1653. support true map operations.
  1654. Objective-C (Beta)
  1655. * Various bug-fixes and code tweaks to pass more strict compiler warnings.
  1656. * Now has conformance test coverage and is passing all tests.
  1657. C# (Beta)
  1658. * Various bug-fixes.
  1659. * Code generation: Files generated in directories based on namespace.
  1660. * Code generation: Include comments from .proto files in XML doc
  1661. comments (naively)
  1662. * Code generation: Change organization/naming of "reflection class" (access
  1663. to file descriptor)
  1664. * Code generation and library: Add Parser property to MessageDescriptor,
  1665. and introduce a non-generic parser type.
  1666. * Library: Added TypeRegistry to support JSON parsing/formatting of Any.
  1667. * Library: Added Any.Pack/Unpack support.
  1668. * Library: Implemented JSON parsing.
  1669. Javascript (Alpha)
  1670. * Added proto3 support for JavaScript. The runtime is written in pure
  1671. JavaScript and works in browsers and in Node.js. To generate JavaScript
  1672. code for your proto, invoke protoc with "--js_out". See js/README.md
  1673. for more build instructions.
  1674. 2015-08-26 version 3.0.0-beta-1 (C++/Java/Python/Ruby/Nano/Objective-C/C#)
  1675. About Beta
  1676. * This is the first beta release of protobuf v3.0.0. Not all languages
  1677. have reached beta stage. Languages not marked as beta are still in
  1678. alpha (i.e., be prepared for API breaking changes).
  1679. General
  1680. * Proto3 JSON is supported in several languages (fully supported in C++
  1681. and Java, partially supported in Ruby/C#). The JSON spec is defined in
  1682. the proto3 language guide:
  1683. https://developers.google.com/protocol-buffers/docs/proto3#json
  1684. We will publish a more detailed spec to define the exact behavior of
  1685. proto3-conformant JSON serializers and parsers. Until then, do not rely
  1686. on specific behaviors of the implementation if it’s not documented in
  1687. the above spec. More specifically, the behavior is not yet finalized for
  1688. the following:
  1689. - Parsing invalid JSON input (e.g., input with trailing commas).
  1690. - Non-camelCase names in JSON input.
  1691. - The same field appears multiple times in JSON input.
  1692. - JSON arrays contain “null” values.
  1693. - The message has unknown fields.
  1694. * Proto3 now enforces strict UTF-8 checking. Parsing will fail if a string
  1695. field contains non UTF-8 data.
  1696. C++ (Beta)
  1697. * Introduced new utility functions/classes in the google/protobuf/util
  1698. directory:
  1699. - MessageDifferencer: compare two proto messages and report their
  1700. differences.
  1701. - JsonUtil: support converting protobuf binary format to/from JSON.
  1702. - TimeUtil: utility functions to work with well-known types Timestamp
  1703. and Duration.
  1704. - FieldMaskUtil: utility functions to work with FieldMask.
  1705. * Performance optimization of arena construction and destruction.
  1706. * Bug fixes for arena and maps support.
  1707. * Changed to use cmake for Windows Visual Studio builds.
  1708. * Added Bazel support.
  1709. Java (Beta)
  1710. * Introduced a new util package that will be distributed as a separate
  1711. artifact in maven. It contains:
  1712. - JsonFormat: convert proto messages to/from JSON.
  1713. - TimeUtil: utility functions to work with Timestamp and Duration.
  1714. - FieldMaskUtil: utility functions to work with FieldMask.
  1715. * The static PARSER in each generated message is deprecated, and it will
  1716. be removed in a future release. A static parser() getter is generated
  1717. for each message type instead.
  1718. * Performance optimizations for String fields serialization.
  1719. * Performance optimizations for Lite runtime on Android:
  1720. - Reduced allocations
  1721. - Reduced method overhead after ProGuarding
  1722. - Reduced code size after ProGuarding
  1723. Python (Alpha)
  1724. * Removed legacy Python 2.5 support.
  1725. * Moved to a single Python 2.x/3.x-compatible codebase, instead of using 2to3.
  1726. * Fixed build/tests on Python 2.6, 2.7, 3.3, and 3.4.
  1727. - Pure-Python works on all four.
  1728. - Python/C++ implementation works on all but 3.4, due to changes in the
  1729. Python/C++ API in 3.4.
  1730. * Some preliminary work has been done to allow for multiple DescriptorPools
  1731. with Python/C++.
  1732. Ruby (Alpha)
  1733. * Many bugfixes:
  1734. - fixed parsing/serialization of bytes, sint, sfixed types
  1735. - other parser bugfixes
  1736. - fixed memory leak affecting Ruby 2.2
  1737. JavaNano (Alpha)
  1738. * JavaNano generated code now will be put in a nano package by default to
  1739. avoid conflicts with Java generated code.
  1740. Objective-C (Alpha)
  1741. * Added non-null markup to ObjC library. Requires SDK 8.4+ to build.
  1742. * Many bugfixes:
  1743. - Removed the class/enum filter.
  1744. - Renamed some internal types to avoid conflicts with the well-known types
  1745. protos.
  1746. - Added missing support for parsing repeated primitive fields in packed or
  1747. unpacked forms.
  1748. - Added *Count for repeated and map<> fields to avoid auto-create when
  1749. checking for them being set.
  1750. C# (Alpha)
  1751. * Namespace changed to Google.Protobuf (and NuGet package will be named
  1752. correspondingly).
  1753. * Target platforms now .NET 4.5 and selected portable subsets only.
  1754. * Removed lite runtime.
  1755. * Reimplementation to use mutable message types.
  1756. * Null references used to represent "no value" for message type fields.
  1757. * Proto3 semantics supported; proto2 files are prohibited for C# codegen.
  1758. Most proto3 features supported:
  1759. - JSON formatting (a.k.a. serialization to JSON), including well-known
  1760. types (except for Any).
  1761. - Wrapper types mapped to nullable value types (or string/ByteString
  1762. allowing nullability). JSON parsing is not supported yet.
  1763. - maps
  1764. - oneof
  1765. - enum unknown value preservation
  1766. 2015-05-25 version 3.0.0-alpha-3 (Objective-C/C#):
  1767. General
  1768. * Introduced two new language implementations (Objective-C, C#) to proto3.
  1769. * Explicit "optional" keyword are disallowed in proto3 syntax, as fields are
  1770. optional by default.
  1771. * Group fields are no longer supported in proto3 syntax.
  1772. * Changed repeated primitive fields to use packed serialization by default in
  1773. proto3 (implemented for C++, Java, Python in this release). The user can
  1774. still disable packed serialization by setting packed to false for now.
  1775. * Added well-known type protos (any.proto, empty.proto, timestamp.proto,
  1776. duration.proto, etc.). Users can import and use these protos just like
  1777. regular proto files. Additional runtime support will be added for them in
  1778. future releases (in the form of utility helper functions, or having them
  1779. replaced by language specific types in generated code).
  1780. * Added a "reserved" keyword in both proto2 and proto3 syntax. User can use
  1781. this keyword to declare reserved field numbers and names to prevent them
  1782. from being reused by other fields in the same message.
  1783. To reserve field numbers, add a reserved declaration in your message:
  1784. message TestMessage {
  1785. reserved 2, 15, 9 to 11, 3;
  1786. }
  1787. This reserves field numbers 2, 3, 9, 10, 11 and 15. If a user uses any of
  1788. these as field numbers, the protocol buffer compiler will report an error.
  1789. Field names can also be reserved:
  1790. message TestMessage {
  1791. reserved "foo", "bar";
  1792. }
  1793. * Various bug fixes since 3.0.0-alpha-2
  1794. Objective-C
  1795. Objective-C includes a code generator and a native objective-c runtime
  1796. library. By adding “--objc_out” to protoc, the code generator will generate
  1797. a header(*.pbobjc.h) and an implementation file(*.pbobjc.m) for each proto
  1798. file.
  1799. In this first release, the generated interface provides: enums, messages,
  1800. field support(single, repeated, map, oneof), proto2 and proto3 syntax
  1801. support, parsing and serialization. It’s compatible with ARC and non-ARC
  1802. usage. Besides, user can also access it via the swift bridging header.
  1803. See objectivec/README.md for details.
  1804. C#
  1805. * C# protobufs are based on project
  1806. https://github.com/jskeet/protobuf-csharp-port. The original project was
  1807. frozen and all the new development will happen here.
  1808. * Codegen plugin for C# was completely rewritten to C++ and is now an
  1809. integral part of protoc.
  1810. * Some refactorings and cleanup has been applied to the C# runtime library.
  1811. * Only proto2 is supported in C# at the moment, proto3 support is in
  1812. progress and will likely bring significant breaking changes to the API.
  1813. See csharp/README.md for details.
  1814. C++
  1815. * Added runtime support for Any type. To use Any in your proto file, first
  1816. import the definition of Any:
  1817. // foo.proto
  1818. import "google/protobuf/any.proto";
  1819. message Foo {
  1820. google.protobuf.Any any_field = 1;
  1821. }
  1822. message Bar {
  1823. int32 value = 1;
  1824. }
  1825. Then in C++ you can access the Any field using PackFrom()/UnpackTo()
  1826. methods:
  1827. Foo foo;
  1828. Bar bar = ...;
  1829. foo.mutable_any_field()->PackFrom(bar);
  1830. ...
  1831. if (foo.any_field().IsType<Bar>()) {
  1832. foo.any_field().UnpackTo(&bar);
  1833. ...
  1834. }
  1835. * In text format, entries of a map field will be sorted by key.
  1836. Java
  1837. * Continued optimizations on the lite runtime to improve performance for
  1838. Android.
  1839. Python
  1840. * Added map support.
  1841. - maps now have a dict-like interface (msg.map_field[key] = value)
  1842. - existing code that modifies maps via the repeated field interface
  1843. will need to be updated.
  1844. Ruby
  1845. * Improvements to RepeatedField's emulation of the Ruby Array API.
  1846. * Various speedups and internal cleanups.
  1847. 2015-02-26 version 3.0.0-alpha-2 (Python/Ruby/JavaNano):
  1848. General
  1849. * Introduced three new language implementations (Ruby, JavaNano, and
  1850. Python) to proto3.
  1851. * Various bug fixes since 3.0.0-alpha-1
  1852. Python:
  1853. Python has received several updates, most notably support for proto3
  1854. semantics in any .proto file that declares syntax="proto3".
  1855. Messages declared in proto3 files no longer represent field presence
  1856. for scalar fields (number, enums, booleans, or strings). You can
  1857. no longer call HasField() for such fields, and they are serialized
  1858. based on whether they have a non-zero/empty/false value.
  1859. One other notable change is in the C++-accelerated implementation.
  1860. Descriptor objects (which describe the protobuf schema and allow
  1861. reflection over it) are no longer duplicated between the Python
  1862. and C++ layers. The Python descriptors are now simple wrappers
  1863. around the C++ descriptors. This change should significantly
  1864. reduce the memory usage of programs that use a lot of message
  1865. types.
  1866. Ruby:
  1867. We have added proto3 support for Ruby via a native C extension.
  1868. The Ruby extension itself is included in the ruby/ directory, and details on
  1869. building and installing the extension are in ruby/README.md. The extension
  1870. will also be published as a Ruby gem. Code generator support is included as
  1871. part of `protoc` with the `--ruby_out` flag.
  1872. The Ruby extension implements a user-friendly DSL to define message types
  1873. (also generated by the code generator from `.proto` files). Once a message
  1874. type is defined, the user may create instances of the message that behave in
  1875. ways idiomatic to Ruby. For example:
  1876. - Message fields are present as ordinary Ruby properties (getter method
  1877. `foo` and setter method `foo=`).
  1878. - Repeated field elements are stored in a container that acts like a native
  1879. Ruby array, and map elements are stored in a container that acts like a
  1880. native Ruby hashmap.
  1881. - The usual well-known methods, such as `#to_s`, `#dup`, and the like, are
  1882. present.
  1883. Unlike several existing third-party Ruby extensions for protobuf, this
  1884. extension is built on a "strongly-typed" philosophy: message fields and
  1885. array/map containers will throw exceptions eagerly when values of the
  1886. incorrect type are inserted.
  1887. See ruby/README.md for details.
  1888. JavaNano:
  1889. JavaNano is a special code generator and runtime library designed especially
  1890. for resource-restricted systems, like Android. It is very resource-friendly
  1891. in both the amount of code and the runtime overhead. Here is an an overview
  1892. of JavaNano features compared with the official Java protobuf:
  1893. - No descriptors or message builders.
  1894. - All messages are mutable; fields are public Java fields.
  1895. - For optional fields only, encapsulation behind setter/getter/hazzer/
  1896. clearer functions is opt-in, which provide proper 'has' state support.
  1897. - For proto2, if not opted in, has state (field presence) is not available.
  1898. Serialization outputs all fields not equal to their defaults.
  1899. The behavior is consistent with proto3 semantics.
  1900. - Required fields (proto2 only) are always serialized.
  1901. - Enum constants are integers; protection against invalid values only
  1902. when parsing from the wire.
  1903. - Enum constants can be generated into container interfaces bearing
  1904. the enum's name (so the referencing code is in Java style).
  1905. - CodedInputByteBufferNano can only take byte[] (not InputStream).
  1906. - Similarly CodedOutputByteBufferNano can only write to byte[].
  1907. - Repeated fields are in arrays, not ArrayList or Vector. Null array
  1908. elements are allowed and silently ignored.
  1909. - Full support for serializing/deserializing repeated packed fields.
  1910. - Support extensions (in proto2).
  1911. - Unset messages/groups are null, not an immutable empty default
  1912. instance.
  1913. - toByteArray(...) and mergeFrom(...) are now static functions of
  1914. MessageNano.
  1915. - The 'bytes' type translates to the Java type byte[].
  1916. See javanano/README.txt for details.
  1917. 2014-12-01 version 3.0.0-alpha-1 (C++/Java):
  1918. General
  1919. * Introduced Protocol Buffers language version 3 (aka proto3).
  1920. When protobuf was initially opensourced it implemented Protocol Buffers
  1921. language version 2 (aka proto2), which is why the version number
  1922. started from v2.0.0. From v3.0.0, a new language version (proto3) is
  1923. introduced while the old version (proto2) will continue to be supported.
  1924. The main intent of introducing proto3 is to clean up protobuf before
  1925. pushing the language as the foundation of Google's new API platform.
  1926. In proto3, the language is simplified, both for ease of use and to
  1927. make it available in a wider range of programming languages. At the
  1928. same time a few features are added to better support common idioms
  1929. found in APIs.
  1930. The following are the main new features in language version 3:
  1931. 1. Removal of field presence logic for primitive value fields, removal
  1932. of required fields, and removal of default values. This makes proto3
  1933. significantly easier to implement with open struct representations,
  1934. as in languages like Android Java, Objective C, or Go.
  1935. 2. Removal of unknown fields.
  1936. 3. Removal of extensions, which are instead replaced by a new standard
  1937. type called Any.
  1938. 4. Fix semantics for unknown enum values.
  1939. 5. Addition of maps.
  1940. 6. Addition of a small set of standard types for representation of time,
  1941. dynamic data, etc.
  1942. 7. A well-defined encoding in JSON as an alternative to binary proto
  1943. encoding.
  1944. This release (v3.0.0-alpha-1) includes partial proto3 support for C++ and
  1945. Java. Items 6 (well-known types) and 7 (JSON format) in the above feature
  1946. list are not implemented.
  1947. A new notion "syntax" is introduced to specify whether a .proto file
  1948. uses proto2 or proto3:
  1949. // foo.proto
  1950. syntax = "proto3";
  1951. message Bar {...}
  1952. If omitted, the protocol compiler will generate a warning and "proto2" will
  1953. be used as the default. This warning will be turned into an error in a
  1954. future release.
  1955. We recommend that new Protocol Buffers users use proto3. However, we do not
  1956. generally recommend that existing users migrate from proto2 from proto3 due
  1957. to API incompatibility, and we will continue to support proto2 for a long
  1958. time.
  1959. * Added support for map fields (implemented in C++/Java for both proto2 and
  1960. proto3).
  1961. Map fields can be declared using the following syntax:
  1962. message Foo {
  1963. map<string, string> values = 1;
  1964. }
  1965. Data of a map field will be stored in memory as an unordered map and it
  1966. can be accessed through generated accessors.
  1967. C++
  1968. * Added arena allocation support (for both proto2 and proto3).
  1969. Profiling shows memory allocation and deallocation constitutes a significant
  1970. fraction of CPU-time spent in protobuf code and arena allocation is a
  1971. technique introduced to reduce this cost. With arena allocation, new
  1972. objects will be allocated from a large piece of preallocated memory and
  1973. deallocation of these objects is almost free. Early adoption shows 20% to
  1974. 50% improvement in some Google binaries.
  1975. To enable arena support, add the following option to your .proto file:
  1976. option cc_enable_arenas = true;
  1977. Protocol compiler will generate additional code to make the generated
  1978. message classes work with arenas. This does not change the existing API
  1979. of protobuf messages and does not affect wire format. Your existing code
  1980. should continue to work after adding this option. In the future we will
  1981. make this option enabled by default.
  1982. To actually take advantage of arena allocation, you need to use the arena
  1983. APIs when creating messages. A quick example of using the arena API:
  1984. {
  1985. google::protobuf::Arena arena;
  1986. // Allocate a protobuf message in the arena.
  1987. MyMessage* message = Arena::CreateMessage<MyMessage>(&arena);
  1988. // All submessages will be allocated in the same arena.
  1989. if (!message->ParseFromString(data)) {
  1990. // Deal with malformed input data.
  1991. }
  1992. // Must not delete the message here. It will be deleted automatically
  1993. // when the arena is destroyed.
  1994. }
  1995. Currently arena does not work with map fields. Enabling arena in a .proto
  1996. file containing map fields will result in compile errors in the generated
  1997. code. This will be addressed in a future release.
  1998. 2014-10-20 version 2.6.1:
  1999. C++
  2000. * Added atomicops support for Solaris.
  2001. * Released memory allocated by InitializeDefaultRepeatedFields() and
  2002. GetEmptyString(). Some memory sanitizers reported them as memory leaks.
  2003. Java
  2004. * Updated DynamicMessage.setField() to handle repeated enum values
  2005. correctly.
  2006. * Fixed a bug that caused NullPointerException to be thrown when
  2007. converting manually constructed FileDescriptorProto to
  2008. FileDescriptor.
  2009. Python
  2010. * Fixed WhichOneof() to work with de-serialized protobuf messages.
  2011. * Fixed a missing file problem of Python C++ implementation.
  2012. 2014-08-15 version 2.6.0:
  2013. General
  2014. * Added oneofs(unions) feature. Fields in the same oneof will share
  2015. memory and at most one field can be set at the same time. Use the
  2016. oneof keyword to define a oneof like:
  2017. message SampleMessage {
  2018. oneof test_oneof {
  2019. string name = 4;
  2020. YourMessage sub_message = 9;
  2021. }
  2022. }
  2023. * Files, services, enums, messages, methods and enum values can be marked
  2024. as deprecated now.
  2025. * Added Support for list values, including lists of messages, when
  2026. parsing text-formatted protos in C++ and Java.
  2027. For example: foo: [1, 2, 3]
  2028. C++
  2029. * Enhanced customization on TestFormat printing.
  2030. * Added SwapFields() in reflection API to swap a subset of fields.
  2031. Added SetAllocatedMessage() in reflection API.
  2032. * Repeated primitive extensions are now packable. The
  2033. [packed=true] option only affects serializers. Therefore, it is
  2034. possible to switch a repeated extension field to packed format
  2035. without breaking backwards-compatibility.
  2036. * Various speed optimizations.
  2037. Java
  2038. * writeTo() method in ByteString can now write a substring to an
  2039. output stream. Added endWith() method for ByteString.
  2040. * ByteString and ByteBuffer are now supported in CodedInputStream
  2041. and CodedOutputStream.
  2042. * java_generate_equals_and_hash can now be used with the LITE_RUNTIME.
  2043. Python
  2044. * A new C++-backed extension module (aka "cpp api v2") that replaces the
  2045. old ("cpp api v1") one. Much faster than the pure Python code. This one
  2046. resolves many bugs and is recommended for general use over the
  2047. pure Python when possible.
  2048. * Descriptors now have enum_types_by_name and extension_types_by_name dict
  2049. attributes.
  2050. * Support for Python 3.
  2051. 2013-02-27 version 2.5.0:
  2052. General
  2053. * New notion "import public" that allows a proto file to forward the content
  2054. it imports to its importers. For example,
  2055. // foo.proto
  2056. import public "bar.proto";
  2057. import "baz.proto";
  2058. // qux.proto
  2059. import "foo.proto";
  2060. // Stuff defined in bar.proto may be used in this file, but stuff from
  2061. // baz.proto may NOT be used without importing it explicitly.
  2062. This is useful for moving proto files. To move a proto file, just leave
  2063. a single "import public" in the old proto file.
  2064. * New enum option "allow_alias" that specifies whether different symbols can
  2065. be assigned the same numeric value. Default value is "true". Setting it to
  2066. false causes the compiler to reject enum definitions where multiple symbols
  2067. have the same numeric value.
  2068. Note: We plan to flip the default value to "false" in a future release.
  2069. Projects using enum aliases should set the option to "true" in their .proto
  2070. files.
  2071. C++
  2072. * New generated method set_allocated_foo(Type* foo) for message and string
  2073. fields. This method allows you to set the field to a pre-allocated object
  2074. and the containing message takes the ownership of that object.
  2075. * Added SetAllocatedExtension() and ReleaseExtension() to extensions API.
  2076. * Custom options are now formatted correctly when descriptors are printed in
  2077. text format.
  2078. * Various speed optimizations.
  2079. Java
  2080. * Comments in proto files are now collected and put into generated code as
  2081. comments for corresponding classes and data members.
  2082. * Added Parser to parse directly into messages without a Builder. For
  2083. example,
  2084. Foo foo = Foo.PARSER.ParseFrom(input);
  2085. Using Parser is ~25% faster than using Builder to parse messages.
  2086. * Added getters/setters to access the underlying ByteString of a string field
  2087. directly.
  2088. * ByteString now supports more operations: substring(), prepend(), and
  2089. append(). The implementation of ByteString uses a binary tree structure
  2090. to support these operations efficiently.
  2091. * New method findInitializationErrors() that lists all missing required
  2092. fields.
  2093. * Various code size and speed optimizations.
  2094. Python
  2095. * Added support for dynamic message creation. DescriptorDatabase,
  2096. DescriptorPool, and MessageFactory work like their C++ counterparts to
  2097. simplify Descriptor construction from *DescriptorProtos, and MessageFactory
  2098. provides a message instance from a Descriptor.
  2099. * Added pickle support for protobuf messages.
  2100. * Unknown fields are now preserved after parsing.
  2101. * Fixed bug where custom options were not correctly populated. Custom
  2102. options can be accessed now.
  2103. * Added EnumTypeWrapper that provides better accessibility to enum types.
  2104. * Added ParseMessage(descriptor, bytes) to generate a new Message instance
  2105. from a descriptor and a byte string.
  2106. 2011-05-01 version 2.4.1:
  2107. C++
  2108. * Fixed the friendship problem for old compilers to make the library now gcc 3
  2109. compatible again.
  2110. * Fixed vcprojects/extract_includes.bat to extract compiler/plugin.h.
  2111. Java
  2112. * Removed usages of JDK 1.6 only features to make the library now JDK 1.5
  2113. compatible again.
  2114. * Fixed a bug about negative enum values.
  2115. * serialVersionUID is now defined in generated messages for java serializing.
  2116. * Fixed protoc to use java.lang.Object, which makes "Object" now a valid
  2117. message name again.
  2118. Python
  2119. * Experimental C++ implementation now requires C++ protobuf library installed.
  2120. See the README.txt in the python directory for details.
  2121. 2011-02-02 version 2.4.0:
  2122. General
  2123. * The RPC (cc|java|py)_generic_services default value is now false instead of
  2124. true.
  2125. * Custom options can have aggregate types. For example,
  2126. message MyOption {
  2127. optional string comment = 1;
  2128. optional string author = 2;
  2129. }
  2130. extend google.protobuf.FieldOptions {
  2131. optional MyOption myoption = 12345;
  2132. }
  2133. This option can now be set as follows:
  2134. message SomeType {
  2135. optional int32 field = 1 [(myoption) = { comment:'x' author:'y' }];
  2136. }
  2137. C++
  2138. * Various speed and code size optimizations.
  2139. * Added a release_foo() method on string and message fields.
  2140. * Fixed gzip_output_stream sub-stream handling.
  2141. Java
  2142. * Builders now maintain sub-builders for sub-messages. Use getFooBuilder() to
  2143. get the builder for the sub-message "foo". This allows you to repeatedly
  2144. modify deeply-nested sub-messages without rebuilding them.
  2145. * Builder.build() no longer invalidates the Builder for generated messages
  2146. (You may continue to modify it and then build another message).
  2147. * Code generator will generate efficient equals() and hashCode()
  2148. implementations if new option java_generate_equals_and_hash is enabled.
  2149. (Otherwise, reflection-based implementations are used.)
  2150. * Generated messages now implement Serializable.
  2151. * Fields with [deprecated=true] will be marked with @Deprecated in Java.
  2152. * Added lazy conversion of UTF-8 encoded strings to String objects to improve
  2153. performance.
  2154. * Various optimizations.
  2155. * Enum value can be accessed directly, instead of calling getNumber() on the
  2156. enum member.
  2157. * For each enum value, an integer constant is also generated with the suffix
  2158. _VALUE.
  2159. Python
  2160. * Added an experimental C++ implementation for Python messages via a Python
  2161. extension. Implementation type is controlled by an environment variable
  2162. PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION (valid values: "cpp" and "python")
  2163. The default value is currently "python" but will be changed to "cpp" in
  2164. future release.
  2165. * Improved performance on message instantiation significantly.
  2166. Most of the work on message instantiation is done just once per message
  2167. class, instead of once per message instance.
  2168. * Improved performance on text message parsing.
  2169. * Allow add() to forward keyword arguments to the concrete class.
  2170. E.g. instead of
  2171. item = repeated_field.add()
  2172. item.foo = bar
  2173. item.baz = quux
  2174. You can do:
  2175. repeated_field.add(foo=bar, baz=quux)
  2176. * Added a sort() interface to the BaseContainer.
  2177. * Added an extend() method to repeated composite fields.
  2178. * Added UTF8 debug string support.
  2179. 2010-01-08 version 2.3.0:
  2180. General
  2181. * Parsers for repeated numeric fields now always accept both packed and
  2182. unpacked input. The [packed=true] option only affects serializers.
  2183. Therefore, it is possible to switch a field to packed format without
  2184. breaking backwards-compatibility -- as long as all parties are using
  2185. protobuf 2.3.0 or above, at least.
  2186. * The generic RPC service code generated by the C++, Java, and Python
  2187. generators can be disabled via file options:
  2188. option cc_generic_services = false;
  2189. option java_generic_services = false;
  2190. option py_generic_services = false;
  2191. This allows plugins to generate alternative code, possibly specific to some
  2192. particular RPC implementation.
  2193. protoc
  2194. * Now supports a plugin system for code generators. Plugins can generate
  2195. code for new languages or inject additional code into the output of other
  2196. code generators. Plugins are just binaries which accept a protocol buffer
  2197. on stdin and write a protocol buffer to stdout, so they may be written in
  2198. any language. See src/google/protobuf/compiler/plugin.proto.
  2199. **WARNING**: Plugins are experimental. The interface may change in a
  2200. future version.
  2201. * If the output location ends in .zip or .jar, protoc will write its output
  2202. to a zip/jar archive instead of a directory. For example:
  2203. protoc --java_out=myproto_srcs.jar --python_out=myproto.zip myproto.proto
  2204. Currently the archive contents are not compressed, though this could change
  2205. in the future.
  2206. * inf, -inf, and nan can now be used as default values for float and double
  2207. fields.
  2208. C++
  2209. * Various speed and code size optimizations.
  2210. * DynamicMessageFactory is now fully thread-safe.
  2211. * Message::Utf8DebugString() method is like DebugString() but avoids escaping
  2212. UTF-8 bytes.
  2213. * Compiled-in message types can now contain dynamic extensions, through use
  2214. of CodedInputStream::SetExtensionRegistry().
  2215. * Now compiles shared libraries (DLLs) by default on Cygwin and MinGW, to
  2216. match other platforms. Use --disable-shared to avoid this.
  2217. Java
  2218. * parseDelimitedFrom() and mergeDelimitedFrom() now detect EOF and return
  2219. false/null instead of throwing an exception.
  2220. * Fixed some initialization ordering bugs.
  2221. * Fixes for OpenJDK 7.
  2222. Python
  2223. * 10-25 times faster than 2.2.0, still pure-Python.
  2224. * Calling a mutating method on a sub-message always instantiates the message
  2225. in its parent even if the mutating method doesn't actually mutate anything
  2226. (e.g. parsing from an empty string).
  2227. * Expanded descriptors a bit.
  2228. 2009-08-11 version 2.2.0:
  2229. C++
  2230. * Lite mode: The "optimize_for = LITE_RUNTIME" option causes the compiler
  2231. to generate code which only depends libprotobuf-lite, which is much smaller
  2232. than libprotobuf but lacks descriptors, reflection, and some other features.
  2233. * Fixed bug where Message.Swap(Message) was only implemented for
  2234. optimize_for_speed. Swap now properly implemented in both modes
  2235. (Issue 91).
  2236. * Added RemoveLast and SwapElements(index1, index2) to Reflection
  2237. interface for repeated elements.
  2238. * Added Swap(Message) to Reflection interface.
  2239. * Floating-point literals in generated code that are intended to be
  2240. single-precision now explicitly have 'f' suffix to avoid pedantic warnings
  2241. produced by some compilers.
  2242. * The [deprecated=true] option now causes the C++ code generator to generate
  2243. a GCC-style deprecation annotation (no-op on other compilers).
  2244. * google::protobuf::GetEnumDescriptor<SomeGeneratedEnumType>() returns the
  2245. EnumDescriptor for that type -- useful for templates which cannot call
  2246. SomeGeneratedEnumType_descriptor().
  2247. * Various optimizations and obscure bug fixes.
  2248. Java
  2249. * Lite mode: The "optimize_for = LITE_RUNTIME" option causes the compiler
  2250. to generate code which only depends libprotobuf-lite, which is much smaller
  2251. than libprotobuf but lacks descriptors, reflection, and some other features.
  2252. * Lots of style cleanups.
  2253. Python
  2254. * Fixed endianness bug with floats and doubles.
  2255. * Text format parsing support.
  2256. * Fix bug with parsing packed repeated fields in embedded messages.
  2257. * Ability to initialize fields by passing keyword args to constructor.
  2258. * Support iterators in extend and __setslice__ for containers.
  2259. 2009-05-13 version 2.1.0:
  2260. General
  2261. * Repeated fields of primitive types (types other that string, group, and
  2262. nested messages) may now use the option [packed = true] to get a more
  2263. efficient encoding. In the new encoding, the entire list is written
  2264. as a single byte blob using the "length-delimited" wire type. Within
  2265. this blob, the individual values are encoded the same way they would
  2266. be normally except without a tag before each value (thus, they are
  2267. tightly "packed").
  2268. * For each field, the generated code contains an integer constant assigned
  2269. to the field number. For example, the .proto file:
  2270. message Foo { optional int bar_baz = 123; }
  2271. would generate the following constants, all with the integer value 123:
  2272. C++: Foo::kBarBazFieldNumber
  2273. Java: Foo.BAR_BAZ_FIELD_NUMBER
  2274. Python: Foo.BAR_BAZ_FIELD_NUMBER
  2275. Constants are also generated for extensions, with the same naming scheme.
  2276. These constants may be used as switch cases.
  2277. * Updated bundled Google Test to version 1.3.0. Google Test is now bundled
  2278. in its verbatim form as a nested autoconf package, so you can drop in any
  2279. other version of Google Test if needed.
  2280. * optimize_for = SPEED is now the default, by popular demand. Use
  2281. optimize_for = CODE_SIZE if code size is more important in your app.
  2282. * It is now an error to define a default value for a repeated field.
  2283. Previously, this was silently ignored (it had no effect on the generated
  2284. code).
  2285. * Fields can now be marked deprecated like:
  2286. optional int32 foo = 1 [deprecated = true];
  2287. Currently this does not have any actual effect, but in the future the code
  2288. generators may generate deprecation annotations in each language.
  2289. * Cross-compiling should now be possible using the --with-protoc option to
  2290. configure. See README.txt for more info.
  2291. protoc
  2292. * --error_format=msvs option causes errors to be printed in Visual Studio
  2293. format, which should allow them to be clicked on in the build log to go
  2294. directly to the error location.
  2295. * The type name resolver will no longer resolve type names to fields. For
  2296. example, this now works:
  2297. message Foo {}
  2298. message Bar {
  2299. optional int32 Foo = 1;
  2300. optional Foo baz = 2;
  2301. }
  2302. Previously, the type of "baz" would resolve to "Bar.Foo", and you'd get
  2303. an error because Bar.Foo is a field, not a type. Now the type of "baz"
  2304. resolves to the message type Foo. This change is unlikely to make a
  2305. difference to anyone who follows the Protocol Buffers style guide.
  2306. C++
  2307. * Several optimizations, including but not limited to:
  2308. - Serialization, especially to flat arrays, is 10%-50% faster, possibly
  2309. more for small objects.
  2310. - Several descriptor operations which previously required locking no longer
  2311. do.
  2312. - Descriptors are now constructed lazily on first use, rather than at
  2313. process startup time. This should save memory in programs which do not
  2314. use descriptors or reflection.
  2315. - UnknownFieldSet completely redesigned to be more efficient (especially in
  2316. terms of memory usage).
  2317. - Various optimizations to reduce code size (though the serialization speed
  2318. optimizations increased code size).
  2319. * Message interface has method ParseFromBoundedZeroCopyStream() which parses
  2320. a limited number of bytes from an input stream rather than parsing until
  2321. EOF.
  2322. * GzipInputStream and GzipOutputStream support reading/writing gzip- or
  2323. zlib-compressed streams if zlib is available.
  2324. (google/protobuf/io/gzip_stream.h)
  2325. * DescriptorPool::FindAllExtensions() and corresponding
  2326. DescriptorDatabase::FindAllExtensions() can be used to enumerate all
  2327. extensions of a given type.
  2328. * For each enum type Foo, protoc will generate functions:
  2329. const string& Foo_Name(Foo value);
  2330. bool Foo_Parse(const string& name, Foo* result);
  2331. The former returns the name of the enum constant corresponding to the given
  2332. value while the latter finds the value corresponding to a name.
  2333. * RepeatedField and RepeatedPtrField now have back-insertion iterators.
  2334. * String fields now have setters that take a char* and a size, in addition
  2335. to the existing ones that took char* or const string&.
  2336. * DescriptorPool::AllowUnknownDependencies() may be used to tell
  2337. DescriptorPool to create placeholder descriptors for unknown entities
  2338. referenced in a FileDescriptorProto. This can allow you to parse a .proto
  2339. file without having access to other .proto files that it imports, for
  2340. example.
  2341. * Updated gtest to latest version. The gtest package is now included as a
  2342. nested autoconf package, so it should be able to drop new versions into the
  2343. "gtest" subdirectory without modification.
  2344. Java
  2345. * Fixed bug where Message.mergeFrom(Message) failed to merge extensions.
  2346. * Message interface has new method toBuilder() which is equivalent to
  2347. newBuilderForType().mergeFrom(this).
  2348. * All enums now implement the ProtocolMessageEnum interface.
  2349. * Setting a field to null now throws NullPointerException.
  2350. * Fixed tendency for TextFormat's parsing to overflow the stack when
  2351. parsing large string values. The underlying problem is with Java's
  2352. regex implementation (which unfortunately uses recursive backtracking
  2353. rather than building an NFA). Worked around by making use of possessive
  2354. quantifiers.
  2355. * Generated service classes now also generate pure interfaces. For a service
  2356. Foo, Foo.Interface is a pure interface containing all of the service's
  2357. defined methods. Foo.newReflectiveService() can be called to wrap an
  2358. instance of this interface in a class that implements the generic
  2359. RpcService interface, which provides reflection support that is usually
  2360. needed by RPC server implementations.
  2361. * RPC interfaces now support blocking operation in addition to non-blocking.
  2362. The protocol compiler generates separate blocking and non-blocking stubs
  2363. which operate against separate blocking and non-blocking RPC interfaces.
  2364. RPC implementations will have to implement the new interfaces in order to
  2365. support blocking mode.
  2366. * New I/O methods parseDelimitedFrom(), mergeDelimitedFrom(), and
  2367. writeDelimitedTo() read and write "delimited" messages from/to a stream,
  2368. meaning that the message size precedes the data. This way, you can write
  2369. multiple messages to a stream without having to worry about delimiting
  2370. them yourself.
  2371. * Throw a more descriptive exception when build() is double-called.
  2372. * Add a method to query whether CodedInputStream is at the end of the input
  2373. stream.
  2374. * Add a method to reset a CodedInputStream's size counter; useful when
  2375. reading many messages with the same stream.
  2376. * equals() and hashCode() now account for unknown fields.
  2377. Python
  2378. * Added slicing support for repeated scalar fields. Added slice retrieval and
  2379. removal of repeated composite fields.
  2380. * Updated RPC interfaces to allow for blocking operation. A client may
  2381. now pass None for a callback when making an RPC, in which case the
  2382. call will block until the response is received, and the response
  2383. object will be returned directly to the caller. This interface change
  2384. cannot be used in practice until RPC implementations are updated to
  2385. implement it.
  2386. * Changes to input_stream.py should make protobuf compatible with appengine.
  2387. 2008-11-25 version 2.0.3:
  2388. protoc
  2389. * Enum values may now have custom options, using syntax similar to field
  2390. options.
  2391. * Fixed bug where .proto files which use custom options but don't actually
  2392. define them (i.e. they import another .proto file defining the options)
  2393. had to explicitly import descriptor.proto.
  2394. * Adjacent string literals in .proto files will now be concatenated, like in
  2395. C.
  2396. * If an input file is a Windows absolute path (e.g. "C:\foo\bar.proto") and
  2397. the import path only contains "." (or contains "." but does not contain
  2398. the file), protoc incorrectly thought that the file was under ".", because
  2399. it thought that the path was relative (since it didn't start with a slash).
  2400. This has been fixed.
  2401. C++
  2402. * Generated message classes now have a Swap() method which efficiently swaps
  2403. the contents of two objects.
  2404. * All message classes now have a SpaceUsed() method which returns an estimate
  2405. of the number of bytes of allocated memory currently owned by the object.
  2406. This is particularly useful when you are reusing a single message object
  2407. to improve performance but want to make sure it doesn't bloat up too large.
  2408. * New method Message::SerializeAsString() returns a string containing the
  2409. serialized data. May be more convenient than calling
  2410. SerializeToString(string*).
  2411. * In debug mode, log error messages when string-type fields are found to
  2412. contain bytes that are not valid UTF-8.
  2413. * Fixed bug where a message with multiple extension ranges couldn't parse
  2414. extensions.
  2415. * Fixed bug where MergeFrom(const Message&) didn't do anything if invoked on
  2416. a message that contained no fields (but possibly contained extensions).
  2417. * Fixed ShortDebugString() to not be O(n^2). Durr.
  2418. * Fixed crash in TextFormat parsing if the first token in the input caused a
  2419. tokenization error.
  2420. * Fixed obscure bugs in zero_copy_stream_impl.cc.
  2421. * Added support for HP C++ on Tru64.
  2422. * Only build tests on "make check", not "make".
  2423. * Fixed alignment issue that caused crashes when using DynamicMessage on
  2424. 64-bit Sparc machines.
  2425. * Simplify template usage to work with MSVC 2003.
  2426. * Work around GCC 4.3.x x86_64 compiler bug that caused crashes on startup.
  2427. (This affected Fedora 9 in particular.)
  2428. * Now works on "Solaris 10 using recent Sun Studio".
  2429. Java
  2430. * New overload of mergeFrom() which parses a slice of a byte array instead
  2431. of the whole thing.
  2432. * New method ByteString.asReadOnlyByteBuffer() does what it sounds like.
  2433. * Improved performance of isInitialized() when optimizing for code size.
  2434. Python
  2435. * Corrected ListFields() signature in Message base class to match what
  2436. subclasses actually implement.
  2437. * Some minor refactoring.
  2438. * Don't pass self as first argument to superclass constructor (no longer
  2439. allowed in Python 2.6).
  2440. 2008-09-29 version 2.0.2:
  2441. General
  2442. * License changed from Apache 2.0 to 3-Clause BSD.
  2443. * It is now possible to define custom "options", which are basically
  2444. annotations which may be placed on definitions in a .proto file.
  2445. For example, you might define a field option called "foo" like so:
  2446. import "google/protobuf/descriptor.proto"
  2447. extend google.protobuf.FieldOptions {
  2448. optional string foo = 12345;
  2449. }
  2450. Then you annotate a field using the "foo" option:
  2451. message MyMessage {
  2452. optional int32 some_field = 1 [(foo) = "bar"]
  2453. }
  2454. The value of this option is then visible via the message's
  2455. Descriptor:
  2456. const FieldDescriptor* field =
  2457. MyMessage::descriptor()->FindFieldByName("some_field");
  2458. assert(field->options().GetExtension(foo) == "bar");
  2459. This feature has been implemented and tested in C++ and Java.
  2460. Other languages may or may not need to do extra work to support
  2461. custom options, depending on how they construct descriptors.
  2462. C++
  2463. * Fixed some GCC warnings that only occur when using -pedantic.
  2464. * Improved static initialization code, making ordering more
  2465. predictable among other things.
  2466. * TextFormat will no longer accept messages which contain multiple
  2467. instances of a singular field. Previously, the latter instance
  2468. would overwrite the former.
  2469. * Now works on systems that don't have hash_map.
  2470. Java
  2471. * Print @Override annotation in generated code where appropriate.
  2472. Python
  2473. * Strings now use the "unicode" type rather than the "str" type.
  2474. String fields may still be assigned ASCII "str" values; they will
  2475. automatically be converted.
  2476. * Adding a property to an object representing a repeated field now
  2477. raises an exception. For example:
  2478. # No longer works (and never should have).
  2479. message.some_repeated_field.foo = 1
  2480. Windows
  2481. * We now build static libraries rather than DLLs by default on MSVC.
  2482. See vsprojects/readme.txt for more information.
  2483. 2008-08-15 version 2.0.1:
  2484. protoc
  2485. * New flags --encode and --decode can be used to convert between protobuf text
  2486. format and binary format from the command-line.
  2487. * New flag --descriptor_set_out can be used to write FileDescriptorProtos for
  2488. all parsed files directly into a single output file. This is particularly
  2489. useful if you wish to parse .proto files from programs written in languages
  2490. other than C++: just run protoc as a background process and have it output
  2491. a FileDescriptorList, then parse that natively.
  2492. * Improved error message when an enum value's name conflicts with another
  2493. symbol defined in the enum type's scope, e.g. if two enum types declared
  2494. in the same scope have values with the same name. This is disallowed for
  2495. compatibility with C++, but this wasn't clear from the error.
  2496. * Fixed absolute output paths on Windows.
  2497. * Allow trailing slashes in --proto_path mappings.
  2498. C++
  2499. * Reflection objects are now per-class rather than per-instance. To make this
  2500. possible, the Reflection interface had to be changed such that all methods
  2501. take the Message instance as a parameter. This change improves performance
  2502. significantly in memory-bandwidth-limited use cases, since it makes the
  2503. message objects smaller. Note that source-incompatible interface changes
  2504. like this will not be made again after the library leaves beta.
  2505. * Heuristically detect sub-messages when printing unknown fields.
  2506. * Fix static initialization ordering bug that caused crashes at startup when
  2507. compiling on Mac with static linking.
  2508. * Fixed TokenizerTest when compiling with -DNDEBUG on Linux.
  2509. * Fixed incorrect definition of kint32min.
  2510. * Fix bytes type setter to work with byte sequences with embedded NULLs.
  2511. * Other irrelevant tweaks.
  2512. Java
  2513. * Fixed UnknownFieldSet's parsing of varints larger than 32 bits.
  2514. * Fixed TextFormat's parsing of "inf" and "nan".
  2515. * Fixed TextFormat's parsing of comments.
  2516. * Added info to Java POM that will be required when we upload the
  2517. package to a Maven repo.
  2518. Python
  2519. * MergeFrom(message) and CopyFrom(message) are now implemented.
  2520. * SerializeToString() raises an exception if the message is missing required
  2521. fields.
  2522. * Code organization improvements.
  2523. * Fixed doc comments for RpcController and RpcChannel, which had somehow been
  2524. swapped.
  2525. * Fixed text_format_test on Windows where floating-point exponents sometimes
  2526. contain extra zeros.
  2527. * Fix Python service CallMethod() implementation.
  2528. Other
  2529. * Improved readmes.
  2530. * VIM syntax highlighting improvements.
  2531. 2008-07-07 version 2.0.0:
  2532. * First public release.