|
Some checks failed
🚀 Deploy / 🧪 Test (pull_request) Successful in 2m28s
🚀 Deploy / ʦ TypeScript (pull_request) Failing after 1m9s
🚀 Deploy / 🔍 Lint (pull_request) Successful in 46s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
- Switch MLB standings from deprecated statsapi.mlb.com to ESPN API (same source as NBA, WNBA, MLS — no auth required) - Extract shared espn.ts utility: EspnStat/Team/Entry/Group/Response interfaces, statsMap(), flattenEspnStandings(), parseConferenceRank(), sortByWinLoss(); removes 4× duplication across adapters - Fix parseConferenceRank falsy-zero bug (|| undefined → isNaN guard) - Add stable alphabetical tiebreaker to MLB, NBA, WNBA sort comparators - Fix winPct silent-zero: fall back to wins/(wins+losses) if ESPN omits stat - Pre-build statsMap once per entry before sorting in all adapters - Fix WNBA parseEntry to accept pre-computed sm instead of rebuilding it - Restore and update gamesBack tests (ESPN returns numeric 0 for leaders, not the old API's "-" string) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| afl.ts | ||
| epl.ts | ||
| espn.ts | ||
| f1.ts | ||
| index.ts | ||
| mlb.ts | ||
| mls.ts | ||
| nba.ts | ||
| nhl.ts | ||
| thesportsdb.ts | ||
| types.ts | ||
| wnba.ts | ||