All Versions
6
Latest Version
Avg Release Cycle
197 days
Latest Release
78 days ago

Changelog History

  • v0.7.0 Changes

    September 16, 2022

    โšก๏ธ Major update to commodities, and addition of unit_math operations to match standard library operations

    ๐Ÿ”„ Changed

    ๐Ÿ›  Fixed

    โž• Added

    • math operations from the standard library including: trunc, ceil, floor, round, fmod, sin, cos, tan.
  • v0.6.0 Changes

    May 16, 2022

    This release has a number of fixes for specific unit strings, adds some other units and a new unit_conversion_maps structure to reduce stack usage.

    ๐Ÿ”„ Changed

    • 0๏ธโƒฃ Convert default branch to "main"
    • The string maps are new defined in a constexpr array in units_conversion_maps.hpp this reduces the stack usage significantly and clears up some warnings about that on some compilers #217,#226
    • The country specific codes for China and Canada were changed from "ch" and can to cn and ca to match country top level domains #229

    ๐Ÿ›  Fixed

    • The "hartree" string produced an incorrect value #163
    • ๐Ÿ›  Fixed an issue with inverse multipliers for inverse conversions #166
    • ๐Ÿ”„ changed the string conversions to better align with SI recommendations #173
    • ๐Ÿ›  Fix an issue with the string "0.2" #188
    • ๐Ÿ›  Fix asterisk operator typo #194
    • โšก๏ธ Update the docker images to use more recent base images #206,#212
    • ๐Ÿ‘‰ User defined units were not being used in the string conversion operations properly #213
    • โšก๏ธ Update third party library links #216
    • โš  Clean up some if constexpr warnings on some platforms #227
    • ๐Ÿ›  Fix an issue of misinterpreting short strings with spaces such as kg m #224

    โž• Added

    • โž• Added a series of constants to make the available constants match the Nist Common Constants list #163
    • โž• added "Eh" as a valid string value for "hartree" #163
    • โž• Added support for larger power factors in units when using larger base #184
    • โž• Added support for some climate related units #210,#179
    • โž• Added mass to weight conversions #229
    • โž• added domains to allow some domain specific units that might mean different things in different contexts #173
  • v0.5.0 Changes

    August 17, 2021

    ๐Ÿš€ This release includes some changes to the CMake builds and Targets. Also includes support for 64 bit base types for units with expanded power support, and support for a custom namespace for better integration with other applications. And additional units for natural gas and particle physics.

    ๐Ÿ”„ Changed

    • ๐Ÿ“š update the physical constants to latest values and updated related documentation on Physical constants [#56][]
    • CMake targets units::units and units::header_only are the only two public targets [#155][]
    • โšก๏ธ Updated code checks [#85][]

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fixed -Wshadow warnings for GCC 4.9 and earlier [#66][]
    • ๐Ÿ“š Documentation Fixes and updates [#152][], [#146][], [#111][], [#82][]
    • ๐Ÿ›  Fixed pow_overflows not handling 0 correctly [#139][], [#134][]
    • ๐Ÿ›  Fixed a few issues with the output strings and some SI units [#130][]
    • Some cleanup for multiplier string generation [#93][]
    • ๐Ÿ›  Fixed an issue with plural two character units like lb, oz [#91][]
    • ๐Ÿ›  Fix identified Fuzzing issue [#84][]
    • ๐Ÿ›  Fixed some shadow warnings on some compilers [#72][]
    • ๐Ÿ›  Fixed some issues with std::abs usage [#70][]

    โž• Added

    • โž• Added version output to converter app and the correct version info on the webserver [#54][]
    • โž• Added markdown linter to pre-commit [#64][]
    • CMake format check to pre-commit [#65][]
    • โž• Added tests for the shared library build [#155][]
    • โž• Added support for 64 bit base unit [#150][], [#142][]
    • CMake Variable for manipulating output namespace [#136][], [#141][]
    • โž• Added some support for compiling with C++20 [#125][]
    • โž• Added some additional units for supporting particle physics [#120][],[#115][], [#112][], [#109][]
    • โž• Added support for exposing the main unit maps for string conversions [#113][]
    • โž• Added support for natural gas related units [#74][]

    โœ‚ Removed

    • ๐Ÿ— Travis-CI builds have been migrated to Azure and Circle-CI [#159][]
    • โœ‚ removed units::units-static, and units::units-shared CMake targets[#155][]
    • โœ‚ Removed Becquerel from the generated unit strings as it was producing some very odd units at times [#82][]
  • v0.4.0 Changes

    March 30, 2020

    Add a converter command line application and fix a few slow conversion issues and some other fuzz issues that came up recently, add isnormal operation for measurements, better test coverage for fixed_precise_measurement, some additional tests and static analysis checks.

    ๐Ÿ”„ Changed

    • โž• Added several tests run under Azure to remove deprecated image and add some new tests #40
    • โš  clears up several warnings from clang-tidy #41
    • the fuzzer now uses fuzz_measurement #42
    • โšก๏ธ update clang format to limit line length to 80 and allow reflowing comments #43
    • โž• add clang-tidy checks for the tests and fix a few issues. #47

    ๐Ÿ›  Fixed

    • A few timeouts on the fuzzer- the fix was to generalize the multiplier insertion after ^ to accept multiple digits after the ^ instead of just ignoring it after more than one. #34
    • An asymmetry was observed in the unit equality from on the fuzzers, this resulted in some modifications of the cround_equal and cround_precice_equals functions. Also noted that the functions weren't aborting on exact floating point equality so were doing quite a bit of extra calculations. #34
    • โฑ A timeout issue from fuzzing having to do with not injecting multiplies after [] in some circumstances. The fix was to be a little more refined as to which point to not inject the * and to do it in multiple stages so as to not rely on the partitioner so much. #35
    • ๐Ÿ›  fixed_measurement and fixed_precise_measurement had incorrect subtraction operation in a few overloads. #39
    • ๐Ÿ›  fixed a few initial issues from fuzz_measurement #42
    • Some more fuzzing generated issues with cascading powers #45
    • โš  A number of additional clang-tidy checks were added and the resulting warnings fixed #46
    • An issue from the fuzzer dealing with equation type units #51

    โž• Added

    • โž• added a converter command line application that can convert units on the command line #35
    • โž• Added a file operation that can load user defined units from a file #36
    • โž• Added is_valid methods for all measurement types #36
    • โž• Added addUserDefinedInputUnit to add user defined units only on the input #36
    • The webserver gained a to_string option to use the internal to_string operations to simplify the measurement and units #37
    • The webserver and the converter gained an ability to handle * and <base> as the input unit to convert the measurement to base units. #37
    • Added to_string operation for uncertain_measurements #38
    • โž• Added isnormal operation for measurement types #39
    • Added UNITS_CLANG_TIDY option to run tests with Clang tidy #41
    • โœ… Added fuzz_measurement fuzzer to test measurement_from_string #42
    • โž• Added cpplint test to azure #43
    • โž• Added a number of additional units from UDunits #44
    • โž• Added several CI checks including CPPlint, and a series of CMAKE checks, and formatting checks #48,#49
    • โž• Added a series of additional tests for coverage #50
  • v0.3.0 Changes

    January 28, 2020

    ๐Ÿ“š Continued work on cleaning up the library and starting to add main documentation, as well as adding more units and cleaning up string conversions and some additional tests. Additional fuzzing fixes and add a webserver for exploring conversions.

    ๐Ÿ”„ Changed

    • Change the unit_data operators from '+', '-' to '*' and '/' so they actually match the operation they are performing #12
    • ๐Ÿ†“ Pow on measurements is a free function instead of operator #12
    • โšก๏ธ Update cmake policy configuration so it works with newer CMakes #31

    ๐Ÿ›  Fixed

    • โœ… Several issues that came from the fuzzer tests (#14, #18, #16, #19, #24, #28, #30)
    • Fixed the UNITS_HEADER_ONLY target so it actually works and add some tests for it #23
    • Update the cmake code so it correctly deals with and uses the CMAKE_CXX_STANDARD option #22
    • โš  Some strict aliasing warnings on gcc 6 #26

    โž• Added

    • โž• Added pow and root functions to measurements #7
    • โž• Add sqrt function which is a wrapper function around the root function for measurements and units #8
    • โž• Added uncertain measurment class for dealing with uncertainties #9, later modified in the primary method of uncertainty propagation#32
    • โž• Added a webserver for doing conversions through an html based interface #11
    • โž• Added a docker file for doing fuzzing #16
    • โž• Added initial set of documention on readthedocs.io #25,#27

    โœ‚ Removed

    • member methods of pow and root for measurements