From eaad1950ae1f2e35ffb97a581576a989d94d26fd Mon Sep 17 00:00:00 2001 From: MagicTheDev Date: Thu, 2 Jan 2025 04:18:47 -0600 Subject: [PATCH] update changelog --- docs/miscellaneous/changelog.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/miscellaneous/changelog.rst b/docs/miscellaneous/changelog.rst index ab1e564b..0b3d8996 100644 --- a/docs/miscellaneous/changelog.rst +++ b/docs/miscellaneous/changelog.rst @@ -17,9 +17,11 @@ Additions: - Added new Minion Prince hero to :class:`Hero` - Updated static data & enums for TH17 - Added explicit cache control to every endpoint - - Use :attr:`coc.Client.lookup_cache` (default `True`) or pass it as a kwarg to API calling methods (default `None`) to control whether a lookup in the cache is performed. If `None`, it defaults to :attr:`client.lookup_cache`. - - Use :attr:`coc.Client.update_cache` to control whether the cache is updated after a request. - - Use :attr:`coc.Client.ignore_cached_errors` to specify status codes to ignore in the cache. For example, cached `404 Not Found` responses can be bypassed by setting `ignore_cached_errors=[404]`. + - Use :attr:`coc.Client.lookup_cache` (default `True`) or pass it as a kwarg to API calling methods (default `None`) to control whether a lookup in the cache is performed. If `None`, it defaults to :attr:`client.lookup_cache`. + - Use :attr:`coc.Client.update_cache` to control whether the cache is updated after a request. + - Use :attr:`coc.Client.ignore_cached_errors` to specify status codes to ignore in the cache. For example, cached `404 Not Found` responses can be bypassed by setting `ignore_cached_errors=[404]`. +- Moved `cls` functionality for player, war, and clan data from `EventClient` to `Client` + - Previously, `cls` could only be set at the `EventClient` level and applied to every event automatically. Now, it can be set directly in the normal `Client` when initializing and can override the API call if needed. This eliminates the need to change `cls` for every individual API call. Bugs Fixed: ~~~~~~~~~~~