Skip to content

Releases: vbatoufflet/js-bytes

v0.6.0

26 Apr 20:21
2e9f367

Choose a tag to compare

  • Add package exports for ES modules and CommonJS consumers
  • Mark the package as side-effect free
  • Improve parsing, formatting and unit conversion performance
  • Publish TypeScript declarations from dist

Breaking changes:

  • Require Node.js 22 or later
  • Remove Bytes.isBytes() in favor of instanceof checks
  • Remove the standalone types package directory

v0.5.1

15 Jul 11:49

Choose a tag to compare

  • Fix exception with null and undefined values in isBytes

v0.5.0

05 Jan 08:30

Choose a tag to compare

  • Add support for unit conversion

v0.4.0

19 Apr 10:59

Choose a tag to compare

  • Add methods to add/subtract an amount of bytes to/from the current value
  • Add %v and %V verbs support to format specifier
  • Fix missing type guard on isBytes() method

Breaking changes:

  • Rename toBytes() into valueOf() to use as primitive value

v0.3.0

18 Apr 07:34

Choose a tag to compare

  • Add options to handle sign printing, output unit and printing width
  • Add support for printf-like formatting
  • Make formatting options parameters optional

v0.2.0

16 Apr 05:08

Choose a tag to compare

  • Add support for negative values
  • Add handling of common Unicode space separators
  • New space and suffix formatting options

v0.1.2

14 Apr 17:29

Choose a tag to compare

  • Update documentation generation script
  • Add missing typings