Repository navigation
Releases
3.5.0
This release updates the bundled hiredis C library to v1.5.0, adds wheels for Python 3.15, and drops support for Python 3.8.
Breaking Changes
-
Drop Python 3.8 support (#258)
python_requiresis now>=3.9, and no morecp38wheels will be published. pip on Python 3.8 will keep resolving to hiredis 3.4.x.
🚀 New Features
-
Bump hiredis to v1.5.0 (#257)
The C parser picks up upstream fixes, including protection against overflow of map elements (redis/hiredis#1323). The nesting limit is now configurable upstream, but it still defaults to 1024, so parsing behavior has not changed.
-
Build wheels for Python 3.15 (#255)
Wheels are now built with cibuildwheel 4.x and cover CPython 3.15 and free-threaded 3.15t.
🧰 Maintenance
- Add security policy (#245)
- Update dependencies and fix CI (#233)
- Fix benchmarking for hiredis-py (#232)
- Remove outdated spell check workflow (#259)
This release also includes the fixes that already shipped in 3.4.1 (hiredis v1.4.1, #243) and 3.4.2 (a push notification memory leak fix, #239).
Contributors
We'd like to thank all the contributors who worked on this release!
@mmick78, @MugundanMCW, @shaanmajid, @uglide and @vladvildanov
3.4.2
This is a bugfix release. Users of hiredis-py 3.4.x that receive RESP3 push notifications — pub/sub deliveries or client-side cache invalidations — are encouraged to upgrade.
🐛 Bug Fixes
- Release the list each push notification is sized from (#239)
PushNotificationType_New pre-sized every PushNotification with a list that PyList_SetSlice only borrows, and the reference was never dropped. Each RESP3 push notification therefore stranded one list object for the lifetime of the process. Because push notifications carry pub/sub deliveries and client-side caching invalidations, the leak grew with message volume rather than with the number of connections, making it unbounded for a long-lived subscriber — roughly 20 MB per 200,000 four-element notifications, and more for larger ones. Dropping the reference also removes an allocation from the parse path, which makes parsing a small notification about 10% faster.
The same change checks PyList_New for failure and guards tryParentize against a NULL reply, so an allocation failure is now reported as an error instead of writing elements past the end of a zero-length notification.
RESP2 array replies were never affected.
Contributors
Thanks to @mmick78 for finding and fixing this.
3.4.1
This is a security fix release. All users of hiredis-py 3.4.x are strongly encouraged to upgrade.
🔒 Security Fixes
Updates the bundled hiredis C library to v1.4.1, which fixes:
- Prevent arbitrarily nested replies from causing a stack overflow (redis/hiredis#1340)
- Protect against overflow of map elements (redis/hiredis#1341)
Acknowledgements
Vulnerability discovered by He Huang (hehuang@swin.edu.au), Swinburne University of Technology, Melbourne, Australia; discovered using NexusSan.
3.4.0
Changes
- Add support for building and releasing hiredis-py on Windows ARM64 (#225)
- Use hiredis v1.4.0 with improved floating-point number parsing
- Drop python and pypy 3.8 support, test against pypy-3.11 (#223)
Maintainance
- Update dependencies and fix CI (#233)
- Fix benchmarking for hiredis-py (#232)
- Update workflow versions to address Node v20 deprecation (#228)
- Run integration tests on Windows ARM64 for Python 3.11 and 3.14 (#226)
- Bump memray from 1.17.1 to 1.19.2 (#224)
- Bump GitHub action versions (#222)
- Add Python 3.15.0a7 to CI matrix (#221)
- MNT: do not use deprecated load_module method (#218)
- Use Python 3.11 in FreeBSD CI run (#219)
- Bump version to 3.4.0-dev (#216)
Contributors
We'd like to thank all the contributors who worked on this release!
3.3.1
Changes
This release fixes a compatibility issue with Python 3.15:
- MNT: do not use deprecated load_module method (#218)
Contributors
We'd like to thank all the contributors who worked on this release!
3.3.0
Changes
- Add Python 3.14 to CI and wheels (#213 by @zweizeichen)
Contributors
We'd like to thank all the contributors who worked on this release!