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
undicifromnode-fetchfor 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#clanCapitalproperty.
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#eventsandEventManagerhave 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
notInWaradded forClanWarLeagueGroup#state(#101) - Throw error if
Util.formatTag/Util.parseTagis 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#stateproperty. (#94)
2.5.0 (2021-12-30)
Bug Fixes
- Fix caching issue with unnecessary/invalid query params. (#91)
- Added necessary methods to
RESTManagerclass. (#92)
2.4.0 (2021-12-28)
Features
ClanWar#getClanWarLeagueGroup,ClanWar#isCWLandClanWar#isFriendlyare now available. (#87)RESTOptions#rejectIfNotValidadded to performres.okoperations overRESTManagermethods. Know more? (#87)Icon#fileNameandIcon#sizesare now available inIconclass. (#87)Badge#fileNameandBadge#sizesare now available inBadgeclass. (#87)
Deprecations
ClanWarMember#previousBestOpponentAttackhas been deprecated. UseClanWarAttack#previousBestAttackinstead. (#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,trainingTimeandregenerationTimeto theUnitclass. (#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
Utilclass. (#76) (ff41115)Util.formatTag(tag: string): stringUtil.formatDate(date: string): DateUtil.isValidTag(tag: string): booleanUtil.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
nullforRankedPlayer.clanif they are not in the clan. (#73) (ba82327) OverrideOptionsadded forClient#getClansandRESTManager#getClans(#73) (ba82327)SeasonRankedPlayerclass 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)