Skip to content

v2.2.3a1

Choose a tag to compare

@FasterSpeeding FasterSpeeding released this 06 Jan 11:10
· 711 commits to master since this release
5436861

2.2.3a1 - 2022-01-06

Added

  • The interface for a generic (type-based) asynchronous cache dependency.

    While this doesn't introduce any new implementation(s), this interface has been integrated into Tanjun (based on Hikari types) in places which are currently making cache/REST calls and can be used to better integrate 3rd-party caches with Tanjun.

    Redis based implementations of this for the types found in Hikari's gateway cache interface can be found in hikari-sake >=v1.0.1a1 (exposed by RedisResource.add_to_tanjun).

Removed

  • BaseConverter.convert in-favour of having each standard converter directly implement __call__.
  • tanjun.conversion.InjectableConverter.
  • InjectionContext.get_type_special_case in favour of a get_type_dependency method which tries the context's client before returning the special case if registered.