Releases: ferraridamiano/units_converter
Releases · ferraridamiano/units_converter
3.0.2
- Minor refinements to US volume units (cups, tablespoon, teaspoon)
Full changelog: 3.0.1...3.0.2
3.0.1
- New unit: imperial quarts (@jacksonlo)
- New unit: teaspoon US (@vasba)
Full changelog: 3.0.0...3.0.1
3.0.0
- Improvements to the conversion algorithm: now it is simpler and ~10% faster
- Now requires Dart >= 3.0
- New unit: kilopascal (@jmguazzo)
Breaking:
- In custom conversion
leafNodes
has been renamed tochildren
Full changelog: 2.1.1...3.0.0
2.1.1
2.1.0
2.0.1
- Improved Pascal-Bar conversion
- We forced the use of types. So that many more error will be caught at compile-time. E.g.
ConversionNode
has an associated type that is the type of the name (e.g.LENGTH
,AREA
, etc.)
2.0.0
- We finally introduce extensions on
num
andString
. Checkout the documentation for more details. Now you can easily convert in this way:
1.convertFromTo(LENGTH.meters, LENGTH.inches)
-
We also refactor a little bit the code: now all the properties inherit from
CustomProperty
, this change leads to a reduction of ~500 lines of code. -
We fixed a wrong conversion (energy foot pound)
Breaking:
Node
becomesConversionNode
SimpleCustomConversion
becomesSimpleCustomProperty
CustomConversion
becomesCustomProperty
1.2.0
Improved the formatting of the string representation of the number (stringValue): now it is also possibile to choose between decimal or scientific notation. Added feet (US survey), feet squared (US survey) and kilocalories.
Thanks to @chuyentt and @pxsanghyo