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.

82 lines
1.5 KiB

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