Skip to content

Releases: HarvestProfit/harvest-profit-units

Version 1.4.5

18 May 16:42
3281db0
Compare
Choose a tag to compare

Defaults to plural seed units units - 140k but also supports singular versions.

Version 1.4.4

16 May 00:59
df7053b
Compare
Choose a tag to compare

Adds area based units acres and hectares. Also ensures a constant default selectable unit.

Version 1.4.3

15 May 02:48
a204c84
Compare
Choose a tag to compare

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

13 May 17:51
1473c6b
Compare
Choose a tag to compare

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

12 May 02:48
2d4f6ff
Compare
Choose a tag to compare

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

12 May 02:03
6778791
Compare
Choose a tag to compare
  • 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

22 Jan 22:06
Compare
Choose a tag to compare

Bugs

  • Fixes a bug with determining if a line item is split #11

Version 1.2.0

06 Mar 20:36
7e976dc
Compare
Choose a tag to compare

Now built with sourcemaps, and only publishing the UnitsHelper by itself

Version 1.0.0

06 Mar 17:24
3347d82
Compare
Choose a tag to compare

Re-released as @harvest-profit/units

Version 1.0.0 Alpha

02 Dec 22:15
Compare
Choose a tag to compare
Version 1.0.0 Alpha Pre-release
Pre-release

Features

You can convert stuff. 'Nuff said.

Eventually I'll add docs. Probably.