This repository has been archived by the owner on Dec 16, 2021. It is now read-only.
Releases: preactjs/preact-compat
Releases · preactjs/preact-compat
3.1.0
3.0.1
3.0.0
Breaking: render()
render()
will now remove elements not included in the diff (#150, thanks @MobiusHorizons!)- Technically a breaking change, now behaves the same as React:
import { render, createElement } from 'preact-compat'; console.log(document.body.outerHTML); // <body>blah<div>asdfasdf</div><span>hello</span></body> render(<div id="foo">Foo</div>, document.body); console.log(document.body.outerHTML); // <body><div id="foo">Foo</div></body>(note:
<div>
from first log is the same as the second)
Better compatibility with ES Bundlers like Rollup!
2.3.1
2.3.0
2.2.1
2.2.0
2.1.0
Features
- Add support for
mixins
tocreateClass()
. - Add
propType
validation for stateless functional components (thanks @ctrlplusb!)
Fixes
- Softens
propType
validation to result inconsole.error
rather than throwing exceptions (thanks @ctrlplusb!) - Mark property extensions as
configurable
so hot-reloadingpreact-compat
doesn't break (thanks @ctrlplusb!)