Skip to content

Releases: ferraridamiano/units_converter

3.0.0

21 Jan 13:53
Compare
Choose a tag to compare
  • 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 to children

Full changelog: 2.1.1...3.0.0

2.1.1

18 Aug 16:39
Compare
Choose a tag to compare

Changelog

2.1.0

11 Dec 14:08
Compare
Choose a tag to compare

Added 5 new properties:

  • density
  • amount of substance
  • molar volume
  • molar mass
  • reciprocal of molar mass.

Now it is also possible to define a compound unit in the form of a ratio (e.g. Density units are defined as the ratio between mass and volume).

Thanks to @Dokotela for his PRs!

2.0.1

31 Jul 08:00
Compare
Choose a tag to compare
  • 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

17 May 15:53
Compare
Choose a tag to compare
  • We finally introduce extensions on num and String. 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 becomes ConversionNode
  • SimpleCustomConversion becomes SimpleCustomProperty
  • CustomConversion becomes CustomProperty

1.2.0

04 May 18:39
81be50f
Compare
Choose a tag to compare

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