Skip to content

Version 1.4.0

Compare
Choose a tag to compare
@humphreyja humphreyja released this 12 May 02:03
· 10 commits to master since this release
6778791
  • Removes Mathjs [Breaking]. This was previously exported and usable. Now, use the Units export to handle the full units api.
  • Removes Lodash. Any number parsing is handled with parseFloat.
  • You can no longer do operations with multiple units like "lbs/gal". Instead, handle this math yourself. It just makes the code lighter for a relatively small use case. (Convert to "lbs", divide by density, voila). I decided not to implement this as it opens a can of worms for "string based math". AND you could no longer have units with any sort of special character in it due to math conflicting characters.

Changes from 1.2

  • Ability to convert to other units in units helper.
  • Ability to check if the unit is a liquid based unit (you can also just check if it is compatible with "gallons")