Skip to content

Releases: FasterSpeeding/Sake

v1.0.3a1

27 Aug 02:18
7640539
Compare
Choose a tag to compare

1.0.3a1 - 2022-08-27

Fixed

  • Fixed compatibility with newer Hikari and Tanjun releases.

v1.0.2a1

13 Jan 17:16
215f2d8
Compare
Choose a tag to compare

1.0.2a1 - 2022-01-13

Fixed

  • The Redis clear_voice_states_for_guild method mishandling passing coroutines to asyncio.gather leading to errors being raised.

Removed

  • The Prefix and Integration cache implementations and interfaces as a part of pruning out-of-scope and useless cache stores.

v1.0.1a1

06 Jan 11:32
a66e053
Compare
Choose a tag to compare

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 in sake.abc instead of typing.Protocol.
  • abc.CacheIterator.len is now guaranteed to always returns int.

v1.0.0a1

25 Dec 12:41
ce83b2e
Compare
Choose a tag to compare

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 of RuntimeError 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 by RedisClient.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 to sake.abc.
  • Renamed RedisClient.rest to app and .dispatch to .event_manager.
  • IDs are now always stored as strings.
  • Renamed rest to app in RedisClient.__init__ and moved away from inferring the event manager from this argument (it now must always be passed as event_manager if you want the client to listen to events to fill itself).
  • event_managed argument to RedisClient.__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 from RedisClient.clear_* methods as these are no-longer chunked.

First release

16 Nov 05:56
3fb31b7
Compare
Choose a tag to compare