Releases: mechanomy/UnitTypes.jl
Releases · mechanomy/UnitTypes.jl
v3.0.0
UnitTypes v3.0.0
Version 3.0 brings the major addition of a Catchall type for operations that result in undefined units; explicit types are still preferred and will be chosen when available.
- General exponentiation now works
- UnitType ranges can be defined over any coherent unit
- Convenience (1:5)u"m" added
- Broadcasting implemented: 3.*(1:5)u"m"
- relateMeasures now accepts compound left hand expressions, intermediate types therein are defined
- Fixed non-const globals
- Test coverage on all new code
- Extended benchmark comparison suite
- Documentation updated
Breaking changes:
- @makeMeasure argument order changed to be more natural:
@makeMeasure 1e-3 Meter = 1 MilliMeter "mm"
Closed issues:
v2.0.3
v2.0.2
UnitTypes v2.0.2
v2.0.1
v2.0.0
UnitTypes v2.0.0
- Function overloads on UnitTypes are now specifically typed, as the subtyping approach of v1.0.0 lead to #19. Performance is now on-par with Unitful and very close to Number.
- Defined types are now documented in the UnitTypes.allUnitTypes dictionary, with keys being the UnitTypes.
UnitTypes.allUnitTypes[Meter] - Affine definitions can now be made by explicit conversion functions in @makeMeasure:
@makeMeasure Meter = Inch "in" 0.0254,@makeMeasure Kelvin = Fahrenheit "F" f->(f+459.67)*5/9 k->k*9/5-459.67This is a breaking change. - Broadcasting and _colon overloads removed due to v1+'s opaque interface specification.
Closed issues:
- Pascal = N/m2! (#18)
v1.0.2
v1.0.1
UnitTypes v1.0.1
Breaking changes
- macros renamed
- Measure module removed, all is now contained within UnitTypes
Closed issues: