Skip to content

Commit 934f3d2

Browse files
committed
add changelog for v2.2.1 and v2.2.0
1 parent 480818c commit 934f3d2

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

docs/miscellaneous/changelog.rst

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,58 @@ Changelog
77
This page keeps a fairly detailed, human readable version
88
of what has changed, and whats new for each version of the lib.
99

10+
v2.2.1
11+
------
12+
Bugs Fixed:
13+
14+
- Moved "Recall Spell" at the end of elixir spells (rather than end of all spells)
15+
16+
- Fixed a bug with CWL where the final war can be retrieved properly on the last day as `current_war`
17+
18+
- Fixed bug with iterators and comparing clan tags to skip wars.
19+
20+
21+
This release includes:
22+
`#121 <https://github.com/mathsman5133/coc.py/pull/121>`_,
23+
`#122 <https://github.com/mathsman5133/coc.py/pull/122>`_,
24+
`#130 <https://github.com/mathsman5133/coc.py/pull/130>`_,
25+
`#131 <https://github.com/mathsman5133/coc.py/pull/131>`_,
26+
27+
28+
29+
v2.2.0
30+
------
31+
This update has quite a bit of change without breaking backward compatibility.
32+
33+
For starters, support for the context manager was added #121 allowing the use of::
34+
35+
async def main():
36+
async with coc.Client() as client:
37+
# do stuff...
38+
39+
if __name__ == "__main__":
40+
asyncio.run(main())
41+
42+
Additionally, with the release of CapitalRaidSeasons we needed to improve the performance of fetching warlogs and capital raid logs. Previously, all records available from the API were fetched when in most cases, folks just needed the newest data. A `limit` parameter has been added to both `get_warlog` and `get_raidlog`.
43+
44+
Additionally, support for `async for warlog` has been added with the ability to fetch more data if needed.::
45+
46+
raid_logs = await client.get_raidlog(clan_tag, page=True, limit=5)
47+
48+
# Set `paginate=True` to enable fetching beyond the limit value until
49+
# there are more values to fetch
50+
count = 0
51+
async for i in raid_with_page:
52+
print(f"[{count}]-async limit: 5 page: True {i.start_time.time}")
53+
count += 1
54+
55+
This release includes:
56+
`#121 <https://github.com/mathsman5133/coc.py/pull/121>`_,
57+
`#122 <https://github.com/mathsman5133/coc.py/pull/122>`_,
58+
`#130 <https://github.com/mathsman5133/coc.py/pull/130>`_,
59+
`#131 <https://github.com/mathsman5133/coc.py/pull/131>`_,
60+
61+
1062
v2.1.1
1163
------
1264
- Support for Clan Capitals!

0 commit comments

Comments
 (0)