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