unstale

npm / content-disposition

content-disposition

What changed in content-disposition 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

8 breaking3 new APIs and options1 performance1 behavior and defaults2 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.2.0 on npm

content-disposition 33 changes

Breaking changes 3

  • The package is now ESM only, which affects how developers load it.

    3.0.0release notes

  • With extended format, param* is used instead of param when both are included and encoding would otherwise occur; extended: false is unchanged.

    3.0.0release notes

  • Invalid percent-encoding in ISO-8859-1 ext-value is now rejected.

    3.0.0release notes

content-disposition 212 changes

Breaking changes 5

  • Use the named create export instead of the default export.

    2.0.0release notes

  • create no longer applies basename; pass a filename rather than a full path to avoid exposing directory structure.

    2.0.0release notes

  • The filename passed to create is now ASCII only.

    2.0.0release notes

  • The decoder no longer falls back; invalid UTF-8 is no longer supported.

    2.0.0release notes

  • The default export was removed; use the named create export instead.

    2.0.0release notes

New APIs and options 3

  • format is now exposed as a method for formatting content-disposition values.

    2.0.0release notes

  • Extended parsing can now be disabled.

    2.0.0release notes

  • The multipart option parses headers within multipart/form-data appropriately, with HTML multipart behavior compatibility.

    2.0.0release notes

Performance 1

Behavior and default changes 1

  • The parser is more lenient and now parses unicode.

    2.0.0release notes

Fixes and other changes 2

  • Allows empty parameter values in quoted text.

    2.0.1release notes

  • Uses the first extended parameter when multiple extended parameters are present.

    2.0.1release notes