Releases: EricRovell/radix
Releases · EricRovell/radix
v1.1.0: Iteration support
- [feat]: The instance is iterable via
for ... of
, it yields ranks in power order;
v1.0.3
- [fix]: Set guard for
setRadix()
method to not pass incorrect radix value; - [fix]: Return
Radix
instance withvalid = false
property set on invalidsetRank()
input value;
1.0.2
- [fix]: Do not use
BigInt
literals as the browser support not that great;
v1.0.1: entry path fix
1.0.1
First major release: v1.0.0
- [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;
Options inheritance fix
Fixes
.setRadix()
and.setRank()
methods not inherit the constructor options;
`minRanks` option & some fixes
⚠ BREAKING CHANGES
.setRadix()
method does not have optionaltrimZeros
argument;
Features
- supporing
minRanks
constructor option (fdaaa26)
revert
- revert
trimZeros
argument (2ceb39c)
What's Changed
- feature/min-ranks by @EricRovell in #9
Full Changelog: v0.5.1...v0.6.0
Fixed radix transformation
- wrong radix-transform result caused by rounding (9bbc873)
Rank getter and trimming zeros
- [feature]:
.rank(index)
method for getting power indexes; - [feature]:
setRadix()
methodtrimZeros
optional parameter; - [fix]: expose
package.json
; - [fix]: expose
Ranks
typings;
Custom decoding and some breaking changes
- [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
;