unstale

pypi / hiredis

hiredis

What changed in hiredis 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-12.

4 breaking4 security1 new APIs and options4 tooling2 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.2.12 on npm

hiredis 311 changes

Breaking changes 3

  • The supported Python requirement is now >=3.9; Python 3.8 is no longer supported, and pip on Python 3.8 will resolve to hiredis 3.4.x.

    3.5.0release notes

  • Python and PyPy 3.8 are no longer supported.

    3.4.0release notes

  • Redis sets are returned as Python lists.

    3.0.0release notes

Security 4

  • The C parser gains upstream protection against overflow of map elements.

    3.5.0release notes

  • Allocation failure is now reported as an error instead of writing elements past the end of a zero-length notification.

    3.4.2release notes

  • Prevents arbitrarily nested replies from causing a stack overflow.

    3.4.1release notes

  • Protects against overflow of map elements.

    3.4.1release notes

Tooling 2

  • Wheels are now built for CPython 3.15 and free-threaded 3.15t.

    3.5.0release notes

  • Building and releasing hiredis-py on Windows ARM64 is now supported.

    3.4.0release notes

Fixes and other changes 2

  • Push notifications no longer leak one list object each; dropping the reference also removes an allocation from the parse path, making small notifications about 10% faster.

    3.4.2release notes

  • Fixes a compatibility issue with Python 3.15 by avoiding the deprecated load_module method.

    3.3.1release notes

hiredis 24 changes

Breaking changes 1

New APIs and options 1

Tooling 2