-
#647
655905b
Thanks @jviide! - Ensure that text effects get disposed -
#630
4b9144f
Thanks @JoviDeCroock! - Change the way we deal with state settling hooks, when we know we are dealing with hooks that can settle their A -> B -> A state (and wind up at the same value). We should not verbatim rerender in our custom shouldComponentUpdate. Instead we should trust that hooks have handled their own state settling.
-
#604
fea3e8d
Thanks @JoviDeCroock! - Defer all DOM updates by an animation frame, this should make it so that any previously synchronous DOM update will be instead delayed by an animation frame. This allows Preact to first perform its own render cycle and then our direct DOM updates to occur. These will now be performed in a batched way which is more performant as the browser is prepared to handle these during the animation frame.This does impact how Preact based signals are tested, when you perform a signal update, you'll need to wrap it in
act
. In a way this was always the case, as a signal update that resulted in a Preact state update would require it to be wrapped inact
, but now this is the norm.
- #595
499428a
Thanks @JoviDeCroock! - Align signal effects with animation-frames for better performance
- #609
8e6e2de
Thanks @JoviDeCroock! - Change timing to a double microtask so we are behind the Preact render queue but can't delay as much as a user-input coming in.
- #578
931404e
Thanks @JoviDeCroock! - Allow for passing no argument to the signal and the type to be automatically inferred asT | undefined
- Updated dependencies [
931404e
]:- @preact/signals-core@1.7.0
-
#535
58befba
Thanks @jviide! - Publish packages with provenance statements -
Updated dependencies [
d846def
,cb6bdab
,d846def
,d846def
,d846def
]:- @preact/signals-core@1.6.0
- #399
24fa9f7
Thanks @rschristian! - Fixes UMD builds of@preact/signals
and@preact/signals-react
- #387
6e4dab4
Thanks @XantreGodlike! - Removed difference in behaviour between adapters, signals that use a JSX value will correctly re-render the whole component rather than attempting the JSX-Text optimization.
- Updated dependencies [
256a331
]:- @preact/signals-core@1.4.0
- #381
e655e7f
Thanks @JoviDeCroock! - Allow for context to propagate to components using context
-
#373
8c12a0d
Thanks @rschristian! - Removes package.json#exports.umd, which had invalid paths if they were ever to be consumed -
Updated dependencies [
8c12a0d
,26f6526
]:- @preact/signals-core@1.3.1
df813ad
Thanks @developit! - Fix rendering of Signals as text inpreact-render-to-string
(#268)
-
#282
cafbdaa
Thanks @developit! - Fix a bug that caused cleanup functions returned from auseSignalEffect()
callback not to be called. -
Updated dependencies [
7e15d3c
]:- @preact/signals-core@1.2.3
-
#226
ad29826
Thanks @marvinhagemeister! - Fix hook names being mangled -
Updated dependencies [
aa4cb7b
,3f652a7
]:- @preact/signals-core@1.2.2
- #198
3db7500
Thanks @JoviDeCroock! - Fix server-sider-render error when unmounting a signal passed as text into JSX.
- #91
fb74bb9
Thanks @JoviDeCroock! - add theuseSignalEffect
hook
-
#183
79ff1e7
Thanks @jviide! - Add ability to run custom cleanup logic when an effect is disposed.effect(() => { console.log("This runs whenever a dependency changes"); return () => { console.log("This runs when the effect is disposed"); }); });
- #186
7242bd6
Thanks @marvinhagemeister! - Fix unable to set SVG attribute via Signal
- #161
6ac6923
Thanks @jviide! - Remove all usages ofSet
,Map
and other allocation heavy objects in signals-core. This substaintially increases performance across all measurements.
-
#171
fcbb3f4
Thanks @jviide! - Reduce size of Preact adapter by replacingWeakSet
s with bitmasks. -
Updated dependencies [
b4611cc
,9802da5
,6ac6923
,79ff1e7
,3e31aab
]:- @preact/signals-core@1.2.0
- #147
3556499
Thanks @developit! - Improve performance when rendering Signals as Text in Preact.
- #148
b948745
Thanks @marvinhagemeister! - Movetypes
field inpackage.json
to the top of the entry list to ensure that TypeScript always finds it.
-
#153
0da9ce3
Thanks @developit! - Optimize the performance of prop bindings in Preact -
Updated dependencies [
f2ba3d6
,160ea77
,4385ea8
,b948745
,00a59c6
]:- @preact/signals-core@1.1.1
- ab5bd99: Fix swapping and HMR for signals when used as text
- 2383684: Correctly replace props-value with peeked value
- Updated dependencies [5644c1f]
- @preact/signals-core@1.0.1
- c7c0d91: Add marker for devtools to
Text
that is created when a signal is passed into JSX
- 2ee8489: The v1 release for the signals package, we'd to see the uses you all come up with and are eager to see performance improvements in your applications.
- Updated dependencies [ab22ec7]
- Updated dependencies [2ee8489]
- Updated dependencies [b56abf3]
- @preact/signals-core@1.0.0
- 702a9c5: Update TypeScript types to mark computed signals as readonly
- 5f8be64: Optimize size of CJS & UMD bundles.
- Updated dependencies [702a9c5]
- @preact/signals-core@0.0.5
- 812e7b5: Fix
batch()
not re-exported from preact adapter - 8e9bf67: Fix incorrect TypeScript paths
- f71ea95: Avoid incrementing Preact adapter when core changes
- Updated dependencies [4123d60]
- @preact/signals-core@0.0.4
- 1e4dac5: Add
prepublishOnly
scripts to ensure we're publishing fresh packages - 9ccf359: Align signal rendering in Text positions with VDOM text rendering - skip rendering of
null
,undefined
andboolean
values. - 1171338: Fix wrong path for TypeScript definitions in
package.json
- Updated dependencies [1e4dac5]
- @preact/signals-core@0.0.3