Releases: mapbox/protozero
Releases · mapbox/protozero
Version 1.8.1
Version 1.8.0
Changed
- Switched to C++14 as minimum requirement. Modernised the code accordingly.
- Only the tests need the Protobuf library when building.
- Improve compatibility with various STL flavors.
- Change license formatting to get recognized by license scanning tools.
- Add lots of
constin places where we can. Also fix some other issues reported by clang-tidy. - Various other code cleanups.
- Modernize documentation config, CMake config and CI workflows.
Fixed
basic_pbf_builderconstructor can not be noexcept.
Version 1.7.1
Changed
- Don't build tests if the standard CMake
BUILD_TESTINGvariable is set to off. - Now needs CMake 3.5.0 or greater.
- Update included catch2 framework to current version v2.13.8.
- Only enable clang-tidy make target if protobuf was found.
- Allow setting C++ version to compile with in CMake config.
Fixed
- Fixes undefined behaviour in
floatanddoublebyteswap. - Add missing includes of "config.hpp".
- Avoid narrowing conversion by doing an explicit
static_cast.
Version 1.7.0
Added
- Support for buffer types other that
std::string.pbf_writeris now just a typedef forbasic_pbf_writer<std::string>. Other buffer types can be used withbasic_pbf_writer. Seedoc/advanced.mdfor details.
Changed
- Switched to catch2 for testing.
- Some minor tweaks.
Fixed
- Removed some undefined behaviour.
Version 1.6.8
Changed
- Various code cleanups due to clang-tidy warnings.
Fixed
- Made
data_view::comparenoexcept.
Version 1.6.7
Fixed
- Signed-unsigned comparison on 32 bit systems.
Version 1.6.6
Fixed
- Fixed several place with possible undefined behaviour.
Version 1.6.5
Fixed
- Avoid UB: Do not calculate pointer outside array bounds.
- Specify proto2 syntax in .proto files to appease protoc.
Version 1.6.4
Added
- Add function
data()to get the not yet read data from apbf_reader. - New
add_packed_fixed()template function forpbf_writer. - New
length_of_varint()helper function calculates how long a varint would be for a specified value.
Changed
- More consistent implementation of operators as free friend functions.
Fixed
- Fixed some zigzag encoding tests on MSVC.
- Add extra cast so we do an xor with unsigned ints.
- No more bitwise operations on signed integers in varint decoder.
- No more bitwise operations on signed integers in zigzag encoder/decoder.
Version 1.6.3
Changed
- Moved
byteswap_inplacefunctions from detail into protozero namespace. They can be useful outsize protozero. - More asserts and unit tests and small cleanups.