Skip to content

Releases: lit/lit-element

v2.4.0

19 Aug 21:39
Compare
Choose a tag to compare

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

20 Mar 01:00
772ed74
Compare
Choose a tag to compare

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

19 Mar 16:00
0eda741
Compare
Choose a tag to compare

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.

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

21 Mar 19:09
Compare
Choose a tag to compare

[2.1.0] - 2019-03-21

Changed

  • LitElement.renderRoot is now public readonly instead of protected.

Fixed

  • Exceptions generated during update/render do not block subsequent updates (#262).
  • Initial update is scheduled at construction time rather than connected time (#594).
  • A reflecting property set immediately after a corresponding attribute
    now reflects properly (#592).
  • Properties annotated with the @query and @queryAll decorators will now
    survive property renaming optimizations when used with tsickle and Closure JS
    Compiler.

v2.0.1

05 Feb 19:15
Compare
Choose a tag to compare

v2.0.0...v2.0.1

v2.0.0

05 Feb 18:54
Compare
Choose a tag to compare
2.0.0

v0.6.4

30 Nov 20:56
6875d15
Compare
Choose a tag to compare

Changed

  • Update lit-html dependency to ^0.14.0 (#324).

v0.6.3

09 Nov 01:48
2b1cd9c
Compare
Choose a tag to compare

Changed

  • Update lit-html dependency to ^0.13.0 (#298).

v0.6.2

09 Nov 01:47
Compare
Choose a tag to compare

Changed

  • LitElement changed to a non-abstract class to be more compatible with the JavaScript mixin pattern
    (#227).
  • Update lit-html dependency to ^0.12.0 (#244).
  • Passes the component's this reference to lit-html as the eventContext, allowing unbound event listener methods (#244).

Added

  • A disconnectedCallback() method was added to UpdatingElement (#213).
  • Added @eventOptions() decorator for setting event listener options on methods (#244).

0.6.1

18 Sep 00:38
Compare
Choose a tag to compare
0.6.1