Releases: JuliaPhysics/Unitful.jl
Releases · JuliaPhysics/Unitful.jl
v1.28.0
Unitful v1.28.0
Dimensionless quantities now support
isevenandisodd(#829).Quantities that have equal values and equal units now have the same hash (#833). For now, quantities that are equal (
isequal) but have different units still have different hashes, see #379.
Merged pull requests:
- Add methods for
iseven,isodd(#829) (@sostock) - Bump actions/upload-artifact from 5 to 6 (#830) (@dependabot[bot])
- Add hash method for quantities (#833) (@sostock)
- Release v1.28.0 (#835) (@sostock)
Closed issues:
v1.27.0
Unitful v1.27.0
NaNMath.powandNaNMath.sqrtfrom NaNMath.jl are supported via a package extension (#824).
Merged pull requests:
v1.26.0
Unitful v1.26.0
The aliases
degCanddegFfor°Cand°Fare added (#826).Correct LaTeX printing of affine units (#825).
Fix a world-age warning on Julia 1.12 (#819).
Merged pull requests:
- Use world-age aware access to #Unitful_basefactors (#819) (@MagicMuscleMan)
- [CI] Change Julia architecture from x64 to default (#820) (@giordano)
- Bump actions/upload-artifact from 4 to 5 (#821) (@dependabot[bot])
- Bump actions/checkout from 5 to 6 (#823) (@dependabot[bot])
- Add mathrm to affine unit latexifying (#825) (@Ickaser)
- Add degC, degF as aliases for celsuis and fahrenheit (#826) (@Ickaser)
- Release v1.26.0 (#827) (@sostock)
Closed issues:
v1.25.1
v1.25.0
Unitful v1.25.0
Quantities and units can now be converted to a LaTeX representation using
Latexify.jl. This is provided via a package extension and replaces the UnitfulLatexify.jl package (#795).- This package now requires Julia ≥ 1.6.
Merged pull requests:
- add dimensions docs to default units docs chapter (#794) (@Eben60)
- Move UnitfulLatexify into Unitful extension (#795) (@Ickaser)
- Up minimum Julia to 1.6, change CI to use min, lts, 1, pre (#798) (@Ickaser)
- Fix link to docs in README.md (#802) (@fhagemann)
- Replace
PainterQubitsbyJuliaPhysicsin all relevant references (#803) (@fhagemann) - Remove code for Julia <1.6 (#804) (@sostock)
- Bump actions/checkout from 4 to 5 (#805) (@dependabot[bot])
- Prevent infinite recursion of unit by adding a method unit(::Type{Any}) (#807) (@SeSodesa)
- Make docs build less platform-dependent (#808) (@Ickaser)
- Small fixes for new Latexify docs page (#809) (@sostock)
- Swap
\;for\,in LatexifyExt and matching tests (#810) (@Ickaser) - Release v1.25.0 (#812) (@sostock)
Closed issues:
v1.24.0
v1.23.1
v1.23.0
Unitful v1.23.0
On Julia ≥ 1.9, dimensionless quantities can now be converted to
ForwardDiff.Dual. This is important for compatibility with the SciML ecosystem and is provided via a package extension (#765).On Julia ≥ 1.9,
@printfand@sprintfcan now be used with Unitful quantities. The specified format is applied to the numeric part of the quantity and the unit is appended to that. This is provided via a package extension (#772).Certain unit conversions involving units that are defined using non-integer exponents no longer error (#783).
uconvertnow preserves the floating-point precision of quantities in a non-breaking way (#782).
Merged pull requests:
- Add a ForwardDiff extension for dimensionless quantities (#765) (@Ickaser)
- Add documentation for
logunit(#769) (@cgarling) - add Printf support (#772) (@aplavin)
- New attempt at preserving the floating-point precision in
uconvert(#782) (@sostock) - Fix
basefactorcalculation in case of rationaltensfactor(#783) (@sostock) - Release v1.23.0 (#789) (@sostock)
Closed issues:
v1.22.1
Unitful v1.22.1
The behaviour to preserve the floating-point precision of quantities (#754, added in v1.22.0) is reverted because it is not compatible with IntervalArithmetic.jl (see #758). The feature will be added in a non-breaking way in a future release.
Merged pull requests:
- Add doctest (#759) (@abhro)
- Add method signature in docstring (#760) (@abhro)
- Remove unnecessary lambdas (#761) (@abhro)
- Fix running tests on Windows (#762) (@giordano)
- [CI] Improve GitHub Actions setup (#763) (@giordano)
Closed issues:
v1.22.0
Unitful v1.22.0
Base.bigcan now be used with quantities (#755).Using
Base.convertto convert to a unitless quantity no longer errors (#724).Using
Base.convertto convert to a mixed logarithmic quantity no longer returns wrong results. In cases that returned a result even though it was unknown whether the quantity was a power or root-power quantity, an error is thrown instead (#724).uconvertnow preserves the floating-point precision of quantities (#754).When printing arrays, quantities are now aligned at the decimal point just like unitless numbers (#752).
Merged pull requests:
- Fix conversion to unitless
Quantity(#724) (@sostock) - Add
Base.alignmentmethods (#752) (@sostock) - Preserve the floating-point precision of quantities in
uconvert(#754) (@eliascarv) - Add support for
big(#755) (@sostock) - Release v1.22.0 (#756) (@sostock)
Closed issues: