Manage state with style in every framework
MIT License
Bot releases are hidden (Show)
Published by rschristian 10 months ago
d7f43ef
Thanks @andrewiggins! - Change opt-in/opt-out comment to @useSignals
and @noUseSignals
. Previous comments (@trackSignals
& @noTrackSignals
) still supported but deprecated.Published by rschristian 10 months ago
#467 d7f43ef
Thanks @andrewiggins! - Remove auto tracking using React internals from signals-react package
Before this change, importing @preact/signals-react
would invoke side effects that hook into React internals to automatically track signals. This change removes those side effects and requires consumers to update their code to continue using signals in React.
We made this breaking change because the mechanism we were using to automatically track signals was fragile and not reliable. We've had multiple issues reported where signals were not being tracked correctly. It would also lead to unexpected errors that were hard to debug.
For some consumers and apps though, the current mechanism does work. If you'd like to continue using this mechanism, simply add import "@preact/signals/auto";
to the root of your app where you call ReactDOM.render
. For our newly supported ways of using signals in React, check out the new Readme for @preact/signals-react
.
Published by rschristian 10 months ago
b0b2a5b
Thanks @XantreGodlike! - Ensure types are resolved against built .d.ts
rather than source .ts
Published by rschristian 10 months ago
0c0d89f
Thanks @andrewiggins! - Only prepend useSignals call if we can't determine whether a function is a component or hook06d4c10
Thanks @andrewiggins! - Wrap custom hooks in try/finally when using react-transform09f3ed7
Thanks @andrewiggins! - Use function expression name to determine if it is a Component and should be transformed.Published by rschristian 10 months ago
Published by rschristian 10 months ago
fb6b050
Thanks @andrewiggins! - Remove top-level requirement from react-transformad6305c
Thanks @XantreGodlike! - Added 'module:' prefix to readme to babel recognized plugin correctlyf80b251
Thanks @andrewiggins! - Add an "all" mode to the react transform that transforms all components to be reactive to signals4c433c3
Thanks @andrewiggins! - Add support for auto-transforming more ways to specify components: object methods, member assignments, export default components, components wrapped in HoCs like memo and forwardRef2939812
Thanks @andrewiggins! - Add support for auto transforming Components declared as object properties76babcb
Thanks @andrewiggins! - Add debug logging to inspect what components are transformed by pluginPublished by rschristian 10 months ago
020982d
Thanks @andrewiggins! - Setup internal infrastructure for upcoming major changefb6b050
Thanks @andrewiggins! - Fix rendering signals as text when using react-transformPublished by rschristian 10 months ago
Published by rschristian 10 months ago
#406 71caaad
Thanks @andrewiggins! - Remove support for transforming CJS files
Removing support for transforming CommonJS files since we have no tests for it currently
71caaad
Thanks @andrewiggins! - Register newly inserted import statement as a scope declaration in Babel's scope trackingPublished by rschristian 10 months ago
9355d96
Thanks @JoviDeCroock! - Add unique identifier to every Signal
, this will be present on the brand
property of a Signal coming from either signal()
or computed()
Published by rschristian 10 months ago
17e1491
Thanks @andrewiggins! - Lower required babel version required as a peer dependencyPublished by rschristian 10 months ago
24fa9f7
Thanks @rschristian! - Fixes UMD builds of @preact/signals
and @preact/signals-react
Published by rschristian 10 months ago
24fa9f7
Thanks @rschristian! - Fixes UMD builds of @preact/signals
and @preact/signals-react
Published by rschristian 10 months ago
cd3a22d
Thanks @andrewiggins! - Clean up effect store reference after finishing it59115d9
Thanks @andrewiggins! - Update internal useSignals APIPublished by rschristian 10 months ago
Published by rschristian 10 months ago
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.Published by rschristian 10 months ago
256a331
Thanks @XantreGodlike! - Add untracked
function, this allows more granular control within effect
/computed
around what should affect re-runs.Published by JoviDeCroock over 1 year ago
e655e7f
Thanks @JoviDeCroock! - Allow for context to propagate to components using contextPublished by JoviDeCroock over 1 year ago
f4ff0ab
Thanks @andrewiggins! - Fix internal property namesPublished by marvinhagemeister about 2 years ago