Skip to content

v2.0.0-rc.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@dfreedm dfreedm released this 14 Apr 00:25
· 1692 commits to master since this release

Meaningful 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 always ready() before the parent.
  • Implement disable-upgrade feature from 1.x
  • Implement new lazy-upgrade feature with a mixin to lazily upgrade elements marked with disable-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>
  • 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 the is 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 before connectedCallback (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 nested afterNextRender are called after additional renders (commit)
  • Fixes #4437. Ensure _registered is called 1x for each element class using LegacyElementMixin. Ensure that a behaviors’s registered 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)