unstale

npm / superagent

superagent

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

9 breaking3 new APIs and options1 behavior and defaults8 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

superagent 101 changes

New APIs and options 1

  • Adds support for the Brotli compression format.

    10.0.0release notes

superagent 92 changes

Fixes and other changes 2

  • Fixed Formidable v3 multipart form contents being mapped to the expected format.

    9.0.0release notes

  • Fixed an issue with numeric identifiers.

    9.0.0release notes

superagent 82 changes

Breaking changes 1

Fixes and other changes 1

superagent 71 changes

Fixes and other changes 1

superagent 61 changes

Fixes and other changes 1

  • Fixed case-sensitivity handling for content-type.

    6.0.0release notes

superagent 52 changes

New APIs and options 1

  • Adds an upload timeout so developers can limit how long an upload takes.

    5.0.0release notes

Fixes and other changes 1

superagent 412 changes

Breaking changes 8

  • In Node, responses with unknown MIME types are buffered by default; use buffer(false) on requests or set superagent.buffer[yourMimeType] = false to retain old behavior with custom unbuffered parsers.

    4.0.0release notes

  • end() returns undefined instead of the request; save the request in a variable if needed, or migrate to promises with then().

    4.0.0release notes

  • Calling abort().end() now throws.

    4.0.0release notes

  • The promise returned by end() is rejected on all error events.

    4.0.0release notes

  • Browser code now uses ES6; Browserify or Webpack bundles targeting Internet Explorer also need Babel. The pre-built node_modules/superagent.js remains ES5-compatible.

    4.0.0release notes

  • Node.js v4 is no longer supported; Node.js v6 or later is required, with Node.js 10 recommended.

    4.0.0release notes

  • Invalid uses of pipe() now throw.

    4.0.0release notes

  • Unsupported combinations of send and field now throw.

    4.0.0release notes

New APIs and options 1

  • Default buffer settings can now be based on response-type.

    4.0.0release notes

Behavior and default changes 1

  • Backticks are left unencoded in query strings where possible.

    4.0.0release notes

Fixes and other changes 2

  • In Node, https.servername is set from the Host header.

    4.0.0release notes

  • response.buffered now reports buffering more accurately.

    4.0.0release notes