- [feat]: The instance is iterable via
for ... of
, it yields ranks in power order;
- [fix]: Set guard for
setRadix()
method to not pass incorrect radix value; - [fix]: Return
Radix
instance withvalid = false
property set on invalidsetRank()
input value;
- [fix]: Do not use
BigInt
literals as the browser support not that great;
- [fix]: Do not use
BigInt
literals as the browser support not that great;
- [enhancement]:
BigInt
used internally for ranks transformations to preserve the correct value even for unsafe integer values; - [feat]:
encode
option available via.toString(encode?, sep = "")
; - [breaking]: remove
radix
option fromtoString()
method; - [feat]:
.valueOf()
method for calculating primitive values; - [enhancement]: using native private class properties;
- [breaking]: replace
.rank()
and.ranks
with.getRank()
and.getRanks()
respectively; - [feat]: provide more input options;
- [fix]:
.setRadix()
and.setRank()
inherit the constructor options (1bfd5c8)
- [breaking]:
.setRadix()
method does not have optionaltrimZeros
argument. - [feature]:
prependZeros
helper function (5a8c0c4) - [feature]: supporing
minRanks
constructor option (fdaaa26) - [revert]: revert
trimZeros
argument (2ceb39c)
- expose
Ranks
types (b6640a3) - old method name typo (9c11991)
- wrong radix-transform result caused by rounding (9bbc873)
- [feature]:
.rank(index)
method for getting power indexes; - [feature]:
setRadix()
methodtrimZeros
optional parameter; - [fix]: expose
package.json
; - [fix]: expose
Ranks
typings;
- [breaking]:
.number()
method was renamed to.toString()
; - [feature]: ranks custom decoding options;
- [breaking]: removed aliases for
.setRadix()
method properties; - [breaking]: renamed
.asDecimal
property to.decimal
;
- [improvement]: default
radix
constructor arguments as binary zero; - [feature]:
.setRank(value, rank)
method for ranks manipulations;
- [improvement]: validating the input with fallback value;
- [feature]:
.valid
method for validation status information;
- Fixed ESM Module path;
- Basic API;