unstale

npm / ioredis

ioredis

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

3 breaking3 security21 new APIs and options2 behavior and defaults14 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.1.1 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 522 changes

New APIs and options 12

Behavior and default changes 1

Fixes and other changes 9

  • 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