Big Bug fix and feature Release v2.3.0
This release fixes multiple bugs.
Also multiple new features have been added like an event for new wars.
We worked on the docs, to improve their structure and readability.
Additions:
- Added new events
ClientEvents.raid_weekend_start,ClientEvents.raid_weekend_end,ClientEvents.clan_games_start,ClientEvents.clan_games_end,WarEvents.new_warandClanEvents.member_versus_rank - Added utility functions
utils.get_clan_games_start,utils.get_clan_games_end,utils.get_raid_weekend_startandutils.get_raid_weekend_end - Added clan capital leaderboards
- Added
Clan.capital_pointsandClan.family_friendly - Added
ClanMember.versus_rank - Added
Client.raw_attributeto control if the new_raw_dataattribute of various objects gets populated - Added
full_war_apias an extension - Added
Client.login_with_tokensoffering the same functionality asClient.login_with_keysas an asynchronous function
Changes:
- Rename of LRU to FIFO in order to match the cache type (this is only internal)
- Restructured the documentation
Client.login_with_keyswas marked as deprecated
Bugs Fixed:
- Fixed a bug which affected the key creation if there are 10 keys with at least one having the correct name but wrong ip range
- Fixed a memory leak caused by python not properly freeing disk space after the removal of cache entries
- Fixed a bug that prevented :
Client.http.statsfrom collecting API response time stats - Fixed a bug that tried to use a cache when
max_cache_sizewas set to 0 - Corrected order of elixir troops
- Fixed a bug when clans faced each other multiple times in one raid weekend
- Fixed a bug that caused automated tests on forks to fail
- Fixed a bug that prevented you from importing some classes as
coc.Class
Contributions
We want to say thank you to all those who contributed!
- Fix memory leak by @Kuchenmampfer in #154
- Fullwarapi public by @doluk in #164
- add missing classes to init.py by @Kuchenmampfer in #160
- Fix for only one raid per clan showing on atk/def log by @MagicTheDev in #158
- add clan capital leaderboards by @MagicTheDev in #157
- Moved "Electro Titan" at the end of elixir troops by @rreemmii-dev in #155
- Adds new clan class fields by @MagicTheDev in #159
- If less than 10 keys exist, at least 1 key can be made, but if 10 keys… by @AumJavalgikar in #119
- huge docs restructuring by @Kuchenmampfer in #166 and #167
Full Changelog: v2.2.3...v2.3.0