2.0.0
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
andgetMatchMapStats
methods added.
getMatch
team1
andteam1Id
have been merged into ateam1
object that hasname
andid
properties. Same goes forteam2
.vetoes
property added.event
's link property has been changed toid
.players
property has been changed. Now the keys are static -team1
andteam2
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
andteam2
changed the same way as ingetMatch
.map
property added.label
changed totitle
.stars
property added.
getLatestResults
- renamed to getResults.
team1
andteam2
changed the same way as ingetMatch
.stars
property added.
getActiveThreads
- renamed to getRecentThreads