Skip to content

Releases: gigobyte/HLTV

2.2.3

11 Sep 20:28
Compare
Choose a tag to compare

Messed up version 2.2.2 and this resulted in an extra version bump

  • Added winnerTeam property to the match model
  • Fixed a bug when parsing vetos (Parsing error #18)

2.2.1

23 Aug 20:06
Compare
Choose a tag to compare
  • Fixed match streams (No stream name #16) | thanks 0ArturkA

2.2.0

15 Aug 20:38
Compare
Choose a tag to compare
  • Added getTeamStats method

2.1.1

14 Aug 16:45
Compare
Choose a tag to compare
  • Fixed Team data not parsing #10

2.1.0

10 Aug 20:48
Compare
Choose a tag to compare
  • Added getTeam method

2.0.0

05 Aug 14:07
Compare
Choose a tag to compare

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*

1.2.1

14 Jun 20:11
Compare
Choose a tag to compare
  • Added connectToScorebot method

1.1.0

04 Jun 10:29
Compare
Choose a tag to compare
  • Added getTeamRankingDates method
  • Added getTeamRanking method

1.0.0

03 Jun 20:03
Compare
Choose a tag to compare

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 string
  • players is now an object instead of two-dimensional array
  • highlights has been removed because it was unstable

getMatches

  • time has been renamed to date to keep the API consistent and it's also now a unix timestamp instead of string
  • map string has been changed to a maps array because live matches now show all played maps in the new matches page
  • eventId is now part of a event object property that has the event name in addition to the id
  • finished has been removed as the matches page no longer shows finished matches

getLatestResults

  • map has been renamed to maps
  • event property has been added with id and name

getStreams

  • country has been changed from a string to a object with name and code properties

getActiveThreads

  • category property has been added to indicate the type of thread

0.2.3

03 Jun 16:52
Compare
Choose a tag to compare

Temporary fix by @LaCTuK, you can check out the changes here