# What changed in filesize

> 14 changes in filesize 4 to 11 from its official release notes, upgrade guides and advisories: 4 breaking, 1 security. Each one cited. Sources checked 2026-11-14. HTML: https://unstale.sh/npm/filesize/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## filesize 11

### Breaking changes

- Precision is now applied before rounding for decimal units, changing the resulting formatted values. (11.0.31) — [release notes](https://github.com/avoidwork/filesize.js/blob/c42243831393f025e9960eb58bab2bb5cc96eeea/CHANGELOG.md#11031)
- Invalid rounding methods are now rejected. (11.0.30) — [release notes](https://github.com/avoidwork/filesize.js/blob/c42243831393f025e9960eb58bab2bb5cc96eeea/CHANGELOG.md#11030)
- Precision values are formatted with the default locale. (11.0.29) — [release notes](https://github.com/avoidwork/filesize.js/blob/76ea85cd7b3d0041003649881170db90825fbb2b/CHANGELOG.md#11029)

### Security

- Input validation and edge-case handling in filesize() were hardened. (11.0.24) — [release notes](https://github.com/avoidwork/filesize.js/blob/76ea85cd7b3d0041003649881170db90825fbb2b/CHANGELOG.md#11024)

### Fixes and other changes

- Accepts uppercase spellings of the standard option. (11.0.32) — [release notes](https://github.com/avoidwork/filesize.js/blob/c42243831393f025e9960eb58bab2bb5cc96eeea/CHANGELOG.md#11032)
- Locale formatting is now applied when precision is set. (11.0.28) — [release notes](https://github.com/avoidwork/filesize.js/blob/76ea85cd7b3d0041003649881170db90825fbb2b/CHANGELOG.md#11028)
- Small values and custom separators are kept free of scientific notation. (11.0.27) — [release notes](https://github.com/avoidwork/filesize.js/blob/76ea85cd7b3d0041003649881170db90825fbb2b/CHANGELOG.md#11027)
- Locale and separator options are now honored when formatting zero values. (11.0.26) — [release notes](https://github.com/avoidwork/filesize.js/blob/76ea85cd7b3d0041003649881170db90825fbb2b/CHANGELOG.md#11026)
- Preserves BigInt precision above Number.MAX_SAFE_INTEGER. (11.0.25) — [release notes](https://github.com/avoidwork/filesize.js/blob/76ea85cd7b3d0041003649881170db90825fbb2b/CHANGELOG.md#11025)
- Keeps precision trailing zeros for negative values. (11.0.23) — [release notes](https://github.com/avoidwork/filesize.js/blob/76ea85cd7b3d0041003649881170db90825fbb2b/CHANGELOG.md#11023)
- Keeps the plural fullform name when using a comma decimal separator. (11.0.22) — [release notes](https://github.com/avoidwork/filesize.js/blob/76ea85cd7b3d0041003649881170db90825fbb2b/CHANGELOG.md#11022)
- The output 'exponent' now returns the final exponent. (11.0.21) — [release notes](https://github.com/avoidwork/filesize.js/blob/76ea85cd7b3d0041003649881170db90825fbb2b/CHANGELOG.md#11021)
- The pad option is now honored for zero values. (11.0.21) — [release notes](https://github.com/avoidwork/filesize.js/blob/76ea85cd7b3d0041003649881170db90825fbb2b/CHANGELOG.md#11021)

## filesize 4

### Breaking changes

- The deprecated suffixes option was removed in this major release. (4.0.0) — [release notes](https://github.com/avoidwork/filesize.js/blob/HEAD/CHANGELOG.md)
