Skip to content

Releases: preactjs/preact

10.19.1

11 Nov 10:17
2f31796
Compare
Choose a tag to compare

Fixes

Types

  • Make children optional in Provider's typings (#4205, thanks @shicks)

10.19.0

11 Nov 08:02
08ff289
Compare
Choose a tag to compare

Features

Fixes

Performance

Types

  • Compat PureComponent parity with upstream react type definitions (#4056, thanks @Blufords)

10.18.2

03 Nov 08:04
9a9967d
Compare
Choose a tag to compare

Types

Fixes

Improvements

Maintenance

10.18.1

01 Oct 09:21
9c5a82e
Compare
Choose a tag to compare

Fixes

  • Avoid crashing when there is no _children (#4147, thanks @JoviDeCroock)
  • Fix regex for "Improper nesting of paragraph" for span under a paragraph (#4144, thanks @cheeaun)

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)