Releases: lxsmnsyc/solid-labels
Releases · lxsmnsyc/solid-labels
v0.3.1
v0.3.0
v0.2.0
- Add support for object shorthand for
signal
andmemo
.
signal: x = 0;
return { x };
becomes
const [_x, _setx] = _createSignal(0);
return { x: _x() };
- Fixes
signal
andmemo
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
- Object properties:
- Fix scope binding for
signal
andmemo
- Add support for
var
declaration forsignal
andmemo
. - Add other expressions for callback labels, e.g.
effect: myEffectCallback
oreffect: on(source, callback);
signal
andmemo
now injectsname
option tocreateSignal
/createMemo
based on variable name.