Releases: preactjs/preact
Releases · preactjs/preact
10.10.1
Bug Fixes
- Fix infinite loop in
radix-ui
which enqueues multiple state updates in the same tick (#3645, thanks @JoviDeCroock ) - Fix effects run for suspended components in rare instances (#3643, thanks @JoviDeCroock )
- Fix
useSyncExternalStore
not working with function values (#3633, thanks @marvinhagemeister ) - Defer bailing out of updates to the render phase to align with React (#3621 + #3623, thanks @JoviDeCroock )
- Fix some SVG attributes applied with wrong casing (#3615, thanks @iminside)
Maintenance
- Update
esbuild
(#3630, thanks @marvinhagemeister ) - Make demo compatible with node 16 and 18 (#3617, @gengjiawen )
10.10.0
Feature
- Microtick —> setTimeout for debouncing renders (mirror change for setTimeout debounce #3608, thanks @JoviDeCroock)
We changed our debounce of our rendering to setTimeout!
Why? We've batched using microtasks for the past few major versions because it benchmarked well. This had a side-effect of flushing batched renders between event handlers, which can cause some strange behavior:
<input
type="checkbox"
onChange={onChange}
checked={true}
onClick={onClick}
/>
An additional benefit of this change is that code causing an infinite rendering loop will no longer result in an unresponsive browser tab. Rendering in a loop is now capped to the browser's maximum timer frequency (~250Hz), which makes it possible to pause and debug the code triggering an accidental loop.
10.9.0
Feature
We are adding support for the newly added React 18 hooks (apart from useId
) (#3568, thanks @JoviDeCroock)
FIxes
- Adding types for 'part' attribute (#3595, thanks @rschristian)
- prevent _suspended and _force from colliding (#3585, thanks @JoviDeCroock)
10.8.2
Enhancements
- Add support for svg property shape-rendering (#3577, thanks @DannyvanderJagt)
- Remove setState on unmounted component warning (#3576, thanks @ekwoka)
Fixes
- Fix allow return
undefined
inuseMemo
after skipped render (#3580, thanks @marvinhagemeister) - Fix incorrect
useMemo
return value after skipped render (#3579, thanks @marvinhagemeister) - Commit hooks in options.diffed (#3578, thanks @JoviDeCroock)
- restrict "oninputCapture" conversion to just "oninput" vs "oninput*" (#3573, thanks @jramanat-oracle)
Improvements
- Improve unit tests to cover fix on #3573 (#3574, thanks @marconi1992)
- Add
_pendingValue
tomangle.json
(#3575, thanks @marvinhagemeister)
10.8.1
- Clear pending state from repeated renders (#3567, thanks @JoviDeCroock)
10.8.0
Features
- Add export maps to the subpackages (#3565, thanks @JoviDeCroock)
- Ensure both onchange and oninput callbacks are executes when typing (#3562, thanks @marconi1992)
- Make createRoot / hydrateRoot compatible with React spec (#3560, thanks @3846masa)
- Implement state settling in X (#3553, thanks @JoviDeCroock)
Maintenance
- Fix size CI failing on node version missmatch (#3563, thanks @JoviDeCroock)
10.7.3
Improvements
- Add
server.browser.js
(#3544, thanks @JoviDeCroock) - Add
textPath
SVG type (#3546, thanks @backmeupplz)
10.7.2
Improvements
- improve compat types (#3534, thanks @JoviDeCroock)
- support nodenext in TypeScript 4.7 (#3513, thanks @ilogico)
- add missing containerInfo to portals (#3508, thanks @JoviDeCroock)
Fixes
- fix cleanup of
debounceRendering
hook after exceptions (#3530, thanks @robertknight)
Maintenance
- fix Snyk sponsor link (#3533, thanks @developit)
- add Snyk to sponsors (#3532, thanks @developit)
- remove git.io usages (#3528, thanks @mhmdanas)
- fixes broken Slack shield in README (#3516, thanks @schalkventer)
10.7.1
Features
- Add new react-dom/client entry to compat (#3506, thanks @JoviDeCroock)
Fixes
- Simplify forwardRef and fix empty ref object (#3497, thanks @developit)
10.7.0
Features
- Add support for
errorInfo
(#3452, thanks @marvinhagemeister ) - Allow for passing in multiple refs through forwardRef (#3494, thanks @JoviDeCroock)
Bug Fixes
- Fix Incorrect translation of
xlink:href
attribute -> hhref (#3453, thanks @pguilbert) - Fix swapped jsx runtime
__source
and__self
arguments (#3459, thanks @marvinhagemeister) - Ensure consistent format order for package entries (#3489, thanks @marvinhagemeister)
- Reset
useImperativeHandle
ref tonull
when the component get unmounted (#3487, thanks @deadem)
Typings
Maintenance
- Fix test not cleaned up properly (#3457, thanks @marvinhagemeister
- Fix fake timers not being reset on test failure (#3458, thanks @marvinhagemeister)
- Remove unused devDependency (#3460, thanks @marvinhagemeister)
- Update test dependencies (#3467, thanks @marvinhagemeister)
- Improve karma test console logging (#3475, thanks @marvinhagemeister)
- Fix karma error traces not being source mapped (#3476, thanks @marvinhagemeister)