Units v0.7.0 Release Notes

Release Date: 2022-09-16 // 9 months ago
  • ⚡️ 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.

Previous changes from v0.6.0

  • 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