Skip to content

v6.2.0

Choose a tag to compare

@on47sky on47sky released this 30 May 20:15
· 10 commits to main since this release

Features

Dynamic markets & richer condition data

  • Added support for the new dynamic markets ("5…" conditions) that are managed via API and are not present in the dictionaries package.
  • getConditionsByGameIds now accepts an extended?: boolean flag. Set it to true to receive the new dynamic conditions in the response (defaults to false).
  • ConditionDetailedData now exposes market/outcome titles directly, plus new fields for grouping and presentation:
    • title is now always present (no longer nullable).
    • New sort, marketId and marketVarietyId fields on the condition.
    • Outcomes are now typed via the exported OutcomeData type and carry title, sort, and a point field (numeric handicap/line value such as "-2.5" for modern conditions).
  • groupConditionsByMarket reworked to group both legacy and new dynamic markets (split into legacy and v5 grouping internally).

SIWE authentication

  • New auth utilities for Sign-In With Ethereum:
    • getSiweNonce — request a nonce from the API.
    • buildSiweMessage — build the SIWE message to be signed.
    • verifySiwe — verify the signed message and obtain a session token.

User favorites

  • New API helpers to manage a user's favorite countries and leagues:
    • getUserFavorites
    • createUserFavorite (requires user auth token)
    • deleteUserFavorite (requires user auth token)
  • New exported types: Favorites, FavoriteCountry, FavoriteCountryRef, FavoriteLeague, FavoriteSport.

Full Changelog: v6.1.1...v6.2.0