blob: 35ddd537600e209a1df4a8704bf004f15c3ab04f [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
kenton@google.comf663b162009-04-15 19:50:54 +000012 protoc
13 * --error_format=msvs option causes errors to be printed in Visual Studio
14 format, which should allow them to be clicked on in the build log to go
15 directly to the error location.
16
kenton@google.com2d6daa72009-01-22 01:27:00 +000017 C++
18 * UnknownFieldSet now supports STL-like iteration.
19 * Message interface has method ParseFromBoundedZeroCopyStream() which parses
20 a limited number of bytes from an input stream rather than parsing until
21 EOF.
kenton@google.come59427a2009-04-16 22:30:56 +000022 * GzipInputStream and GzipOutputStream support reading/writing gzip- or
23 zlib-compressed streams if zlib is available.
24 (google/protobuf/io/gzip_stream.h)
kenton@google.com2d6daa72009-01-22 01:27:00 +000025
26 Java
27 * Fixed bug where Message.mergeFrom(Message) failed to merge extensions.
28 * Message interface has new method toBuilder() which is equivalent to
29 newBuilderForType().mergeFrom(this).
30 * All enums now implement the ProtocolMessageEnum interface.
31 * Setting a field to null now throws NullPointerException.
32 * Fixed tendency for TextFormat's parsing to overflow the stack when
33 parsing large string values. The underlying problem is with Java's
34 regex implementation (which unfortunately uses recursive backtracking
35 rather than building an NFA). Worked around by making use of possesive
36 quantifiers.
pesho.petrov87e64e12008-12-24 01:07:22 +000037
38 Python
39 * Added slicing support for repeated scalar fields. Added slice retrieval and
40 removal of repeated composite fields.
kenton@google.com2d6daa72009-01-22 01:27:00 +000041 * Updated RPC interfaces to allow for blocking operation. A client may
42 now pass None for a callback when making an RPC, in which case the
43 call will block until the response is received, and the response
44 object will be returned directly to the caller. This interface change
45 cannot be used in practice until RPC implementations are updated to
46 implement it.
pesho.petrov87e64e12008-12-24 01:07:22 +000047
kenton@google.com9f175282008-11-25 19:37:10 +0000482008-11-25 version 2.0.3:
49
50 protoc
51 * Enum values may now have custom options, using syntax similar to field
52 options.
53 * Fixed bug where .proto files which use custom options but don't actually
54 define them (i.e. they import another .proto file defining the options)
55 had to explicitly import descriptor.proto.
56 * Adjacent string literals in .proto files will now be concatenated, like in
57 C.
kenton@google.com2f669cb2008-12-02 05:59:15 +000058 * If an input file is a Windows absolute path (e.g. "C:\foo\bar.proto") and
59 the import path only contains "." (or contains "." but does not contain
60 the file), protoc incorrectly thought that the file was under ".", because
61 it thought that the path was relative (since it didn't start with a slash).
62 This has been fixed.
kenton@google.com9f175282008-11-25 19:37:10 +000063
64 C++
65 * Generated message classes now have a Swap() method which efficiently swaps
66 the contents of two objects.
67 * All message classes now have a SpaceUsed() method which returns an estimate
68 of the number of bytes of allocated memory currently owned by the object.
69 This is particularly useful when you are reusing a single message object
70 to improve performance but want to make sure it doesn't bloat up too large.
71 * New method Message::SerializeAsString() returns a string containing the
72 serialized data. May be more convenient than calling
73 SerializeToString(string*).
74 * In debug mode, log error messages when string-type fields are found to
75 contain bytes that are not valid UTF-8.
76 * Fixed bug where a message with multiple extension ranges couldn't parse
77 extensions.
78 * Fixed bug where MergeFrom(const Message&) didn't do anything if invoked on
79 a message that contained no fields (but possibly contained extensions).
80 * Fixed ShortDebugString() to not be O(n^2). Durr.
81 * Fixed crash in TextFormat parsing if the first token in the input caused a
82 tokenization error.
83 * Fixed obscure bugs in zero_copy_stream_impl.cc.
84 * Added support for HP C++ on Tru64.
85 * Only build tests on "make check", not "make".
86 * Fixed alignment issue that caused crashes when using DynamicMessage on
87 64-bit Sparc machines.
88 * Simplify template usage to work with MSVC 2003.
89 * Work around GCC 4.3.x x86_64 compiler bug that caused crashes on startup.
90 (This affected Fedora 9 in particular.)
kenton@google.com25bc5cd2008-12-04 20:34:50 +000091 * Now works on "Solaris 10 using recent Sun Studio".
kenton@google.com9f175282008-11-25 19:37:10 +000092
93 Java
94 * New overload of mergeFrom() which parses a slice of a byte array instead
95 of the whole thing.
96 * New method ByteString.asReadOnlyByteBuffer() does what it sounds like.
97 * Improved performance of isInitialized() when optimizing for code size.
98
99 Python
100 * Corrected ListFields() signature in Message base class to match what
101 subclasses actually implement.
102 * Some minor refactoring.
kenton@google.com2f669cb2008-12-02 05:59:15 +0000103 * Don't pass self as first argument to superclass constructor (no longer
104 allowed in Python 2.6).
kenton@google.com9f175282008-11-25 19:37:10 +0000105
kenton@google.com9b10f582008-09-30 00:09:40 +00001062008-09-29 version 2.0.2:
107
kenton@google.com24bf56f2008-09-24 20:31:01 +0000108 General
109 * License changed from Apache 2.0 to New BSD.
110 * It is now possible to define custom "options", which are basically
111 annotations which may be placed on definitions in a .proto file.
112 For example, you might define a field option called "foo" like so:
113 import "google/protobuf/descriptor.proto"
114 extend google.protobuf.FieldOptions {
115 optional string foo = 12345;
116 }
117 Then you annotate a field using the "foo" option:
118 message MyMessage {
119 optional int32 some_field = 1 [(foo) = "bar"]
120 }
121 The value of this option is then visible via the message's
122 Descriptor:
123 const FieldDescriptor* field =
124 MyMessage::descriptor()->FindFieldByName("some_field");
125 assert(field->options().GetExtension(foo) == "bar");
126 This feature has been implemented and tested in C++ and Java.
127 Other languages may or may not need to do extra work to support
128 custom options, depending on how they construct descriptors.
129
130 C++
131 * Fixed some GCC warnings that only occur when using -pedantic.
132 * Improved static initialization code, making ordering more
133 predictable among other things.
134 * TextFormat will no longer accept messages which contain multiple
135 instances of a singular field. Previously, the latter instance
kenton@google.com9b10f582008-09-30 00:09:40 +0000136 would overwrite the former.
kenton@google.com24bf56f2008-09-24 20:31:01 +0000137 * Now works on systems that don't have hash_map.
138
kenton@google.com9b10f582008-09-30 00:09:40 +0000139 Java
140 * Print @Override annotation in generated code where appropriate.
141
kenton@google.com24bf56f2008-09-24 20:31:01 +0000142 Python
143 * Strings now use the "unicode" type rather than the "str" type.
144 String fields may still be assigned ASCII "str" values; they will
145 automatically be converted.
146 * Adding a property to an object representing a repeated field now
147 raises an exception. For example:
148 # No longer works (and never should have).
149 message.some_repeated_field.foo = 1
kenton@google.com9b10f582008-09-30 00:09:40 +0000150
151 Windows
152 * We now build static libraries rather than DLLs by default on MSVC.
153 See vsprojects/readme.txt for more information.
154
temporala44f3c32008-08-15 18:32:02 +00001552008-08-15 version 2.0.1:
kenton@google.com9b10f582008-09-30 00:09:40 +0000156
157 protoc
158 * New flags --encode and --decode can be used to convert between protobuf text
159 format and binary format from the command-line.
160 * New flag --descriptor_set_out can be used to write FileDescriptorProtos for
161 all parsed files directly into a single output file. This is particularly
162 useful if you wish to parse .proto files from programs written in languages
163 other than C++: just run protoc as a background process and have it output
164 a FileDescriptorList, then parse that natively.
165 * Improved error message when an enum value's name conflicts with another
166 symbol defined in the enum type's scope, e.g. if two enum types declared
167 in the same scope have values with the same name. This is disallowed for
temporala44f3c32008-08-15 18:32:02 +0000168 compatibility with C++, but this wasn't clear from the error.
kenton@google.com9b10f582008-09-30 00:09:40 +0000169 * Fixed absolute output paths on Windows.
temporala44f3c32008-08-15 18:32:02 +0000170 * Allow trailing slashes in --proto_path mappings.
kenton@google.com9b10f582008-09-30 00:09:40 +0000171
172 C++
173 * Reflection objects are now per-class rather than per-instance. To make this
174 possible, the Reflection interface had to be changed such that all methods
175 take the Message instance as a parameter. This change improves performance
176 significantly in memory-bandwidth-limited use cases, since it makes the
177 message objects smaller. Note that source-incompatible interface changes
178 like this will not be made again after the library leaves beta.
temporala44f3c32008-08-15 18:32:02 +0000179 * Heuristically detect sub-messages when printing unknown fields.
kenton@google.com9b10f582008-09-30 00:09:40 +0000180 * Fix static initialization ordering bug that caused crashes at startup when
temporala44f3c32008-08-15 18:32:02 +0000181 compiling on Mac with static linking.
kenton@google.com9b10f582008-09-30 00:09:40 +0000182 * Fixed TokenizerTest when compiling with -DNDEBUG on Linux.
183 * Fixed incorrect definition of kint32min.
temporala44f3c32008-08-15 18:32:02 +0000184 * Fix bytes type setter to work with byte sequences with embedded NULLs.
185 * Other irrelevant tweaks.
186
kenton@google.com9b10f582008-09-30 00:09:40 +0000187 Java
188 * Fixed UnknownFieldSet's parsing of varints larger than 32 bits.
189 * Fixed TextFormat's parsing of "inf" and "nan".
190 * Fixed TextFormat's parsing of comments.
191 * Added info to Java POM that will be required when we upload the
temporala44f3c32008-08-15 18:32:02 +0000192 package to a Maven repo.
193
kenton@google.com9b10f582008-09-30 00:09:40 +0000194 Python
195 * MergeFrom(message) and CopyFrom(message) are now implemented.
196 * SerializeToString() raises an exception if the message is missing required
197 fields.
198 * Code organization improvements.
199 * Fixed doc comments for RpcController and RpcChannel, which had somehow been
temporala44f3c32008-08-15 18:32:02 +0000200 swapped.
kenton@google.com9b10f582008-09-30 00:09:40 +0000201 * Fixed text_format_test on Windows where floating-point exponents sometimes
202 contain extra zeros.
temporala44f3c32008-08-15 18:32:02 +0000203 * Fix Python service CallMethod() implementation.
204
205 Other
206 * Improved readmes.
207 * VIM syntax highlighting improvements.
208
temporal40ee5512008-07-10 02:12:20 +00002092008-07-07 version 2.0.0:
210
211 * First public release.