Skip to content

Releases: EricRovell/radix

v1.1.0: Iteration support

22 Oct 21:47
Compare
Choose a tag to compare
  • [feat]: The instance is iterable via for ... of, it yields ranks in power order;

v1.0.3

14 Oct 22:18
Compare
Choose a tag to compare
  • [fix]: Set guard for setRadix() method to not pass incorrect radix value;
  • [fix]: Return Radix instance with valid = false property set on invalid setRank() input value;

1.0.2

14 Oct 11:37
Compare
Choose a tag to compare
  • [fix]: Do not use BigInt literals as the browser support not that great;

v1.0.1: entry path fix

06 Oct 22:25
Compare
Choose a tag to compare

First major release: v1.0.0

06 Oct 22:11
Compare
Choose a tag to compare
  • [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 from toString() 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

12 Oct 10:26
Compare
Choose a tag to compare

Fixes

  • .setRadix() and .setRank() methods not inherit the constructor options;

`minRanks` option & some fixes

12 Oct 09:48
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • .setRadix() method does not have optional trimZeros argument;

Features

  • supporing minRanks constructor option (fdaaa26)

revert

  • revert trimZeros argument (2ceb39c)

What's Changed

Full Changelog: v0.5.1...v0.6.0

Fixed radix transformation

11 Oct 09:51
Compare
Choose a tag to compare
  • wrong radix-transform result caused by rounding (9bbc873)

Rank getter and trimming zeros

10 Oct 11:02
Compare
Choose a tag to compare
  • [feature]: .rank(index) method for getting power indexes;
  • [feature]: setRadix() method trimZeros optional parameter;
  • [fix]: expose package.json;
  • [fix]: expose Ranks typings;

Custom decoding and some breaking changes

01 Oct 17:25
Compare
Choose a tag to compare
  • [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;