Skip to content

Latest commit

 

History

History
77 lines (49 loc) · 3.02 KB

CHANGELOG.md

File metadata and controls

77 lines (49 loc) · 3.02 KB

Changelog

[1.1.0] (2022-10-23)

  • [feat]: The instance is iterable via for ... of, it yields ranks in power order;

[1.0.3] (2022-10-15)

  • [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] (2022-10-14)

  • [fix]: Do not use BigInt literals as the browser support not that great;

[1.0.1] (2022-10-07)

  • [fix]: Do not use BigInt literals as the browser support not that great;

[1.0.0] (2022-10-07)

  • [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;

[0.6.1] (2021-10-12)

  • [fix]: .setRadix() and .setRank() inherit the constructor options (1bfd5c8)

[0.6.0] (2021-10-12)

  • [breaking]: .setRadix() method does not have optional trimZeros argument.
  • [feature]: prependZeros helper function (5a8c0c4)
  • [feature]: supporing minRanks constructor option (fdaaa26)
  • [revert]: revert trimZeros argument (2ceb39c)

0.5.1 (2021-10-11)

  • expose Ranks types (b6640a3)
  • old method name typo (9c11991)
  • wrong radix-transform result caused by rounding (9bbc873)

0.5.0 (2021-10-10)

  • [feature]: .rank(index) method for getting power indexes;
  • [feature]: setRadix() method trimZeros optional parameter;
  • [fix]: expose package.json;
  • [fix]: expose Ranks typings;

0.4.0 (2021-10-01)

  • [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;

0.3.0 (2021-08-28)

  • [improvement]: default radix constructor arguments as binary zero;
  • [feature]: .setRank(value, rank) method for ranks manipulations;

0.2.0 (2021-08-28)

  • [improvement]: validating the input with fallback value;
  • [feature]: .valid method for validation status information;

0.1.1 (2021-08-25)

  • Fixed ESM Module path;

0.1.0 (2021-08-23)

  • Basic API;