22 September 2022
over 2 years ago by Viktor Yordanov
JS SDK release notes v1.4.0
Features:
- Two new methods are available in
Loyalty
namespace: getOwnRankings() and getUserRankings(). - A new method is available in
Top X
namespace: getMarketsResultsForGame(). - A new method is available in
Match Quiz
namespace: 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
,lang
andenvironment
can 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
,lang
andenvironment
are union types and the fields are OPTIONAL. To see an example to how to configure JS SDK in TypeScript you can visit this page.