unstale

npm / d3-format

d3-format

What changed in d3-format 2 to 3, from its official release notes, upgrade guides and advisories. Also covers @types/d3-format. Sources checked 2026-10-27.

4 breaking3 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.2.8 on npm

d3-format 36 changes

Breaking changes 3

  • Formats zero as 0 instead of 0.0.

    3.1.1release notes

  • The package now requires Node.js 12 or higher.

    3.0.0release notes

  • The package adopts the module type, affecting how Node.js interprets its files.

    3.0.0release notes

Fixes and other changes 3

  • Fixes handling of parentheses when using formatPrefix.

    3.1.1release notes

  • Returns NaN when step is zero.

    3.1.1release notes

  • Prevents the s format from sometimes applying an erroneous suffix to NaN or ±Infinity.

    3.1.1release notes

d3-format 21 changes

Breaking changes 1

  • The default minus sign changes from hyphen-minus (-) to minus sign (−).

    2.0.0release notes