unstale

npm / filesize

filesize

What changed in filesize 4 to 11, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-14.

4 breaking1 security9 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

filesize 1113 changes

Breaking changes 3

  • Precision is now applied before rounding for decimal units, changing the resulting formatted values.

    11.0.31release notes

  • Invalid rounding methods are now rejected.

    11.0.30release notes

  • Precision values are formatted with the default locale.

    11.0.29release notes

Security 1

  • Input validation and edge-case handling in filesize() were hardened.

    11.0.24release notes

Fixes and other changes 9

  • Accepts uppercase spellings of the standard option.

    11.0.32release notes

  • Locale formatting is now applied when precision is set.

    11.0.28release notes

  • Small values and custom separators are kept free of scientific notation.

    11.0.27release notes

  • Locale and separator options are now honored when formatting zero values.

    11.0.26release notes

  • Preserves BigInt precision above Number.MAX_SAFE_INTEGER.

    11.0.25release notes

  • Keeps precision trailing zeros for negative values.

    11.0.23release notes

  • Keeps the plural fullform name when using a comma decimal separator.

    11.0.22release notes

  • The output 'exponent' now returns the final exponent.

    11.0.21release notes

  • The pad option is now honored for zero values.

    11.0.21release notes

filesize 41 changes

Breaking changes 1

  • The deprecated suffixes option was removed in this major release.

    4.0.0release notes