Skip to content

Releases: preactjs/preact

10.25.4

28 Dec 08:27
055cc5b
Compare
Choose a tag to compare

Types

Fixes

10.25.3

18 Dec 20:58
3972db1
Compare
Choose a tag to compare

Fixes

Types

  • Add default event target types for HTML attribute interfaces (#4606, thanks @rschristian)

10.25.2

12 Dec 08:15
2beb9f7
Compare
Choose a tag to compare

Notable

Revert unkeyed no-search (#4604, thanks @JoviDeCroock)

We noticed that there's a few unpleasant scenario's that could form from this change, we wanted to be on the safe side here and revert this for the time being. if you run into issues with swapping components placement wise in a list use the key property.

Fixes

  • Add missing space in hydration mismatch message (#4602, thanks @sirreal)

Types

  • fix max and min type definition to allow number (#4598, thanks @devlux)

Performance

Maintenance

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