All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
- Town Hall 16 updates.
- Removed deprecated builder base properties.
- Switched to
undici
fromnode-fetch
for better performance.
- Builder base update and new troop levels.
- Conflict with the same name of builder base and home base troops. (#123)
- Fix the issue with the
Client#getLeagueWar()
method. - Typings and documentation for clan capital.
- Fix the issue with the
Clan#clanCapital
property.
- Added
Client#getCapitalRaidSeasons()
method. - Added
Client#getCapitalLeagues()
method. - Added
Client#getClanCapitalRanks()
method. - Added new Super Troops in raw.json file.
- Using PascalCase instead of SCREAMING_SNAKE_CASE (#115)
Client#events
andEventManager
have been removed in favor ofPollingClient
(#117, #127)
- Better Throttler with JS generator function. (#111)
- Updated raw data from game files. (#111)
- New method Util#parseArmyLink has been added. (#110)
- Some useful QOL methods have been added. (#106)
- New value and typings
notInWar
added forClanWarLeagueGroup#state
(#101) - Throw error if
Util.formatTag
/Util.parseTag
is called with invalid argument (#102)
- Replaced Keyv with customizable cache store (#99)
- Guide for Internal Caching
- Typings for
ClanWarLeagueGroup#state
property. (#94)
- Fix caching issue with unnecessary/invalid query params. (#91)
- Added necessary methods to
RESTManager
class. (#92)
ClanWar#getClanWarLeagueGroup
,ClanWar#isCWL
andClanWar#isFriendly
are now available. (#87)RESTOptions#rejectIfNotValid
added to performres.ok
operations overRESTManager
methods. Know more? (#87)Icon#fileName
andIcon#sizes
are now available inIcon
class. (#87)Badge#fileName
andBadge#sizes
are now available inBadge
class. (#87)
ClanWarMember#previousBestOpponentAttack
has been deprecated. UseClanWarAttack#previousBestAttack
instead. (#87)
- BigInt literals issue fixed. (#84)
- Some Utility methods renamed. (#84)
Util.encodeTag()
toUtil.encodeURI()
Util.encodeTagToId()
toUtil.encodeTag()
Util.decodeIdToTag()
toUtil.decodeTag()
- Added
dps
,resourceType
,trainingTime
andregenerationTime
to theUnit
class. (#85)
- Show units as per in-game orders. (#82) (6e23d2f)
- Season end time utility method. (#82) (6e23d2f)
- Updated raw files for new Troops. (#82) (6e23d2f)
-
More utility methods added to
Util
class. (#76) (ff41115)Util.formatTag(tag: string): string
Util.formatDate(date: string): Date
Util.isValidTag(tag: string): boolean
Util.encodeTagToId(tag: string): string
(Removed on 2.3.0)Util.decodeIdToTag(id: string): string
(Removed on 2.3.0)
- Return
null
forRankedPlayer.clan
if they are not in the clan. (#73) (ba82327) OverrideOptions
added forClient#getClans
andRESTManager#getClans
(#73) (ba82327)SeasonRankedPlayer
class for legend league ranking. (#73) (ba82327)
This new version is a complete TypeScript rewrite to convert everything from plain (literal JSON) objects to class (constructor) objects and support a lot more features.
- HTTP Request Request Retries (#26) (94585f3)
- Event Manager and Custom Events (#37) (5027ae6)
- Email Password Login (#31) (4153cd3)
- Queue Throttler and Batch Throttler (#34) (3a8f051)
- Override Request Options (#36) (42d7fdd)
- Internal Caching Options (#53) (984451d)
- Additional Properties for Player Units (#65) (aa1696)