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 inithiredis 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.
Python and PyPy 3.8 are no longer supported.
Redis sets are returned as Python lists.
Security 4
The C parser gains upstream protection against overflow of map elements.
Allocation failure is now reported as an error instead of writing elements past the end of a zero-length notification.
Prevents arbitrarily nested replies from causing a stack overflow.
Protects against overflow of map elements.
Tooling 2
Wheels are now built for CPython 3.15 and free-threaded 3.15t.
Building and releasing hiredis-py on Windows ARM64 is now supported.
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.
Fixes a compatibility issue with Python 3.15 by avoiding the deprecated load_module method.
hiredis 24 changes
Breaking changes 1
Drops support for Python 2.7, 3.4, and 3.5.
New APIs and options 1
Adds support for RESP3.
Tooling 2
Builds wheels for aarch64 (arm64).
Adds type hints.