Skip to content

Releases: tom-wolfe/dice-typescript

v1.6.1 - Better Condition Checking

24 Oct 15:26
dd0c401
Compare
Choose a tag to compare

Conditions on re-rolls and explosions will now be checked to make sure they are possible. For example 1d2r<3 will give an error, because a d2 can only ever roll less than three.

v1.6.0 - Minor Features

16 Oct 07:11
440b7ed
Compare
Choose a tag to compare

Several features have been included with this release:

  • Dice rolls no-longer need to have a specified number of sides. For example d6 will roll 1d6.
  • 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

04 Oct 11:19
Compare
Choose a tag to compare

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

07 Aug 10:22
Compare
Choose a tag to compare

The build has been updated to output type declarations for easier use with other TypeScript projects.

v1.4.0 - Rendered Expression

20 Apr 10:28
52d958f
Compare
Choose a tag to compare

A DiceResult object now has a renderedExpression property that will show the individual dice rolls.

v1.3.0 - Random engine improvements

23 Mar 15:00
Compare
Choose a tag to compare

The random engine is now based on RandomJS rather than using the default implementation.

v1.2.0 - Typings

21 Mar 16:46
Compare
Choose a tag to compare

Removed legacy typings stuff.

v1.1.1

25 Jul 14:26
Compare
Choose a tag to compare

Updated the readme file to fix badges.

v1.1.0

25 Jul 14:15
Compare
Choose a tag to compare

Primary feature set now includes repeating group elements and floating point numbers.

v1.0.0

24 Jul 09:05
Compare
Choose a tag to compare

The initial stable release of the typescript-dice library, supporting all the major features with passing tests.