Releases: gigobyte/HLTV
Releases · gigobyte/HLTV
2.2.3
2.2.1
2.2.0
2.1.1
2.1.0
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
getTeamRankingDates *REMOVED*
1.2.1
1.1.0
1.0.0
Changes:
General
The library now exports a singleton, you no longer have to create an instance of it.
const hltv = new HLTV()
hltv.get...
is now just
HLTV.get...
getMatch
date
is now a unix timestamp instead of a stringplayers
is now an object instead of two-dimensional arrayhighlights
has been removed because it was unstable
getMatches
time
has been renamed todate
to keep the API consistent and it's also now a unix timestamp instead of stringmap
string has been changed to amaps
array because live matches now show all played maps in the new matches pageeventId
is now part of aevent
object property that has the eventname
in addition to theid
finished
has been removed as the matches page no longer shows finished matches
getLatestResults
map
has been renamed tomaps
event
property has been added withid
andname
getStreams
country
has been changed from a string to a object withname
andcode
properties
getActiveThreads
category
property has been added to indicate the type of thread