Releases: preactjs/preact
Releases · preactjs/preact
10.19.5
Fixes
- Address scenario where we would crash when replacing a matched vnode with null (#4281, thanks @JoviDeCroock)
- Correctly restore _original (#4280, thanks @JoviDeCroock)
- Protect against nullish render (#4278, thanks @JoviDeCroock)
- Support setting translate through direct access (#3800, thanks @JoviDeCroock)
Types
10.19.4
Fixes
- event-listeners in safari 12.3 fix (#4253, thanks @JoviDeCroock)
- support passing context into pure component (#4269, thanks @JoviDeCroock)
- retain masks across render invocations (#4245, thanks @JoviDeCroock)
- skip comment nodes for placeChild (#4128, thanks @JoviDeCroock)
- ensure we are able to support capture events from compat (#4243, thanks @JoviDeCroock)
- batch commit callbacks from all components in the render queue (#4234, thanks @developit)
Types
- improve preact compat types adding a few missing @types/react used by styled-components (#4271, thanks @jduthon)
- add ComponentType to preact/compat (#4239, thanks @ianobermiller)
- add missing contenteditable "inherit" value (#4242, thanks @marvinhagemeister)
Maintenance
- add some sensible timeouts to actions that call out to external services (#4259, thanks @andrewiggins)
- improve types of hook source (#4229, thanks @andrewiggins)
10.19.3
Bug Fixes
- Add
MathML
types (#4214, thanks @fekete965) - Fix event handler event types for
onInput
,onBeforeInput
andonSubmit
(#4226, #4220, thanks @marvinhagemeister) - Fix invalid vnodes not filtered out in children (#4219 , thanks @billti)
Maintenance
- Remove focus from event capturing tests (#4217, @andrewiggins)
10.19.2
Fixes
- Call options.vnode on rerender (#4209, thanks @andrewiggins)
Maintenance
- Fix tests in IE11 (#4211, thanks @andrewiggins)
- Add test for removing children of memoed components (#4210, thanks @andrewiggins)
10.19.1
10.19.0
Features
- Support precompiled JSX transform (#4177, thanks @marvinhagemeister)
Fixes
- Rework children diffing to run in multiple phases (#4180, thanks @andrewiggins)
Performance
- Inline
diffProps
function (#4200, thanks @andrewiggins) - Do typeof string check before looking for String constructor (#4198, thanks @andrewiggins)
- Only run unmounting loop if any children remain to unmount (+2 B) (#4199, thanks @andrewiggins)
- Fix debug throwing in valid nested table (#4193, thanks @marvinhagemeister)
Types
- Compat PureComponent parity with upstream react type definitions (#4056, thanks @Blufords)
10.18.2
Types
- Update
contentEditable
attribute values (#4163, thanks @shoonia) - Add
elementTiming
attribute/property (#4165, thanks @shoonia) - Add the
exportparts
global attribute (#4164, thanks @shoonia) - Fix vnode type coercion (#4158, thanks @JoviDeCroock)
Fixes
- Fix case where parent catches error and switches vnode return type (#4182, thanks @JoviDeCroock)
- Allow handling errors in getSnapshot of useSyncExternalStore & add more tests (#4175, thanks @andrewiggins)
- Prevent invalid DOM nesting false positives (#4160, thanks @marvinhagemeister)
Improvements
- Improve place child (#4172, thanks @andrewiggins)
- Use copied VNode as newVNode instead of oldVNode when rerendering (#4171, thanks @andrewiggins)
- Manually track children's index & fix parent pointers when rerendering components (#4170, thanks @andrewiggins)
- Always clear
_nextDom
field on VNodes (#4166, thanks @andrewiggins) - Switch
===
to==
in a few places where not needed (#4157, thanks @rschristian) - Add support for new String() as a child (#4152, thanks @appsforartists)
Maintenance
- Update deopt script to generate log for usage in DeoptExplorer VSCode extension (#4188, thanks @andrewiggins)
- Fix benchmark debug action (#4187, thanks @andrewiggins)
- Add Benchmark Debug workflow (#4185, thanks @andrewiggins)
- Upgrade workflow actions (#4184, thanks @andrewiggins)
- Use import.meta.resolve in benchmark setup (#4179, thanks @andrewiggins)
- Improve code coverage (#4174, thanks @andrewiggins)
- Improve internal JSDoc types (#4173, thanks @andrewiggins)
- Upgrade to node@20 for development (#4167, thanks @andrewiggins)
10.18.1
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
Features
- Warn for illegal children types in /debug (#4108, thanks @JoviDeCroock)
Types
- Add missing native attribute JSX types (#4140, thanks @marvinhagemeister)
- Add
SetStateAction
&PropsWithoutRef
types to compat (#4132, thanks @rschristian) - Adds
HTMLProps
to compat (#4117, thanks @rschristian)
Fixes
- Cannot read property 'insertBefore' of undefined during suspense (#4141, thanks @zakstucke)
- Remove
role
attribute when it'snull
orundefined
(#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
- Update link & verbiage for reproduction in issue template (#4135, thanks @rschristian)
- uncomment passing test (#4130, thanks @JoviDeCroock)
- Replace for-of loop with normal loop (#4110, thanks @Popovkov57)
- Cleanup unused files (#4107, thanks @JoviDeCroock)
10.17.1
Fixes
- Fix double unmount (#4105, thanks @developit)
- Don't rename
gotpointercapture
andlostpointercapture
events (#4096, thanks @rschristian)
Types
- Ensure all WAI-ARIA 1.2 roles are supported in our types (#4101, thanks @rschristian)
Maintenance
- Golf size/perf of #4096 (#4102, thanks @developit)