Skip to content

Latest commit

 

History

History
1118 lines (523 loc) · 53.9 KB

CHANGELOG.md

File metadata and controls

1118 lines (523 loc) · 53.9 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

11.4.1 (2024-11-20)

Bug Fixes

  • Better handling of links within rendered rollers (c2d5e17)

11.4.0 (2024-11-05)

Features

  • Genesys/Star Wars narrative dice are now supported and renderable. (#354) (b0ba905)

11.3.4 (2024-10-23)

Bug Fixes

  • 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)

Bug Fixes

  • Respect escaped dice flags on lookup rollers (1f48026)

11.3.2 (2024-10-04)

Bug Fixes

  • 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)

Bug Fixes

  • Fixes imports for file reorg (8245e29)

11.3.0 (2024-10-02)

Features

  • Stunt dice are now renderable (e9d72b3)

Bug Fixes

  • Dice rollers will now cancel rendering when unloaded (a0ddb12)
  • Reverts unintentional breaking API change to getRoller (2aff04b)

11.2.1 (2024-09-26)

Bug Fixes

  • Fixes issue where sometimes table lookup rollers wouldn't resolve (d8df63d)

11.2.0 (2024-09-25)

Features

  • 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)

Bug Fixes

  • Dice rollers now take kl and kh 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)

Features

  • 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)

Bug Fixes

  • Remove console log (cf13b1e)
  • Remove console logs (a9508e0)
  • Remove deprecated global app reference (857c8df)

11.0.5 (2024-09-06)

Bug Fixes

  • Make table roller markdown rendering synchronous so images render. (59e5968)

11.0.4 (2024-05-22)

Bug Fixes

  • 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)

Bug Fixes

  • Replace all instances of flags in a dice string, not only one. (0a6da29)

11.0.2 (2024-04-30)

Bug Fixes

  • Fixes issue where the default roll was 100 dice (f69b188)

11.0.1 (2024-04-23)

Bug Fixes

  • Fixes @javalent/utilities dependency (98b2b7d)

11.0.0 (2024-04-23)

⚠ BREAKING CHANGES

  • 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.

Features

  • 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)

Bug Fixes

  • 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)

Features

  • New min/max syntax: dice: 1d[5-10] (fc7ee80)

10.4.6 (2024-03-19)

Bug Fixes

  • Fixes issue with folder suggester for template folders in settings (dd4f87a)

10.4.5 (2024-02-22)

Bug Fixes

  • Fixes folder suggester not opening sometimes (88c3a9a)
  • Improves UI for dice mod template folders settings (ec0a1e3)

10.4.4 (2024-02-01)

Bug Fixes

  • allow backticks in lookup table rolls (5a7500e)

10.4.3 (2024-01-09)

Bug Fixes

10.4.2 (2024-01-09)

Bug Fixes

  • revert dice-mod changes until a better solution is found (bd06964)

10.4.1 (2024-01-03)

Bug Fixes

  • 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)

Features

  • dice-mod: add setting for template folder to prevent applicatio… (#263) (0c02b78)

Bug Fixes

  • 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)

Features

  • Can now disable Notice for graphical rolls (8e901b6)

Bug Fixes

  • escapeDiceMod: disabling option is not preventing evaluation anymore (#266) (53a64f1)

10.2.0 (2023-10-27)

Features

  • Enables changing the font of rendered dice (c16d3c0)

Bug Fixes

  • 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)

Bug Fixes

  • 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)

Bug Fixes

  • adds missing dependencies (f587a81)

10.1.0 (2023-10-20)

Features

  • Can now specify custom dice buttons for the Dice Tray view in settings (f8a8a60)

Bug Fixes

  • 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)

Bug Fixes

  • Dice rollers that roll min/max are decorated with the is-min or is-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)

Bug Fixes

  • 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)

Bug Fixes

  • fixes unique modifier not working in renderer (4232ae5)

10.0.0 (2023-10-11)

⚠ BREAKING CHANGES

  • Rewrote renderer to allow for all dice modifiers to pass through

Features

  • 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)

Miscellaneous Chores

9.4.0 (2023-09-06)

Features

  • 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)

Bug Fixes

  • Allow markdown character escaping to be turned off (e12eb7e)

9.3.0 (2023-07-25)

Features

9.2.0 (2023-07-17)

Features

  • 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)

