-
8d46d9d: Codebase rewrite to improve readability and performance
-
Added new
createMs
function to create a new instance ofms
with custom language and formatting options- With this change, the
ms
function no longer accepts a language via its parameters, usecreateMs
instead
- With this change, the
-
Improved performance of formatting milliseconds by up to 10%
-
Added additional options to
FormatOptions
for more customisation- Replaced
shortFormat
withuseAbbreviations
- Added
hideUnitNames
,includeZero
,includedUnits
,unitLimit
,unitSeparator
,minimumDigits
- Added format option presets:
short
,fullPrecision
,colonNotation
- Replaced
-
Improved base performance of parsing durations by up to 1,100%
-
Removed ability for parse to handle maths operators, this will likely be re-added in a future version as an option
-