- Added typescript as a developer depencency.
- Added safegaurd for unknown thrown exceptions from
OpenTDBError
.
- Fixed the issue of the dist/ folder not being included.
- Reverted to
node-fetch
for Node versions < 18
- Inconsistency fixes and other minor bug fixes
-
Boolean questions now return their incorrect answer as a BooleanString and not a string[]
-
Question type now takes a generic of type QuestionTypes | unknown. Default is unknown
-
Created typings for correct and incorrect values.
-
Included URL for Session.reset() as it was missing.
-
The library received a massive rework through many quality of life changes.
-
'Static' and 'Pretty' category names are no more, developers will no longer have to worry about converting through these formats.
-
All QuestionOption option types now have respective enums to work with.
-
Category
is now just a class with various static methods for working with categories.
- Switched from https module to Node Fetch API