haunted-lit-element
haunted-lit-element copied to clipboard
Bump lit-element from 2.2.1 to 2.5.1
Bumps lit-element from 2.2.1 to 2.5.1.
Release notes
Sourced from lit-element's releases.
v2.4.0
Changed
- Set type in package.json to "module" (#974)
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
- queryAssignedNodes doesn't correctly locate default slot (#1002)
v2.3.1
Fixed
- Add TypeScript type declarations for older versions of TypeScript. We're currently testing back to TS 3.4. We can't commit to never breaking TypeScript builds, but we'll be supporting older versions as best we can.
v2.3.0
Changed
- Added a static
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)- The value returned by
render
is always rendered, even if it isn't aTemplateResult
. (#712)Added
- 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).- Added
enableUpdating()
toUpdatingElement
to enable customizing when updating is enabled #860.- Added
@queryAssignedNodes(slotName, flatten)
decorator to enable querying assignedNodes for a given slot #860.- Added
getStyles()
toLitElement
to allow hooks into style gathering for component sets #866.Fixed
- Ensure
UpdatingElement
allows updates when properties are set after callingsuper.update()
.LitElement
renders when updates are triggered as a result of rendering (#549).- Properties annotated with the
eventOptions
decorator will now survive property renaming optimizations when used with tsickle and Closure JS Compiler.- Moved style gathering from
finalize
toinitialize
to be more lazy, and create stylesheets on the first instance initializing #866.- Fixed behavior change for components that do not implement
render()
introduced in (#712) (#917)
Changelog
Sourced from lit-element's changelog.
Change Log
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
[2.5.0] - 2021-05-05
Fixed
- Fixed an issue that was causing VS Code to mark
@state()
as deprecated (#1192).[2.5.0] - 2021-04-29
Changed
- Added the
@state()
decorator as an alias for@internalProperty()
, and deprecated@internalProperty()
which will be renamed to@state
in lit-element 3.0 (#1162).- Added
UpdatingElement.prototype.getUpdateComplete()
and deprecated_getUpdateComplete()
for forward compibility with lit-element 3.0.Added
- Adds a
static shadowRootOptions
property for specifying shadow root options. This is a slightly simpler alternative to implementing a customcreateRenderRoot
method (#1147).- Adds an export of
UpdatingElement
asReactiveElement
for forward-compatibility with lit-element 3.0 (#1177).Fixed
- Fixes an issue with
queryAssignedNodes
when applying a selector on a slot that included text nodes on older browsers not supporting Element.matches (#1088).[2.4.0] - 2020-08-19
Changed
- Set type in package.json to "module" (#974)
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.
... (truncated)
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) -
@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and language -
@dependabot badge me
will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot dashboard:
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)