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