Commit Graph
6864 Commits
Author SHA1 Message Date
Steven Orvell 3fd967190e Lint fix. 2020-01-29 18:04:48 -08:00
Steven Orvell dfd0e64183 Update test name. 2020-01-29 17:57:58 -08:00
Steven Orvell eaca195467 Introduce opt-out per class for legacyNoObservedAttributes
This is necessary when a native property that sets an attribute should be observeable via attributeChangedCallback or Polymer property reflection (e.g. element.tabIndex = 5 setting the `tabindex` attribute).
2020-01-29 17:54:02 -08:00
Steven Orvell 63addd39ec Ensure telemetry system works with legacyNoObservedAttributes setting 2020-01-29 10:40:33 -08:00
Steve Orvell 3e6ba3e907 Merge pull request #5622 from Polymer/legacy-undefined-noBatch-undefinedTemplate
Allow `undefined` in legacy _template field to fall-through to normal lookup path
2020-01-22 10:08:02 -08:00
Steve Orvell ccd92a2044 Merge pull request #5620 from Polymer/legacy-undefined-noBatch-imperative-attributes
Adds support for imperatively created elements to `legacyNoObservedAt…
2020-01-22 09:25:39 -08:00
Steven Orvell c0bb601824 Merge branch 'legacy-undefined-noBatch' into legacy-undefined-noBatch-undefinedTemplate 2020-01-22 08:59:10 -08:00
Steven Orvell b759988102 Merge branch 'legacy-undefined-noBatch' into legacy-undefined-noBatch-imperative-attributes 2020-01-22 08:57:20 -08:00
Steve Orvell 23acf208ac Merge pull request #5623 from Polymer/legacy-undefined-noBatch-master-merge
Legacy undefined no batch master merge
2020-01-22 08:56:50 -08:00
Steven Orvell a7ffc3904e Update package-lock.json 2020-01-21 18:24:36 -08:00
Steven Orvell 5e88e6a70d Merge branch 'master' into legacy-undefined-noBatch-master-merge 2020-01-21 18:14:00 -08:00
Steven Orvell 02687acbf7 Merge branch 'master' into legacy-undefined-noBatch-master-merge 2020-01-21 18:07:39 -08:00
Steve Orvell cb6f6c0f91 Merge pull request #5621 from Polymer/update-travis
modernize travis
2020-01-21 18:05:30 -08:00
Steve Orvell 47a54ef8c7 Update test/unit/inheritance.html 2020-01-21 17:42:32 -08:00
Steven Orvell 61a14c17ce Fix testing issues with latest webcomponentsjs
* querySelectorAll now polyfills an NodeList so coerce to Array when doing `deepEquals`
* when testing noPatch, add workaround for https://github.com/webcomponents/polyfills/issues/250.
2020-01-21 17:29:25 -08:00
Kevin Schaaf 220099cfb4 Allow undefined in legacy _template field to fall-through to normal lookup path. 2020-01-21 16:05:03 -08:00
Daniel Freedman 700c2b0cb3 re-add npm cache 2020-01-21 15:49:12 -08:00
Daniel Freedman 168572a755 regen package-lock 2020-01-21 15:47:24 -08:00
Daniel Freedman 15dba24149 mispelled services, node 10 for consistency 2020-01-21 15:40:34 -08:00
Daniel Freedman 148b2ea277 modernize travis 2020-01-21 15:34:56 -08:00
Steven Orvell 28f12ca9fa Adds support for imperatively created elements to legacyNoObservedAttributes
Using this flag previously read attributes in the element constructor (in addition to patching setAttribute). This covers use cases except imperative or parser created custom elements (not upgraded). In that case the element will not have attributes in the constructor. This is addressed here by checking if the element has a parentNode (which will also not be true in these cases) and if so, records attributes at connected time. This is not always done to avoid having to filter out changes made by bindings.
2020-01-21 13:56:53 -08:00
Peter Burns afdd9119ad Rebase sanitize dom value getter onto legacy-undefined-noBatch (#5618)
* Add  getSanitizeDOMValue to settings API

For environments that don't well support `export let`.

* Add a test for getSanitizeDOMValue
2020-01-17 14:07:17 -08:00
Peter Burns aec4cb681e Add getSanitizeDOMValue to settings API (#5617)
* Add  getSanitizeDOMValue to settings API

For environments that don't well support `export let`.

* Add a test for getSanitizeDOMValue
2020-01-17 14:06:33 -08:00
Steve Orvell 7d071f7e7a Merge pull request #5615 from Polymer/legacy-undefined-noBatch-update
Merge from master
2020-01-13 15:14:20 -08:00
Steven Orvell a55e6f039e Merge branch 'master' into legacy-undefined-noBatch-update 2020-01-13 13:40:39 -08:00
Steve Orvell 13a8ea479a Merge pull request #5614 from Polymer/closure-extern-fix
FIx closure annotation
2020-01-13 13:40:05 -08:00
Steven Orvell 15ce881fda FIx closure annotation
Closure was unhappy with the change from `var` to `let` so reverting it.
2020-01-13 11:18:01 -08:00
Kevin Schaaf 4f6fed5082 Merge pull request #5613 from Polymer/legacy-undefined-noBatch-closure
Fix closure annotation.
2020-01-10 16:40:47 -08:00
Steven Orvell 0427abe402 Fix closure annotation. 2020-01-10 14:26:15 -08:00
Steve Orvell 4464cca751 Merge pull request #5612 from Polymer/legacy-undefined-noBatch-sync
Merge from master.
2020-01-10 12:04:53 -08:00
Steven Orvell 943905fb8e Merge branch 'master' into legacy-undefined-noBatch-sync 2020-01-10 10:46:17 -08:00
Steve Orvell 8b7df16c22 Merge pull request #5609 from Polymer/legacy-undefined-noBatch-noAttributes
Adds `legacyNoAttributes` setting
2020-01-10 10:35:20 -08:00
Steven Orvell c6675db07f legacyNoObservedAttributes: Ensure user created runs before attributesChanged 2020-01-09 15:18:54 -08:00
Steven Orvell b8315d6061 Enable tests for legacyNoObservedAttributes 2020-01-09 12:06:38 -08:00
Steven Orvell 99b876497a Only auto-use disable-upgrade if legacyOptimizations is set. 2020-01-09 10:36:18 -08:00
Steven Orvell a4b4723f89 Adds disable-upgrade functionality directly to LegacyElementMixin 2020-01-08 14:14:33 -08:00
Steven Orvell 12c39131f6 Add doc comment 2020-01-07 10:41:58 -08:00
Steven Orvell fa5570b15d Lint fixes. 2019-12-19 17:14:24 -08:00
Steven Orvell 41df9a591b Update externs. 2019-12-19 16:55:05 -08:00
Steven Orvell 3c128fa25e Update extern format. 2019-12-19 16:25:44 -08:00
Steven Orvell 957c8c4d25 Address review feedback. 2019-12-19 15:32:40 -08:00
Steven Orvell f8dfaa5628 Address review feedback
* DisableUpgradeMixin: fIx finding superClass observedAttributes getter so that it's always correct
* Class: grab observedAttributes getter 1x off of LegacyElement
* Add tests for camelCase properties used with dash cased attributes.
2019-12-19 12:31:06 -08:00
Steven Orvell 7b0c57a43e Lint fixes. 2019-12-18 18:45:43 -08:00
Steven Orvell 8ef2cc7089 Adds legacyNoAttributes setting
Applies a number of optimizations that speed up defining a legacy element. These optimizations are mostly beneficial when a large number of elements are defined that are not used for initial render.

* Fixes an issue with `dedupingMixin` that was causing info to be cached on the resulting class even when no mixin should be applied.
* In Polymer.Class, avoids using `LegacyElementMixin(HTMLElement)` in favor of a cached `LegacyElement`.
* Copies `DisableUpgradeMixin` into Polymer's legacy class generation. This avoids the need to mix this on top of all legacy elements.
* Adds `legacyNoAttributes` setting which avoids setting `observedAttributes` and instead (1) applies the values of all attributes at create time, (2) patches set/removeAttribute so that they call attributeChangedCallback. This is faster since it avoids the work Polymer needs to do to calculate `observedAttributes`.
2019-12-18 18:40:46 -08:00
Daniel Freedman 640bc80ac7 [ci skip] update changelog 2019-11-08 13:20:50 -08:00
Daniel Freedman 7e99bddc6e 3.3.1 v3.3.1 2019-11-08 13:19:05 -08:00
Daniel Freedman 11f1f139e4 [ci skip] bump to 3.3.1 2019-11-08 13:18:43 -08:00
Kevin Schaaf e477a6f381 Merge pull request #5594 from rslawik/patch-1
Add module field
2019-11-04 16:59:57 -08:00
Daniel Freedman dc20feca22 Merge pull request #5600 from Polymer/TimvdLippe-patch-2
Remove TimvdLippe from CODEOWNERS
2019-10-22 08:06:49 -07:00
Tim van der Lippe b99c29973a Remove TimvdLippe from CODEOWNERS
I am no longer an active maintainer of the Polymer repository, but I am still receiving review requests for PRs. While I could review PRs, it would be better for active maintainers to review community PRs. I am still available for reviews where my domain knowledge would be required, but I don't think I should be added a reviewer to every PR.
2019-10-22 14:53:44 +01:00