Releases: mmower/rez
v1.9.7
v1.9.6
Introduces the cookbook, a system for sharing library components and pragmas between games
Adds modalCard() and modalMessage() event responses that display content in a dismissable modal
Global properties are now created with Object.defineProperty()
Mixins are now specified via a mixin: set type attribute and can be added via @defaults
@card now has current_face: rather than specific flipped: attribute
Improvements and fixes to RezQuest
Changed syntax of $break expression to $break(expr)
Can re-open @defaults for an element to add new defaults
Specify on_init: +() => to append implementations of the on_init handler
Can now use data-target="id" with data-event="foo" for custom events to specify the object handler
Adds $has_subscribers mixin to the stdlib
Sets join Lists in treating "," as whitespace
Fixed UTF-8 parsing bug (actually in LogicalFile)
Further fixes to binding expression evaluation
Improvements to <.embed_card /> component
Improvements to <.img /> component
Improvements to component parsing & rendering
Restores table attributes however these created nested objects linked by auto generated id
Better handling of _ placeholder values and adds hasValue("attr") to identify placeholder leakage
Updated API docs
v1.9.5
Added: Implemented complete Javascript function declaration parser to support default parameters and destructuring
Added: @game now supports $window_event: [event handler ...]
Added: @quest element to complement @plot
Added: JS @asset can now specify $load_in_body: true to load before </body>
Added: $break{expr} template expression to trip debugger
Added: $init_after supports @element-type as well as #element-id
Added: Support for custom JS mods
Added: @faction now has member_ids:
Added: @generator passes idx to customise function
Added: @generator supports shuffle: true to auto-shuffle generated copies
Added: @generator source_id: can now be a ptable
Added: @slot defines has_capacity:
Added: Default args to stdlib round_to_nearest()
Added: Better error messages when an attribute value is invalid
Added: Validation of blocks: attribute values
Added: TypeHierarchy is now available at runtime
Changed: @schema for functions now uses min_arity/max_arity instead of params
Changed: @inventory specifies slots as a binding-list where the prefix replaces the @slot accessor
Fixed: 900+ issues raised by the biome JS lint checker
Fixed: Trying to bind this in attribute templates didn't work, switched to self
Fixed: Incorrect schema validation of collections
Fixed: Runtime type hierarchy checks no longer restricted to parents
Fixed: Old references to @macro updated to @component
Fixed: rez-bind now supports <input type="number">
v1.9.4
Rationalised event handling and naming
- @plot now supports subscribers (which can be other @plots)
- Added support for displaying & cancelling flash messages to the base template
- Add support for event, card, interlude,switch, and resume for tags
- Can use …syntax for creating event firing links
- Template expressions can use indexed accessors ${a[0]} or $foreach(x: card.values[0])
- Fixes auto-referencing parent binding
- Event transformations are now tied to the rez-evented CSS class which can be applied anywhere that you need dynamic links/buttons to work.
- The addCopy() API now supports passing an id for the copy.
- Browser & form events now fall back to event-bubbling if no handler is present in the current card
- Improved template compiler error messages
- Fixes ptable attribute encoding
- Binding list attribute can include keyword values
- Major revisions to API docs
- Numerous bug fixes
v1.9.3
v1.9.2
v1.8.15
Game object initialization switches from bread-first (initializing each object at level-1, then each at level-2, and so on) to depth first (levels 1-N for object 1, then object 2, and so on).
This makes ordering more important but means initialization is now more dependable as an object is fully initialized before it can be accessed by a dependent.
v1.8.14
v1.8.13
Setup ^d: delegate handles before running initializers (which may depend upon them)
Adds the nplural expression filter for outputting number & pluralised strings
Adds creation of number and string constants to the Plugin API
Adds rez.plugin.run() so that Plugins can execute OS commands (danger!)