All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
11.4.1 (2024-11-20)
- Better handling of links within rendered rollers (c2d5e17)
11.4.0 (2024-11-05)
11.3.4 (2024-10-23)
- Asynchronous rollers will now load themselves if not already loaded when
roll
is called (35102eb) - Show Dice Roller version on load (b1438ef)
11.3.3 (2024-10-23)
- Respect escaped dice flags on lookup rollers (1f48026)
11.3.2 (2024-10-04)
- Fix for bug where menu bar is not interactible if Dice Roller is enabled with no in-view dice rolls (d91a8ab)
11.3.1 (2024-10-02)
- Fixes imports for file reorg (8245e29)
11.3.0 (2024-10-02)
- Stunt dice are now renderable (e9d72b3)
- Dice rollers will now cancel rendering when unloaded (a0ddb12)
- Reverts unintentional breaking API change to
getRoller
(2aff04b)
11.2.1 (2024-09-26)
- Fixes issue where sometimes table lookup rollers wouldn't resolve (d8df63d)
11.2.0 (2024-09-25)
- Adds
lookup
parameter to table rolls. You can now specify the lookup roll directly in the table roller:dice: [[Note^table]]|lookup=2d20
(close #299) (86599ec) - Adds new "Re-roll button position" setting to control position of re-roll button. If button was previously turned off, this will be set to "None" (close #324) (69a2540)
- Dice rollers now take
kl
andkh
modifiers into account when calculating possible min and max (close #320) (2daa614) - Display dice results in dice view on mobile (close #322) (95b648d)
- Embedded content is no longer bolded by default (close #302) (3fbcbd7)
- Fixes issue where a syntax error in live preview could crash the plugin (close #300) (a1e356e)
- Fixes minor issue in data file update from < v11.2 (e33ebe0)
- kl / kh (and corresponding drop modifiers) now only work if applied to more than 1 die (close #311) (1501454)
- Removes legacy "Show Dice Button With Results" setting (9ff8414)
11.1.0 (2024-09-25)
- Line rollers now watch underlying note content (08a1c08)
- Section rollers generated inside a tag roller are now contextualized properly (f3d7ef2)
- Section rollers now watch underlying note content (d948da6)
- Table rollers now watch underlying tables (a054124)
- Remove console log (cf13b1e)
- Remove console logs (a9508e0)
- Remove deprecated global app reference (857c8df)
11.0.5 (2024-09-06)
- Make table roller markdown rendering synchronous so images render. (59e5968)
11.0.4 (2024-05-22)
- Fixes issue where dice rolls from the dice tray wouldn't be logged if the global setting wasn't turned on (close #317) (582c202)
11.0.3 (2024-05-01)
- Replace all instances of flags in a dice string, not only one. (0a6da29)
11.0.2 (2024-04-30)
- Fixes issue where the default roll was 100 dice (f69b188)
11.0.1 (2024-04-23)
- Fixes @javalent/utilities dependency (98b2b7d)
11.0.0 (2024-04-23)
- Dataview field lookups are now based on the current active file, not a cached set of fields.
- Attempting to save dice roller results has been removed.
- Attempting to save dice roller results has been removed. (f879462)
- Dataview field lookups are now based on the current active file, not a cached set of fields. (d424df9)
- Expose DiceRoller API directly on the window as
DiceRoller
(377a35c) - Published npm package as
@javalent/dice-roller
(1fad1f2) - Saves last 100 view results across sessions (7073393)
- All StackRollers add themselves to the dice view when rolled (2373977)
- Deprecate the use of main plugin methods. Use the new DiceRoller API instead. (8cd8524)
- Export Rollers in API definition (135cb43)
- Fixes module building (5b6210f)
- Fixes some icon definitions (8a0cc2b)
- Generalize Dataview inline field call (0337fbd)
- Made all dice roller objects stateless (3f4b229)
- Make Lexer stateless and a singleton (fcf495b)
- Migrate dice post processor to encapsulated class (99b2dc9)
- Mock DataviewManager due to Obsidian dependency (56441ee)
- Remove FontAwesome from the plugin (6570ca0)
- Remove need for injecting plugin into the API (d90519e)
- Remove result duplication (7080267)
- Remove unused file (af5ed78)
- Reworks some aspects of the dice view to be more modular in the future (d7b42bc)
- Switches to @javalent scoped utilities module (d2b44a6)
- Update lib typings (9cb018f)
10.5.0 (2024-04-15)
- New min/max syntax:
dice: 1d[5-10]
(fc7ee80)
10.4.6 (2024-03-19)
- Fixes issue with folder suggester for template folders in settings (dd4f87a)
10.4.5 (2024-02-22)
- Fixes folder suggester not opening sometimes (88c3a9a)
- Improves UI for dice mod template folders settings (ec0a1e3)
10.4.4 (2024-02-01)
- allow backticks in lookup table rolls (5a7500e)
10.4.3 (2024-01-09)
- upgrade esbuild (7cd4737)
10.4.2 (2024-01-09)
- revert dice-mod changes until a better solution is found (bd06964)
10.4.1 (2024-01-03)
- Fixes clicking on a section/table roller in LP enters the source (close #283) (43e93d7)
- Fixes custom percent dice (close #280) (e3bb922)
- Fixes d4 dice formula for dice tray (close #276) (7f7aa17)
- Fixes dice-mod race condition (close #277) (06a55a5)
- Stopping the renderer resolves in-process dice rolls (close #285) (74d33c6)
10.4.0 (2023-11-09)
- Fixes bug where opening in source mode caused
dice-mod
to immediately fire (3d9c19e) - Fixes issue where Link Rollers would modify notes (3d98a75)
- Fixes issue where the Escape Dice Mod setting wasn't respected by LP (1183e34)
- Significantly improves Section Roller performance for large number of files (4905d7c)
10.3.0 (2023-11-01)
- Can now disable Notice for graphical rolls (8e901b6)
10.2.0 (2023-10-27)
- Enables changing the font of rendered dice (c16d3c0)
- dicetray: error handling for roll button (#264) (0f2c599)
- Fixes average calculation (bf87aa8)
- lexer: handle unary minus operator (#262) (139cbfa)
10.1.2 (2023-10-20)
- Adds "None" as a possible shape for dice tray icons (62cd320)
- Buttons to add static values to Dice Tray formula work again (ceae731)
- Right clicking a dice-tray icon executes a roll immediately again (ff54b9e)
10.1.1 (2023-10-20)
- adds missing dependencies (f587a81)
10.1.0 (2023-10-20)
- Can now specify custom dice buttons for the Dice Tray view in settings (f8a8a60)
- Fixes decoration of dice when it is a negative roll (da0fdb6)
- Fixes max/min decoration of dice when a static number is present in formula (8c9538e)
- improve visual appearance of dice roller settings (7ec8bea)
- Improves behavior when the first dice in a formula is negative (249e13d)
- re-enable dice-based conditions (059120f)
- Rename Dice View to Dice Tray (a3c24c7)
10.0.3 (2023-10-16)
- Dice rollers that roll min/max are decorated with the
is-min
oris-max
css class (close #244) (6ab60d9) - Enables a Fudge/Fate dice icon (toggleable in settings) (close #251) (fd5aabf)
- fixes issue where rendered dice didn't match result (close #252) (21671ee)
- fixes issue with calculating Fate results (7388384)
10.0.2 (2023-10-14)
- fix issue where reroll could happen incorrectly (ae212e4)
- fixes dice-mod not respecting form/noform in live preview (c13922d)
- improves rendering performance (74f351d)
10.0.1 (2023-10-11)
- fixes unique modifier not working in renderer (4232ae5)
10.0.0 (2023-10-11)
- Rewrote renderer to allow for all dice modifiers to pass through
- Enables custom dice values using
Xd[...]
syntax (af5ccf1) - Rewrote renderer to allow for all dice modifiers to pass through (9be1207)
9.4.1 (2023-09-11)
- release 9.4.1 (dd2eb18)
9.4.0 (2023-09-06)
- new
Add to View
setting for Dice rollers. when enabled, all dice roller results will be added to the Dice View (70a11c4)
9.3.1 (2023-08-22)
- Allow markdown character escaping to be turned off (e12eb7e)
9.3.0 (2023-07-25)
9.2.0 (2023-07-17)
- Can now display '+' for positive results with
|signed
flag (close #217) (958ea0b) - Can now resize graphical dice within a range (0.5 -> 1.5 times) (close #156) (a0d61ed)
- Can now specify flags to control rounding behavior (close #218) (e6045d9)
- Right clicking dice in the dice view now quick rolls (close #229) (bc8bcc6)
9.1.0 (2023-07-15)
9.0.0 (2023-07-03)
- Tag Rollers & Dataview Rollers now return 1 result per file. Xd... will now return multiple files.
- Tag Rollers & Dataview Rollers now return 1 result per file. Xd... will now return multiple files. (ce55930)
8.17.0 (2023-07-02)
- Enables rolling based on a Dataview query using
dice: dv(...)
(315a884)
8.16.1 (2023-06-27)
- fixes using integer as comparer in conditionals (381ee58)
8.16.0 (2023-06-23)
- enables exploding graphical dice (1917329)
- fixes reroll breaking when rendering dice (19c00cf)
8.15.1 (2023-06-15)
- fixes reroll & explode not parsing (d5db7fc)
8.15.0 (2023-06-14)
- enables dice rollers to be specified in condition checks (e6c8bc4)
- fix renderMarkdown error (1e91353)
8.14.5 (2023-04-27)
- dice-mod now respects rendering (7a629fe)
8.14.4 (2023-04-25)
- fixes getRollerString text displays as null (0339294)
8.14.3 (2023-04-25)
- add getRollerString api hook (b4dc1ef)
8.14.2 (2023-04-20)
- fix type defs (e1f1f4d)
8.14.1 (2023-04-20)
- properly export types (beb18d1)
8.14.0 (2023-04-20)
- Upgrading obsidian-dice-roller to latest (21e3d8d)
8.13.14 (2023-04-20)
- fix upgrade secrets inheritance (87bb16d)
8.13.13 (2023-04-20)
- test upgrade (91be65e)
8.13.12 (2023-04-20)
- inherit secrets (48e3a9f)
8.13.11 (2023-04-20)
8.13.10 (2023-04-19)
- point to es2022 (69396ee)
8.13.9 (2023-04-19)
- fixes position property losing pointer (f1752ad)
8.13.8 (2023-04-18)
- Update types for npm package (1978a32)
8.13.7 (2023-04-18)
- fix output (876be71)
8.13.6 (2023-04-18)
- fixes release action...maybe (6b6ef8e)
8.13.5 (2023-04-18)
- fixes release version (1f73ac6)
8.13.4 (2023-04-18)
- adds npm types for use in overload (3af9182)
8.13.3 (2023-04-18)
8.13.2 (2023-04-17)
- fixes call stack error (fde014a)
8.13.1 (2023-03-23)
8.13.0 (2023-03-23)
- Adds new API (96f7860)
8.12.5 (2023-03-23)
- fixes display formula setting not respected in LP (34ab83b)
8.12.4 (2023-03-23)
- Dice View now respects the Show Formula setting (c4c3560)
8.12.3 (2023-03-20)
- fixes possible weirdness with uniques (2e22194)
8.12.2 (2023-03-20)
- version bump (447f06f)
8.12.1 (2023-03-20)
8.12.0 (2023-03-19)
- Adds unique modifier (8e41412)
8.11.1 (2023-03-12)
8.11.0 (2023-03-12)
- Can turn off embed styling for section rollers (close #161) (be9cdcf)
- On demand dice roll rendering with Shfit Click (018fdbf)
8.10.1 (2023-03-10)
- adds synchronous stack roller rolls (87928c6)
8.10.0 (2023-03-09)
- adds xy table lookup (21f0643)
8.9.1 (2023-03-09)
- Escapes special characters in dice mod output (06c33cc)
8.9.0 (2023-02-16)
- adds ability to display formula after result (a5d3cd7)
8.8.3 (2023-01-27)
- Open Dice View reveals view if open (844ecf5)
8.8.2 (2023-01-12)
- fixes issue rendering multiple dice in a initiative tracker view (ee31423)
8.8.1 (2023-01-11)
- fixes issue rendering in initiative tracker view (f6be201)
8.8.0 (2022-10-26)
- removes bold from mod when show formula is on (close #119) (828a8bb)
- removes file watcher causing massive memory leak (close #117) (deb0f1e)
8.7.2 (2022-10-25)
- dice-mod async (1439e07)
8.7.1 (2022-10-24)
- fixes dice-mod behavior in live preview (88a656e)
8.7.0 (2022-10-21)
- live preview support (3c4c8a6)
8.6.9 (2022-09-27)
- type guard parseDiceSync (a340af4)
8.6.8 (2022-09-27)
- adds parseDiceSync (298ee64)
8.6.7 (2022-09-18)
- Switch to span elements to allow for copying text without line breaks (223f33b)
8.6.6 (2022-09-10)
- removed genesys imports (bfbadc2)
8.6.5 (2022-09-10)
- fixes load order issue with dataview (e793d1d)
8.6.4 (2022-08-25)
8.6.3 (2022-08-20)
- Rendered dice no longer render on note-open, only click (close #138) (f5b6f98)
- Show notice with rendered dice results (close #130) (6a5262c)
8.6.0 (2022-06-08)
- added ArrayRoller interface (4160dc6)
8.5.0 (2022-06-03)
- Properly await file modification promises to resolve (668bd7e)
8.3.1 (2022-03-11)
- Fixes layout of embedded table results if the results have line breaks (5db4ff8)
8.3.0 (2022-03-10)
- Add rounding controls for dice (close #86) (946f8be)
- Added
|render
flag to render dice rolls from notes (close #85) (11de860) - Adds
|form
flag (close #80) (050998f) - Adds the Always Render Dice and the
|norender
flag (39178ff)
- Accidentally left starwars testing dice in production, whoops (16078b1)
8.2.1 (2022-01-24)
8.2.0 (2022-01-20)
- supports markdown links in section and table rollers (43abc5b)
- improves styling on embedded dice rollers (d16a4a8)
8.1.0 (2022-01-17)
- adds reroll support to dice graphics (5abbfa3)
- fix advantage and disadvantage when rolling graphical dice (close #69) (9beeb41)
- fix issue with dataview inline fields in new lexical parser (9ad0f6f)
8.0.0 (2022-01-17)
- Lexical parser rewritten to be more extensible and faster
- Adds graphic display time setting (leave blank to require click) (close #64) (d95f3fa)
- Lexical parser rewritten to be more extensible and faster (fb25476)
- fixed issue with saving results (close #65, close #56) (6b885df)
- removes modifiers from tooltip result (73f9a71)
7.13.2 (2022-01-14)
- fix compatability issue with dataview integration (66311e6)
7.13.1 (2022-01-11)
7.13.0 (2022-01-07)
- added fudge/fate dice graphics (c5ca4d2)
- improve renderer factory performance (def8005)
7.12.0 (2022-01-07)
- added custom percent dice (7bc5469)
7.11.1 (2022-01-06)
7.11.0 (2021-12-26)
dice-mod
is now allowed on all roller types (543eb63)
- random renderer plugin error (ed28efc)
7.10.2 (2021-12-21)
7.10.1 (2021-12-10)
- api update (e65f3eb)
7.10.0 (2021-12-10)
- update typings (fcf3f1f)
7.9.0 (2021-12-09)
7.8.6 (2021-12-02)
- third-party api update (fc80c07)
7.8.5 (2021-11-25)
- fixed dataview inline tag greediness (65bf26c)
- wait for dataview to be ready for tag rolling (f0e0594)
7.8.4 (2021-11-24)
- improved dataview field functionality (7cec730)
7.8.3 (2021-11-23)
- removed logs (f3110a5)
7.8.2 (2021-11-23)
- another fix for dataview lex (f441ba0)
7.8.1 (2021-11-23)
- fixed issue where dataview inline field lex was too greedy (3589a3f)
7.8.0 (2021-11-23)
- Added basic Dataview inline field support (f075fe9)
7.7.0 (2021-11-23)
- added ability to not display formula using dice-mod (5605aaa)
7.6.0 (2021-11-23)
- added new
Line
roller (see the ReadMe for more info) (4169790)
7.5.1 (2021-11-22)
- added ability to override show dice setting in api (5851750)
7.5.0 (2021-11-22)
- table rollers now render results as markdown, allowing nested dice rollers in tables (de42c17)
- fixed line weight css issue on view buttons (d31ce9f)
7.4.2 (2021-11-18)
- removed extra space when there is no icon (5c3be4a)
7.4.1 (2021-11-18)
- fixed escaped pipes (75475e1)
7.4.0 (2021-11-18)
- added
|nodice
parameter (30547c6), closes #54 - added reroll button to dice view results (4427eac)
- added saved custom formulas into dice view (close #47) (6d78675)
- dice without graphics are now just rolled, no longer roll a d20 (1ba8778)
7.3.0 (2021-11-17)
- added "reroll all dice" command to reroll all dice in note (b87577f)
7.2.2 (2021-11-16)
- lookup tables now work with multiple rollers in a cell (f0abb51)
7.2.1 (2021-11-16)
- version merge (d859040)
7.1.5 (2021-11-05)
- several bugs related to renderer calculation (928f431)
7.1.4 (2021-10-18)
7.2.0 (2021-11-16)
- added setting to turn off lookup table roll (8514fbc)
7.1.5 (2021-11-05)
- several bugs related to renderer calculation (928f431)