Skip to content

Releases: clashperk/clashofclans.js

2.5.1

11 Jan 16:11
63736bf
Compare
Choose a tag to compare

Bug Fixes

  • Typings for ClanWarLeagueGroup#state property. (#94)

2.5.0

29 Dec 19:43
597dedf
Compare
Choose a tag to compare
  • Fix caching issue with unnecessary/invalid query params. (#91)
  • Added necessary methods to RESTManager class. (#92)

2.4.0

28 Dec 08:38
0d3fbc6
Compare
Choose a tag to compare

Features

  • ClanWar#getClanWarLeagueGroup, ClanWar#isCWL and ClanWar#isFriendly are now available. (#87)
  • RESTOptions#rejectIfNotValid added to perform res.ok operations over RESTManager methods. Know more? (#87)
  • Icon#fileName and Icon#sizes are now available in Icon class. (#87)
  • Badge#fileName and Badge#sizes are now available in Badge class. (#87)

Deprecations

  • ClanWarMember#previousBestOpponentAttack has been deprecated. Use ClanWarAttack#previousBestAttack instead. (#87)

2.3.0

16 Dec 20:13
5c0896a
Compare
Choose a tag to compare

Features

  • BigInt literals issue fixed. (#84)
  • Some Utility methods renamed. (#84)
    • Util.encodeTag() to Util.encodeURI()
    • Util.encodeTagToId() to Util.encodeTag()
    • Util.decodeIdToTag() to Util.decodeTag()
  • Added dps, resourceType, trainingTime and regenerationTime to the Unit class. (#85)

2.2.0

16 Dec 07:31
1030d3c
Compare
Choose a tag to compare

Bug Fixes

Features

  • Added seasonal, boostable and isLoaded property to Unit class. (#82) (95cf300)

2.1.0

06 Dec 08:49
37563ef
Compare
Choose a tag to compare

Bug Fixes

  • Consistency of ClanWar.attacksPerMember property. (#75) (6e23d2f)

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)
  • Support of async/await for custom events (#79) (ff41115)

2.0.2

30 Nov 11:14
98d477a
Compare
Choose a tag to compare

Bug Fixes

  • Return null for RankedPlayer.clan if they are not in the clan. (#73) (ba82327)
  • OverrideOptions added for Client#getClans and RESTManager#getClans (#73) (ba82327)
  • SeasonRankedPlayer class for legend league ranking. (#73) (ba82327)

2.0.1

27 Nov 10:23
0dd451f
Compare
Choose a tag to compare

Bug Fixes

  • IP retrieval method and Event Loop (#70) (82b84ba)

2.0.0

26 Nov 16:36
2c5b083
Compare
Choose a tag to compare

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

Links

Full Changelog: 1.5.5...2.0.0

1.5.5

31 Oct 17:54
7967143
Compare
Choose a tag to compare
  • This is the end of v1