Skip to content

RELEASE: v2.36.0

Compare
Choose a tag to compare
@tmedwards tmedwards released this 21 Dec 01:51
bac3c41

Changelog:

  • Fixed an issue with the selected keyword in the <<cycle>> and <<listbox>> macros' <<option>> tags.
  • Fixed instances where using the [img[]] markup as an argument to macros would drop the link-image class.
  • Fixed Config.history.maxStates to disallow unlimited states (value: 0).
  • Added the init special tag that, similar to StoryInit, allows pre-story-start initialization tasks. Intended for add-on/library use.
  • Added a data-init-passage content attribute to StoryInterface that allows content to be updated only once at initialization.
  • Added the State.metadata.entries() and State.metadata.keys() static methods.
  • Added a once keyword to the <<cycle>> macro that ends the cycle upon reaching the final option.
  • Added the <Array>.countWith() method.
  • Added the Save Events API.
  • Added support for template literals within TwineScript.
  • Added various accessibility improvements.
  • Updated the <<done>> macro to better serve when used to wait for DOM updates.
  • <<widget>> macro updates:
    • Added a container keyword that allows non-void/container widgets and an associated _contents special variable.
    • Added a new special arguments variable, _args, and deprecated the old variable, $args.
  • Updated the default value of Config.history.maxStates from 100 to 40.
  • Updated passage objects to maintain the order of passage tags as specified in the data chunk.
  • Deprecated the Config.saves.onLoad and Config.saves.onSave settings in favor of the Save Events API.
  • Updated bundled library: jQuery to v3.6.0.
  • Updates to locale files:
    • Updated the localization template. Translators are asked to updated the locale files as necessary.
    • Added nl.js – Dutch.
  • Various documentation updates.
  • Various internal improvements.
  • Build system updates.