Releases: FasterSpeeding/Sake
Releases · FasterSpeeding/Sake
v1.0.3a1
v1.0.2a1
v1.0.1a1
1.0.1a1 - 2022-01-06
Added
RedisResource.add_to_tanjun
method for easier integration with Tanjun.
This both registers dependencies for the resource abcs and impls but also registers adapters which make Sake compatible with Tanjun's AsyncCache interfaces for the relevant resources.
Changed
abc.ABC
is now used as the base class for the abstract interfaces insake.abc
instead oftyping.Protocol
.abc.CacheIterator.len
is now guaranteed to always returnsint
.
v1.0.0a1
1.0.0a1 - 2021-12-25
Added
- Python 3.10 compatibility thx to Aioredis 2.0.0.
- Efficiency improvements brought in by the switch to listening to raw event dispatch.
ClosedClient
error which is raised in favour ofRuntimeError
when an operation is attempted on an inactive sake client.- Client
is_alive
attribute (both on the abstract interface and redit impl).
Changed
- Aioredis dependency minimum version to 2.0.0.
This comes with breaking changes to how RedisClient is initialised as parameters have been replaced and changed (semantically speaking).
For more information on this see the documentation.
And the client returned byRedisClient.get_connection
is now fundamentally different. - Bumped Hikari dependency minimum version to 2.0.0.dev104.
- The structure and semantics of internal aspects of RedisClient like how it manages the database connections and how it loads listeners have changed.
- Renamed
sake.traits
tosake.abc
. - Renamed
RedisClient.rest
toapp
and.dispatch
to.event_manager
. - IDs are now always stored as strings.
- Renamed
rest
toapp
inRedisClient.__init__
and moved away from inferring the event manager from this argument (it now must always be passed asevent_manager
if you want the client to listen to events to fill itself). event_managed
argument toRedisClient.__init__
to let the client be started based on the linked event manager.
Removed
sake.marshalling
and any relevant properties and arguments.- The utility functions in
sake.redis_iterators
are now private. - The "set" methods have been removed from the abstract interfaces in
sake.abc
as these are now considered implementation detail. - While this wasn't ever officially supported, passing
hikari.Unique
objects in place of IDs to RedisClients will now lead to erroneous behaviour due to an internal refactor in how IDs are handled. window_size
parameter fromRedisClient.clear_*
methods as these are no-longer chunked.