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