Changelog
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
3.1.3 (24-12-2023)
Features
- Town Hall 16 updates.
- Removed deprecated builder base properties.
3.1.3 (13-08-2023)
Features
- Switched to
undici
fromnode-fetch
for better performance.
3.1.0 (2023-07-28)
Features
- Builder base update and new troop levels.
3.0.2 (2023-01-15)
Bug Fixes
- 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.
Features
- Added
Client#getCapitalRaidSeasons()
method. - Added
Client#getCapitalLeagues()
method. - Added
Client#getClanCapitalRanks()
method. - Added new Super Troops in raw.json file.
Breaking Changes
- Using PascalCase instead of SCREAMING_SNAKE_CASE (#115)
Client#events
andEventManager
have been removed in favor ofPollingClient
(#117, #127)
2.8.0 (2022-07-22)
Features
- Better Throttler with JS generator function. (#111)
- Updated raw data from game files. (#111)
- New method Util#parseArmyLink has been added. (#110)
2.7.0 (2022-05-22)
Features
- Some useful QOL methods have been added. (#106)
2.6.1 (2022-02-03)
Bug Fixes
- New value and typings
notInWar
added forClanWarLeagueGroup#state
(#101) - Throw error if
Util.formatTag
/Util.parseTag
is called with invalid argument (#102)
2.6.0 (2022-01-29)
Features
- Replaced Keyv with customizable cache store (#99)
- Guide for Internal Caching
2.5.2 (2022-01-23)
Bug Fixes
2.5.1 (2022-01-11)
Bug Fixes
- Typings for
ClanWarLeagueGroup#state
property. (#94)
2.5.0 (2021-12-30)
Bug Fixes
- Fix caching issue with unnecessary/invalid query params. (#91)
- Added necessary methods to
RESTManager
class. (#92)
2.4.0 (2021-12-28)
Features
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)
Deprecations
ClanWarMember#previousBestOpponentAttack
has been deprecated. UseClanWarAttack#previousBestAttack
instead. (#87)
2.3.0 (2021-12-17)
Features
- 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)
2.2.0 (2021-12-16)
Bug Fixes
- Show units as per in-game orders. (#82) (6e23d2f)
- Season end time utility method. (#82) (6e23d2f)
- Updated raw files for new Troops. (#82) (6e23d2f)
Features
2.1.0 (2021-12-06)
Bug Fixes
Features
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)
2.0.2 (2021-11-30)
Bug Fixes
- 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)
2.0.1 (2021-11-27)
Bug Fixes
2.0.0 (2021-11-26)
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.
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)