Skip to content

4.2.0 (Deprecated and new function)

Compare
Choose a tag to compare
@yetnt yetnt released this 14 Jun 08:31
· 35 commits to main since this release

Function ConvUnit and ConvTemp are now marked as depracted. Use (below)

Old

const { ConvUnit } = require("@yetnt/ump")

ConvUnit("dist", 56, "mm", "cm")

New

const { Convert } = require("@yetnt/ump")

Convert.Distance(56, "mm", "cm")

This also applies to Area and Volume

Old functions ConvTemp and ConvUnit are still available for use but will be removed in the next major release.

New function Convert.Data

Used to convert data values between one another.

const { Convert } = require("@yetnt/ump")

Convert.Data(45, "kilobyte", "megabyte")

Data Enum

Data Enum was also added and is encouraged to be used

const { Data } = require("@yetnt/ump")

Data.Kilobyte
Data.Megabyte

Full Changelog: v4.1.2...v4.2.0