Skip to content

Releases: lxsmnsyc/solid-labels

v0.3.1

17 Sep 13:43
Compare
Choose a tag to compare
  • Fix regression on AssignmentExpression for memo

v0.3.0

17 Sep 11:33
Compare
Choose a tag to compare
  • Adds support for increment and decrement expressions.

v0.2.0

17 Sep 07:36
Compare
Choose a tag to compare
  • Add support for object shorthand for signal and memo.
signal: x = 0;

return { x };

becomes

const [_x, _setx] = _createSignal(0);

return { x: _x() };
  • Fixes signal and memo Identifier for the following cases:
    • Object properties: { x: y }
    • Variable declarations: const x = y
    • Variable destructures: const [x]
    • Shadowed variables w/ parameters: (x) => {}
    • Default parameters:(y = x) => {}
    • Labels: x: y
    • Function declarations: function x() {}
    • Object property access: obj.x
  • Fix scope binding for signal and memo
  • Add support for var declaration for signal and memo.
  • Add other expressions for callback labels, e.g. effect: myEffectCallback or effect: on(source, callback);
  • signal and memo now injects name option to createSignal/createMemo based on variable name.