Skip to content

Releases: mmower/rez

v1.6.10

27 Feb 10:15
Compare
Choose a tag to compare

Pass arbitrary expressions to component attributes using the {} syntax a la Phoenix LiveView.

<.dialog cost={2+2}>

passes {cost: 4} as assigns to the invocation of the dialog component.

Removes Heredoc and Tracery grammar attribute types. In practice they never got used, also removes the bundled tracery.js.

v1.6.8

16 Feb 00:05
Compare
Choose a tag to compare

Updated to Elixir 1.17 and Erlang 27.7
Improvements to dependency checking when building initialization order
Fixes parsing of Heredocs and Dice with new die roll syntax ^r:
RezDieRoll now allows multiple die to explode
All tests running again
Re-implemented copy
Attributes with _die suffix auto-generate a _roll property

v1.6.6 - @elem

04 Feb 20:53
Compare
Choose a tag to compare

Replaces @alias with @elem
@elem can be multi-level
Collects defaults and mixins across all @elem
File handling fix

v1.6.5

03 Feb 01:46
Compare
Choose a tag to compare

Adds @GAMe $start_events to respond to browser events e.g. DOMContentLoaded or alpine:init
Updates to latest Alpine.JS and Bulma CSS
Table attributes can use strings for keys (allowing e.g. "alpine:init")
Adds shorthand functions for rolling std dice (e.g. rollD4())

v1.6.4

01 Feb 21:44
Compare
Choose a tag to compare

This update adds the following:

Adds $init_after: attribute that allows specifying a custom init order for elements
Dispatches document_loaded event on DOMContentLoaded
Calls to setAttribute() trigger on_set_attr
Stdlib: +Array#zip, +Array#min, +Array#max, +Math#perc, +RezBasicObject#unmap_attr
Stdlib: +Rez.D4, +Rez.D6, +Rez.D8, +Rez.D10, +Rez.D12, +Rez.D20, +Rez.D100
Stdlib: -Number#chance

v1.6.2 better initializers and dice support

27 Jan 19:05
Compare
Choose a tag to compare

v1.6.2
^i{} initializers now take an optional priority suffix so ^i:1{} will initialize before ^i:10{} allowing one initializer to depend upon the value of another initializer. Previously this was impossible. Priorities range from 1 to 10 with 10 being the default.
Advantage and Disadvantage have been added to RezDieRoll. In addition a new convenience method Rez.makeDie() parses die specification strings to create the appropriate die roll object.

v1.6.1 More copying improvements

25 Jan 12:00
Compare
Choose a tag to compare

Validates @mixin's only provide functions and prototypes.
Making copies is more convenient.
Elements can be removed.
Improvements to stdlib

v1.6.0 — Mixins

23 Jan 11:03
Compare
Choose a tag to compare

Adds the @mixin element for sharing implementation between elements

v1.5.4 QoL updates

06 Jan 10:22
Compare
Choose a tag to compare

QoL fixes

No longer need to special case $player with $global: true
Stdlib: adds Number#round_to_nearest
^i{} initializer now implemented wrapped as immediate function
Adds RezDie#open_roll
Calling event handlers converts false into RezEvent.noop()
Adds events to RezGame for scene/end, scene/pause, and scene/resume
All Rez CSS classes now have a "rez-" prefix
Adds missing accessors

v1.5.3 minor improvements

01 Jan 16:54
Compare
Choose a tag to compare

Improves --write-obj-map
Adds Game on_scene_start event handler