You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
1.7 KiB

3 months ago
  1. 3.1.2 / 2022-01-27
  2. ==================
  3. * Fix return value for un-parsable strings
  4. 3.1.1 / 2021-11-15
  5. ==================
  6. * Fix "thousandsSeparator" incorrecting formatting fractional part
  7. 3.1.0 / 2019-01-22
  8. ==================
  9. * Add petabyte (`pb`) support
  10. 3.0.0 / 2017-08-31
  11. ==================
  12. * Change "kB" to "KB" in format output
  13. * Remove support for Node.js 0.6
  14. * Remove support for ComponentJS
  15. 2.5.0 / 2017-03-24
  16. ==================
  17. * Add option "unit"
  18. 2.4.0 / 2016-06-01
  19. ==================
  20. * Add option "unitSeparator"
  21. 2.3.0 / 2016-02-15
  22. ==================
  23. * Drop partial bytes on all parsed units
  24. * Fix non-finite numbers to `.format` to return `null`
  25. * Fix parsing byte string that looks like hex
  26. * perf: hoist regular expressions
  27. 2.2.0 / 2015-11-13
  28. ==================
  29. * add option "decimalPlaces"
  30. * add option "fixedDecimals"
  31. 2.1.0 / 2015-05-21
  32. ==================
  33. * add `.format` export
  34. * add `.parse` export
  35. 2.0.2 / 2015-05-20
  36. ==================
  37. * remove map recreation
  38. * remove unnecessary object construction
  39. 2.0.1 / 2015-05-07
  40. ==================
  41. * fix browserify require
  42. * remove node.extend dependency
  43. 2.0.0 / 2015-04-12
  44. ==================
  45. * add option "case"
  46. * add option "thousandsSeparator"
  47. * return "null" on invalid parse input
  48. * support proper round-trip: bytes(bytes(num)) === num
  49. * units no longer case sensitive when parsing
  50. 1.0.0 / 2014-05-05
  51. ==================
  52. * add negative support. fixes #6
  53. 0.3.0 / 2014-03-19
  54. ==================
  55. * added terabyte support
  56. 0.2.1 / 2013-04-01
  57. ==================
  58. * add .component
  59. 0.2.0 / 2012-10-28
  60. ==================
  61. * bytes(200).should.eql('200b')
  62. 0.1.0 / 2012-07-04
  63. ==================
  64. * add bytes to string conversion [yields]