Release 7.0 is a feature release of TinyCBOR.
Starting in this release, we change the numbering scheme and drop the leading "0.", declaring that this is not beta code (hasn't been for ages).
This release removes the old, hand-written Makefiles for the library and qmake for the examples and tests. TinyCBOR now adopts CMake as the sole build system. Thanks go to @sdebionne in #242.
Building the unit tests now requires Qt 6. Support for testing using Qt 5 has been dropped.
Library changes
- CBOR-to-JSON: fix UB in converting out-of-bounds FP to integer by @thiagomacieira in #278
- CBOR-to-JSON: fix memory leak when parsing invalid CBOR by @niooss-ledger in #279
- CBOR-to-JSON: fix integer overflow when computing allocation size by @niooss-ledger in #280
- Move the source-selection macros to a common header by @thiagomacieira in #281
- Pretty: fix Undefined Behavior with NaN floats by @niooss-ledger in #282
- Pretty: ensure recursionsLeft is not zero before decrementing it by @niooss-ledger in #283
- Fix build with GCC < 11: [[fallthrough]] is supported but not allowed in C by @thiagomacieira in #294
- CBOR-to-JSON: print integers with full precision by @thiagomacieira in #292
- cbortojson: don't hardcode OS support for fopencookie() by @thiagomacieira in #308
- compilersupport: fix compilation in C23 mode by @thiagomacieira in #309
- compilersupport: add support for C23's
nullptrby @thiagomacieira in #310 - fix build on i386 without SSE2 by @florolf in #302
Buildsystem changes
- Add CMake support by @sdebionne in #242
- CI: switch to using CMake by @thiagomacieira in #287
- Remove the old Makefile and qmake buildsystem files by @thiagomacieira in #289
- CMake: generate tinycbor-version.h by @thiagomacieira in #290
- Fetchcontent frendly CMakeLists.txt by @jhlee525 in #295
- fix installdir in cmake build by @jhlee525 in #297
- CMake: fix the option() order by @thiagomacieira in #291
Other changes
- tst_Parser: fix build: define CBOR_PARSER_MAX_RECURSIONS by @thiagomacieira in #277
- tst_Encoder: stop using QVariant::Type in favour of QMetaType::Type by @thiagomacieira in #285
- CI: update the macOS images to more modern versions by @thiagomacieira in #312
- simplereader: Fix warning about use of pointer variable after free() by @thiagomacieira in #288
- CI: Disable building the tools for macOS small by @thiagomacieira in #313
New Contributors
- @sdebionne made their first contribution in #242
- @jhlee525 made their first contribution in #295
- @florolf made their first contribution in #302
Full Changelog: v0.6.1...v7