Releases: peruukki/nhl-score-api
Fix schedule responses being archived too soon
Full Changelog: 0.48.8...0.48.9
Cache schedules for games in "official" state for 24 h
Prevent possibly too-long stale game data
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
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
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
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
The game stats from the NHL API changed:
- Most stat values changed from strings to numbers
- Faceoff percentage field was renamed from
faceoffPctg
tofaceoffWinningPctg
, 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
Full Changelog: 0.48.0...0.48.1
Include standings and streaks in preGameStats too
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
Just cleanup, no outside visible changes.
Full Changelog: 0.47.9...0.47.10