Skip to content

Releases: yetnt/ump

v4.1.0

08 Jun 20:01
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.0...v4.1.0

v4.0.0 Added Enums for distance (not on NPM yet)

04 Jun 16:40
Compare
Choose a tag to compare

Changelog

all that was added was the Area, Distance and Volume.

Usage (using Distance)

const { ConvUnit, Distance } = require('@yetnt/ump')

ConvUnit("dist", 12, Distance.Millimeter, Distance.Centimeter) // 1.2
ConvUnit("dist", 1, Distance.Inch, Distance.Centimeter) // 2.54
ConvUnit("dist", 98, Distance.NauticalMile, Distance.Nanometer) // 1852000000000

Full Changelog: v3.2.1...v4.0.0

Full Changelog: v3.2.1...v4.0.0

3.2.1 (Jest -> Mocha)

29 Mar 14:34
Compare
Choose a tag to compare

I just moved from Jest to Mocha, and added expect.js. Not much changes

Full Changelog: v3.2.0...v3.2.1

3.2.0 (Volume)

07 Mar 15:46
Compare
Choose a tag to compare

Added Volume to ConvUnit()

Full Changelog: v3.1.0...v3.2.0
NPM: https://www.npmjs.com/package/@yetnt/ump/v/3.2.0

3.1.0

04 Mar 10:06
Compare
Choose a tag to compare

Added optional parameter to DinRatio, Now will by default NOT round off to 2 decimal places

Old

Ump.DinRatio(456.93, 12, 5) // ['322.56', '134.4']

New

Ump.DinRatio(456.93, 12, 5) // [ 322.5388235294118, 134.39117647058825 ]
Ump.DinRatio(456.93, 12, 5, true) // ['322.56', '134.4']

Full Changelog: v3.0.0...v3.1.0

3.0.0

04 Mar 08:44
Compare
Choose a tag to compare

Changed ConvDist() to ConvUnit()

Old -

Ump.ConvDist(1, "cm", "m")

New -

Ump.ConvUnit("dist", 1, "cm", "m")

Did this so int eh future i can make it support multiple units. Currently support Distance (dist) and Area (Area)

Full Changelog: v2.1.6...v3.0.0
NPM : https://www.npmjs.com/package/@yetnt/ump/v/3.0.0

2.1.6

03 Mar 17:30
Compare
Choose a tag to compare

Fixed error.

Full Changelog: v2.1.5...v2.1.6

2.1.5

01 Mar 15:48
Compare
Choose a tag to compare

Got tests!!!

For tests jest was intalled as a dev dependency

NPM: https://www.npmjs.com/package/@yetnt/ump/v/2.1.5
Full Changelog: v2.1.4...v2.1.5

2.1.4

25 Feb 15:25
Compare
Choose a tag to compare

Moved source code to src
Improved Typescript documentation.

Full Changelog: v2.1.3...v2.1.4

2.1.3

20 Feb 19:17
Compare
Choose a tag to compare

Full Changelog: v2.1.2...v2.1.3