Skip to content

Releases: preactjs/signals

@preact/[email protected]

29 Jun 06:37
12cef4c
Compare
Choose a tag to compare

Patch Changes

@preact/[email protected]

29 Jun 06:37
12cef4c
Compare
Choose a tag to compare

Patch Changes

@preact/[email protected]

29 Jun 06:37
12cef4c
Compare
Choose a tag to compare

Minor Changes

  • #706 4045d2d Thanks @marvinhagemeister! - feat: support disposing effect() with resource management

    This allows effect()'s to be disposed with the new using keyword from the explicit resource management proposal.

    Whenever an effect goes out of scope the Symbol.dispose function is called automatically.

    const count = signal(0);
    
    function doSomething() {
    	// The `using` keyword calls dispose at the end of
    	// this function scope
    	using _ = effect(() => {
    		console.log(count.value);
    		return () => console.log("disposed");
    	});
    
    	console.log("hey");
    }
    
    doSomething();
    // Logs:
    //  0
    //  hey
    //  disposed

@preact/[email protected]

11 Jun 12:36
5d3a42a
Compare
Choose a tag to compare

Minor Changes

@preact/[email protected]

04 Jun 18:34
b0c5bc1
Compare
Choose a tag to compare

Patch Changes

  • #691 960b09d Thanks @robin-drexler! - Adds detectTransformedJSX option which will trigger transformation when alternative methods (like React.createElement) are used to create elements

  • #693 b19ddec Thanks @robin-drexler! - Destructured access to signal values should be registered as usage, before this change Babel would skip a component that would access .value on a signal through destructuring

@preact/[email protected]

29 May 16:21
f061658
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@preact/[email protected]

29 May 16:21
f061658
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@preact/[email protected]

29 May 16:21
f061658
Compare
Choose a tag to compare

Minor Changes

Patch Changes

@preact/[email protected]

27 May 08:10
fae3d1e
Compare
Choose a tag to compare

Patch Changes

@preact/[email protected]

27 May 07:57
6c3e58a
Compare
Choose a tag to compare

Minor Changes

  • #683 4b585a5 Thanks @JoviDeCroock! - Provide @preact/signals/utils package with some helpers to make working with signals easier in Preact