tag:github.com,2008:https://github.com/tom-wolfe/dice-typescript/releasesRelease notes from dice-typescript2018-10-24T15:25:21Ztag:github.com,2008:Repository/96404695/v1.6.12018-10-24T15:26:36Zv1.6.1 - Better Condition Checking<p>Conditions on re-rolls and explosions will now be checked to make sure they are possible. For example <code>1d2r<3</code> will give an error, because a d2 can only ever roll less than three.</p>tom-wolfetag:github.com,2008:Repository/96404695/v1.6.02018-10-16T07:12:51Zv1.6.0 - Minor Features<p>Several features have been included with this release:</p>
<ul>
<li>Dice rolls no-longer need to have a specified number of sides. For example <code>d6</code> will roll <code>1d6</code>.</li>
<li>The drop count of a dice expression will be preserved in the rendered expression.</li>
<li>Options can be passed to the interpreter to set a limit on the number of rolls/dice faces. (See README for more info).</li>
</ul>
<p>Additionally, package versions have been updated to latest to fix minor vulnerabilities.</p>tom-wolfetag:github.com,2008:Repository/96404695/v1.5.02018-10-04T11:19:28Zv1.5.0 - Exports and Bugs<p>More types are exported from the library, making it cleaner to extend and provide custom implementations of interfaces.</p>
<p>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 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="357497655" data-permission-text="Title is private" data-url="https://github.com/tom-wolfe/dice-typescript/issues/14" data-hovercard-type="issue" data-hovercard-url="/tom-wolfe/dice-typescript/issues/14/hovercard" href="https://github.com/tom-wolfe/dice-typescript/issues/14">#14</a>)</p>
<p>There were two other bugs with how dice modifiers were handled. The first was a misunderstanding of the regex <code>test</code> 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 <em>dice</em> expression. (4d6kl3). This has also been fixed. (Fixes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="349509772" data-permission-text="Title is private" data-url="https://github.com/tom-wolfe/dice-typescript/issues/13" data-hovercard-type="issue" data-hovercard-url="/tom-wolfe/dice-typescript/issues/13/hovercard" href="https://github.com/tom-wolfe/dice-typescript/issues/13">#13</a>)</p>tom-wolfetag:github.com,2008:Repository/96404695/v1.4.12018-08-07T10:22:37Zv1.4.1 - Type Declarations<p>The build has been updated to output type declarations for easier use with other TypeScript projects.</p>tom-wolfetag:github.com,2008:Repository/96404695/v1.4.02018-04-20T10:28:03Zv1.4.0 - Rendered Expression<p>A DiceResult object now has a renderedExpression property that will show the individual dice rolls.</p>tom-wolfetag:github.com,2008:Repository/96404695/v1.3.02018-03-23T15:00:35Zv1.3.0 - Random engine improvements<p>The random engine is now based on RandomJS rather than using the default implementation.</p>tom-wolfetag:github.com,2008:Repository/96404695/v1.2.02018-03-21T16:46:50Zv1.2.0 - Typings<p>Removed legacy typings stuff.</p>tom-wolfetag:github.com,2008:Repository/96404695/v1.1.12017-07-25T14:26:51Zv1.1.1<p>Updated the readme file to fix badges.</p>tom-wolfetag:github.com,2008:Repository/96404695/v1.1.02017-07-25T14:15:35Zv1.1.0<p>Primary feature set now includes repeating group elements and floating point numbers.</p>tom-wolfetag:github.com,2008:Repository/96404695/v1.0.02017-07-24T09:05:20Zv1.0.0<p>The initial stable release of the typescript-dice library, supporting all the major features with passing tests.</p>tom-wolfe