Skip to content

Latest commit

 

History

History
223 lines (133 loc) · 12.3 KB

CHANGELOG.md

File metadata and controls

223 lines (133 loc) · 12.3 KB

@preact/signals

2.0.1

Patch Changes

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

2.0.0

Major Changes

  • #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 in act, but now this is the norm.

Minor Changes

Patch Changes

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

1.3.0

Minor Changes

  • #578 931404e Thanks @JoviDeCroock! - Allow for passing no argument to the signal and the type to be automatically inferred as T | undefined

Patch Changes

  • Updated dependencies [931404e]:
    • @preact/signals-core@1.7.0

1.2.3

Patch Changes

1.2.2

Patch Changes

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

1.2.1

Patch Changes

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.

Patch Changes

  • Updated dependencies [256a331]:
    • @preact/signals-core@1.4.0

1.1.5

Patch Changes

1.1.4

Patch Changes

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

1.1.3

Patch Changes

  • df813ad Thanks @developit! - Fix rendering of Signals as text in preact-render-to-string (#268)
  • #282 cafbdaa Thanks @developit! - Fix a bug that caused cleanup functions returned from a useSignalEffect() callback not to be called.

  • Updated dependencies [7e15d3c]:

    • @preact/signals-core@1.2.3

1.1.2

Patch Changes

1.1.1

Patch Changes

1.1.0

Minor Changes

  • #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");
      });
    });

Patch Changes

  • #161 6ac6923 Thanks @jviide! - Remove all usages of Set, Map and other allocation heavy objects in signals-core. This substaintially increases performance across all measurements.

1.0.4

Patch Changes

  • #148 b948745 Thanks @marvinhagemeister! - Move types field in package.json to the top of the entry list to ensure that TypeScript always finds it.

1.0.3

Patch Changes

  • ab5bd99: Fix swapping and HMR for signals when used as text

1.0.2

Patch Changes

  • 2383684: Correctly replace props-value with peeked value
  • Updated dependencies [5644c1f]
    • @preact/signals-core@1.0.1

1.0.1

Patch Changes

  • c7c0d91: Add marker for devtools to Text that is created when a signal is passed into JSX

1.0.0

Major Changes

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

Patch Changes

  • Updated dependencies [ab22ec7]
  • Updated dependencies [2ee8489]
  • Updated dependencies [b56abf3]
    • @preact/signals-core@1.0.0

0.0.4

Patch Changes

  • 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

0.0.3

Patch Changes

  • 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

0.0.2

Patch Changes

  • 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 and boolean values.
  • 1171338: Fix wrong path for TypeScript definitions in package.json
  • Updated dependencies [1e4dac5]
    • @preact/signals-core@0.0.3