Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(all): update dependency lit-element to v4 #765

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 10, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
lit-element (source) ^2.0.1 -> ^4.0.0 age adoption passing confidence

Release Notes

lit/lit (lit-element)

v4.0.2

Compare Source

Patch Changes
  • #​4387 bf551b5b - Ensure renderRoot exists before first update (#​4268)

  • #​4282 c7922a0c Thanks @​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 839ca0f8 - Fixes bug where adding or removing controllers during a reactive controller lifecycle would affect the execution of other controllers (#​4266). Controllers can now be added/removed during lifecycle without affecting others.

  • Updated dependencies [949a5467]:

v4.0.1

Compare Source

Patch Changes
  • #​4284 89a5b088 - Allow null to be in the type of @query() decorated fields

  • #​4306 c28ebba1 - Update dependency version to refer to stable versions, rather than pre-release versions of our own packages.

v4.0.0

Compare Source

Major Changes
  • #​3751 dfd747cf - Simplify lit-html attribute handling for standards-compliant browsers that iterate attributes in source order

  • #​4254 1040f758 - 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 0f6878dc - 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 1db01376 - Use replaceWith() for SVG templates

  • #​3750 c3e473b4 - Use toggleAttribute() to simplify boolean attribute parts

  • #​3850 7e8491d4 - 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 76795a18 - Remove UpdatingElement alias for ReactiveElement

  • #​3765 92cedaa2 - Remove experimental hydrate modules. These are available from @lit-labs/ssr-client.

  • #​3756 f06f7972 - Drop IE11 support

  • #​3896 2eba6997 - Warn on async overrides of performUpdate()

Patch Changes

v3.3.3

Compare Source

Patch Changes
  • #​4031 8057c78d - Rename ReactiveElement._initialize to __initialize, make it private, and remove the @​internal annotation. This will help prevent collisions with subclasses that implement their own _initialize method, while using development builds.

  • Updated dependencies [e2c50569]:

v3.3.2

Compare Source

Patch Changes

v3.3.1

Compare Source

Patch Changes
  • #​3720 575fb578 - 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

Compare Source

Minor Changes
  • #​3677 b95c86e5 - [SSR only] Reflect ARIA attributes onto server rendered Lit elements with attached internals during SSR and remove them upon hydration.
Patch Changes

v3.2.2

Compare Source

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

Compare Source

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

Compare Source

Minor Changes
  • #​2401 2c9d0008 - Added a devlog events system that may be used for debugging and visualizing Lit's internals.
Patch Changes

v3.1.2

Compare Source

Patch Changes
  • #​2370 7453e365 - 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 b9a6962b - Correct the link path of CONTRIBUTING.md in README.md files

v3.1.1

Compare Source

Patch Changes

v3.1.0

Compare Source

Minor Changes
  • #​2327 49ecf623 - 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

v3.0.2

Compare Source

Patch Changes
  • #​2236 5fc3818a - Prevent polyfillSupport.noPatchSupported from implicitly being any.
    Deduplicate types for DevMode-suffixed polyfill support functions.

v3.0.1

Compare Source

Patch Changes
  • #​2152 ba5e1391 - Replace dynamic name lookups for polyfill support functions with static names.

v3.0.0

Compare Source

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 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 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).

  • The dirty check in attributeChangedCallback has been removed. While technically breaking, in practice it should very rarely be (#​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 <style> elements are no longer supported. See Polyfills for more details.

  • For simplicity, requestUpdate no longer returns a Promise. Instead await the updateComplete Promise.

  • Removed requestUpdateInternal. The requestUpdate method is now identical to this method and should be used instead.

  • #​2103 15a8356d - Updates the exports field of package.json files 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 renderOptions class field now exists on LitElement and can be set/overridden to modify the options passed to lit-html.
  • Adds static shadowRootOptions for customizing shadowRoot options. Rather than implementing createRenderRoot, 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 development Node exports condition. See Development and production builds for more details.
Patch Changes
  • #​1964 f43b811 - Don't publish src/ to npm.
  • For efficiency, the css function 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 properties on an undefined superclass with @property on a subclass ([#​890]https://github.com/Polymer/lit-element/issues/890));

v2.5.1

Compare Source

v2.5.0

Compare Source

v2.4.0

Compare Source

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 than requestUpdate since it does not return the updateComplete property which can be overridden to do work.
  • The protected performUpdate() method may now be called to synchronously "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

Compare Source

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

Compare Source

Changed
  • Added a static getPropertyDescriptor method to allow easier customization of property accessors. This method should return a a PropertyDescriptor 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 a TemplateResult. (#​712)
Added
  • Added @queryAsync(selector) decorator which returns a Promise that resolves to the result of querying for the given selector after the element's updateComplete Promise resolves (#​903).
  • Added enableUpdating() to UpdatingElement to enable customizing when updating is enabled #​860.
  • Added @queryAssignedNodes(slotName, flatten) decorator to enable querying assignedNodes for a given slot #​860.
  • Added getStyles() to LitElement to allow hooks into style gathering for component sets #​866.
  • Added @internalProperty(options) decorator to define properties internal to an element. #​881.
Fixed
  • Ensure UpdatingElement allows updates when properties are set after calling super.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 to initialize 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)

v2.2.1

Compare Source

Changed
  • Elements should now override the new _getUpdateComplete method instead of the updateComplete getter, for compatibility with TypeScript ES5 output, which does not support calling a superclass getter (e.g.super.updateComplete.then(...)) due to TypeScript#338.
Fixed
  • Fixed compatibility with Closure JS Compiler optimizations relating to static properties (#​732).

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/lit-element-4.x branch 3 times, most recently from a09cbe0 to ccf3aa1 Compare October 18, 2023 08:07
@renovate renovate bot force-pushed the renovate/lit-element-4.x branch 4 times, most recently from 85c31a2 to 3b86da0 Compare December 15, 2023 12:04
@renovate renovate bot force-pushed the renovate/lit-element-4.x branch 2 times, most recently from db2665a to b2ba566 Compare January 4, 2024 17:21
@renovate renovate bot force-pushed the renovate/lit-element-4.x branch 5 times, most recently from 4f1e070 to a956007 Compare February 13, 2024 12:47
Copy link

github-actions bot commented Feb 13, 2024

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 99% 888/897
🟢 Branches 99.18% 241/243
🟢 Functions 100% 235/235
🟢 Lines 99.31% 869/875

Test suite run success

496 tests passing in 18 suites.

Report generated by 🧪jest coverage report action from be66a88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants