haimkastner / unitsnet-js

A better way to hold unit variables and easily convert to the destination unit
https://www.npmjs.com/package/unitsnet-js
MIT License
23 stars 8 forks source link

Set units enum singular value - Fix #29 #30

Closed haimkastner closed 6 months ago

haimkastner commented 6 months ago

The value is meant to be the exact as the C# UnitsNet enums (e.g. LengthUnit.Meter) see #29 for the motivation.

The key of the enum is still in plural convention to keep backward compatibility.

Despite that for any normal use of the package, this change should be fully transparent, still updating the major version in case some use-case will be broken by this modification.