Skip to content

2.0.0

Compare
Choose a tag to compare
@gigobyte gigobyte released this 05 Aug 14:07
· 944 commits to master since this release

Package rewritten in TypeScript ✨

General

Two new named exports added - MatchType and Map, they are both used to easily filter matches for the new getMatchesStats endpoint.

import HLTV, { MatchType, Map } from 'hltv'
  • getMatchesStats and getMatchMapStats methods added.

getMatch

  • team1 and team1Id have been merged into a team1 object that has name and id properties. Same goes for team2.
  • vetoes property added.
  • event's link property has been changed to id.
  • players property has been changed. Now the keys are static - team1 and team2 and now it's an array of objects containing player names and IDs, not just names.
  • live property bugfix.
  • hasScorebot property added.
  • highlightedPlayer property added. Keep in mind that for past matches this property contains the "Top player in match".
  • headToHead property added.
  • highlights property added.

getMatches

  • Split live matches and upcoming matches into different interfaces.
  • team1 and team2 changed the same way as in getMatch.
  • map property added.
  • label changed to title.
  • stars property added.

getLatestResults

  • renamed to getResults.
  • team1 and team2 changed the same way as in getMatch.
  • stars property added.

getActiveThreads

  • renamed to getRecentThreads

getTeamRankingDates *REMOVED*