npm / i18n-js
i18n-js
What changed in i18n-js 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
1 security1 behavior and defaults2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initi18n-js 44 changes
Security 1
Fixes prototype pollution: paths containing __proto__, constructor, or prototype no longer walk into Object.prototype, while those words remain usable as regular translation keys.
Behavior and default changes 1
numberToHuman now supports pluralized units.
Fixes and other changes 2
Fixed handling of BigNumber raising when receiving invalid numbers by default on v10.
The separator is now applied when stripInsignificantZeros is false.