Skip to content

Stable Release v1.4.0

Compare
Choose a tag to compare
@dfreedm dfreedm released this 18 Mar 17:57
· 6886 commits to master since this release

New Features

  • "lazy registration": (enabled via lazyRegister: true in Polymer settings) that will cause most of the expensive registration work we do during the Polymer({...}) call to be deferred until the first instantiation of that type.
    • This is an opt-in feature for now, but as we get more feedback, we will consider making it the default.

Meaningful changes

  • Properties starting with an uppercase, like FPS, will no longer reflect to attributes.
    • Prior to v1.3.0, any property like FPS would reflect incorrectly to attribute fps. With v1.3.0, FPS would serialize to -f-p-s, which is not a valid attribute name to set with setAttribute, causing some bindings to throw exceptions. With this change, starting-uppercase properties will not reflect, and will warn to the console that they do not reflect.

Raw Notes

  • Fast check in createdCallback to see if registration has finished. (commit)
  • even more lazy: defer template lookup and style collection until finish register time. (commit)
  • fix lint errors. (commit)
    • turn on lazy registration via Polymer.Settings.lazyRegister * ensure registration finished by calling Element.prototype.ensureRegisterFinished() (commit)
  • remove crufty smoke test. (commit)
  • fix lint issues (commit)
  • Change forceRegister to eagerRegister and add Polymer.Settings.eagerRegister flag. (commit)
  • Add forceRegister flag to force an element to fully register when Polymer is called. Normally, some work is deferred until the first element instance is created. (commit)
  • Call registered no prototype. (commit)
  • Lazy register features we can be deferred until first instance. This is an optimization which can speed up page load time when elements are registered but not needed at time of first paint/interaction (commit)
  • Do not reflect uppercase properties (commit)
  • Make sure event.path is an array (commit)
  • fix testing failures on assert.notInclude of null (commit)
  • [ci skip] update changelog (commit)