Skip to content

Releases

3.5.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 16:50

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_requires is now >=3.9, and no more cp38 wheels 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

Choose a tag to compare

@uglide uglide released this 22 Sep 11:27
b1b2951

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

Choose a tag to compare

@uglide uglide released this 07 Aug 08:46
70d8379

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:

Acknowledgements

Vulnerability discovered by He Huang (hehuang@swin.edu.au), Swinburne University of Technology, Melbourne, Australia; discovered using NexusSan.

3.4.0

Choose a tag to compare

@uglide uglide released this 03 Jun 14:46

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!

@MugundanMCW, @tacaswell, @uglide

3.3.1

Choose a tag to compare

@github-actions github-actions released this 16 Mar 14:10

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!

@tacaswell

3.3.0

Choose a tag to compare

@github-actions github-actions released this 14 Oct 15:25

Changes

Contributors

We'd like to thank all the contributors who worked on this release!

3.2.1

Choose a tag to compare

@github-actions github-actions released this 23 May 10:50

Changes

  • Fix assertion in reader.c (#212)

Contributors

We'd like to thank all the contributors who worked on this release!

@uglide

3.2.0

Choose a tag to compare

@github-actions github-actions released this 22 May 08:58
f715de2

Changes

  • Introduce new type for RESP3 PUSH notifications (#208)
  • Run integration workflow on version branches (#210)
  • Update hiredis to 1.3.0 (#203)

Contributors

We'd like to thank all the contributors who worked on this release!

@uglide

3.1.1

Choose a tag to compare

@github-actions github-actions released this 09 May 15:30
043ce91

Summary

This is a maintenance release that addresses issues in RESP3 parsing.

Changes

  • Fix memory leaks and segfaults in RESP3 map parsing (#204, #205, #206)

3.1.0

Choose a tag to compare

@vladvildanov vladvildanov released this 04 Dec 14:01
d72ff3d

Changes

  • Update Python 3.13 compatibility (#199)

Contributors

We'd like to thank all the contributors who worked on this release!

@DeD1rk