blob: 2a86a63c5a45d1c9952a542529975aea3c3e5e7a [file] [log] [blame]
kenton@google.com2d6daa72009-01-22 01:27:00 +00001????-??-?? version 2.0.4:
2
3 General
4 * Repeated fields of primitive types (types other that string, group, and
5 nested messages) may now use the option [packed = true] to get a more
6 efficient encoding. In the new encoding, the entire list is written
7 as a single byte blob using the "length-delimited" wire type. Within
8 this blob, the individual values are encoded the same way they would
9 be normally except without a tag before each value (thus, they are
10 tightly "packed").
11
12 C++
13 * UnknownFieldSet now supports STL-like iteration.
14 * Message interface has method ParseFromBoundedZeroCopyStream() which parses
15 a limited number of bytes from an input stream rather than parsing until
16 EOF.
17
18 Java
19 * Fixed bug where Message.mergeFrom(Message) failed to merge extensions.
20 * Message interface has new method toBuilder() which is equivalent to
21 newBuilderForType().mergeFrom(this).
22 * All enums now implement the ProtocolMessageEnum interface.
23 * Setting a field to null now throws NullPointerException.
24 * Fixed tendency for TextFormat's parsing to overflow the stack when
25 parsing large string values. The underlying problem is with Java's
26 regex implementation (which unfortunately uses recursive backtracking
27 rather than building an NFA). Worked around by making use of possesive
28 quantifiers.
pesho.petrov87e64e12008-12-24 01:07:22 +000029
30 Python
31 * Added slicing support for repeated scalar fields. Added slice retrieval and
32 removal of repeated composite fields.
kenton@google.com2d6daa72009-01-22 01:27:00 +000033 * Updated RPC interfaces to allow for blocking operation. A client may
34 now pass None for a callback when making an RPC, in which case the
35 call will block until the response is received, and the response
36 object will be returned directly to the caller. This interface change
37 cannot be used in practice until RPC implementations are updated to
38 implement it.
pesho.petrov87e64e12008-12-24 01:07:22 +000039
kenton@google.com9f175282008-11-25 19:37:10 +0000402008-11-25 version 2.0.3:
41
42 protoc
43 * Enum values may now have custom options, using syntax similar to field
44 options.
45 * Fixed bug where .proto files which use custom options but don't actually
46 define them (i.e. they import another .proto file defining the options)
47 had to explicitly import descriptor.proto.
48 * Adjacent string literals in .proto files will now be concatenated, like in
49 C.
kenton@google.com2f669cb2008-12-02 05:59:15 +000050 * If an input file is a Windows absolute path (e.g. "C:\foo\bar.proto") and
51 the import path only contains "." (or contains "." but does not contain
52 the file), protoc incorrectly thought that the file was under ".", because
53 it thought that the path was relative (since it didn't start with a slash).
54 This has been fixed.
kenton@google.com9f175282008-11-25 19:37:10 +000055
56 C++
57 * Generated message classes now have a Swap() method which efficiently swaps
58 the contents of two objects.
59 * All message classes now have a SpaceUsed() method which returns an estimate
60 of the number of bytes of allocated memory currently owned by the object.
61 This is particularly useful when you are reusing a single message object
62 to improve performance but want to make sure it doesn't bloat up too large.
63 * New method Message::SerializeAsString() returns a string containing the
64 serialized data. May be more convenient than calling
65 SerializeToString(string*).
66 * In debug mode, log error messages when string-type fields are found to
67 contain bytes that are not valid UTF-8.
68 * Fixed bug where a message with multiple extension ranges couldn't parse
69 extensions.
70 * Fixed bug where MergeFrom(const Message&) didn't do anything if invoked on
71 a message that contained no fields (but possibly contained extensions).
72 * Fixed ShortDebugString() to not be O(n^2). Durr.
73 * Fixed crash in TextFormat parsing if the first token in the input caused a
74 tokenization error.
75 * Fixed obscure bugs in zero_copy_stream_impl.cc.
76 * Added support for HP C++ on Tru64.
77 * Only build tests on "make check", not "make".
78 * Fixed alignment issue that caused crashes when using DynamicMessage on
79 64-bit Sparc machines.
80 * Simplify template usage to work with MSVC 2003.
81 * Work around GCC 4.3.x x86_64 compiler bug that caused crashes on startup.
82 (This affected Fedora 9 in particular.)
kenton@google.com25bc5cd2008-12-04 20:34:50 +000083 * Now works on "Solaris 10 using recent Sun Studio".
kenton@google.com9f175282008-11-25 19:37:10 +000084
85 Java
86 * New overload of mergeFrom() which parses a slice of a byte array instead
87 of the whole thing.
88 * New method ByteString.asReadOnlyByteBuffer() does what it sounds like.
89 * Improved performance of isInitialized() when optimizing for code size.
90
91 Python
92 * Corrected ListFields() signature in Message base class to match what
93 subclasses actually implement.
94 * Some minor refactoring.
kenton@google.com2f669cb2008-12-02 05:59:15 +000095 * Don't pass self as first argument to superclass constructor (no longer
96 allowed in Python 2.6).
kenton@google.com9f175282008-11-25 19:37:10 +000097
kenton@google.com9b10f582008-09-30 00:09:40 +0000982008-09-29 version 2.0.2:
99
kenton@google.com24bf56f2008-09-24 20:31:01 +0000100 General
101 * License changed from Apache 2.0 to New BSD.
102 * It is now possible to define custom "options", which are basically
103 annotations which may be placed on definitions in a .proto file.
104 For example, you might define a field option called "foo" like so:
105 import "google/protobuf/descriptor.proto"
106 extend google.protobuf.FieldOptions {
107 optional string foo = 12345;
108 }
109 Then you annotate a field using the "foo" option:
110 message MyMessage {
111 optional int32 some_field = 1 [(foo) = "bar"]
112 }
113 The value of this option is then visible via the message's
114 Descriptor:
115 const FieldDescriptor* field =
116 MyMessage::descriptor()->FindFieldByName("some_field");
117 assert(field->options().GetExtension(foo) == "bar");
118 This feature has been implemented and tested in C++ and Java.
119 Other languages may or may not need to do extra work to support
120 custom options, depending on how they construct descriptors.
121
122 C++
123 * Fixed some GCC warnings that only occur when using -pedantic.
124 * Improved static initialization code, making ordering more
125 predictable among other things.
126 * TextFormat will no longer accept messages which contain multiple
127 instances of a singular field. Previously, the latter instance
kenton@google.com9b10f582008-09-30 00:09:40 +0000128 would overwrite the former.
kenton@google.com24bf56f2008-09-24 20:31:01 +0000129 * Now works on systems that don't have hash_map.
130
kenton@google.com9b10f582008-09-30 00:09:40 +0000131 Java
132 * Print @Override annotation in generated code where appropriate.
133
kenton@google.com24bf56f2008-09-24 20:31:01 +0000134 Python
135 * Strings now use the "unicode" type rather than the "str" type.
136 String fields may still be assigned ASCII "str" values; they will
137 automatically be converted.
138 * Adding a property to an object representing a repeated field now
139 raises an exception. For example:
140 # No longer works (and never should have).
141 message.some_repeated_field.foo = 1
kenton@google.com9b10f582008-09-30 00:09:40 +0000142
143 Windows
144 * We now build static libraries rather than DLLs by default on MSVC.
145 See vsprojects/readme.txt for more information.
146
temporala44f3c32008-08-15 18:32:02 +00001472008-08-15 version 2.0.1:
kenton@google.com9b10f582008-09-30 00:09:40 +0000148
149 protoc
150 * New flags --encode and --decode can be used to convert between protobuf text
151 format and binary format from the command-line.
152 * New flag --descriptor_set_out can be used to write FileDescriptorProtos for
153 all parsed files directly into a single output file. This is particularly
154 useful if you wish to parse .proto files from programs written in languages
155 other than C++: just run protoc as a background process and have it output
156 a FileDescriptorList, then parse that natively.
157 * Improved error message when an enum value's name conflicts with another
158 symbol defined in the enum type's scope, e.g. if two enum types declared
159 in the same scope have values with the same name. This is disallowed for
temporala44f3c32008-08-15 18:32:02 +0000160 compatibility with C++, but this wasn't clear from the error.
kenton@google.com9b10f582008-09-30 00:09:40 +0000161 * Fixed absolute output paths on Windows.
temporala44f3c32008-08-15 18:32:02 +0000162 * Allow trailing slashes in --proto_path mappings.
kenton@google.com9b10f582008-09-30 00:09:40 +0000163
164 C++
165 * Reflection objects are now per-class rather than per-instance. To make this
166 possible, the Reflection interface had to be changed such that all methods
167 take the Message instance as a parameter. This change improves performance
168 significantly in memory-bandwidth-limited use cases, since it makes the
169 message objects smaller. Note that source-incompatible interface changes
170 like this will not be made again after the library leaves beta.
temporala44f3c32008-08-15 18:32:02 +0000171 * Heuristically detect sub-messages when printing unknown fields.
kenton@google.com9b10f582008-09-30 00:09:40 +0000172 * Fix static initialization ordering bug that caused crashes at startup when
temporala44f3c32008-08-15 18:32:02 +0000173 compiling on Mac with static linking.
kenton@google.com9b10f582008-09-30 00:09:40 +0000174 * Fixed TokenizerTest when compiling with -DNDEBUG on Linux.
175 * Fixed incorrect definition of kint32min.
temporala44f3c32008-08-15 18:32:02 +0000176 * Fix bytes type setter to work with byte sequences with embedded NULLs.
177 * Other irrelevant tweaks.
178
kenton@google.com9b10f582008-09-30 00:09:40 +0000179 Java
180 * Fixed UnknownFieldSet's parsing of varints larger than 32 bits.
181 * Fixed TextFormat's parsing of "inf" and "nan".
182 * Fixed TextFormat's parsing of comments.
183 * Added info to Java POM that will be required when we upload the
temporala44f3c32008-08-15 18:32:02 +0000184 package to a Maven repo.
185
kenton@google.com9b10f582008-09-30 00:09:40 +0000186 Python
187 * MergeFrom(message) and CopyFrom(message) are now implemented.
188 * SerializeToString() raises an exception if the message is missing required
189 fields.
190 * Code organization improvements.
191 * Fixed doc comments for RpcController and RpcChannel, which had somehow been
temporala44f3c32008-08-15 18:32:02 +0000192 swapped.
kenton@google.com9b10f582008-09-30 00:09:40 +0000193 * Fixed text_format_test on Windows where floating-point exponents sometimes
194 contain extra zeros.
temporala44f3c32008-08-15 18:32:02 +0000195 * Fix Python service CallMethod() implementation.
196
197 Other
198 * Improved readmes.
199 * VIM syntax highlighting improvements.
200
temporal40ee5512008-07-10 02:12:20 +00002012008-07-07 version 2.0.0:
202
203 * First public release.