v2.0.0-rc.4
Pre-releaseMeaningful Changes
- Reintroduce
beforeRegister
to install dynamic property effects. In a difference from 1.x,is
property cannot be set in this function. - Maintain 1.x ordering of
ready()
lifecycle call, where children will alwaysready()
before the parent. - Implement
disable-upgrade
feature from 1.x - Implement new
lazy-upgrade
feature with a mixin to lazily upgrade elements marked withdisable-upgrade
- In this example, the
<x-disabled>
children of<x-lazy>
will upgrade asynchronously, but in the order of$.a
,$.c
, and then$.b
<dom-module id="x-lazy"> <template> <!-- x-disabled will automatically be upgraded asynchronously --> <x-disabled id="a" disable-upgrade lazy-upgrade="1"></x-disabled> <x-disabled id="b" disable-upgrade lazy-upgrade="3"></x-disabled> <x-disabled id="c" disable-upgrade lazy-upgrade="2"></x-disabled> </template> <script> class XLazy extends Polymer.LazyUpgrade(Polymer.Element) { static get is() { return 'x-lazy' } } customElements.define(XLazy.is, XLazy); </script> </dom-module>
- In this example, the
- Allow elements to override template binding functions
Raw Notes
-
fix lint error (commit)
-
Only style elements with templates (commit)
-
[ci skip] note safari bugs (commit)
-
Various Safari 10.1 fixes (commit)
-
Add
@memberof
annotation for Polymer.Debouncer (commit) -
Import mutable-data.html in dom-bind (commit)
-
Correct changelog version title (commit)
-
Fix readme. (commit)
-
tighten up custom-style-late test (commit)
-
Fixes #4478 by adding a better warning for attributes that cannot deserialize from JSON. (commit)
-
Adds back the
beforeRegister
method. Users can no longer set theis
property in this method; however, dynamic property effects can still be installed here. (commit) -
Fixes #4447. Re-introduce the
hostStack
in order to maintain “client before host” ordering when_flushProperties
is called beforeconnectedCallback
(e.g. as Templatize does). (commit) -
Fix custom-style-late tests (commit)
-
Add test for ensuring complicated mixin ordering is correct (commit)
-
move lazy-upgrade out to separate mixins repo (commit)
-
Only check bounding client rect on clicks that target elements (commit)
-
Adds tests from #4099. The other changes from the PR are no longer needed. (commit)
-
clean up code, factor processing lazy candidates, better docs (commit)
-
Update templatize.html (commit)
-
Doc fix (correct callback name) (commit)
-
Fixed tempaltize -> templatize typo (commit)
-
Work around IE/Edge bug with :not([attr]) selectors (commit)
-
Remove support for lazy-upgrade inside dom-if and dom-repeat (commit)
-
Fix image in README (commit)
-
Remove useless id check on mixins (commit)
-
move dom-change listener for lazy-upgrade before
super.ready()
(commit) -
[ci skip] Update doc (commit)
-
[ci skip] Update doc (commit)
-
Add API docs. (commit)
-
nodeInfo -> nodeInfoList (commit)
-
Updates based on PR feedback. API docs in progress. (commit)
-
- ensure element cannot return to “disabled” state after upgrading. * ensure nested
beforeNextRender
calls always go before the next render * ensure nestedafterNextRender
are called after additional renders (commit)
- ensure element cannot return to “disabled” state after upgrading. * ensure nested
-
Fixes #4437. Ensure
_registered
is called 1x for each element class usingLegacyElementMixin
. Ensure that a behaviors’sregistered
method is called for any extending class. (commit) -
Separate binding-specific code from template stamp. Expose override points. (commit)
-
Use webcomponents-lite for test (commit)
-
add lazy-upgrade tests (commit)
-
make a mixin for lazy upgrading (commit)
-
implements
disable-upgrade
attribute which prevents readying an element until the attribute is removed. (commit)