Skip to content

Releases: preactjs/preact

10.18.0

28 Sep 09:32
0c1b93c
Compare
Choose a tag to compare

Features

Types

Fixes

  • Cannot read property 'insertBefore' of undefined during suspense (#4141, thanks @zakstucke)
  • Remove role attribute when it's null or undefined (#4137, thanks @DAreRodz)
  • Add timer to event handler so we can check whether it was attached during the current propagation (#4126, thanks @JoviDeCroock)
  • Fix ordering issue with Component re-render (#4125, thanks @JoviDeCroock)

Maintenance

10.17.1

19 Aug 07:45
c286818
Compare
Choose a tag to compare

Fixes

Types

  • Ensure all WAI-ARIA 1.2 roles are supported in our types (#4101, thanks @rschristian)

Maintenance

10.17.0

14 Aug 13:22
19b3b1b
Compare
Choose a tag to compare

Features

  • Support the isElement function in preact/compat (#4041, thanks @cbbfcd)
  • Support the isFragment function in preact/compat (#4042, thanks @cbbfcd)

Types

Fixes

Maintenance

10.16.0

09 Jul 08:01
051f10c
Compare
Choose a tag to compare

Improved child diffing

We have noticed a few scenario's where children would get unmounted and remounted eagerly due to some offset bugs in our child-diffing, with skew-based diffing we plan to address those. This is already part of v11 and has been introduced there by @andrewiggins. This has now been backported to Preact X so we can benefit from the consistency improvements here as well.

Defer setting refs

  • fix: setting ref to null after updating it with new element (#4054, thanks @JoviDeCroock)

We used to set refs as part of the children, synchronously this caused several issues when a ref would go down a level, i.e. the following example

const App = () => {
  return phase === 1 ? <div ref={x}><p>Foo</p></div> : <div><div ref={x}><p>Foo</p></div>
}

In this example when we go from phase 1 to phase 2 we would mount a new ref but only after we bubble back up diffing clean up the outer ref making the ref reset to null.

Fixes

Types

10.15.1

27 May 09:28
aef6087
Compare
Choose a tag to compare

Fixes

  • Fix TS FunctionComponent w/ exactOptionalPropertyTypes (#4025, thanks @rschristian)

Types

10.15.0

21 May 19:04
ea49f7a
Compare
Choose a tag to compare

Revert

fixes

  • fix: keep hooks index with useEffect (#4016, thanks @1o1w1)

Types

  • Add Missing ForwardRefExoticComponent and RefAttributes types in compat (#3996, thanks @rschristian)
  • Add types for <dialog>'s close & cancel events (#4017, thanks @rschristian)
  • Add missing types of TransitionEvent (#4019, thanks @shoonia)
  • Add types of PictureInPictureEvent (#4020, thanks @shoonia)

10.14.1

16 May 15:21
19f4176
Compare
Choose a tag to compare

Fixes

  • Add microtick delay for restoring the value of controlled inputs (#4006, thanks @JoviDeCroock)

10.14.0

14 May 10:27
9966b27
Compare
Choose a tag to compare

Features

Fixes

Types

Maintenance

10.13.2

27 Mar 08:32
87e5083
Compare
Choose a tag to compare

Performance

Maintenance

10.13.1

09 Mar 14:37
958311a
Compare
Choose a tag to compare

Bug Fixes

Performance

  • Improve render queue sorting performance by hoisting out function (#3921, thanks @developit)
  • Improve compat performance by hoisting out regexes (#3903, thanks @JoviDeCroock)

Maintenance