UNPKG

5.87 kBMarkdownView Raw
1# Change Log
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [Keep a Changelog](http://keepachangelog.com/)
6and this project adheres to [Semantic Versioning](http://semver.org/).
7
8<!--
9 PRs should document their user-visible changes (if any) in the
10 Unreleased section, uncommenting the header as necessary.
11-->
12<!-- ### Added -->
13<!-- ### Changed -->
14<!-- ### Removed -->
15<!-- ### Fixed -->
16
17## [0.7.1] - 2019-01-11
18### Fixed
19* Fix decorator types causing compiler errors for TypeScript users. ([#432](https://github.com/Polymer/lit-element/pull/432)).
20
21## [0.7.0] - 2019-01-10
22### Added
23* Updated decorator implementations to support TC39 decorator API proposal (supported by Babel 7.1+) in addition to the legacy decorator API (supported by older Babel and TypeScript) ([#156](https://github.com/Polymer/lit-element/issues/156)).
24* Added `static get styles()` to allow defining element styling separate from `render` method.
25This takes advantage of [`adoptedStyleSheets`](https://wicg.github.io/construct-stylesheets/#using-constructed-stylesheets) when possible ([#391](https://github.com/Polymer/lit-element/issues/391)).
26* Added the `performUpdate` method to allow control of update timing ([#290](https://github.com/Polymer/lit-element/issues/290)).
27* Updates deferred until first connection ([#258](https://github.com/Polymer/lit-element/issues/258)).
28* Export `TemplateResult` and `SVGTemplateResult` ([#415](https://github.com/Polymer/lit-element/pull/415)).
29### Changed
30* [Breaking] The `createRenderRoot` method has moved from `UpdatingElement` to `LitElement`. Therefore, `UpdatingElement` no longer creates a `shadowRoot` by default ([#391](https://github.com/Polymer/lit-element/issues/391)).
31* [Breaking] Changes property options to add `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](https://github.com/Polymer/lit-element/issues/264)).
32* [Breaking] Numbers and strings now become null if their reflected attribute is removed (https://github.com/Polymer/lit-element/issues/264)).
33* [Breaking] Previously, when an attribute changed as a result of a reflecting property changing, the property was prevented from mutating again as can happen when a custom
34`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))
35### Fixed
36* [Breaking] User defined accessors are now wrapped to enable better composition ([#286](https://github.com/Polymer/lit-element/issues/286))
37* Type for `eventOptions` decorator now properly includes `passive` and `once` options ([#325](https://github.com/Polymer/lit-element/issues/325))
38
39## [0.6.5] - 2018-12-13
40### Changed:
41* Use lit-html 1.0 release candidate.
42
43### Fixed
44* Types for the `property` and `customElement` decorators updated ([#288](https://github.com/Polymer/lit-element/issues/288) and [#291](https://github.com/Polymer/lit-element/issues/291)).
45* Docs updated.
46
47## [0.6.4] - 2018-11-30
48### Changed
49* Update lit-html dependency to ^0.14.0 ([#324](https://github.com/Polymer/lit-element/pull/324)).
50
51## [0.6.3] - 2018-11-08
52### Changed
53* Update lit-html dependency to ^0.13.0 ([#298](https://github.com/Polymer/lit-element/pull/298)).
54
55## [0.6.2] - 2018-10-05
56
57### Changed
58* LitElement changed to a non-abstract class to be more compatible with the JavaScript mixin pattern
59([#227](https://github.com/Polymer/lit-element/issues/227)).
60* Update lit-html dependency to ^0.12.0 ([#244](https://github.com/Polymer/lit-element/pull/244)).
61* Passes the component's `this` reference to lit-html as the `eventContext`, allowing unbound event listener methods ([#244](https://github.com/Polymer/lit-element/pull/244)).
62### Added
63* A `disconnectedCallback()` method was added to UpdatingElement ([#213](https://github.com/Polymer/lit-element/pull/213)).
64* Added `@eventOptions()` decorator for setting event listener options on methods ([#244](https://github.com/Polymer/lit-element/pull/244)).
65
66## [0.6.1] - 2018-09-17
67
68### Fixed
69* Fixes part rendering and css custom properties issues introduced with lit-html 0.11.3 by updating to 0.11.4 (https://github.com/Polymer/lit-element/issues/202).
70
71### Removed
72* Removed custom_typings for Polymer as they are no longer needed
73(https://github.com/Polymer/lit-element/issues/186).
74
75## [0.6.0] - 2018-09-13
76
77### Added
78* Added `@query()`, `@queryAll()`, and `@customElement` decorators ([#159](https://github.com/Polymer/lit-element/pull/159))
79
80### Changed
81* Significantly changed update/render lifecycle and property API. Render lifecycle
82is now `requestUpdate`, `shouldUpdate`, `update`, `render`, `firstUpdated`
83(first time only), `updated`, `updateComplete`. Property options are now
84`{attribute, reflect, type, hasChanged}`. Properties may be defined in a
85`static get properties` or using the `@property` decorator.
86(https://github.com/Polymer/lit-element/pull/132).
87
88
89### Removed
90* Removed render helpers `classString` and `styleString`. Similar directives
91(`classMap` and `styleMap`) have been added to lit-html and should be used instead
92(https://github.com/Polymer/lit-element/pull/165 and
93https://github.com/Polymer/lit-html/pull/486).
94
95### Fixed
96* The `npm run checksize` command should now return the correct minified size
97(https://github.com/Polymer/lit-element/pull/153).
98* The `firstUpdated` method should now always be called the first time the element
99updates, even if `shouldUpdate` initially returned `false`
100(https://github.com/Polymer/lit-element/pull/173).