Releases: HarvestProfit/harvest-profit-units
Version 1.4.5
Defaults to plural seed units units - 140k
but also supports singular versions.
Version 1.4.4
Adds area based units acres
and hectares
. Also ensures a constant default selectable unit.
Version 1.4.3
Adds applied_acres_units
check for percentage based calculations. Additionally, removes the split
attribute hack for determining if an item is split. Instead it relies on the applied acres being different than the planted acres.
Version 1.4.2
Fixes seed unit naming. Was units - 140k
, now it is unit - 140k
. This is how it should be. Additionally, aliases for the plural form was added
Version 1.4.1
Updates and adds documentation. Adds a Units.selectableUnits
function which you can pass: liquid, weight, seed, or yield to to get a list of common units. Basically this just incorporates the manual list of selectable units with their definitions.
Version 1.4.0
- 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")
Version 1.2.3
Bugs
- Fixes a bug with determining if a line item is split #11
Version 1.2.0
Now built with sourcemaps, and only publishing the UnitsHelper by itself
Version 1.0.0
Re-released as @harvest-profit/units
Version 1.0.0 Alpha
Features
You can convert stuff. 'Nuff said.
Eventually I'll add docs. Probably.