v1.6.1
New Features
Settings
-
noUrlSettings
- This option restricts changing Polymer settings to a script in the page, removing URL query params, such as
?dom=shadow
- This option restricts changing Polymer settings to a script in the page, removing URL query params, such as
-
lazyRegister
has a new experimental flag setting:max
.- When
lazyRegister
is set tomax
,behaviors
are evaluated at the first element instance, which places a few new restrictions on the behaviors.
When lazyRegister is 'max' defer all behavior work until first element creation. When set, a behavior cannot setup an element's `is` or custom constructor via defining `factoryImpl`. We do call beforeRegister on the prototype to preserve the ability to use it in ES6. This orders the element prototype's `beforeRegister` before behaviors' rather than after, as in the normal case.
- When
Meaningful Changes
Styling Fixes
inherit
and initial
- CSS property values
inherit
andinitial
now have much more spec-compliant behavior.- With native custom CSS properties, the value
inherit
is not supported for non-inheritable properties.
- With native custom CSS properties, the value
- native custom CSS properties now support reusing a mixin name for a custom property definition.
Data System
- Properties set on elements before they upgrade now override attributes.
- Attributes with URLs that begin
/
or a prototcol will no longer be recalculated when stamping templates.
Input handling
- Browsers supporting the Input Device Capabilities spec now have much better support on devices with both touchscreen and mouse inputs.
Raw Notes
- Property Shim needs to handle build output from apply shim (commit)
- Do not resolve urls with leading slash and other prototcols (commit)
- Mark that non-inheritable properties being set to
inherit
is not supported (commit) - Put
getInitialValueForProperty
on ApplyShim (commit) - Skip
initial
andinherit
on IE 10 and 11 (commit) - Handle mixins with property values of inherit and initial (commit)
- Split tests for use-before-create and reusing mixin names for variables (commit)
- Make sure we don't populate the mixin map for every variable (commit)
- [apply shim] Track dependencies for mixins before creation (commit)
- [property shim] Make sure "initial" and "inherit" behave as they would natively (commit)
- fix lint issue. (commit)
- Fixes #3801. Ensure style host calculates custom properties before element. This ensures the scope's styles are prepared to be inspected by the element for matching rules. (commit)
- Clean up custom-style use of apply shim (commit)
- gate comparing css text on using native css properties (commit)
- Only invalidate mixin if it defines new properties (commit)
- Make __currentElementProto optional for build tool (commit)
- Rerun Apply Shim when mixins with consumers are redefined (commit)
- updateNativeStyles should only remove styles set by updateNativeStyles (commit)
- [ci skip] add smoke test for scope caching with custom-style (commit)
- Remove unused arg. (commit)
- Remove dirty check for custom events; unnecessary after #3678. Fixes #3677. (commit)
- Use _configValue to avoid setting readOnly. Add tests. (commit)
- Missing piece to fixing #3094 (commit)
- Opt in to "even lazier" behavior by setting
lazyRegister
to "max". This was done to preserve compatibility with the existing feature. Specifically, when "max" is used, settingis
inbeforeRegister
and definingfactoryImpl
may only be done on an element's prototype and not its behaviors. In addition, the element'sbeforeRegister
is called before its behaviors'beforeRegisters
rather than after as in the normal case. (commit) - Replace 'iff' with 'if and only if' (commit)
- Fix test in IE10. (commit)
- cleanup check for sourceCapabilities (commit)
- Fix #3786 by adding a
noUrlSettings
flag to Polymer.Settings (commit) - Fix mouse input delay on systems with a touchscreen (commit)
- Ensure properties override attributes at upgrade time. Fixes #3779. (commit)
- Refresh cache'd styles contents in IE 10 and 11 (commit)
- change travis config (commit)
- Fix css shady build mistakenly matching root rules as host rules (commit)
- [ci skip] update changelog for v1.6.0 (commit)
- Make lazyRegister have 'even lazier' behavior such that behaviors are not mixed in until first-instance time. (commit)
- need takeRecords in complex var example (commit)
- add reduced test case (commit)
- Replace VAR_MATCH regex with a simple state machine / callback (commit)
- Expose an
lazierRegister
flag to defer additional work until first create time. This change requires that a behavior not implement a custom constructor or set the element'sis
property. (commit) - Improve type signatures:
Polymer.Base.extend
andPolymer.Base.mixin
(commit) - Fix for changing property to the same value (commit)
- Include iron-component-page in devDependencies (commit)
- Ensure fromAbove in _forwardParentProp. (commit)