jetpack
jetpack copied to clipboard
Update Instant Search Dependency Updates
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
@testing-library/preact | devDependencies | patch | 3.2.3 -> 3.2.4 |
preact (source) | dependencies | minor | 10.12.1 -> 10.22.1 |
preact (source) | dependencies | patch | 10.22.0 -> 10.22.1 |
Release Notes
preactjs/preact (preact)
v10.22.1
Fixes
- Only check is connected for dom nodes (#4409, thanks @JoviDeCroock)
- Prevent useMemo from being too lazy with repeated renders (#4426, thanks @JoviDeCroock)
- Replace isConnected with parentDom.contains (#4421, thanks @JoviDeCroock)
- Graciously handle array shuffling (#4413, thanks @JoviDeCroock)
- Support popover boolean attribute (#4393, thanks @JoviDeCroock)
Types
- Improve React compatibility for
Ref
type. (#4403, thanks @maxbrieiev) - Expose stream render from
preact-render-to-string
(#4395, thanks @Austaras)
Maintenance
- Prefer
globalThis
overwindow
if available (#4401, thanks @marvinhagemeister) - Bump lockfile version to v3 (#4398, thanks @rschristian)
Performance
- Improve perf by skipping some lifecycle hooks for perf (#4366, thanks @JoviDeCroock)
- Create hot path for unmounting a tree of context (#4396, thanks @JoviDeCroock)
- Migrate husky v9 (#4390, thanks @castrogarciajs)
- Migrate to oxlint (#4387, thanks @JoviDeCroock)
- Migrate to biome (#4386, thanks @JoviDeCroock)
v10.22.0
Features
- Support MathML namespace (#4364, thanks @rschristian)
Types
- Add popover types (#4378, thanks @rschristian)
Maintenance
- Skip running compressed-size builds twice (#4377, thanks @rschristian)
- Test types and warnings (#4369, thanks @rschristian)
- Bump compressed-size-action (#4368, thanks @rschristian)
Fixes
- Allow the same component to render many times across different phases (#4382, thanks @JoviDeCroock)
- Provide error for illegal nesting of
<button>
and<a>
(#4376, thanks @rschristian) - Disallow
<tr>
as a child of<table>
(#4375, thanks @rschristian) - Change syntax in
compat/client
for IE11 support (#4372, thanks @rschristian)
v10.21.0
Features
- Debug throw on too many rerenders (#4349, thanks @rschristian)
- Add compat/client types (#4345, thanks @rschristian)
Fixes
- Expose hooks through compat's
ReactCurrentDispatcher
(#4342, thanks @rschristian) - Respect default value (#4341, thanks @JoviDeCroock)
- Incorrect "missing transform-jsx-source" warning (#4350, thanks @rschristian)
Types
- Support ComponentChild(ren) in compat render/hydrate/createPortal (#4346, thanks @rschristian)
- Import and re-export PreactElement (#3228, thanks @henryqdineen)
Maintenance
- Add zustand and redux-toolkit to the demo. (#3523, thanks @MortezaMirjavadi)
- Optimise jsx runtime (#4337, thanks @JoviDeCroock)
v10.20.2
Fixes
- Check whether
oldDom
is present in the DOM (#4318, thanks @JoviDeCroock) - Simplify the logic introduced in #4322 & use eventClock for capture events too (#4324, thanks @jviide)
- Use a virtual clock instead of Date.now() for event dispatch times (#4322, thanks @jviide)
Types
- Add template tag JSX type (#4334, thanks @marvinhagemeister)
Maintenance
- Integrate the new benchmarks repo and update (#4310, thanks @andrewiggins)
- Some byte improvements (#4321, thanks @JoviDeCroock)
v10.20.1
Fixes
- Add special case for focusIn and focusOut (#4316, thanks @JoviDeCroock)
v10.20.0
Features
- Add isMemo to compact to allow compatibility with react-is dependant libraries (#4302, thanks @ziongh)
Fixes
- Fix case where shrinking a list would cause an exception (#4312, thanks @JoviDeCroock)
v10.19.7
Types
- Bring consistency to our focus-event types (#4307, thanks @JoviDeCroock)
- Add onScrollend listener type (#4305, thanks @JoviDeCroock)
- Align state updater type with Raeect (#4306, thanks @JoviDeCroock)
Fixes
- Revert batch commit callbacks from all components in the render queue (#4297, thanks @JoviDeCroock)
v10.19.6
tl;dr: This release contains bug fixes for incorrect ordering of unkeyed children.
Fixes
- Match
null
placeholders using skewed index (#4290, thanks @andrewiggins) - Fix increment skew when we aren't removing the first pointer (#4284, thanks @JoviDeCroock)
- Fix invalid vnode internal id for text nodes (#4291, thanks @marvinhagemeister)
- Fix unkeyed reconciliation order in certain scenarios (#4287, thanks @marvinhagemeister, thanks @JoviDeCroock)
Full Changelog: https://github.com/preactjs/preact/compare/10.19.5...10.19.6
v10.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
v10.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)
v10.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)
v10.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)
v10.19.1
Fixes
- Missing preact import error when using compat (#4206, thanks @JoviDeCroock)
Types
v10.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)
v10.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)
v10.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)
v10.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)
v10.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)
v10.17.0
Features
- Support the
isElement
function in preact/compat (#4041, thanks @cbbfcd) - Support the
isFragment
function in preact/compat (#4042, thanks @cbbfcd)
Types
- Support the HTML search element (#4092, thanks @JoviDeCroock)
- Re-export
ComponentChild
asReactNode
in the preact/compat types (#4077, thanks @rschristian) - Add missing SvgProps and make the generics mandatory (#4071, thanks @JoviDeCroock)
- Fix dom-event types(#4066, thanks @JoviDeCroock)
Fixes
- Eagerly unmount placeholders (#4090, thanks @andrewiggins)
- Avoid skipping re-orders in child diffing (#4088, thanks @JoviDeCroock)
- reduce stack size of try catch by excluding non components (#4067, thanks @JoviDeCroock)
- Fix react-frame-component by supporting nullish portals (#3896, thanks @JoviDeCroock)
Maintenance
- Fix running our benchmarks since the branch rename (#4089, thanks @JoviDeCroock)
- Fix IE11 attribute test by sorting them (#4070, thanks @marvinhagemeister)
- Switch default branch to
main
(#4069, thanks @marvinhagemeister)
v10.16.0
Improved child diffing
- Port skew based child diffing (#4010, thanks @JoviDeCroock)
We have noticed a few scenario's where children would get unmounted and remounted eagerly due to some offset bugs in our child-diffing, with skew-based diffing we plan to address those. This is already part of v11 and has been introduced there by @andrewiggins. This has now been backported to Preact X so we can benefit from the consistency improvements here as well.
Defer setting refs
- fix: setting ref to null after updating it with new element (#4054, thanks @JoviDeCroock)
We used to set refs as part of the children, synchronously this caused several issues when a ref would go down a level, i.e. the following example
const App = () => {
return phase === 1 ? <div ref={x}><p>Foo</p></div> : <div><div ref={x}><p>Foo</p></div>
}
In this example when we go from phase 1 to phase 2 we would mount a new ref but only after we bubble back up diffing clean up the outer ref making the ref reset to null.
Fixes
- fix: incorrect actDepth calculation in test-utils (#4051, thanks @ottomao)
- Server compat should have a default export (#4047, thanks @MikaFima)
- Fix forceUpdate edge cases (#4048, thanks @dmitrage)
- Include HTML above render root for DOM validation (#4043, thanks @marvinhagemeister)
Types
- Types: add missing aria attributes (#4032, thanks @shoonia)
- improve VNode typings when generic is passed in (#4050, thanks @JoviDeCroock)
v10.15.1
Fixes
- Fix TS FunctionComponent w/ exactOptionalPropertyTypes (#4025, thanks @rschristian)
Types
- Add W3C aria attributes (#4026, thanks @shoonia)
- Adds missing Context and Dispatch types to compat (#4028, thanks @Scott-Fischer)
v10.15.0
Revert
- Revert controlled components (#4009, thanks @JoviDeCroock)
fixes
Types
- Add Missing
ForwardRefExoticComponent
andRefAttributes
types in compat (#3996, thanks @rschristian) - Add types for
<dialog>
's close & cancel events (#4017, thanks @rschristian) - Add missing types of TransitionEvent (#4019, thanks @shoonia)
- Add types of PictureInPictureEvent (#4020, thanks @shoonia)
v10.14.1
Fixes
- Add microtick delay for restoring the value of controlled inputs (#4006, thanks @JoviDeCroock)
v10.14.0
Features
- Add default props in cloneElement (#3968, thanks @nnhk23)
- Throw an error in debug if NaN is in a hook's dependency array (#3964, thanks @andrewiggins)
- Add deeper controlled input support in compat (#3926, thanks @andrewiggins)
Fixes
- Fix rowspan and colspan not cleared (#3997, thanks @marvinhagemeister)
- Should not transform imageSourceSet to image-source-set (#3995, thanks @JoviDeCroock)
Types
- Add some JSX attribute types (#3970, thanks @kidonng)
-
indeterminate
's SignalLike type (#3971, thanks @rschristian)
Maintenance
- Add missing type fields for tools (#3990, thanks @marvinhagemeister)
- Add isNaN helper for IE11 (#3981, thanks @andrewiggins)
- Fix firefox saucelabs not running (#3963, thanks @JoviDeCroock)
- Wait a major task after triggering GC to measure memory (#3962, thanks @andrewiggins)
- Add test for unmounting callback ref passed to
useImperativeHandle
(#3960, thanks @andrewiggins) - Improve perf of prop access (#3956, thanks @JoviDeCroock)
v10.13.2
Performance
- Optimization for aria-/data- attr detection (#3948, thanks @developit)
- Optimize compat by hoisting the vnode handling func (#3941, thanks @JoviDeCroock)
Maintenance
- Upgrade prettier and run on more files (#3945, thanks @andrewiggins)
v10.13.1
Bug Fixes
- Skip over function children when rendering (#3919, thanks @andrewiggins)
- Fix hook update not being applied when a forced context update was enqueued at the same time (#3922, thanks @marvinhagemeister)
Performance
- Improve render queue sorting performance by hoisting out function (#3921, thanks @developit)
- Improve compat performance by hoisting out regexes (#3903, thanks @JoviDeCroock)
Maintenance
- Some more IE11 specific fixes in our test suite (#3914, thanks @marvinhagemeister)
v10.13.0
Features
- Switch back to microticks for scheduling as the default (#3911, thanks @marvinhagemeister , @JoviDeCroock)
Bug Fixes
- Fix hydrating
<textarea>
with value prop (#3891, thanks @andrewiggins) - Prevent memory leak when creating and destroying root nodes by clearing
currentComponent
(#3908, thanks @JoviDeCroock) - Fix regression in
10.12.1
from #3889 which could lead to a state not updating after a context update was enqueued (#3906, thanks @JoviDeCroock) - Fix tests assertions for IE11 (#3912, thanks @marvinhagemeister)
Types
- Add
indeterminate
property (#3837, thanks @rschristian) - Add aria role attribute values (#3904, thanks @shoonia)
- Add missing SVG Elements to types (#3905, thanks @shoonia)
- Add Missing
MemoExoticComponent
type inpreact/compat
(#3898, thanks @rschristian) - Add ARIA attribute types (#3910, thanks @andrewiggins)
Configuration
📅 Schedule: Branch creation - "before 3am on the first day of the month" in timezone UTC, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Renovate Bot.