Skip to content

Releases: JuliaPhysics/Unitful.jl

v1.28.0

29 Jan 13:26
51f55a1

Choose a tag to compare

Unitful v1.28.0

Diff since v1.27.0

  • Feature: Dimensionless quantities now support iseven and isodd (#829).
  • Bugfix: 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:

Closed issues:

  • Should hashing of Quantity{BigFloat} behave differently to those of BigFloat's? (#378)
  • Latexify as soft dependency (#665)
  • stack overflow when calling iseven and isodd with unitful quantity (#822)
  • "Binding undeclared during precompilation" error (#831)

v1.27.0

08 Dec 15:00
d417002

Choose a tag to compare

Unitful v1.27.0

Diff since v1.26.0

  • Feature: NaNMath.pow and NaNMath.sqrt from NaNMath.jl are supported via a package extension (#824).

Merged pull requests:

v1.26.0

05 Dec 20:56
82f27da

Choose a tag to compare

Unitful v1.26.0

Diff since v1.25.1

  • Feature: The aliases degC and degF for °C and °F are added (#826).
  • Bugfix: Correct LaTeX printing of affine units (#825).
  • Maintenance: Fix a world-age warning on Julia 1.12 (#819).

Merged pull requests:

Closed issues:

  • World age warning for <Module>.#Unitful_basefactors (#781)
  • Bug in unitformat/labelformat for degrees Celsius? (#816)

v1.25.1

18 Oct 13:37
b040870

Choose a tag to compare

Unitful v1.25.1

Diff since v1.25.0

Merged pull requests:

Closed issues:

  • Precompilation warning for UnitfulLatexify (#813)
  • ParseError on Julia v1.13 (#815)

v1.25.0

16 Sep 13:49
2eba283

Choose a tag to compare

Unitful v1.25.0

Diff since v1.24.0

  • Feature: 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:

Closed issues:

  • Testing back to Julia 1.0: is there still value in doing so? (#796)
  • The method unit(x::Type{Union{Missing,T}}) is causing stack overflow (#806)

v1.24.0

31 Jul 12:10
1a6fccb

Choose a tag to compare

Unitful v1.24.0

Diff since v1.23.1

  • Feature: The alias deg for ° is added (#764).

Merged pull requests:

Closed issues:

  • Conversion to Float64 (#190)
  • upreferred/uconvert change underlying number type (#362)
  • Unexpected results with vacuum permittivity and free space impedance (#797)
  • Hz --> rad/s semantics (#799)
  • Definition of one (#801)

v1.23.1

10 Jun 19:04
f8a3e6b

Choose a tag to compare

Unitful v1.23.1

Diff since v1.23.0

  • Bugfix: Fix a world-age issue with the new mechanism to preserve the floating-point precision on unit conversion (#790).

Merged pull requests:

Closed issues:

  • Potential world age issue with Measurements.jl and UnitfulAstro.jl (#790)

v1.23.0

08 Jun 20:54
2c09a34

Choose a tag to compare

Unitful v1.23.0

Diff since v1.22.1

  • Feature: 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).
  • Feature: On Julia ≥ 1.9, @printf and @sprintf can 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).
  • Bugfix: Certain unit conversions involving units that are defined using non-integer exponents no longer error (#783).
  • Enhancement: uconvert now preserves the floating-point precision of quantities in a non-breaking way (#782).

Merged pull requests:

Closed issues:

  • uconvert does not preserve the floating-point precision of quantities in some cases (#753)
  • the new version (1.22) broke interactions with IntervalArithmetic (#758)
  • Require finer control over basefactor (#780)
  • Some older versions of Unitful do not precompile on julia 1.12 (#785)

v1.22.1

13 May 07:41

Choose a tag to compare

Unitful v1.22.1

Diff since v1.22.0

  • Bugfix: 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:

Closed issues:

  • Unit simplification of reciprocal unit with different name (#771)
  • kcal/mol not correctly recognized as energy (#773)

v1.22.0

02 Jan 08:41
e0d6ee3

Choose a tag to compare

Unitful v1.22.0

Diff since v1.21.1

  • Feature: Base.big can now be used with quantities (#755).
  • Bugfix: Using Base.convert to convert to a unitless quantity no longer errors (#724).
  • Bugfix: Using Base.convert to 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).
  • Enhancement: uconvert now preserves the floating-point precision of quantities (#754).
  • Enhancement: When printing arrays, quantities are now aligned at the decimal point just like unitless numbers (#752).

Merged pull requests:

Closed issues:

  • Add a Base.allignment method (#739)
  • uconvert does not preserve the floating-point precision of quantities in some cases (#753)