Skip to content

Releases: cgrok/clashroyale

Improved error handling for PaginatedAttrDict

17 Nov 13:30
Compare
Choose a tag to compare

4.0.1 - 17/11/2018

Added

  • RuntimeError if you were calling the wrong method (iter/aiter) on an inappropriate client (i.e. async client -> iter/blocking client -> aiter)

Support for paginated responses

11 Nov 10:49
Compare
Choose a tag to compare

4.0.0 - 11/11/2018

Warning: There are breaking changes

Added

  • OfficialAPI: A way to iterate through paginated repsonses (i.e. search_clans, search_tournaments) using asynchronus generators.
  • OfficialAPI: Tests for the pagination.
  • Requirement: async_generator (For Python 3.5 support)
  • Logging URL Requests
  • Unit tests for async clients

Changed

  • Repsonses with a .items will simply be returned as a list
  • OfficialAPI.get_cards() -> OfficialAPI.get_all_cards() (Deprecated till v4.1.0)
  • OfficialAPI: before and after are no longer valid parameters as pagination is natively supported

Fixed

  • Client.close() now works if the client is async
  • function(timeout) would sometimes not work

Removed

  • clashroyale.*.utils are no longer in __init__.py
  • Individual models for all data types aren't created anymore