Skip to content

5.3.0

Compare
Choose a tag to compare
@petyaslavova petyaslavova released this 30 Apr 14:53

Changes

🚀 New Features

Token-based authentication:

  • Added StreamingCredentialProvider interface (#3445)
  • Extended CredentialProvider class with get_credentials_async method (#3445)
  • Added event-driven entities (Dispatcher, Listener, Events) (#3445)

New StreamingCredentialProvider interface was added with an idea to integrate redis-py with credential providers that stream an events that should be handled by given listeners.

Check the documentation for the quick start guide.

CredentialProvider instance creation interface was enhanced. Feel free to check the updated documentation

Other features:

  • Exponential with jitter backoff (#3550)
  • Adding load balancing strategy configuration to cluster clients(replacement for 'read_from_replicas' config) (#3563)

⚠️ Deprecations

  • Deprecating unused arguments in connection pools's get_connection functions(#3517 #3625)
  • Adding load balancing strategy configuration to cluster clients(replacement for 'read_from_replicas' config) (#3563)

🐛 Bug Fixes

  • When SlotNotCoveredError is raised, the cluster topology should be reinitialized as part of error handling and retrying of the commands. (#3621)
  • Fixed Token-based authentication documentation
  • Fixed bug with missing PyJWT dependency (#3462)
  • Fixed flacky TokenManager test (#3468)
  • Fix incorrect attribute reuse in redis.connection.CacheProxyConnection (#3456)
  • Moved self._lock initialisation to Pool constructor (#3473)
  • Remove decreasing of created connections count when releasing not owned by connection pool connection(fixes issue #2832). (#3514)

🧰 Maintenance

  • Updated CredentialProvider test infrastructure (#3502)
  • Expand type for EncodedT (#3472)
  • DOC-4423: add TCEs for various command pages (#3476)
  • DOC-4345 added testable JSON search examples for home page (#3407)
  • DOC-4796 fixed capped lists example (#3493)
  • Added unit test fix to improve compatibility with MacOS (#3486)
  • Added missing type hints (#3494 #3495 #3496 #3357)
  • Replacing the redis and redis-stack-server images with redis-libs-tests image in test infrastructure (#3505)

Contributors

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

@uglide @woutdenolf @vladvildanov @hauntsaninja @dwdougherty @patrick91 @Vulwsztyn @JimNero009 @andy-stark-redis @petyaslavova