Features

  • Add colorful dice setting and default colors for standard rpg dice (#228) (4ff934a)

9.0.0 (2023-07-03)

⚠ BREAKING CHANGES

  • Tag Rollers & Dataview Rollers now return 1 result per file. Xd... will now return multiple files.

Features

  • Tag Rollers & Dataview Rollers now return 1 result per file. Xd... will now return multiple files. (ce55930)

8.17.0 (2023-07-02)

Features

  • Enables rolling based on a Dataview query using dice: dv(...) (315a884)

8.16.1 (2023-06-27)

Bug Fixes

  • fixes using integer as comparer in conditionals (381ee58)

8.16.0 (2023-06-23)

Features

  • enables exploding graphical dice (1917329)

Bug Fixes

  • fixes reroll breaking when rendering dice (19c00cf)

8.15.1 (2023-06-15)

Bug Fixes

  • fixes reroll & explode not parsing (d5db7fc)

8.15.0 (2023-06-14)

Features

  • enables dice rollers to be specified in condition checks (e6c8bc4)

Bug Fixes

  • fix renderMarkdown error (1e91353)

8.14.5 (2023-04-27)

Bug Fixes

  • dice-mod now respects rendering (7a629fe)

8.14.4 (2023-04-25)

Bug Fixes

  • fixes getRollerString text displays as null (0339294)

8.14.3 (2023-04-25)

Bug Fixes

  • add getRollerString api hook (b4dc1ef)

8.14.2 (2023-04-20)

Bug Fixes

8.14.1 (2023-04-20)

Bug Fixes

8.14.0 (2023-04-20)

Features

  • Upgrading obsidian-dice-roller to latest (21e3d8d)

8.13.14 (2023-04-20)

Bug Fixes

  • fix upgrade secrets inheritance (87bb16d)

8.13.13 (2023-04-20)

Bug Fixes

8.13.12 (2023-04-20)

Bug Fixes

8.13.11 (2023-04-20)

Bug Fixes

8.13.10 (2023-04-19)

Bug Fixes

8.13.9 (2023-04-19)

Bug Fixes

  • fixes position property losing pointer (f1752ad)

8.13.8 (2023-04-18)

Bug Fixes

  • Update types for npm package (1978a32)

8.13.7 (2023-04-18)

Bug Fixes

8.13.6 (2023-04-18)

Bug Fixes

  • fixes release action...maybe (6b6ef8e)

8.13.5 (2023-04-18)

Bug Fixes

8.13.4 (2023-04-18)

Bug Fixes

  • adds npm types for use in overload (3af9182)

8.13.3 (2023-04-18)

Bug Fixes

  • adds release-please manifest (cde32ae)
  • switch to release-please (a106cad)

8.13.2 (2023-04-17)

Bug Fixes

8.13.1 (2023-03-23)

Bug Fixes

8.13.0 (2023-03-23)

Features

8.12.5 (2023-03-23)

Bug Fixes

  • fixes display formula setting not respected in LP (34ab83b)

8.12.4 (2023-03-23)

Bug Fixes

  • Dice View now respects the Show Formula setting (c4c3560)

8.12.3 (2023-03-20)

Bug Fixes

  • fixes possible weirdness with uniques (2e22194)

8.12.2 (2023-03-20)

Bug Fixes

8.12.1 (2023-03-20)

Bug Fixes

  • Re-roll Dice command now works in LP (close #171) (4675203)

8.12.0 (2023-03-19)

Features

8.11.1 (2023-03-12)

Bug Fixes

8.11.0 (2023-03-12)

Features

  • Can turn off embed styling for section rollers (close #161) (be9cdcf)
  • On demand dice roll rendering with Shfit Click (018fdbf)

Bug Fixes

  • fixes double modifier application when rendering (close #164) (199439d)

8.10.1 (2023-03-10)

Bug Fixes

  • adds synchronous stack roller rolls (87928c6)

8.10.0 (2023-03-09)

Features

8.9.1 (2023-03-09)

Bug Fixes

  • Escapes special characters in dice mod output (06c33cc)

8.9.0 (2023-02-16)

Features

  • adds ability to display formula after result (a5d3cd7)

8.8.3 (2023-01-27)

Bug Fixes

  • Open Dice View reveals view if open (844ecf5)

8.8.2 (2023-01-12)

Bug Fixes

  • fixes issue rendering multiple dice in a initiative tracker view (ee31423)

8.8.1 (2023-01-11)

Bug Fixes

  • fixes issue rendering in initiative tracker view (f6be201)

8.8.0 (2022-10-26)

Features

Bug Fixes

  • 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)

Bug Fixes

8.7.1 (2022-10-24)

Bug Fixes

  • fixes dice-mod behavior in live preview (88a656e)

8.7.0 (2022-10-21)

Features

8.6.9 (2022-09-27)

Bug Fixes

  • type guard parseDiceSync (a340af4)

8.6.8 (2022-09-27)

Bug Fixes

8.6.7 (2022-09-18)

Bug Fixes

  • Switch to span elements to allow for copying text without line breaks (223f33b)

8.6.6 (2022-09-10)

Bug Fixes

  • removed genesys imports (bfbadc2)

8.6.5 (2022-09-10)

Bug Fixes

  • fixes load order issue with dataview (e793d1d)

8.6.4 (2022-08-25)

Bug Fixes

  • fixes Dataview interfacing issue (close #141) (a21c80a)

8.6.3 (2022-08-20)

Bug Fixes

  • 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)

Features

  • added ArrayRoller interface (4160dc6)

Bug Fixes

  • fix typing on syncronous getRoller (23a65ba)
  • hacky fix for ebullient's issue (649285f)

8.5.0 (2022-06-03)

Bug Fixes

  • Properly await file modification promises to resolve (668bd7e)

8.3.1 (2022-03-11)

Bug Fixes

  • Fixes layout of embedded table results if the results have line breaks (5db4ff8)

8.3.0 (2022-03-10)

Features

  • 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)

Bug Fixes

  • Accidentally left starwars testing dice in production, whoops (16078b1)

8.2.1 (2022-01-24)

Bug Fixes

  • fixes regex collision with dataview variables (close #72) (59541f8)

8.2.0 (2022-01-20)

Features

  • supports markdown links in section and table rollers (43abc5b)

Bug Fixes

  • improves styling on embedded dice rollers (d16a4a8)

8.1.0 (2022-01-17)

Features

  • adds reroll support to dice graphics (5abbfa3)

Bug Fixes

  • 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)

⚠ BREAKING CHANGES

  • Lexical parser rewritten to be more extensible and faster

Features

  • Adds graphic display time setting (leave blank to require click) (close #64) (d95f3fa)
  • Lexical parser rewritten to be more extensible and faster (fb25476)

Bug Fixes

  • fixed issue with saving results (close #65, close #56) (6b885df)
  • removes modifiers from tooltip result (73f9a71)

7.13.2 (2022-01-14)

Bug Fixes

  • fix compatability issue with dataview integration (66311e6)

7.13.1 (2022-01-11)

Bug Fixes

  • remove styling from |noform option (close #68) (561554e)

7.13.0 (2022-01-07)

Features

  • added fudge/fate dice graphics (c5ca4d2)

Bug Fixes

  • improve renderer factory performance (def8005)

7.12.0 (2022-01-07)

Features

  • added custom percent dice (7bc5469)

7.11.1 (2022-01-06)

Bug Fixes

  • make d100 icon consistent with others (close #66) (4a0c987)

7.11.0 (2021-12-26)

Features

  • dice-mod is now allowed on all roller types (543eb63)

Bug Fixes

  • random renderer plugin error (ed28efc)

7.10.2 (2021-12-21)

Bug Fixes

  • rendering improvements (12824a6)
  • significantly softened spotlight on renderer (b2b149b)

7.10.1 (2021-12-10)

Bug Fixes

7.10.0 (2021-12-10)

Features

  • added ability to roll heading types (closes #60) (7dd1bd3)

Bug Fixes

7.9.0 (2021-12-09)

Features

  • added ability to roll heading types (closes #60) (937a418)

7.8.6 (2021-12-02)

Bug Fixes

7.8.5 (2021-11-25)

Bug Fixes

  • fixed dataview inline tag greediness (65bf26c)
  • wait for dataview to be ready for tag rolling (f0e0594)

7.8.4 (2021-11-24)

Bug Fixes

  • improved dataview field functionality (7cec730)

7.8.3 (2021-11-23)

Bug Fixes

7.8.2 (2021-11-23)

Bug Fixes

  • another fix for dataview lex (f441ba0)

7.8.1 (2021-11-23)

Bug Fixes

  • fixed issue where dataview inline field lex was too greedy (3589a3f)

7.8.0 (2021-11-23)

Features

  • Added basic Dataview inline field support (f075fe9)

7.7.0 (2021-11-23)

Features

  • added ability to not display formula using dice-mod (5605aaa)

7.6.0 (2021-11-23)

Features

  • added new Line roller (see the ReadMe for more info) (4169790)

7.5.1 (2021-11-22)

Bug Fixes

  • added ability to override show dice setting in api (5851750)

7.5.0 (2021-11-22)

Features

  • table rollers now render results as markdown, allowing nested dice rollers in tables (de42c17)

Bug Fixes

  • fixed line weight css issue on view buttons (d31ce9f)

7.4.2 (2021-11-18)

Bug Fixes

  • removed extra space when there is no icon (5c3be4a)

7.4.1 (2021-11-18)

Bug Fixes

7.4.0 (2021-11-18)

Features

  • 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)

Bug Fixes

  • unicode characters are decoded when returning a lookup result (close #55) (1be1bd4)

7.3.0 (2021-11-17)

Features

  • added "reroll all dice" command to reroll all dice in note (b87577f)

7.2.2 (2021-11-16)

Bug Fixes

  • lookup tables now work with multiple rollers in a cell (f0abb51)

7.2.1 (2021-11-16)

Bug Fixes

7.1.5 (2021-11-05)

Bug Fixes

  • several bugs related to renderer calculation (928f431)

7.1.4 (2021-10-18)

7.2.0 (2021-11-16)

Features

  • added setting to turn off lookup table roll (8514fbc)

7.1.5 (2021-11-05)

Bug Fixes

  • several bugs related to renderer calculation (928f431)