This repository was archived by the owner on Jul 3, 2023. It is now read-only.
[Snyk] Upgrade lit-element from 2.2.1 to 2.4.0 #6
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 lit-element from 2.2.1 to 2.4.0.
ℹ️ 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.
Release notes
Package name: lit-element
Changed
Added
Adds a
cache: boolean
argument to the@query
decorator as a performance optimization for properties whose queried element is not expected to change. If cache is set to true, element DOM is queried when the property is first accessed, and the value is cached so it can be immediately returned on all subsequent property accesses. (#1013)Adds a
selector: string
argument to the@queryAssignedNodes
decorator as a convenience to filter the assigned nodes by the given selector (#1016).The
requestUpdateInternal(name, oldValue, options)
method has been added. This method is sometimes useful to call in a custom property setter to optimize performance. It is slightly more efficient thanrequestUpdate
since it does not return theupdateComplete
property which can be overridden to do work.The protected
performUpdate()
method may now be called to syncronously "flush" a pending update, for example via a property setter. Note, performing a synchronous update only updates the element and not any potentially pending descendants in the element's local DOM (#959).Constructible stylesheets may now be provided directly as styles, in addition to using the
css
tagged template function (#853).Fixed
Fixed
Changed
getPropertyDescriptor
method to allow easier customization of property accessors. This method should return a aPropertyDescriptor
to install on the property. If no descriptor is returned, no property accessor is created. (#911)render
is always rendered, even if it isn't aTemplateResult
. (#712)Added
@queryAsync(selector)
decorator which returns a Promise that resolves to the result of querying for the given selector after the element'supdateComplete
Promise resolves (#903).enableUpdating()
toUpdatingElement
to enable customizing when updating is enabled #860.@queryAssignedNodes(slotName, flatten)
decorator to enable querying assignedNodes for a given slot #860.getStyles()
toLitElement
to allow hooks into style gathering for component sets #866.Fixed
UpdatingElement
allows updates when properties are set after callingsuper.update()
.LitElement
renders when updates are triggered as a result of rendering (#549).eventOptions
decorator will now survive property renaming optimizations when used with tsickle and Closure JS Compiler.finalize
toinitialize
to be more lazy, and create stylesheets on the first instance initializing #866.render()
introduced in (#712) (#917)Release 2.2.1
Commit messages
Package name: lit-element
Compare
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:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs