Skip to content

Releases: peruukki/nhl-score-api

Fix schedule responses being archived too soon

27 Mar 07:13
Compare
Choose a tag to compare

Cache schedules for games in "official" state for 24 h

26 Mar 06:51
Compare
Choose a tag to compare

Prevent possibly too-long stale game data

22 Mar 18:53
Compare
Choose a tag to compare

Related games are now evicted from short-lived cache when schedule data is refreshed. This ensures we don't use (possibly partially) stale landings if you happen to request scores right after the schedule data TTL has expired but before some landing data's TTL has expired.

Also increase the archive cache size from 32 to 64.

Full Changelog: 0.48.5...0.48.6

Cache past dates' standings for 24 h

21 Mar 07:09
Compare
Choose a tag to compare

It would be possible to cache standings even sooner but that requires extra logic, so let's start simple.

Full Changelog: 0.48.4...0.48.5

Cache game landing data in "official" state in for 24 h

19 Mar 21:06
Compare
Choose a tag to compare

Cache landing data of games in "official" state in an archive cache that has a time-to-live of 24 hours. This avoids re-fetching data repeatedly that should no longer change.

Full Changelog: 0.48.3...0.48.4

Cache individual NHL API responses

14 Mar 06:57
Compare
Choose a tag to compare

For now, we only have the same one-minute cache as before, but the goal is to have another long-term cache for responses that can be considered never-changing, to avoid continuously re-fetching the same data.

Full Changelog: 0.48.2...0.48.3

Fix game stats parsing after data format changes

07 Mar 07:43
Compare
Choose a tag to compare

The game stats from the NHL API changed:

  • Most stat values changed from strings to numbers
  • Faceoff percentage field was renamed from faceoffPctg to faceoffWinningPctg, also its value format changed to float

Interestingly, the hit counts have changed in the old game stats in the tests that I now updated with latest values from the NHL API.

Full Changelog: 0.48.1...0.48.2

Avoid unnecessary standings requests

23 Feb 07:07
Compare
Choose a tag to compare

Include standings and streaks in preGameStats too

20 Feb 07:33
Compare
Choose a tag to compare

This is now possible thanks to the new NHL API providing date specific standings.

Full Changelog: 0.47.10...0.48.0

Remove old NHL Stats API related code

10 Feb 13:13
Compare
Choose a tag to compare

Just cleanup, no outside visible changes.

Full Changelog: 0.47.9...0.47.10