signals

Manage state with style in every framework

MIT License

Downloads
2M
Stars
3.6K
Committers
42

Bot releases are hidden (Show)

signals - @preact/[email protected]

Published by rschristian 10 months ago

0.3.0

Minor Changes

  • #467 d7f43ef Thanks @andrewiggins! - Change opt-in/opt-out comment to @useSignals and @noUseSignals. Previous comments (@trackSignals & @noTrackSignals) still supported but deprecated.
signals - @preact/[email protected]

Published by rschristian 10 months ago

2.0.0

Major Changes

  • #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.

signals - @preact/[email protected]

Published by rschristian 10 months ago

1.3.8

Patch Changes

signals - @preact/[email protected]

Published by rschristian 10 months ago

0.2.0

Minor Changes

  • #458 0c0d89f Thanks @andrewiggins! - Only prepend useSignals call if we can't determine whether a function is a component or hook
  • #446 09f3ed7 Thanks @andrewiggins! - Use function expression name to determine if it is a Component and should be transformed.
signals - @preact/[email protected]

Published by rschristian 10 months ago

1.5.1

Patch Changes

signals - @preact/[email protected]

Published by rschristian 10 months ago

0.1.1

Patch Changes

  • #421 f80b251 Thanks @andrewiggins! - Add an "all" mode to the react transform that transforms all components to be reactive to signals
  • #441 4c433c3 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 forwardRef
signals - @preact/[email protected]

Published by rschristian 10 months ago

1.3.7

Patch Changes

signals - @preact/[email protected]

Published by rschristian 10 months ago

1.2.2

Patch Changes

  • #415 79efe32 Thanks @prinsss! - Fix error when using useSignal with UMD builds of @preact/signals.
signals - @preact/[email protected]

Published by rschristian 10 months ago

0.1.0

Minor Changes

  • #406 71caaad Thanks @andrewiggins! - Remove support for transforming CJS files

    Removing support for transforming CommonJS files since we have no tests for it currently

Patch Changes

  • #406 71caaad Thanks @andrewiggins! - Register newly inserted import statement as a scope declaration in Babel's scope tracking
signals - @preact/[email protected]

Published by rschristian 10 months ago

1.5.0

Minor Changes

  • #405 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()
signals - @preact/[email protected]

Published by rschristian 10 months ago

0.0.2

Patch Changes

signals - @preact/[email protected]

Published by rschristian 10 months ago

1.3.6

Patch Changes

signals - @preact/[email protected]

Published by rschristian 10 months ago

1.2.1

Patch Changes

signals - @preact/[email protected]

Published by rschristian 10 months ago

1.3.5

Patch Changes

signals - @preact/[email protected]

Published by rschristian 10 months ago

0.0.1

Patch Changes

signals - @preact/[email protected]

Published by rschristian 10 months ago

1.2.0

Minor Changes

  • #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.
signals - @preact/[email protected]

Published by rschristian 10 months ago

1.4.0

Minor Changes

  • #380 256a331 Thanks @XantreGodlike! - Add untracked function, this allows more granular control within effect/computed around what should affect re-runs.
signals - @preact/signals v1.1.5

Published by JoviDeCroock over 1 year ago

Patch Changes

signals - @preact/signals-react v1.3.4

Published by JoviDeCroock over 1 year ago

Patch Changes

signals - @preact/signals-react 1.2.1

Published by marvinhagemeister about 2 years ago

Patch Changes

  • #238 bcf4b0b Thanks @eddyw! - Fix ERR_UNSUPPORTED_DIR_IMPORT error when importing use-sync-external-store/shim from ESM build