[Snyk] Upgrade preact from 10.11.3 to 10.25.4 #142
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade preact from 10.11.3 to 10.25.4.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 41 versions ahead of your current version.
The recommended version was released 22 days ago.
Release notes
Package name: preact
Types
Fixes
Fixes
Types
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
Types
Performance
Maintenance
Fixes
Types
defaultValue
property types for inputs, selects, & textareas (#4585, thanks @ rschristian)type
attribute (#4582, thanks @ rschristian)createElement
&h
types (#4578, thanks @ rschristian)href
&hreflang
attribute types (#4575, thanks @ rschristian)datetime
on<del>
as optional (#4570, thanks @ marvinhagemeister)max
andmin
properties on input element types (#4568, thanks @ rschristian)ElementRef
type to compat (#4557, thanks @ rschristian)Maintenance
declare global
from internal types (#4583, thanks @ rschristian)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
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
onclick,
handleEvent() {
this.onclick()
}
}
<div onClick={handler} />
Fixes
Maintenance
Signalish
helper to reduce verbosity (#4545, thanks @ rschristian)react/iframe-missing-sandbox
(#4533, thanks @ DonIsaac)Fixes
Performance
Maintenance
Performance
Types
Maintenance
Fixes
Types
spellCheck
type (#4497, thanks @ rschristian)Maintenance
Features
Fixes
Types
AnyComponent
type to support classes (#4479, thanks @ rschristian)Maintenance
Fixes
Types
Maintenance
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:![](https://camo.githubusercontent.com/eac7e1844e45d034a9baee65c832712a9e04e0338f694c78310d90fabc8f2ee5/68747470733a2f2f6170692e7365676d656e742e696f2f76312f706978656c2f747261636b3f646174613d65794a33636d6c305a55746c65534936496e4a79576d785a634564485932527954485a7362306c596430645563566734576b4652546e4e434f5545774969776959573576626e6c746233567a535751694f694a6d4d6a426d4d574d30596930355a6a6c6d4c54517a4d546b74596d497a4f4331684e7a6b304d54466c4f4467344e4445694c434a6c646d567564434936496c425349485a705a58646c5a434973496e42796233426c636e52705a584d694f6e736963484a4a5a434936496d59794d475978597a52694c546c6d4f5759744e444d784f533169596a4d344c5745334f5451784d5755344f4467304d534a3966513d3d)
Summary by Sourcery
Enhancements:
preact
dependency in the core package.