@polymer/lit-element
Advanced tools
Changelog
[0.7.0] - 2019-01-10
static get styles()
to allow defining element styling separate from render
method.
This takes advantage of adoptedStyleSheets
when possible (#391).performUpdate
method to allow control of update timing (#290).TemplateResult
and SVGTemplateResult
(#415).createRenderRoot
method has moved from UpdatingElement
to LitElement
. Therefore, UpdatingElement
no longer creates a shadowRoot
by default (#391).converter
. This option works the same as the previous type
option except that the converter
methods now also get type
as the second argument. This effectively changes type
to be a hint for the converter
. A default converter
is used if none is provided and it now supports Boolean
, String
, Number
, Object
, and Array
(#264).converter
is used. Now, the oppose is also true. When a property changes as a result of an attribute changing, the attribute is prevented from mutating again (https://github.com/Polymer/lit-element/issues/264))Changelog
[0.6.2] - 2018-10-05
this
reference to lit-html as the eventContext
, allowing unbound event listener methods (#244).Changelog
[0.6.1] - 2018-09-17
Changelog
[0.6.0] - 2018-09-13
@query()
, @queryAll()
, and @customElement
decorators (#159)requestUpdate
, shouldUpdate
, update
, render
, firstUpdated
(first time only), updated
, updateComplete
. Property options are now
{attribute, reflect, type, hasChanged}
. Properties may be defined in a
static get properties
or using the @property
decorator.
(https://github.com/Polymer/lit-element/pull/132).classString
and styleString
. Similar directives
(classMap
and styleMap
) have been added to lit-html and should be used instead
(https://github.com/Polymer/lit-element/pull/165 and
https://github.com/Polymer/lit-html/pull/486).npm run checksize
command should now return the correct minified size
(https://github.com/Polymer/lit-element/pull/153).firstUpdated
method should now always be called the first time the element
updates, even if shouldUpdate
initially returned false
(https://github.com/Polymer/lit-element/pull/173).