blob: 427d3d26cde842b57d50d6971d4353fece8dab97 [file] [log] [blame]
kenton@google.com9f175282008-11-25 19:37:10 +000012008-11-25 version 2.0.3:
2
3 protoc
4 * Enum values may now have custom options, using syntax similar to field
5 options.
6 * Fixed bug where .proto files which use custom options but don't actually
7 define them (i.e. they import another .proto file defining the options)
8 had to explicitly import descriptor.proto.
9 * Adjacent string literals in .proto files will now be concatenated, like in
10 C.
kenton@google.com2f669cb2008-12-02 05:59:15 +000011 * If an input file is a Windows absolute path (e.g. "C:\foo\bar.proto") and
12 the import path only contains "." (or contains "." but does not contain
13 the file), protoc incorrectly thought that the file was under ".", because
14 it thought that the path was relative (since it didn't start with a slash).
15 This has been fixed.
kenton@google.com9f175282008-11-25 19:37:10 +000016
17 C++
18 * Generated message classes now have a Swap() method which efficiently swaps
19 the contents of two objects.
20 * All message classes now have a SpaceUsed() method which returns an estimate
21 of the number of bytes of allocated memory currently owned by the object.
22 This is particularly useful when you are reusing a single message object
23 to improve performance but want to make sure it doesn't bloat up too large.
24 * New method Message::SerializeAsString() returns a string containing the
25 serialized data. May be more convenient than calling
26 SerializeToString(string*).
27 * In debug mode, log error messages when string-type fields are found to
28 contain bytes that are not valid UTF-8.
29 * Fixed bug where a message with multiple extension ranges couldn't parse
30 extensions.
31 * Fixed bug where MergeFrom(const Message&) didn't do anything if invoked on
32 a message that contained no fields (but possibly contained extensions).
33 * Fixed ShortDebugString() to not be O(n^2). Durr.
34 * Fixed crash in TextFormat parsing if the first token in the input caused a
35 tokenization error.
36 * Fixed obscure bugs in zero_copy_stream_impl.cc.
37 * Added support for HP C++ on Tru64.
38 * Only build tests on "make check", not "make".
39 * Fixed alignment issue that caused crashes when using DynamicMessage on
40 64-bit Sparc machines.
41 * Simplify template usage to work with MSVC 2003.
42 * Work around GCC 4.3.x x86_64 compiler bug that caused crashes on startup.
43 (This affected Fedora 9 in particular.)
kenton@google.com25bc5cd2008-12-04 20:34:50 +000044 * Now works on "Solaris 10 using recent Sun Studio".
kenton@google.com9f175282008-11-25 19:37:10 +000045
46 Java
47 * New overload of mergeFrom() which parses a slice of a byte array instead
48 of the whole thing.
49 * New method ByteString.asReadOnlyByteBuffer() does what it sounds like.
50 * Improved performance of isInitialized() when optimizing for code size.
51
52 Python
53 * Corrected ListFields() signature in Message base class to match what
54 subclasses actually implement.
55 * Some minor refactoring.
kenton@google.com2f669cb2008-12-02 05:59:15 +000056 * Don't pass self as first argument to superclass constructor (no longer
57 allowed in Python 2.6).
kenton@google.com9f175282008-11-25 19:37:10 +000058
kenton@google.com9b10f582008-09-30 00:09:40 +0000592008-09-29 version 2.0.2:
60
kenton@google.com24bf56f2008-09-24 20:31:01 +000061 General
62 * License changed from Apache 2.0 to New BSD.
63 * It is now possible to define custom "options", which are basically
64 annotations which may be placed on definitions in a .proto file.
65 For example, you might define a field option called "foo" like so:
66 import "google/protobuf/descriptor.proto"
67 extend google.protobuf.FieldOptions {
68 optional string foo = 12345;
69 }
70 Then you annotate a field using the "foo" option:
71 message MyMessage {
72 optional int32 some_field = 1 [(foo) = "bar"]
73 }
74 The value of this option is then visible via the message's
75 Descriptor:
76 const FieldDescriptor* field =
77 MyMessage::descriptor()->FindFieldByName("some_field");
78 assert(field->options().GetExtension(foo) == "bar");
79 This feature has been implemented and tested in C++ and Java.
80 Other languages may or may not need to do extra work to support
81 custom options, depending on how they construct descriptors.
82
83 C++
84 * Fixed some GCC warnings that only occur when using -pedantic.
85 * Improved static initialization code, making ordering more
86 predictable among other things.
87 * TextFormat will no longer accept messages which contain multiple
88 instances of a singular field. Previously, the latter instance
kenton@google.com9b10f582008-09-30 00:09:40 +000089 would overwrite the former.
kenton@google.com24bf56f2008-09-24 20:31:01 +000090 * Now works on systems that don't have hash_map.
91
kenton@google.com9b10f582008-09-30 00:09:40 +000092 Java
93 * Print @Override annotation in generated code where appropriate.
94
kenton@google.com24bf56f2008-09-24 20:31:01 +000095 Python
96 * Strings now use the "unicode" type rather than the "str" type.
97 String fields may still be assigned ASCII "str" values; they will
98 automatically be converted.
99 * Adding a property to an object representing a repeated field now
100 raises an exception. For example:
101 # No longer works (and never should have).
102 message.some_repeated_field.foo = 1
kenton@google.com9b10f582008-09-30 00:09:40 +0000103
104 Windows
105 * We now build static libraries rather than DLLs by default on MSVC.
106 See vsprojects/readme.txt for more information.
107
temporala44f3c32008-08-15 18:32:02 +00001082008-08-15 version 2.0.1:
kenton@google.com9b10f582008-09-30 00:09:40 +0000109
110 protoc
111 * New flags --encode and --decode can be used to convert between protobuf text
112 format and binary format from the command-line.
113 * New flag --descriptor_set_out can be used to write FileDescriptorProtos for
114 all parsed files directly into a single output file. This is particularly
115 useful if you wish to parse .proto files from programs written in languages
116 other than C++: just run protoc as a background process and have it output
117 a FileDescriptorList, then parse that natively.
118 * Improved error message when an enum value's name conflicts with another
119 symbol defined in the enum type's scope, e.g. if two enum types declared
120 in the same scope have values with the same name. This is disallowed for
temporala44f3c32008-08-15 18:32:02 +0000121 compatibility with C++, but this wasn't clear from the error.
kenton@google.com9b10f582008-09-30 00:09:40 +0000122 * Fixed absolute output paths on Windows.
temporala44f3c32008-08-15 18:32:02 +0000123 * Allow trailing slashes in --proto_path mappings.
kenton@google.com9b10f582008-09-30 00:09:40 +0000124
125 C++
126 * Reflection objects are now per-class rather than per-instance. To make this
127 possible, the Reflection interface had to be changed such that all methods
128 take the Message instance as a parameter. This change improves performance
129 significantly in memory-bandwidth-limited use cases, since it makes the
130 message objects smaller. Note that source-incompatible interface changes
131 like this will not be made again after the library leaves beta.
temporala44f3c32008-08-15 18:32:02 +0000132 * Heuristically detect sub-messages when printing unknown fields.
kenton@google.com9b10f582008-09-30 00:09:40 +0000133 * Fix static initialization ordering bug that caused crashes at startup when
temporala44f3c32008-08-15 18:32:02 +0000134 compiling on Mac with static linking.
kenton@google.com9b10f582008-09-30 00:09:40 +0000135 * Fixed TokenizerTest when compiling with -DNDEBUG on Linux.
136 * Fixed incorrect definition of kint32min.
temporala44f3c32008-08-15 18:32:02 +0000137 * Fix bytes type setter to work with byte sequences with embedded NULLs.
138 * Other irrelevant tweaks.
139
kenton@google.com9b10f582008-09-30 00:09:40 +0000140 Java
141 * Fixed UnknownFieldSet's parsing of varints larger than 32 bits.
142 * Fixed TextFormat's parsing of "inf" and "nan".
143 * Fixed TextFormat's parsing of comments.
144 * Added info to Java POM that will be required when we upload the
temporala44f3c32008-08-15 18:32:02 +0000145 package to a Maven repo.
146
kenton@google.com9b10f582008-09-30 00:09:40 +0000147 Python
148 * MergeFrom(message) and CopyFrom(message) are now implemented.
149 * SerializeToString() raises an exception if the message is missing required
150 fields.
151 * Code organization improvements.
152 * Fixed doc comments for RpcController and RpcChannel, which had somehow been
temporala44f3c32008-08-15 18:32:02 +0000153 swapped.
kenton@google.com9b10f582008-09-30 00:09:40 +0000154 * Fixed text_format_test on Windows where floating-point exponents sometimes
155 contain extra zeros.
temporala44f3c32008-08-15 18:32:02 +0000156 * Fix Python service CallMethod() implementation.
157
158 Other
159 * Improved readmes.
160 * VIM syntax highlighting improvements.
161
temporal40ee5512008-07-10 02:12:20 +00001622008-07-07 version 2.0.0:
163
164 * First public release.