Releases: vbatoufflet/js-bytes
Releases · vbatoufflet/js-bytes
v0.6.0
- 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
- Fix exception with null and undefined values in isBytes
v0.5.0
- Add support for unit conversion
v0.4.0
- Add methods to add/subtract an amount of bytes to/from the current value
- Add
%vand%Vverbs 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
- 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
- Add support for negative values
- Add handling of common Unicode space separators
- New
spaceandsuffixformatting options
v0.1.2
- Update documentation generation script
- Add missing typings