fix(deps): update dependency lit-element to v3
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| lit-element (source) | 2.5.1 -> 3.2.2 |
Release Notes
lit/lit
v3.2.2
Patch Changes
-
#3132
2fe2053f- Added "types" entry to package exports. This tells newer versions of TypeScript where to look for typings for each module.
v3.2.1
Patch Changes
-
#2978
634d4560- Changed the caching behavior of the css`` template literal tag so that same-text styles do not share a CSSStyleSheet. Note that this may be a breaking change in some very unusual scenarios on Chromium and Firefox > 101 only.
v3.2.0
Minor Changes
-
#2401
2c9d0008- Added a devlog events system that may be used for debugging and visualizing Lit's internals.
Patch Changes
- Updated dependencies [
2c9d0008]:
v3.1.2
Patch Changes
-
#2370
7453e365- Replace square bracket links with thelinkcodeJSDoc tag. Editors will create a jump to definition hyperlink for the linkcode tag if the identifier is in scope. -
#2410
b9a6962b- Correct the link path of CONTRIBUTING.md in README.md files
v3.1.1
Patch Changes
v3.1.0
Minor Changes
-
#2327
49ecf623- AddqueryAssignedElementsdecorator for a declarative API that callsHTMLSlotElement.assignedElements()on a specified slot.selectoroption allows filtering returned elements with a CSS selector.
Patch Changes
- Updated dependencies [
08e7fc56,fcc2b3d0,eb5c5d2b,49ecf623,26e3fb7b,d319cf5f,1d563e83,221cb0a9]:
v3.0.2
Patch Changes
-
#2236
5fc3818a- PreventpolyfillSupport.noPatchSupportedfrom implicitly beingany. Deduplicate types forDevMode-suffixed polyfill support functions.
v3.0.1
Patch Changes
v3.0.0
Major Changes
-
Most users should no longer import directly from
lit-element, and instead prefer importingLitElementfrom thelitpackages. The default entry point forlit-elementremains backward-compatible and includes all decorators. However, it's recommended to useimport {LitElement} from 'lit';and import decorators fromlit/decoratorsas necessary. See the Upgrade Guide for more details. -
UpdatingElementhas been moved from thelit-elementpackage to the@lit/reactive-elementpackage and renamed toReactiveElement. See the ReactiveElement API documentation for more details. In addition, the source forcss-tag, and alldecoratorshave been moved to@lit/reactive-element. However, all symbols are re-exported from bothlitandlit-elementpackages. -
The
@internalPropertydecorator has been renamed to@state. -
Errors that occur during the update cycle were previously squelched to allow subsequent updates to proceed normally. Now errors are re-fired asynchronously so they can be detected. Errors can be observed via an
unhandledrejectionevent handler on window. -
The
libfolder has been removed. -
Rendering of
renderRoot/shadowRoot) viacreateRenderRootand support forstatic styleshas moved fromLitElementtoReactiveElement. -
The
createRenderRootmethod is now called just before the first update rather than in the constructor. Element code can not assume therenderRootexists before the elementhasUpdated. This change was made for compatibility with SSR. -
ReactiveElement'sinitializemethod has been removed. This work is now done in the element constructor. -
The static
renderhas been removed. -
For consistency, renamed
_getUpdateCompletetogetUpdateComplete. -
When a property declaration is
reflect: trueand itstoAttributefunction returnsundefinedthe attribute is now removed where previously it was left unchanged (#872). -
The dirty check in
attributeChangedCallbackhas been removed. While technically breaking, in practice it should very rarely be (#699). -
LitElement's
adoptStylesmethod has been removed. Styling is now adopted increateRenderRoot. This method may be overridden to customize this behavior. -
LitElement's
static getStylesmethod has been renamed tostatic finalizeStylesand now takes a list of styles the user provided and returns the styles which should be used in the element. If this method is overridden to integrate into a style management system, typically thesuperimplementation should be called. -
Removed build support for TypeScript 3.4.
-
Decorators are no longer exported from the
lit-elementmodule. Instead, import any decorators you use fromlit/decorators/*. -
lit-htmlhas been updated to 2.x. -
Support for running in older browsers has been removed from the default configuration. Import the
polyfill-supportmodule to support Shady DOM. Note also that Lit parts inside<style>elements are no longer supported. See Polyfills for more details. -
For simplicity,
requestUpdateno longer returns a Promise. Instead await theupdateCompletePromise. -
Removed
requestUpdateInternal. TherequestUpdatemethod is now identical to this method and should be used instead. -
#2103
15a8356d- Updates theexportsfield ofpackage.jsonfiles to replace the subpath folder mapping syntax with an explicit list of all exported files.The
/-suffixed syntax for subpath folder mapping originally used in these files is deprecated. Rather than update to the new syntax, this change replaces these mappings with individual entries for all exported files so that (a) users must import using extensions and (b) bundlers or other tools that don't resolve subpath folder mapping exactly as Node.js does won't break these packages' expectations around how they're imported.
Minor Changes
- A public
renderOptionsclass field now exists onLitElementand can be set/overridden to modify the options passed tolit-html. - Adds
static shadowRootOptionsfor customizing shadowRoot options. Rather than implementingcreateRenderRoot, this property can be set. For example, to create a closed shadowRoot using delegates focus:static shadowRootOptions = {mode: 'closed', delegatesFocus: true}. - Adds development mode, which can be enabled by setting the
developmentNode exports condition. See Development and production builds for more details.
Patch Changes
-
#1964
f43b811- Don't publish src/ to npm. - For efficiency, the
cssfunction now maintains a cache and will use a cached value if available when the same style text is requested. - Fixed reflecting a property when it is set in a setter of another property that is called because its attribute changed (#965).
- Fixed exceptions when parsing attributes from JSON (#722).
- Fixed issue with combining
static get propertieson an undefined superclass with@propertyon a subclasss ([#890]https://github.com/Polymer/lit-element/issues/890));
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled due to failing status checks.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.