Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

528 lines
25 KiB

  1. 2013-02-27 version 2.5.0:
  2. General
  3. * New notion "import public" that allows a proto file to forward the content
  4. it imports to its importers. For example,
  5. // foo.proto
  6. import public "bar.proto";
  7. import "baz.proto";
  8. // qux.proto
  9. import "foo.proto";
  10. // Stuff defined in bar.proto may be used in this file, but stuff from
  11. // baz.proto may NOT be used without importing it explicitly.
  12. This is useful for moving proto files. To move a proto file, just leave
  13. a single "import public" in the old proto file.
  14. * New enum option "allow_alias" that specifies whether different symbols can
  15. be assigned the same numeric value. Default value is "true". Setting it to
  16. false causes the compiler to reject enum definitions where multiple symbols
  17. have the same numeric value.
  18. C++
  19. * New generated method set_allocated_foo(Type* foo) for message and string
  20. fields. This method allows you to set the field to a pre-allocated object
  21. and the containing message takes the ownership of that object.
  22. * Added SetAllocatedExtension() and ReleaseExtension() to extensions API.
  23. * Custom options are now formatted correctly when descriptors are printed in
  24. text format.
  25. * Various speed optimizations.
  26. Java
  27. * Comments in proto files are now collected and put into generated code as
  28. comments for corresponding classes and data members.
  29. * Added Parser to parse directly into messages without a Builder. For
  30. example,
  31. Foo foo = Foo.getParser().ParseFrom(input);
  32. Using Parser is ~25% faster than using Builder to parse messages.
  33. * Added getters/setters to access the underlying ByteString of a string field
  34. directly.
  35. * ByteString now supports more operations: substring(), prepend(), and
  36. append(). The implementation of ByteString uses a binary tree structure
  37. to support these operations efficiently.
  38. * New method findInitializationErrors() that lists all missing required
  39. fields.
  40. * Various code size and speed optimizations.
  41. Python
  42. * Added support for dynamic message creation. DescriptorDatabase,
  43. DescriptorPool, and MessageFactory work like their C++ couterparts to
  44. simplify Descriptor construction from *DescriptorProtos, and MessageFactory
  45. provides a message instance from a Descriptor.
  46. * Added pickle support for protobuf messages.
  47. * Unknown fields are now preserved after parsing.
  48. * Fixed bug where custom options were not correctly populated. Custom
  49. options can be accessed now.
  50. * Added EnumTypeWrapper that provides better accessibility to enum types.
  51. * Added ParseMessage(descriptor, bytes) to generate a new Message instance
  52. from a descriptor and a byte string.
  53. 2011-05-01 version 2.4.1:
  54. C++
  55. * Fixed the frendship problem for old compilers to make the library now gcc 3
  56. compatible again.
  57. * Fixed vcprojects/extract_includes.bat to extract compiler/plugin.h.
  58. Java
  59. * Removed usages of JDK 1.6 only features to make the library now JDK 1.5
  60. compatible again.
  61. * Fixed a bug about negative enum values.
  62. * serialVersionUID is now defined in generated messages for java serializing.
  63. * Fixed protoc to use java.lang.Object, which makes "Object" now a valid
  64. message name again.
  65. Python
  66. * Experimental C++ implementation now requires C++ protobuf library installed.
  67. See the README.txt in the python directory for details.
  68. 2011-02-02 version 2.4.0:
  69. General
  70. * The RPC (cc|java|py)_generic_services default value is now false instead of
  71. true.
  72. * Custom options can have aggregate types. For example,
  73. message MyOption {
  74. optional string comment = 1;
  75. optional string author = 2;
  76. }
  77. extend google.protobuf.FieldOptions {
  78. optional MyOption myoption = 12345;
  79. }
  80. This option can now be set as follows:
  81. message SomeType {
  82. optional int32 field = 1 [(myoption) = { comment:'x' author:'y' }];
  83. }
  84. C++
  85. * Various speed and code size optimizations.
  86. * Added a release_foo() method on string and message fields.
  87. * Fixed gzip_output_stream sub-stream handling.
  88. Java
  89. * Builders now maintain sub-builders for sub-messages. Use getFooBuilder() to
  90. get the builder for the sub-message "foo". This allows you to repeatedly
  91. modify deeply-nested sub-messages without rebuilding them.
  92. * Builder.build() no longer invalidates the Builder for generated messages
  93. (You may continue to modify it and then build another message).
  94. * Code generator will generate efficient equals() and hashCode()
  95. implementations if new option java_generate_equals_and_hash is enabled.
  96. (Otherwise, reflection-based implementations are used.)
  97. * Generated messages now implement Serializable.
  98. * Fields with [deprecated=true] will be marked with @Deprecated in Java.
  99. * Added lazy conversion of UTF-8 encoded strings to String objects to improve
  100. performance.
  101. * Various optimizations.
  102. * Enum value can be accessed directly, instead of calling getNumber() on the
  103. enum member.
  104. * For each enum value, an integer constant is also generated with the suffix
  105. _VALUE.
  106. Python
  107. * Added an experimental C++ implementation for Python messages via a Python
  108. extension. Implementation type is controlled by an environment variable
  109. PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION (valid values: "cpp" and "python")
  110. The default value is currently "python" but will be changed to "cpp" in
  111. future release.
  112. * Improved performance on message instantiation significantly.
  113. Most of the work on message instantiation is done just once per message
  114. class, instead of once per message instance.
  115. * Improved performance on text message parsing.
  116. * Allow add() to forward keyword arguments to the concrete class.
  117. E.g. instead of
  118. item = repeated_field.add()
  119. item.foo = bar
  120. item.baz = quux
  121. You can do:
  122. repeated_field.add(foo=bar, baz=quux)
  123. * Added a sort() interface to the BaseContainer.
  124. * Added an extend() method to repeated composite fields.
  125. * Added UTF8 debug string support.
  126. 2010-01-08 version 2.3.0:
  127. General
  128. * Parsers for repeated numeric fields now always accept both packed and
  129. unpacked input. The [packed=true] option only affects serializers.
  130. Therefore, it is possible to switch a field to packed format without
  131. breaking backwards-compatibility -- as long as all parties are using
  132. protobuf 2.3.0 or above, at least.
  133. * The generic RPC service code generated by the C++, Java, and Python
  134. generators can be disabled via file options:
  135. option cc_generic_services = false;
  136. option java_generic_services = false;
  137. option py_generic_services = false;
  138. This allows plugins to generate alternative code, possibly specific to some
  139. particular RPC implementation.
  140. protoc
  141. * Now supports a plugin system for code generators. Plugins can generate
  142. code for new languages or inject additional code into the output of other
  143. code generators. Plugins are just binaries which accept a protocol buffer
  144. on stdin and write a protocol buffer to stdout, so they may be written in
  145. any language. See src/google/protobuf/compiler/plugin.proto.
  146. **WARNING**: Plugins are experimental. The interface may change in a
  147. future version.
  148. * If the output location ends in .zip or .jar, protoc will write its output
  149. to a zip/jar archive instead of a directory. For example:
  150. protoc --java_out=myproto_srcs.jar --python_out=myproto.zip myproto.proto
  151. Currently the archive contents are not compressed, though this could change
  152. in the future.
  153. * inf, -inf, and nan can now be used as default values for float and double
  154. fields.
  155. C++
  156. * Various speed and code size optimizations.
  157. * DynamicMessageFactory is now fully thread-safe.
  158. * Message::Utf8DebugString() method is like DebugString() but avoids escaping
  159. UTF-8 bytes.
  160. * Compiled-in message types can now contain dynamic extensions, through use
  161. of CodedInputStream::SetExtensionRegistry().
  162. * Now compiles shared libraries (DLLs) by default on Cygwin and MinGW, to
  163. match other platforms. Use --disable-shared to avoid this.
  164. Java
  165. * parseDelimitedFrom() and mergeDelimitedFrom() now detect EOF and return
  166. false/null instead of throwing an exception.
  167. * Fixed some initialization ordering bugs.
  168. * Fixes for OpenJDK 7.
  169. Python
  170. * 10-25 times faster than 2.2.0, still pure-Python.
  171. * Calling a mutating method on a sub-message always instantiates the message
  172. in its parent even if the mutating method doesn't actually mutate anything
  173. (e.g. parsing from an empty string).
  174. * Expanded descriptors a bit.
  175. 2009-08-11 version 2.2.0:
  176. C++
  177. * Lite mode: The "optimize_for = LITE_RUNTIME" option causes the compiler
  178. to generate code which only depends libprotobuf-lite, which is much smaller
  179. than libprotobuf but lacks descriptors, reflection, and some other features.
  180. * Fixed bug where Message.Swap(Message) was only implemented for
  181. optimize_for_speed. Swap now properly implemented in both modes
  182. (Issue 91).
  183. * Added RemoveLast and SwapElements(index1, index2) to Reflection
  184. interface for repeated elements.
  185. * Added Swap(Message) to Reflection interface.
  186. * Floating-point literals in generated code that are intended to be
  187. single-precision now explicitly have 'f' suffix to avoid pedantic warnings
  188. produced by some compilers.
  189. * The [deprecated=true] option now causes the C++ code generator to generate
  190. a GCC-style deprecation annotation (no-op on other compilers).
  191. * google::protobuf::GetEnumDescriptor<SomeGeneratedEnumType>() returns the
  192. EnumDescriptor for that type -- useful for templates which cannot call
  193. SomeGeneratedEnumType_descriptor().
  194. * Various optimizations and obscure bug fixes.
  195. Java
  196. * Lite mode: The "optimize_for = LITE_RUNTIME" option causes the compiler
  197. to generate code which only depends libprotobuf-lite, which is much smaller
  198. than libprotobuf but lacks descriptors, reflection, and some other features.
  199. * Lots of style cleanups.
  200. Python
  201. * Fixed endianness bug with floats and doubles.
  202. * Text format parsing support.
  203. * Fix bug with parsing packed repeated fields in embedded messages.
  204. * Ability to initialize fields by passing keyword args to constructor.
  205. * Support iterators in extend and __setslice__ for containers.
  206. 2009-05-13 version 2.1.0:
  207. General
  208. * Repeated fields of primitive types (types other that string, group, and
  209. nested messages) may now use the option [packed = true] to get a more
  210. efficient encoding. In the new encoding, the entire list is written
  211. as a single byte blob using the "length-delimited" wire type. Within
  212. this blob, the individual values are encoded the same way they would
  213. be normally except without a tag before each value (thus, they are
  214. tightly "packed").
  215. * For each field, the generated code contains an integer constant assigned
  216. to the field number. For example, the .proto file:
  217. message Foo { optional int bar_baz = 123; }
  218. would generate the following constants, all with the integer value 123:
  219. C++: Foo::kBarBazFieldNumber
  220. Java: Foo.BAR_BAZ_FIELD_NUMBER
  221. Python: Foo.BAR_BAZ_FIELD_NUMBER
  222. Constants are also generated for extensions, with the same naming scheme.
  223. These constants may be used as switch cases.
  224. * Updated bundled Google Test to version 1.3.0. Google Test is now bundled
  225. in its verbatim form as a nested autoconf package, so you can drop in any
  226. other version of Google Test if needed.
  227. * optimize_for = SPEED is now the default, by popular demand. Use
  228. optimize_for = CODE_SIZE if code size is more important in your app.
  229. * It is now an error to define a default value for a repeated field.
  230. Previously, this was silently ignored (it had no effect on the generated
  231. code).
  232. * Fields can now be marked deprecated like:
  233. optional int32 foo = 1 [deprecated = true];
  234. Currently this does not have any actual effect, but in the future the code
  235. generators may generate deprecation annotations in each language.
  236. * Cross-compiling should now be possible using the --with-protoc option to
  237. configure. See README.txt for more info.
  238. protoc
  239. * --error_format=msvs option causes errors to be printed in Visual Studio
  240. format, which should allow them to be clicked on in the build log to go
  241. directly to the error location.
  242. * The type name resolver will no longer resolve type names to fields. For
  243. example, this now works:
  244. message Foo {}
  245. message Bar {
  246. optional int32 Foo = 1;
  247. optional Foo baz = 2;
  248. }
  249. Previously, the type of "baz" would resolve to "Bar.Foo", and you'd get
  250. an error because Bar.Foo is a field, not a type. Now the type of "baz"
  251. resolves to the message type Foo. This change is unlikely to make a
  252. difference to anyone who follows the Protocol Buffers style guide.
  253. C++
  254. * Several optimizations, including but not limited to:
  255. - Serialization, especially to flat arrays, is 10%-50% faster, possibly
  256. more for small objects.
  257. - Several descriptor operations which previously required locking no longer
  258. do.
  259. - Descriptors are now constructed lazily on first use, rather than at
  260. process startup time. This should save memory in programs which do not
  261. use descriptors or reflection.
  262. - UnknownFieldSet completely redesigned to be more efficient (especially in
  263. terms of memory usage).
  264. - Various optimizations to reduce code size (though the serialization speed
  265. optimizations increased code size).
  266. * Message interface has method ParseFromBoundedZeroCopyStream() which parses
  267. a limited number of bytes from an input stream rather than parsing until
  268. EOF.
  269. * GzipInputStream and GzipOutputStream support reading/writing gzip- or
  270. zlib-compressed streams if zlib is available.
  271. (google/protobuf/io/gzip_stream.h)
  272. * DescriptorPool::FindAllExtensions() and corresponding
  273. DescriptorDatabase::FindAllExtensions() can be used to enumerate all
  274. extensions of a given type.
  275. * For each enum type Foo, protoc will generate functions:
  276. const string& Foo_Name(Foo value);
  277. bool Foo_Parse(const string& name, Foo* result);
  278. The former returns the name of the enum constant corresponding to the given
  279. value while the latter finds the value corresponding to a name.
  280. * RepeatedField and RepeatedPtrField now have back-insertion iterators.
  281. * String fields now have setters that take a char* and a size, in addition
  282. to the existing ones that took char* or const string&.
  283. * DescriptorPool::AllowUnknownDependencies() may be used to tell
  284. DescriptorPool to create placeholder descriptors for unknown entities
  285. referenced in a FileDescriptorProto. This can allow you to parse a .proto
  286. file without having access to other .proto files that it imports, for
  287. example.
  288. * Updated gtest to latest version. The gtest package is now included as a
  289. nested autoconf package, so it should be able to drop new versions into the
  290. "gtest" subdirectory without modification.
  291. Java
  292. * Fixed bug where Message.mergeFrom(Message) failed to merge extensions.
  293. * Message interface has new method toBuilder() which is equivalent to
  294. newBuilderForType().mergeFrom(this).
  295. * All enums now implement the ProtocolMessageEnum interface.
  296. * Setting a field to null now throws NullPointerException.
  297. * Fixed tendency for TextFormat's parsing to overflow the stack when
  298. parsing large string values. The underlying problem is with Java's
  299. regex implementation (which unfortunately uses recursive backtracking
  300. rather than building an NFA). Worked around by making use of possesive
  301. quantifiers.
  302. * Generated service classes now also generate pure interfaces. For a service
  303. Foo, Foo.Interface is a pure interface containing all of the service's
  304. defined methods. Foo.newReflectiveService() can be called to wrap an
  305. instance of this interface in a class that implements the generic
  306. RpcService interface, which provides reflection support that is usually
  307. needed by RPC server implementations.
  308. * RPC interfaces now support blocking operation in addition to non-blocking.
  309. The protocol compiler generates separate blocking and non-blocking stubs
  310. which operate against separate blocking and non-blocking RPC interfaces.
  311. RPC implementations will have to implement the new interfaces in order to
  312. support blocking mode.
  313. * New I/O methods parseDelimitedFrom(), mergeDelimitedFrom(), and
  314. writeDelimitedTo() read and write "delemited" messages from/to a stream,
  315. meaning that the message size precedes the data. This way, you can write
  316. multiple messages to a stream without having to worry about delimiting
  317. them yourself.
  318. * Throw a more descriptive exception when build() is double-called.
  319. * Add a method to query whether CodedInputStream is at the end of the input
  320. stream.
  321. * Add a method to reset a CodedInputStream's size counter; useful when
  322. reading many messages with the same stream.
  323. * equals() and hashCode() now account for unknown fields.
  324. Python
  325. * Added slicing support for repeated scalar fields. Added slice retrieval and
  326. removal of repeated composite fields.
  327. * Updated RPC interfaces to allow for blocking operation. A client may
  328. now pass None for a callback when making an RPC, in which case the
  329. call will block until the response is received, and the response
  330. object will be returned directly to the caller. This interface change
  331. cannot be used in practice until RPC implementations are updated to
  332. implement it.
  333. * Changes to input_stream.py should make protobuf compatible with appengine.
  334. 2008-11-25 version 2.0.3:
  335. protoc
  336. * Enum values may now have custom options, using syntax similar to field
  337. options.
  338. * Fixed bug where .proto files which use custom options but don't actually
  339. define them (i.e. they import another .proto file defining the options)
  340. had to explicitly import descriptor.proto.
  341. * Adjacent string literals in .proto files will now be concatenated, like in
  342. C.
  343. * If an input file is a Windows absolute path (e.g. "C:\foo\bar.proto") and
  344. the import path only contains "." (or contains "." but does not contain
  345. the file), protoc incorrectly thought that the file was under ".", because
  346. it thought that the path was relative (since it didn't start with a slash).
  347. This has been fixed.
  348. C++
  349. * Generated message classes now have a Swap() method which efficiently swaps
  350. the contents of two objects.
  351. * All message classes now have a SpaceUsed() method which returns an estimate
  352. of the number of bytes of allocated memory currently owned by the object.
  353. This is particularly useful when you are reusing a single message object
  354. to improve performance but want to make sure it doesn't bloat up too large.
  355. * New method Message::SerializeAsString() returns a string containing the
  356. serialized data. May be more convenient than calling
  357. SerializeToString(string*).
  358. * In debug mode, log error messages when string-type fields are found to
  359. contain bytes that are not valid UTF-8.
  360. * Fixed bug where a message with multiple extension ranges couldn't parse
  361. extensions.
  362. * Fixed bug where MergeFrom(const Message&) didn't do anything if invoked on
  363. a message that contained no fields (but possibly contained extensions).
  364. * Fixed ShortDebugString() to not be O(n^2). Durr.
  365. * Fixed crash in TextFormat parsing if the first token in the input caused a
  366. tokenization error.
  367. * Fixed obscure bugs in zero_copy_stream_impl.cc.
  368. * Added support for HP C++ on Tru64.
  369. * Only build tests on "make check", not "make".
  370. * Fixed alignment issue that caused crashes when using DynamicMessage on
  371. 64-bit Sparc machines.
  372. * Simplify template usage to work with MSVC 2003.
  373. * Work around GCC 4.3.x x86_64 compiler bug that caused crashes on startup.
  374. (This affected Fedora 9 in particular.)
  375. * Now works on "Solaris 10 using recent Sun Studio".
  376. Java
  377. * New overload of mergeFrom() which parses a slice of a byte array instead
  378. of the whole thing.
  379. * New method ByteString.asReadOnlyByteBuffer() does what it sounds like.
  380. * Improved performance of isInitialized() when optimizing for code size.
  381. Python
  382. * Corrected ListFields() signature in Message base class to match what
  383. subclasses actually implement.
  384. * Some minor refactoring.
  385. * Don't pass self as first argument to superclass constructor (no longer
  386. allowed in Python 2.6).
  387. 2008-09-29 version 2.0.2:
  388. General
  389. * License changed from Apache 2.0 to New BSD.
  390. * It is now possible to define custom "options", which are basically
  391. annotations which may be placed on definitions in a .proto file.
  392. For example, you might define a field option called "foo" like so:
  393. import "google/protobuf/descriptor.proto"
  394. extend google.protobuf.FieldOptions {
  395. optional string foo = 12345;
  396. }
  397. Then you annotate a field using the "foo" option:
  398. message MyMessage {
  399. optional int32 some_field = 1 [(foo) = "bar"]
  400. }
  401. The value of this option is then visible via the message's
  402. Descriptor:
  403. const FieldDescriptor* field =
  404. MyMessage::descriptor()->FindFieldByName("some_field");
  405. assert(field->options().GetExtension(foo) == "bar");
  406. This feature has been implemented and tested in C++ and Java.
  407. Other languages may or may not need to do extra work to support
  408. custom options, depending on how they construct descriptors.
  409. C++
  410. * Fixed some GCC warnings that only occur when using -pedantic.
  411. * Improved static initialization code, making ordering more
  412. predictable among other things.
  413. * TextFormat will no longer accept messages which contain multiple
  414. instances of a singular field. Previously, the latter instance
  415. would overwrite the former.
  416. * Now works on systems that don't have hash_map.
  417. Java
  418. * Print @Override annotation in generated code where appropriate.
  419. Python
  420. * Strings now use the "unicode" type rather than the "str" type.
  421. String fields may still be assigned ASCII "str" values; they will
  422. automatically be converted.
  423. * Adding a property to an object representing a repeated field now
  424. raises an exception. For example:
  425. # No longer works (and never should have).
  426. message.some_repeated_field.foo = 1
  427. Windows
  428. * We now build static libraries rather than DLLs by default on MSVC.
  429. See vsprojects/readme.txt for more information.
  430. 2008-08-15 version 2.0.1:
  431. protoc
  432. * New flags --encode and --decode can be used to convert between protobuf text
  433. format and binary format from the command-line.
  434. * New flag --descriptor_set_out can be used to write FileDescriptorProtos for
  435. all parsed files directly into a single output file. This is particularly
  436. useful if you wish to parse .proto files from programs written in languages
  437. other than C++: just run protoc as a background process and have it output
  438. a FileDescriptorList, then parse that natively.
  439. * Improved error message when an enum value's name conflicts with another
  440. symbol defined in the enum type's scope, e.g. if two enum types declared
  441. in the same scope have values with the same name. This is disallowed for
  442. compatibility with C++, but this wasn't clear from the error.
  443. * Fixed absolute output paths on Windows.
  444. * Allow trailing slashes in --proto_path mappings.
  445. C++
  446. * Reflection objects are now per-class rather than per-instance. To make this
  447. possible, the Reflection interface had to be changed such that all methods
  448. take the Message instance as a parameter. This change improves performance
  449. significantly in memory-bandwidth-limited use cases, since it makes the
  450. message objects smaller. Note that source-incompatible interface changes
  451. like this will not be made again after the library leaves beta.
  452. * Heuristically detect sub-messages when printing unknown fields.
  453. * Fix static initialization ordering bug that caused crashes at startup when
  454. compiling on Mac with static linking.
  455. * Fixed TokenizerTest when compiling with -DNDEBUG on Linux.
  456. * Fixed incorrect definition of kint32min.
  457. * Fix bytes type setter to work with byte sequences with embedded NULLs.
  458. * Other irrelevant tweaks.
  459. Java
  460. * Fixed UnknownFieldSet's parsing of varints larger than 32 bits.
  461. * Fixed TextFormat's parsing of "inf" and "nan".
  462. * Fixed TextFormat's parsing of comments.
  463. * Added info to Java POM that will be required when we upload the
  464. package to a Maven repo.
  465. Python
  466. * MergeFrom(message) and CopyFrom(message) are now implemented.
  467. * SerializeToString() raises an exception if the message is missing required
  468. fields.
  469. * Code organization improvements.
  470. * Fixed doc comments for RpcController and RpcChannel, which had somehow been
  471. swapped.
  472. * Fixed text_format_test on Windows where floating-point exponents sometimes
  473. contain extra zeros.
  474. * Fix Python service CallMethod() implementation.
  475. Other
  476. * Improved readmes.
  477. * VIM syntax highlighting improvements.
  478. 2008-07-07 version 2.0.0:
  479. * First public release.