Skip to content

Releases: preactjs/preact

10.25.1

02 Dec 07:36
80d9226
Compare
Choose a tag to compare

Fixes

Types

Maintenance

10.25.0

22 Nov 07:14
33a688f
Compare
Choose a tag to compare

Features

Move per-element type interfaces into core and more strictly type IntrinsicElements (#4546, thanks @rschristian)

This adds per-element typings for every DOM-node type, this means that our types might become slightly stricter when you are using DOM attributes/properties where they are not allowed, an example of this might be <div src="x" />.

If you notice any issues when upgrading tell us about them, we can evaluate whether we have missed a case.

Recreate unkeyed functional components when they change position. (#4550, thanks @JoviDeCroock)

This is a long time bugfix, when we have elements that look like

return (
	{condition ? <Element /> : null}
	{condition ? null : <Element />
)

We would reuse the state of the first VNode to render the second one when the condition switches. When you are using key, this issue was not present.

Support { handleEvent() {} } object interface as a listener (#4538, thanks @lilnasy)

We've added support for attaching object/class event-handlers

let handler = {
	onclick,
	handleEvent() {
		this.onclick()
	}
}

<div onClick={handler} />

Fixes

Maintenance

10.24.3

14 Oct 05:56
64e4a63
Compare
Choose a tag to compare

Fixes

Performance

Maintenance

10.24.2

04 Oct 06:12
87f7efa
Compare
Choose a tag to compare

Performance

Types

Maintenance

10.24.1

24 Sep 16:07
3fe5d6b
Compare
Choose a tag to compare

Fixes

Types

Maintenance

10.24.0

14 Sep 06:33
8d0ee49
Compare
Choose a tag to compare

Features

Fixes

  • Avoid setting value for progress with nullish value (#4492, thanks @JoviDeCroock)
  • Fix skewedIndex becoming outrageously big and document tradeoffs of our decisions (#4483, thanks @JoviDeCroock)

Types

Maintenance

10.23.2

12 Aug 17:20
2c6df95
Compare
Choose a tag to compare

Fixes

Types

Maintenance

10.23.1

25 Jul 06:20
9351588
Compare
Choose a tag to compare

Fixes

  • Fix debug-issue in testing libraries where there might not be a DOM node (#4454, thanks @JoviDeCroock)

10.23.0

23 Jul 19:05
2f1712a
Compare
Choose a tag to compare

Features

This adds support for returning a function in functional refs, example

<input
  ref={(ref) => {
    // Assign ref, do something with it
    return () => {
      // ref cleanup, when the element unmounts
      // we run the cleanup
    };
  }}
/>

Fixes

Types

Maintenance

10.22.1

01 Jul 05:39
7eef3e0
Compare
Choose a tag to compare

Fixes

Types

Maintenance

Performance