Releases: pjazdzyk/unitility
Releases · pjazdzyk/unitility
v2.7.0
CHANGE LOG (10.03.2025):
- backward compatibility - NOT COMPATBILE, for Volume and VolumetricFlow quantities
- fixed bug in Volume converters for: Hectoliter and millilitre (conversion factor has invalid by factor of 10)
- fixed bug in VolumetricFlow converters
- new pressure units: mH₂O_10, mH₂O_60, mH₂O_95, mmHg_10, mmHg_60, mmHg_95
- new hydraulic quantities: LinearResistance, FrictionFactor, LocalLossFactor
- new distance based quantities: Lenght, Width, Height, Diameter
- new quantity: LinearMassDensity,
- volume: split gallons to US Gallons and UK Gallons, added new unit: cubic feet
- volumetric flow: split all Gallons based units to Gallons US and Gallons UK.
v2.6.0 - Changed Bearing usage, to accept <0,360> clockwise degrees
CHANGE LOG (15.02.2025):
- backward compatibility - NOT COMPATBILE for Geographic types,
- changed Bearing usage, to accept <0,360> clockwise degrees, add new Bearing class instead of Angle, refactoring,
- updated documentation on geographic types, to introduce new examples related to the new Bearing usage,
- add logBase() method to calculate logarithms for custom base,
- updated all dependencies, including: SpringBoot to 3.4.2, and Quarkus to: 3.18.2
v2.5.0 - Add Ratio quantity add g/kg unit for HumidityRatio
CHANGE LOG (29.12.2024):
- backward compatibility - NOT COMPATBILE -> refactored method from getUnitType() to getUnit()
- add Ratio quantity, as general scope for represent any generic Ratio (ie: fresh air ratio)
- add g/kg unit for Humidity Ratio
- updated all dependencies, including: SpringBoot to 3.4.1, and Quarkus to: 3.17.5
v2.4.2 - Added supported physical quantities registry
CHANGE LOG (01.09.2024):
- backward compatibility - COMPATBILE
- added supported quantities and associated unit registry, for easier incorporation with API, to show to user what are the currently supported units for each quantity symbols they have,
- added toUnit() method which now accepts also unit symbol as string,
- updated Quarkus platform to 3.14.1
- updated SpringBoot dependencies to 3.3.3
- other minor dependency updates and refactoring
v2.4.1 - Fixed jandex index plugin version
CHANGE LOG (26.05.2024):
- backward compatibility - COMPATBILE
- reduced jandex-index-plugin version to 3.1.8, as the 3.2.0 have some compatibility issues while reading the index in Quarkus 3.11.0 (despite that 3.2.0 is in their BOM).
v2.4.0 - New math operations: logarithms, trigonometry
CHANGE LOG (26.05.2024):
- backward compatibility - COMPATBILE
- added abs() function which will return an absolute value of current value in a current unit,
- added isCloseToZero() in two versions with epsilon specified or with default value of 1E-12. This function will return true for extremely small numbers, near the boundary of double type capability. This can be used in if() statements or predicates instead of isZero() to prevent false positive cases.
- added log(), log10() functions,
- added trigonometric functions for Angle quantity: sin(), sinh(), asin(), cos(), cosh(), acos(), tan(), tanh(), atan(), cot(), coth(), acot()
- fixed minor bugs & refactoring
- updated dependencies: SpringBoot 3.3.0, Quarkus platform: 3.11.0
v2.3.0 - Jakarta validation module
CHANGE LOG (26.02.2024):
- backward compatibility - NOT COMPATBILE
- added new module: Jakarta-validation. Which includes predefined constraint validator classes and associated annotations: PhysicalRange, PhysicalMin, PhysicalMax allowing for convenient PhysicalQuantity validation in web applications,
- simplified parsing mechanism, incorporated GeoParsingFactory into DefaultParsingFactory, reworked PhysicalQuantityDeserializer,
- added default unit specification. If during parsing no unit is provided, quantity will be resolved to its default unit,
- new unit: CFM (cubic feet per minute) for VolumetricFlow,
- fixed bug in divide() method (exception was thrown when numerator was 0, instead of denumerator),
- other minor bug fix and refactoring,
v2.2.0 - Parsing quantities unit symbol without square brackets
CHANGE LOG (02.01.2024):
- backward compatibility - COMPATIBLE
- quantities used in path params and query params does not have to be in square brackets. From now on this: 20[oC] and be replaced by 20oC. Square brackets used in path variables or query params were causing issues with Tomcat application servers.
- minor fixes and refactoring
v2.1.1 - Fixed arithmetic operations
CHANGE LOG (02.01.2024):
- backward compatibility - COMPATIBLE
- fixed arithmetic operations chainability
v2.1.0 - Add geographic quantities
CHANGE LOG (02.01.2024):
- backward compatibility - NOT COMPATIBLE
- added Latitude, Longitude, GeoCordinate and GeoDistance calculated based on Haversine equations,
- fixed arithmetic equations, they now work properly between different quantities sharing the same unit family,
- removed unsafe unchecked casting,
- reworked packages structure in jackson, spring and quarkus module