unstale

npm / ioredis

ioredis

What changed in ioredis 5 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

10 breaking3 security27 new APIs and options3 behavior and defaults19 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

ioredis 621 changes

Breaking changes 3

  • Node.js 20 or newer is now required to use ioredis.

    6.0.0release notes

  • The default wire protocol is now RESP3; set protocol to 2 to retain the v5 wire protocol.

    6.0.0release notes

  • Adds RESP3 support and uses it by default; set protocol to 2 to retain the v5 wire protocol.

    6.0.0release notes

Security 3

New APIs and options 9

Behavior and default changes 1

Fixes and other changes 5

  • Recreates a stale connection when a circular MOVED occurs in cluster mode.

    6.0.0release notes

  • Keeps reconnecting if the connection closes during client setup.

    6.0.0release notes

  • Serializes large integer arguments in decimal notation.

    6.0.0release notes

  • Preserves a preferred slave priority of zero.

    6.0.0release notes

  • Clears stale socket timeouts on reconnect.

    6.0.0release notes

ioredis 541 changes

Breaking changes 7

  • Removed; ioredis now always uses a username passed via URI. Leave the username part empty if you do not want to send one to Redis.

    5.0.0release notes

  • The dropBufferSupport option was removed.

    5.0.0release notes

  • Node.js v12 or newer is required.

    5.0.0release notes

  • Redis can no longer be called as a function; instantiate it with new Redis().

    5.0.0release notes

  • Removed; this undocumented field is no longer available.

    5.0.0release notes

  • Disabled by default; previously, the default value was 5000.

    5.0.0release notes

  • Support is dropped; related methods remain but have no effect, and the native Promise is always used.

    5.0.0release notes

New APIs and options 18

Behavior and default changes 2

Fixes and other changes 14

  • Cluster clients now reconnect to nodes that restart without slot changes.

    5.11.1release notes

  • Protocol-relative Redis URLs are parsed as TCP connections.

    5.11.1release notes

  • Prevents a RangeError caused by string accumulation in pipelines.

    5.11.0release notes

  • Sharded subscribers now start lazily.

    5.10.1release notes

  • Autopipelining routes writes to masters when scaleReads is configured.

    5.9.3release notes

  • Fixes an issue with moved commands for replicas.

    5.9.3release notes

  • Optional properties on RedisOptions now allow explicit undefined in TypeScript.

    5.9.3release notes

  • Cluster reconnects sharded subscribers.

    5.9.2release notes

  • Commands no longer require unnecessary case sensitivity.

    5.9.0release notes

  • CLIENT SETINFO commands now run during the connection handshake.

    5.8.2release notes

  • A missing declaration for callBuffer was added.

    5.0.0release notes

  • The ready check is skipped on NOPERM errors.

    5.0.0release notes

  • The missing typing for Redis#call() was added.

    5.0.0release notes

  • Usernames passed via URI are now always parsed.

    5.0.0release notes