unstale

npm / pretty-bytes

pretty-bytes

What changed in pretty-bytes 6 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

3 breaking1 behavior and defaults5 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

pretty-bytes 77 changes

Breaking changes 1

  • Node.js 20 is now required to use pretty-bytes.

    7.0.0release notes

Behavior and default changes 1

Fixes and other changes 5

  • Formatting edge cases are fixed.

    7.2.0release notes

  • Options are validated.

    7.2.0release notes

  • Fixes fractional digit formatting when localization is disabled.

    7.1.3release notes

  • Fixes rounding across unit boundaries when formatting byte values.

    7.1.2release notes

  • Fixes excessive precision when formatting numbers less than 1.

    7.1.1release notes

pretty-bytes 62 changes

Breaking changes 2

  • The package now requires Node.js 14.

    6.0.0release notes

  • The package is now pure ESM, changing how developers import and use it.

    6.0.0release notes