lit-element
Advanced tools
Comparing version
@@ -19,6 +19,6 @@ # Change Log | ||
## [2.3.0-pre.1] - 2020-03-17 | ||
## [2.3.0] - 2020-03-18 | ||
### 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, a property accessor is not be created. ([#911](https://github.com/Polymer/lit-element/issues/911)) | ||
* 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](https://github.com/Polymer/lit-element/issues/911)) | ||
* The value returned by `render` is always rendered, even if it isn't a `TemplateResult`. ([#712](https://github.com/Polymer/lit-element/issues/712)) | ||
@@ -29,3 +29,3 @@ | ||
* Added `enableUpdating()` to `UpdatingElement` to enable customizing when updating is enabled [#860](https://github.com/Polymer/lit-element/pull/860). | ||
* Added `queryAssignedNodes(slotName, flatten)` to enable querying assignedNodes for a given slot [#860](https://github.com/Polymer/lit-element/pull/860). | ||
* Added `@queryAssignedNodes(slotName, flatten)` decorator to enable querying assignedNodes for a given slot [#860](https://github.com/Polymer/lit-element/pull/860). | ||
* Added `getStyles()` to `LitElement` to allow hooks into style gathering for component sets [#866](https://github.com/Polymer/lit-element/pull/866). | ||
@@ -32,0 +32,0 @@ |
@@ -144,3 +144,4 @@ /** | ||
* | ||
* See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll | ||
* See: | ||
* https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll | ||
* | ||
@@ -147,0 +148,0 @@ * @example |
@@ -227,3 +227,4 @@ /** | ||
* | ||
* See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll | ||
* See: | ||
* https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll | ||
* | ||
@@ -230,0 +231,0 @@ * @example |
@@ -191,3 +191,4 @@ /** | ||
* static getPropertyDescriptor(name, key, options) { | ||
* const defaultDescriptor = super.getPropertyDescriptor(name, key, options); | ||
* const defaultDescriptor = | ||
* super.getPropertyDescriptor(name, key, options); | ||
* const setter = defaultDescriptor.set; | ||
@@ -194,0 +195,0 @@ * return { |
@@ -184,3 +184,4 @@ /** | ||
* static getPropertyDescriptor(name, key, options) { | ||
* const defaultDescriptor = super.getPropertyDescriptor(name, key, options); | ||
* const defaultDescriptor = | ||
* super.getPropertyDescriptor(name, key, options); | ||
* const setter = defaultDescriptor.set; | ||
@@ -187,0 +188,0 @@ * return { |
@@ -25,3 +25,3 @@ /** | ||
(window['litElementVersions'] || (window['litElementVersions'] = [])) | ||
.push('2.3.0-pre.1'); | ||
.push('2.3.0'); | ||
/** | ||
@@ -28,0 +28,0 @@ * Sentinal value used to avoid calling lit-html's render function when |
{ | ||
"name": "lit-element", | ||
"version": "2.3.0-pre.1", | ||
"version": "2.3.0", | ||
"description": "A simple base class for creating fast, lightweight web components", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
@@ -289,3 +289,4 @@ /** | ||
* | ||
* See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll | ||
* See: | ||
* https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll | ||
* | ||
@@ -292,0 +293,0 @@ * @example |
@@ -54,3 +54,4 @@ /** | ||
type AttributeConverter<Type = unknown, TypeHint = unknown> = | ||
ComplexAttributeConverter<Type>|((value: string|null, type?: TypeHint) => Type); | ||
ComplexAttributeConverter<Type>| | ||
((value: string|null, type?: TypeHint) => Type); | ||
@@ -116,3 +117,2 @@ /** | ||
readonly noAccessor?: boolean; | ||
} | ||
@@ -338,3 +338,4 @@ | ||
* static getPropertyDescriptor(name, key, options) { | ||
* const defaultDescriptor = super.getPropertyDescriptor(name, key, options); | ||
* const defaultDescriptor = | ||
* super.getPropertyDescriptor(name, key, options); | ||
* const setter = defaultDescriptor.set; | ||
@@ -355,4 +356,4 @@ * return { | ||
*/ | ||
protected static getPropertyDescriptor(name: PropertyKey, | ||
key: string|symbol, _options: PropertyDeclaration) { | ||
protected static getPropertyDescriptor( | ||
name: PropertyKey, key: string|symbol, _options: PropertyDeclaration) { | ||
return { | ||
@@ -388,3 +389,3 @@ // tslint:disable-next-line:no-any no symbol in index | ||
return this._classProperties && this._classProperties.get(name) || | ||
defaultPropertyDeclaration; | ||
defaultPropertyDeclaration; | ||
} | ||
@@ -391,0 +392,0 @@ |
@@ -34,3 +34,3 @@ /** | ||
(window['litElementVersions'] || (window['litElementVersions'] = [])) | ||
.push('2.3.0-pre.1'); | ||
.push('2.3.0'); | ||
@@ -37,0 +37,0 @@ export interface CSSResultArray extends Array<CSSResult|CSSResultArray> {} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
270275
0.03%3768
0.19%0
-100%