Releases: tom-wolfe/dice-typescript
v1.6.1 - Better Condition Checking
v1.6.0 - Minor Features
Several features have been included with this release:
- Dice rolls no-longer need to have a specified number of sides. For example
d6
will roll1d6
. - The drop count of a dice expression will be preserved in the rendered expression.
- Options can be passed to the interpreter to set a limit on the number of rolls/dice faces. (See README for more info).
Additionally, package versions have been updated to latest to fix minor vulnerabilities.
v1.5.0 - Exports and Bugs
More types are exported from the library, making it cleaner to extend and provide custom implementations of interfaces.
There was a bug that caused the parser to crash when a function name was not in the given function definition list. This has been fixed so that an error is logged instead. (Fixes #14)
There were two other bugs with how dice modifiers were handled. The first was a misunderstanding of the regex test
function. Apparently regex.test(null) returns true, so this has been accounted for. The second was that the parser was sometimes parsing a dice roll expression (4d6) when it should have been parsing a dice expression. (4d6kl3). This has also been fixed. (Fixes #13)
v1.4.1 - Type Declarations
The build has been updated to output type declarations for easier use with other TypeScript projects.
v1.4.0 - Rendered Expression
A DiceResult object now has a renderedExpression property that will show the individual dice rolls.
v1.3.0 - Random engine improvements
The random engine is now based on RandomJS rather than using the default implementation.
v1.2.0 - Typings
Removed legacy typings stuff.