22 September 2022
over 3 years ago by Viktor Yordanov
JS SDK release notes v1.4.0
Features:
- Two new methods are available in
Loyaltynamespace: getOwnRankings() and getUserRankings(). - A new method is available in
Top Xnamespace: getMarketsResultsForGame(). - A new method is available in
Match Quiznamespace: getMarketsResultsForGame().
Improvements:
- Configuration validator is now improved and in certain cases new warning messages are logged to the developer or new error messages are throwed. More information here.
Bug fixes:
-
When calling getMyPredictionsForMatches JS SDK returns all user's own predictions.Now it wil return accurate response (only predictions for provided matchIds).
-
When JS SDK is installed in other TypeScript project, configuration's fields
idSchema,langandenvironmentcan not be passed as value of their type enums. That is because enums are exported in d.ts files and importing them in other TypeScript project cause misleading errors. Now fieldsidSchema,langandenvironmentare union types and the fields are OPTIONAL. To see an example to how to configure JS SDK in TypeScript you can visit this page.
