pkissling / clock-weather-card

A Home Assistant Card indicating today's date/time, along with an iOS inspired weather forecast for the next days with animated icons
Other
309 stars 66 forks source link

fix(deps): update dependency lit-element to v4 - autoclosed #281

Closed renovate[bot] closed 7 months ago

renovate[bot] commented 7 months ago

Mend Renovate logo banner

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
lit-element (source) 2.5.1 -> 4.0.2 age adoption passing confidence

Release Notes

lit/lit (lit-element) ### [`v4.0.2`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#402) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@4.0.1...lit-element@4.0.2) ##### Patch Changes - [#​4387](https://togithub.com/lit/lit/pull/4387) [`bf551b5b`](https://togithub.com/lit/lit/commit/bf551b5bdc816c1b0117ab436c50390ae3f5686d) - Ensure `renderRoot` exists before first update ([#​4268](https://togithub.com/lit/lit/issues/4268)) - [#​4282](https://togithub.com/lit/lit/pull/4282) [`c7922a0c`](https://togithub.com/lit/lit/commit/c7922a0cb90075a9e4c72f93078e411a303c54d1) Thanks [@​MaxArt2501](https://togithub.com/MaxArt2501)! - Fix a bug where accessing a `@query` decorated field with the `cache` flag set before the first update would result in `null` being cached permanently. `null` will no longer be cached before the first update and in `DEV_MODE` now raises a warning. - [#​4388](https://togithub.com/lit/lit/pull/4388) [`839ca0f8`](https://togithub.com/lit/lit/commit/839ca0f81a451fbaae97d958aafcaf4c52df9b65) - Fixes bug where adding or removing controllers during a reactive controller lifecycle would affect the execution of other controllers ([#​4266](https://togithub.com/lit/lit/issues/4266)). Controllers can now be added/removed during lifecycle without affecting others. - Updated dependencies \[[`949a5467`](https://togithub.com/lit/lit/commit/949a54677748a1f83ec4d166bd40e244de3afda7)]: - lit-html@3.1.0 ### [`v4.0.1`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#401) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@4.0.0...lit-element@4.0.1) ##### Patch Changes - [#​4284](https://togithub.com/lit/lit/pull/4284) [`89a5b088`](https://togithub.com/lit/lit/commit/89a5b0882b3048e3e95a22eb739c649adc9de055) - Allow `null` to be in the type of `@query()` decorated fields - [#​4306](https://togithub.com/lit/lit/pull/4306) [`c28ebba1`](https://togithub.com/lit/lit/commit/c28ebba15669042144db48563611b2c9bb7a2e47) - Update dependency version to refer to stable versions, rather than pre-release versions of our own packages. ### [`v4.0.0`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#400) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.3.3...lit-element@4.0.0) ##### Major Changes - [#​3751](https://togithub.com/lit/lit/pull/3751) [`dfd747cf`](https://togithub.com/lit/lit/commit/dfd747cf4f7239e0c3bb7134f8acb967d0157654) - Simplify lit-html attribute handling for standards-compliant browsers that iterate attributes in source order - [#​4254](https://togithub.com/lit/lit/pull/4254) [`1040f758`](https://togithub.com/lit/lit/commit/1040f75861b029527538b4ec36b2cfedcc32988a) - Change the type of `ReactiveElement.renderRoot` and return type of `ReactiveElement.createRenderRoot()` to be `HTMLElement | DocumentFragment` to match each other and lit-html's `render()` method. - [#​4146](https://togithub.com/lit/lit/pull/4146) [`0f6878dc`](https://togithub.com/lit/lit/commit/0f6878dc45fd95bbeb8750f277349c1392e2b3ad) - Generated accessor for reactive properties now wrap user accessors and automatically call `this.requestUpdate()` in the setter. As in previous versions, users can still specify `noAccessor: true`, in which case they should call `this.requestUpdate()` themselves in the setter if they want to trigger a reactive update. - [#​3759](https://togithub.com/lit/lit/pull/3759) [`1db01376`](https://togithub.com/lit/lit/commit/1db0137699b35d7e7bfac9b2ab274af4100fd7cf) - Use replaceWith() for SVG templates - [#​3750](https://togithub.com/lit/lit/pull/3750) [`c3e473b4`](https://togithub.com/lit/lit/commit/c3e473b499ff029b5e1aff01ca8799daf1ca1bbe) - Use toggleAttribute() to simplify boolean attribute parts - [#​3850](https://togithub.com/lit/lit/pull/3850) [`7e8491d4`](https://togithub.com/lit/lit/commit/7e8491d4ed9f0c39d974616c4678552ef50b81df) - Delete deprecated queryAssignedNodes behavior and arguments. Migrate deprecated usage with a selector argument to use `@queryAssignedElements`. E.g.: `@queryAssignedNodes('list', true, '.item')` to `@queryAssignedElements({slot: '', flatten: false, selector: '.item'})`. - [#​3754](https://togithub.com/lit/lit/pull/3754) [`76795a18`](https://togithub.com/lit/lit/commit/76795a18263bb5e762e9fc909c97d1fdacee5b1f) - Remove UpdatingElement alias for ReactiveElement - [#​3765](https://togithub.com/lit/lit/pull/3765) [`92cedaa2`](https://togithub.com/lit/lit/commit/92cedaa2c8cd8a306be3fe25d52e0e47bb044020) - Remove experimental hydrate modules. These are available from `@lit-labs/ssr-client`. - [#​3756](https://togithub.com/lit/lit/pull/3756) [`f06f7972`](https://togithub.com/lit/lit/commit/f06f7972a027d2937fe2c68ab5af0274dec57cf4) - Drop IE11 support - [#​3896](https://togithub.com/lit/lit/pull/3896) [`2eba6997`](https://togithub.com/lit/lit/commit/2eba69974c9e130e7483f44f9daca308345497d5) - Warn on async overrides of performUpdate() ##### Patch Changes - [#​4183](https://togithub.com/lit/lit/pull/4183) [`6470807f`](https://togithub.com/lit/lit/commit/6470807f3a0981f9d418cb26f05969912455d148) - Make the decorators work with the `accessor` keyword when `experimentalDecorators` is true. - [#​3762](https://togithub.com/lit/lit/pull/3762) [`23c404fd`](https://togithub.com/lit/lit/commit/23c404fdec0cd7be834221b6ddf9b659c24ca8a2) - Remove Lit 1 -> Lit 2 migration warnings - [#​3918](https://togithub.com/lit/lit/pull/3918) [`2a01471a`](https://togithub.com/lit/lit/commit/2a01471a5f65fe34bad11e1099281811b8d0f79b) - Some code golf on ReactiveElement - [#​3809](https://togithub.com/lit/lit/pull/3809) [`6f2833fd`](https://togithub.com/lit/lit/commit/6f2833fd05f2ecde5386f72d291dafc9dbae0cf7) - Use for/of loops in more places - [#​3710](https://togithub.com/lit/lit/pull/3710) [`09949234`](https://togithub.com/lit/lit/commit/09949234445388d51bfb4ee24ff28a4c9f82fe17) - Add `undefined` to the return type of PropertyValues.get() - Updated dependencies: - [@​lit/reactive-element](https://togithub.com/lit/reactive-element)[@​2](https://togithub.com/2).0.0 - lit-html@3.0.0 - [#​4141](https://togithub.com/lit/lit/pull/4141) [`6b515e43`](https://togithub.com/lit/lit/commit/6b515e43c3a24cc8a593247d3aa72d81bcc724d5) - Update TypeScript to ~5.2.0 ### [`v3.3.3`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#333) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.3.2...lit-element@3.3.3) ##### Patch Changes - [#​4031](https://togithub.com/lit/lit/pull/4031) [`8057c78d`](https://togithub.com/lit/lit/commit/8057c78def09e345e68c3fc009b8ab9d6cf1c0f2) - Rename ReactiveElement.\_initialize to \__initialize, make it private, and remove the [@​internal](https://togithub.com/internal) annotation. This will help prevent collisions with subclasses that implement their own \_initialize method, while using development builds. - Updated dependencies \[[`e2c50569`](https://togithub.com/lit/lit/commit/e2c50569c48849a9863e31dfd74a71bb4eb4524d)]: - lit-html@2.8.0 ### [`v3.3.2`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#332) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.3.1...lit-element@3.3.2) ##### Patch Changes - [#​3766](https://togithub.com/lit/lit/pull/3766) [`4431cbb8`](https://togithub.com/lit/lit/commit/4431cbb85428e54bafa090088056a325fe623aa1) - Fix styleMap initial render of mixed-case custom props ### [`v3.3.1`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#331) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.3.0...lit-element@3.3.1) ##### Patch Changes - [#​3720](https://togithub.com/lit/lit/pull/3720) [`575fb578`](https://togithub.com/lit/lit/commit/575fb578473031859b59b9ed98634ba091b389f7) - `lit-html/experimental-hydrate.js` and `lit-element/experimental-hydrate-support.js` have been moved to `@lit-labs/ssr-client`. The modules in the original location have been marked deprecated and will be removed in a future version. ### [`v3.3.0`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#330) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.2.2...lit-element@3.3.0) ##### Minor Changes - [#​3677](https://togithub.com/lit/lit/pull/3677) [`b95c86e5`](https://togithub.com/lit/lit/commit/b95c86e5ec0e2f6de63a23409b9ec489edb61b86) - \[SSR only] Reflect ARIA attributes onto server rendered Lit elements with attached internals during SSR and remove them upon hydration. ##### Patch Changes - Updated dependencies \[[`4d698430`](https://togithub.com/lit/lit/commit/4d698430b38efa49c97b841238b331340af5fef0), [`b95c86e5`](https://togithub.com/lit/lit/commit/b95c86e5ec0e2f6de63a23409b9ec489edb61b86), [`e00f6f52`](https://togithub.com/lit/lit/commit/e00f6f52199d5dbc08d4c15f62380422e77cde7f), [`88a40177`](https://togithub.com/lit/lit/commit/88a40177de9be5d117a21e3da5414bd777872544)]: - lit-html@2.7.0 - [@​lit-labs/ssr-dom-shim](https://togithub.com/lit-labs/ssr-dom-shim)[@​1](https://togithub.com/1).1.0 ### [`v3.2.2`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#322) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.2.1...lit-element@3.2.2) ##### Patch Changes - [#​3132](https://togithub.com/lit/lit/pull/3132) [`2fe2053f`](https://togithub.com/lit/lit/commit/2fe2053fe04e7226e5fa4e8b730e91a62a547b27) - Added "types" entry to package exports. This tells newer versions of TypeScript where to look for typings for each module. ### [`v3.2.1`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#321) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.2.0...lit-element@3.2.1) ##### Patch Changes - [#​2978](https://togithub.com/lit/lit/pull/2978) [`634d4560`](https://togithub.com/lit/lit/commit/634d45601b1d13be6d21fce725ece6abb9b3ee71) - 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`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#320) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.1.2...lit-element@3.2.0) ##### Minor Changes - [#​2401](https://togithub.com/lit/lit/pull/2401) [`2c9d0008`](https://togithub.com/lit/lit/commit/2c9d00082a416457ee02107013dd4925bf589628) - Added a devlog events system that may be used for debugging and visualizing Lit's internals. ##### Patch Changes - Updated dependencies \[[`2c9d0008`](https://togithub.com/lit/lit/commit/2c9d00082a416457ee02107013dd4925bf589628)]: - lit-html@2.2.0 - [@​lit/reactive-element](https://togithub.com/lit/reactive-element)[@​1](https://togithub.com/1).3.0 ### [`v3.1.2`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#312) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.1.1...lit-element@3.1.2) ##### Patch Changes - [#​2370](https://togithub.com/lit/lit/pull/2370) [`7453e365`](https://togithub.com/lit/lit/commit/7453e365000e6a289c139cf7e175a4742296333d) - Replace square bracket links with the `linkcode` JSDoc tag. Editors will create a jump to definition hyperlink for the linkcode tag if the identifier is in scope. - [#​2410](https://togithub.com/lit/lit/pull/2410) [`b9a6962b`](https://togithub.com/lit/lit/commit/b9a6962b84c841eaabd5c4cbf8687ff34dbfe511) - Correct the link path of CONTRIBUTING.md in README.md files ### [`v3.1.1`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#311) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.1.0...lit-element@3.1.1) ##### Patch Changes - [#​2384](https://togithub.com/lit/lit/pull/2384) [`39b8db85`](https://togithub.com/lit/lit/commit/39b8db85ef8d2264a86ff6ff6559ea06b391f08f) - Fix missing decorators/query-assigned-elements.js file ### [`v3.1.0`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#310) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.0.2...lit-element@3.1.0) ##### Minor Changes - [#​2327](https://togithub.com/lit/lit/pull/2327) [`49ecf623`](https://togithub.com/lit/lit/commit/49ecf6239033e9578184d46116e6b89676d091db) - Add `queryAssignedElements` decorator for a declarative API that calls `HTMLSlotElement.assignedElements()` on a specified slot. `selector` option allows filtering returned elements with a CSS selector. ##### Patch Changes - Updated dependencies \[[`08e7fc56`](https://togithub.com/lit/lit/commit/08e7fc566894d1916dc768c0843fce962ca4d6d4), [`fcc2b3d0`](https://togithub.com/lit/lit/commit/fcc2b3d0054e69e6f76588ea9f440117b6d0deed), [`eb5c5d2b`](https://togithub.com/lit/lit/commit/eb5c5d2b2159dcd8b2321fa9a221b8d56d127a11), [`49ecf623`](https://togithub.com/lit/lit/commit/49ecf6239033e9578184d46116e6b89676d091db), [`26e3fb7b`](https://togithub.com/lit/lit/commit/26e3fb7ba1d3ef778a9862ff73374802b4b4eb2e), [`d319cf5f`](https://togithub.com/lit/lit/commit/d319cf5fde1c2b70185ee9a6252067ed0edaf2fc), [`1d563e83`](https://togithub.com/lit/lit/commit/1d563e830c02a2d1a22e1e939f1ace971b1d1ae7), [`221cb0a9`](https://togithub.com/lit/lit/commit/221cb0a90787631dcc867959de19febd2ebd3fd0)]: - [@​lit/reactive-element](https://togithub.com/lit/reactive-element)[@​1](https://togithub.com/1).1.0 - lit-html@2.1.0 ### [`v3.0.2`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#302) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.0.1...lit-element@3.0.2) ##### Patch Changes - [#​2240](https://togithub.com/lit/lit/pull/2240) [`76ed65d7`](https://togithub.com/lit/lit/commit/76ed65d7e1e157d1f61dd62fe938a2fc1828c497) - Identify a `this` reference for jscompiler. - [#​2236](https://togithub.com/lit/lit/pull/2236) [`5fc3818a`](https://togithub.com/lit/lit/commit/5fc3818afa43365b90b921ea0fd8f41e970e767f) - Prevent `polyfillSupport.noPatchSupported` from implicitly being `any`. Deduplicate types for `DevMode`-suffixed polyfill support functions. ### [`v3.0.1`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#301) [Compare Source](https://togithub.com/lit/lit/compare/lit-element@3.0.0...lit-element@3.0.1) ##### Patch Changes - [#​2152](https://togithub.com/lit/lit/pull/2152) [`ba5e1391`](https://togithub.com/lit/lit/commit/ba5e139163049014e6261123ff808700352b86a8) - Replace dynamic name lookups for polyfill support functions with static names. ### [`v3.0.0`](https://togithub.com/lit/lit/blob/HEAD/packages/lit-element/CHANGELOG.md#300) [Compare Source](https://togithub.com/lit/lit/compare/2b398727dacb7694fbf38816824675d20838704f...lit-element@3.0.0) ##### Major Changes - Most users should no longer import directly from `lit-element`, and instead prefer importing `LitElement` from the `lit` packages. The default entry point for `lit-element` remains backward-compatible and includes all decorators. However, it's recommended to use `import {LitElement} from 'lit';` and import decorators from `lit/decorators` as necessary. See the [Upgrade Guide](https://lit.dev/docs/releases/upgrade/#update-packages-and-import-paths) for more details. - `UpdatingElement` has been moved from the `lit-element` package to the `@lit/reactive-element` package and renamed to `ReactiveElement`. See the [ReactiveElement API](https://lit.dev/docs/api/ReactiveElement/) documentation for more details. In addition, the source for `css-tag`, and all `decorators` have been moved to `@lit/reactive-element`. However, all symbols are re-exported from both `lit` and `lit-element` packages. - The `@internalProperty` decorator 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 `unhandledrejection` event handler on window. - The `lib` folder has been removed. - Rendering of `renderRoot`/`shadowRoot`) via `createRenderRoot` and support for `static styles` has moved from `LitElement` to `ReactiveElement`. - The `createRenderRoot` method is now called just before the first update rather than in the constructor. Element code can not assume the `renderRoot` exists before the element `hasUpdated`. This change was made for compatibility with SSR. - `ReactiveElement`'s `initialize` method has been removed. This work is now done in the element constructor. - The static `render` has been removed. - For consistency, renamed `_getUpdateComplete` to `getUpdateComplete`. - When a property declaration is `reflect: true` and its `toAttribute` function returns `undefined` the attribute is now removed where previously it was left unchanged ([#​872](https://togithub.com/Polymer/lit-element/issues/872)). - The dirty check in `attributeChangedCallback` has been removed. While technically breaking, in practice it should very rarely be ([#​699](https://togithub.com/Polymer/lit-element/issues/699)). - LitElement's `adoptStyles` method has been removed. Styling is now adopted in `createRenderRoot`. This method may be overridden to customize this behavior. - LitElement's `static getStyles` method has been renamed to `static finalizeStyles` and 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 the `super` implementation should be called. - Removed build support for TypeScript 3.4. - Decorators are no longer exported from the `lit-element` module. Instead, import any decorators you use from `lit/decorators/*`. - `lit-html` has been updated to 2.x. - Support for running in older browsers has been removed from the default configuration. Import the `polyfill-support` module to support Shady DOM. Note also that Lit parts inside `