Skip to content

V1.1.2

Latest

Choose a tag to compare

@thekingofspace thekingofspace released this 07 Sep 00:52
· 4 commits to master since this release

Callbacks

  • Every callback is now called as (instance, vision, ...). The vision that built the node comes second, everything after it shifts along one.
  • Affects event, merge, ready, cleanup, drawcall, receive, signal properties and AttributeChanged. derive is unchanged.
  • Breaking. A callback that reads a second argument now gets the vision there. One argument callbacks are unaffected.
  • create matches the same shape, with nil in the vision slot.

PropertyChanged

  • New declaration key. A map of property names to callbacks, wired with GetPropertyChangedSignal.
  • Connected after the declared properties are written, disconnected by Cleanup, rewired on remount.
  • AttributeChanged now passes the new value third.

Wally

  • Vision = "thekingofspace/vision@1.1.2" under [dependencies], then wally install.
  • Realm shared, so it installs to Packages and you require it as Packages.Vision. No dependencies of its own.

Types

  • All 14 modules are --!strict, clean under both the old and the new Luau type solver.
  • New exported types: Dynamic, AttributeChanged and PropertyChanged on the main module, Node, Event, State and the callback shapes from Capture, Link and Runtime from Link.

Fixes

  • The built model no longer contains a stray wally module.
  • create was not passing the vision slot to signal property callbacks, so a declaration written for Capture shifted its arguments under create.