Changed
- Added a static
getPropertyDescriptormethod to allow easier customization of property accessors. This method should return a aPropertyDescriptorto install on the property. If no descriptor is returned, no property accessor is created. (#911) - The value returned by
renderis 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'supdateCompletePromise resolves (#903). - Added
enableUpdating()toUpdatingElementto enable customizing when updating is enabled #860. - Added
@queryAssignedNodes(slotName, flatten)decorator to enable querying assignedNodes for a given slot #860. - Added
getStyles()toLitElementto allow hooks into style gathering for component sets #866.
Fixed
- Ensure
UpdatingElementallows updates when properties are set after callingsuper.update().
LitElementrenders when updates are triggered as a result of rendering (#549). - Properties annotated with the
eventOptionsdecorator will now survive property renaming optimizations when used with tsickle and Closure JS Compiler. - Moved style gathering from
finalizetoinitializeto 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)