Skip to content

Releases: lordnull/dice.js

2.0 - roll modifiers and ts power.

23 Dec 06:59
Compare
Choose a tag to compare

While it should be backwards compatible, there have been enough back-end changes one should test to ensure nothing is broken. The test suite was added to, not altered, but no test suite has 100% coverage.

The 2 biggest changes: adding roll modifier syntax, and chaining the backend to use typescript.

The roll modifier syntax allows roll authors to specify when to re-roll, explode, keep, or drop results from a roll set. There's both a verbose and concise syntax for all 4 types.

An example of use is when generating DnD characters using roll 4, drop worst: 4d6:DL1.

Or the more favorable re-roll ones once, and then drop the lowest: 4d6{ reroll 1x; drop lowest 1 }

The conversion to typescript prevented many errors from seeping through, and will provide dividends as the syntax gets (potentially) more complex. This also means that it should be easier to implement one's own dice result resolver or tree walker.

Oh, also GitHub actions where added so you don't have to just take my work on the tests passing.

The Big 1.0!

13 Jul 05:28
Compare
Choose a tag to compare

Math is correct, the api is stable, and there's at least a modicum of interest outside myself. 1.0 it here!

Better Bundle Citizen

15 Mar 22:47
Compare
Choose a tag to compare

Certain bundlers did not handle the module level return statement. This also updates pegjs and test runners.

0.9.2: Bumped version in package.json

24 Jan 04:44
Compare
Choose a tag to compare

Forgot to update package.json.

Test and Doc clarifications

28 Dec 05:43
Compare
Choose a tag to compare

A feature request came in for fudge/fate support. This means supporting negative numbers in the min/max. Turns out, we already supported that, there were just no tests showing in, and no documentation pointing it out. Thus, this point release.

0.9.0: Merge pull request #18 from lordnull/mw-add-min-max-possible

05 Feb 01:36
Compare
Choose a tag to compare