Skip to content

Changelog

Andreas Gullberg Larsen edited this page Jul 23, 2014 · 11 revisions

##v3.0.0: Clean up naming of units. Add information unit.

New:

  • Add information units for bit, byte, kilobit, kilobyte, kibibit, kibibyte and so on up to exabyte

Breaking changes:

  • Delete OtherUnit.Piece
  • Move OtherUnit.Table/Teaspoon to Volume
  • Rename Month30Days Year365Days units to Month and Year
  • Fix plural naming of Pressure.KilogramsForcePerSquareCentimeterInOnePascal
  • Fix plural naming of Ratio.PartsPer-units
  • Custom units added manually via UnitSystem.MapUnitToAbbreviation()

Fixes:

  • Fall back to US English culture when parsing/getting abbreviations
  • Fall back to custom string if no abbreviation defined for unit

Behind the scenes:

  • Replace T4 templates with PowerShell + JSON templates
  • Support custom tolerance per unit in tests
  • Support decimal and long base unit types (decimal used in Information unit)
  • Move code more consistently into Custom/GeneratedCode folders
  • Fix misc R# warnings
  • Match R# cleanup profile in generated code

v2.0.0:

  • Breaking changes: Merge UnitValue and UnitConverter into unit classes.
  • Add support for custom units. Add ratio unit.

v1.13: Add mass unit (pound) (thanks @strvmarv).

v1.12: Add speed units (km/h, m/s, ft/s, knots, mph). Add mass units (microgram, nanogram).

v1.11: Fix bugs in Flow and RotationalSpeed units after refactoring to T4 templates (thanks George Zhuikov). Add Temperature units.

v1.10:

  • Add missing localization to units for US English and Russian cultures (thanks George Zhuikov).
  • Add RotationalSpeed and Flow unit classes (thanks George Zhuikov).
  • Add mils and microinches length units (thanks Georgios).
  • Refactor to generate unit classes with T4 templates, a lot less work to add new units.

v1.9: Improve precision of PoundForce unit (thanks Jim Selikoff).

v1.8:

  • Add angle units of measurement (thanks Georgios).
  • Add tests and fix bug in NewtonPerSquareCentimeter and NewtonPerSquareMillimeter.

v1.7: Add imperial and US units for volume and area.

v1.6: Add area units. Fix exception in TryConvert for volume units.

v1.5: Add volume units of measurement (thanks @vitasimek). Add missing operator overloads.

v1.4: Add ShortTon and LongTon mass units (thanks Cameron MacFarland). Add TryConvert methods.

v1.3: Add pressure units. Add dynamic conversion via UnitConverter and UnitValue

v1.2: Add force, torque, pressure, mass, voltage, length and length2d units of measurement.