Skip to content

Releases: preactjs/preact

4.1.2

09 Mar 16:37
Compare
Choose a tag to compare

This is purely a bug fix release, so be sure to update if you're using Preact 4.x.

Bugs Fixed:

  • Fix orphaned keyed VNodes not being removed in certain cases, such as when there are adjacent non-orphaned non-keyed VNodes (see preactjs/preact-compat#21)
  • When diffing a component against a non-component VNode, if the component render returns a different DOM node, make sure to reclaim the original node. (Issue #73)

4.1.1

05 Mar 02:04
Compare
Choose a tag to compare
  • Preact 4 is now officially out of beta. Please still report any bugs you find!
  • setState() callbacks should be called with the component as their context.

4.1.0

05 Mar 02:03
Compare
Choose a tag to compare
4.1.0 Pre-release
Pre-release
  • Fix multiple camelCase'd CSS properties (#66)
  • Fix child component refs not being invoked with null when the associated component is unmounted
  • Fix high order component refs linking to parent component when they should link to the child component/node.

4.0.1

23 Feb 23:44
Compare
Choose a tag to compare
4.0.1 Pre-release
Pre-release

4.0.0

23 Feb 13:18
Compare
Choose a tag to compare
4.0.0 Pre-release
Pre-release
  • Add support for refs!
  • Add support for defaultProps (static property on Components)
  • Possibly Breaking Change: cache rendered DOM with components when recycling
  • Possibly Breaking Change: don't wipe recycled DOM nodes, simply diff when re-used
  • Use setImmediate() to improve setState() performance where available
  • Skip empty values when serializing style objects
  • Coerce falsey className and style values to an empty string to avoid class="null" and style="null"
  • Rename missing component insert from <x-undefined-element> to <undefined>
  • Use a Symbol for storing the prop cache where available

3.4.0

17 Feb 14:37
Compare
Choose a tag to compare
  • Fix for key behaviour, and don't write keys to the DOM as attributes.

3.3.0

12 Feb 23:11
Compare
Choose a tag to compare
  • Performance tuning for a ~10% improvement on DBMonster (basically 10% faster diff algorithm)
  • Refactored diff algorithm to be easier to follow
  • Add Component.prototype.forceUpdate() method.
  • Fix a bug where a child component of a high-order component self-rendering (eg: via setState()) would cause a subsequent re-render of the parent component to re-initialize itself and the child (through the recycler, but this was causing thrash).
  • Fix an issue where nested components would not receive unmount lifecycle hooks (fixes Issue #47)

3.2.0

12 Feb 23:08
Compare
Choose a tag to compare
  • Bugfix: pass context through recycled constructors (with this react-redux is now fully supported!)
  • linkState() when used with top-level keys (ie, not dot-notated) will no longer mutate this.state in-place.

    (Nested keys can and will still mutate this.state, since the implementation of immutable state traversal would essentially be a small immutability library, not something Preact core can justify)

3.1.0

12 Feb 23:08
Compare
Choose a tag to compare
  • Performance tweaks!

3.0.1

04 Feb 02:49
Compare
Choose a tag to compare
3.0.1 Pre-release
Pre-release

This is likely the last beta release of Preact 3.0, it'll become the stable branch shortly.
Feedback and testing welcome!

  • Use a safeguard method to obtain preact attr cache objects before writes
  • Fix edge case where fallthrough attribute values would not be stored in the preact attr cache
  • null instead of delete for _component refs, avoiding shape mutations
  • build tweaks