From e47493b06a083952b29438a06927af3dc63761e0 Mon Sep 17 00:00:00 2001 From: Russell Bicknell Date: Mon, 27 Apr 2020 13:34:30 -0700 Subject: [PATCH] Add complete commit list for v3.4.0 --- CHANGELOG.md | 316 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 315 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd854b3fb0..2f4a47fa51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## Unreleased +## [v3.4.0](https://github.com/Polymer/polymer/tree/v3.4.0) (2020-04-23) ### New global settings @@ -197,6 +197,320 @@ This update to Polymer includes some new [global settings](https://polymer-libra See [#5631](https://github.com/Polymer/polymer/issues/5631) for more information. +### All commits + +- [ci skip] bump to 3.4.0 ([commit](https://github.com/Polymer/polymer/commit/08585311)) + +- `shareBuiltCSSWithAdoptedStyleSheets` -> `useAdoptedStyleSheetsWithBuiltCSS` ([commit](https://github.com/Polymer/polymer/commit/33e14986)) + +- formatting ([commit](https://github.com/Polymer/polymer/commit/d0848d83)) + +- Fix incorrect JSDoc param name. ([commit](https://github.com/Polymer/polymer/commit/c0813cd3)) + +- Gate feature behind `shareBuiltCSSWithAdoptedStyleSheets`; update tests. ([commit](https://github.com/Polymer/polymer/commit/bdd76581)) + +- Add `shareBuiltCSSWithAdoptedStyleSheets` global setting ([commit](https://github.com/Polymer/polymer/commit/2fc9062d)) + +- Add stalebot config ([commit](https://github.com/Polymer/polymer/commit/b8362abb)) + +- Annotate more return types as !defined (#5642) ([commit](https://github.com/Polymer/polymer/commit/20b207e1)) + +- Ensure any previously enqueued rAF is canceled when re-rendering. Also, use instances length instead of renderedItemCount since it will be undefined on first render. ([commit](https://github.com/Polymer/polymer/commit/ddb37df9)) + +- Improve comment. ([commit](https://github.com/Polymer/polymer/commit/d92ff92f)) + +- Remove obsolete tests. ([commit](https://github.com/Polymer/polymer/commit/91f01e57)) + +- Simplify by making limit a derived value from existing state. This centralizes the calculation of limit based on changes to other state variables. ([commit](https://github.com/Polymer/polymer/commit/b5664cba)) + +- Update Sauce config to drop Safari 9, add 12 & 13. Safari 9 is now very old, and has micro task ordering bugs issues that make testing flaky. ([commit](https://github.com/Polymer/polymer/commit/a02ed026)) + +- Remove accidental commit of test.only ([commit](https://github.com/Polymer/polymer/commit/d67a8b51)) + +- When re-enabling, ensure __limit is at a good starting point and add a test for that. Also: * Ensure `__itemsArrayChanged` is cleared after every render. * Enqueue `__continueChunkingAfterRaf` before notifying renderedItemCount for safety ([commit](https://github.com/Polymer/polymer/commit/1d96db3c)) + +- Remove accidental commit of suite.only ([commit](https://github.com/Polymer/polymer/commit/b503db15)) + +- Ensure limit is reset when initialCount is disabled. Note that any falsey value for initialCount (including `0`) is interpreted as "chunking disabled". This is consistent with 1.x logic, and follows from the logic of "starting chunking by rendering zero items" doesn't really make sense. ([commit](https://github.com/Polymer/polymer/commit/60f6ccfb)) + +- Updates from review. * Refactoring `__render` for readability * Removing `__pool`; this was never used in v2: since we reset the pool every update and items are only ever pushed at detach time and we only detach at the end of updates (as opposed to v1 which had more sophisticated splicing) ([commit](https://github.com/Polymer/polymer/commit/0797488b)) + +- Store syncInfo on the dom-if, but null it in teardown. (same as invalidProps for non-fastDomIf) ([commit](https://github.com/Polymer/polymer/commit/fe86a8c8)) + +- Fixes for several related dom-repeat chunking issues. Fixes #5631. * Only restart chunking (resetting the list to the initialCount) if the `items` array itself changed (and not splices to the array), to match Polymer 1 behavior. * Add `reuseChunkedInstances` option to allow reusing instances even when `items` changes; this is likely the more common optimal case when using immutable data, but making it optional for backward compatibility. * Only measure render time and throttle the chunk size if we rendered a full chunk of new items. Ensures that fast re-renders of existing items don't cause the chunk size to scale up dramatically, subsequently causing too many new items to be created in one chunk. * Increase the limit by the chunk size as part of any render if there are new items to render, rather than only as a result of rendering. * Continue chunking by comparing the filtered item count to the limit (not the unfiltered item count). ([commit](https://github.com/Polymer/polymer/commit/b40840b9)) + +- Update comment. ([commit](https://github.com/Polymer/polymer/commit/b9bbee2c)) + +- Store syncInfo on instance and don't sync paths. Fixes #5629 ([commit](https://github.com/Polymer/polymer/commit/353eabde)) + +- Avoid Array.find (doesn't exist in IE) ([commit](https://github.com/Polymer/polymer/commit/5383f5f2)) + +- Add comment to skip. ([commit](https://github.com/Polymer/polymer/commit/7df89ae2)) + +- Skip test when custom elements polyfill is in use ([commit](https://github.com/Polymer/polymer/commit/fb1a7835)) + +- Copy flag to a single location rather than two. ([commit](https://github.com/Polymer/polymer/commit/688243b3)) + +- Lint fix. ([commit](https://github.com/Polymer/polymer/commit/3fd96719)) + +- Update test name. ([commit](https://github.com/Polymer/polymer/commit/dfd0e641)) + +- Introduce opt-out per class for `legacyNoObservedAttributes` ([commit](https://github.com/Polymer/polymer/commit/eaca1954)) + +- Ensure telemetry system works with `legacyNoObservedAttributes` setting ([commit](https://github.com/Polymer/polymer/commit/63addd39)) + +- Update package-lock.json ([commit](https://github.com/Polymer/polymer/commit/a7ffc390)) + +- Update test/unit/inheritance.html ([commit](https://github.com/Polymer/polymer/commit/47a54ef8)) + +- Fix testing issues with latest webcomponentsjs ([commit](https://github.com/Polymer/polymer/commit/61a14c17)) + +- Allow `undefined` in legacy _template field to fall-through to normal lookup path. ([commit](https://github.com/Polymer/polymer/commit/220099cf)) + +- re-add npm cache ([commit](https://github.com/Polymer/polymer/commit/700c2b0c)) + +- regen package-lock ([commit](https://github.com/Polymer/polymer/commit/168572a7)) + +- mispelled services, node 10 for consistency ([commit](https://github.com/Polymer/polymer/commit/15dba241)) + +- modernize travis ([commit](https://github.com/Polymer/polymer/commit/148b2ea2)) + +- Adds support for imperatively created elements to `legacyNoObservedAttributes` ([commit](https://github.com/Polymer/polymer/commit/28f12ca9)) + +- Rebase sanitize dom value getter onto legacy-undefined-noBatch (#5618) ([commit](https://github.com/Polymer/polymer/commit/afdd9119)) + +- Add getSanitizeDOMValue to settings API (#5617) ([commit](https://github.com/Polymer/polymer/commit/aec4cb68)) + +- FIx closure annotation ([commit](https://github.com/Polymer/polymer/commit/15ce881f)) + +- Fix closure annotation. ([commit](https://github.com/Polymer/polymer/commit/0427abe4)) + +- `legacyNoObservedAttributes`: Ensure user created runs before attributesChanged ([commit](https://github.com/Polymer/polymer/commit/c6675db0)) + +- Enable tests for `legacyNoObservedAttributes` ([commit](https://github.com/Polymer/polymer/commit/b8315d60)) + +- Only auto-use disable-upgrade if legacyOptimizations is set. ([commit](https://github.com/Polymer/polymer/commit/99b87649)) + +- Adds disable-upgrade functionality directly to LegacyElementMixin ([commit](https://github.com/Polymer/polymer/commit/a4b4723f)) + +- Add doc comment ([commit](https://github.com/Polymer/polymer/commit/12c39131)) + +- Lint fixes. ([commit](https://github.com/Polymer/polymer/commit/fa5570b1)) + +- Update externs. ([commit](https://github.com/Polymer/polymer/commit/41df9a59)) + +- Update extern format. ([commit](https://github.com/Polymer/polymer/commit/3c128fa2)) + +- Address review feedback. ([commit](https://github.com/Polymer/polymer/commit/957c8c4d)) + +- Address review feedback ([commit](https://github.com/Polymer/polymer/commit/f8dfaa56)) + +- Lint fixes. ([commit](https://github.com/Polymer/polymer/commit/7b0c57a4)) + +- Adds `legacyNoAttributes` setting ([commit](https://github.com/Polymer/polymer/commit/8ef2cc70)) + +- [ci skip] update changelog ([commit](https://github.com/Polymer/polymer/commit/640bc80a)) + +- Update polymer externs for new settings. ([commit](https://github.com/Polymer/polymer/commit/5d130fae)) + +- Update lib/utils/settings.js ([commit](https://github.com/Polymer/polymer/commit/dbd9140a)) + +- Changes based on review. ([commit](https://github.com/Polymer/polymer/commit/124d878e)) + +- Add basic support for `adoptedStyleSheets` ([commit](https://github.com/Polymer/polymer/commit/ab04377b)) + +- [ci skip] Add/fix comments per review. ([commit](https://github.com/Polymer/polymer/commit/cbc722b1)) + +- Add missing externs for global settings. ([commit](https://github.com/Polymer/polymer/commit/7fa78973)) + +- Revert optimization to not wrap change notifications. This was causing a number of rendering tests to fail. Needs investigation, but possibly because wrapping calls ShadyDOM.flush, and this alters distribution timing which some tests may have inadvertently relied on. ([commit](https://github.com/Polymer/polymer/commit/848e8c9b)) + +- Reintroduce suppressTemplateNotifications and gate Dom-change & renderedItemCount on that. Matches Polymer 1 setting for better backward compatibility. ([commit](https://github.com/Polymer/polymer/commit/d64ee9ef)) + +- Add notifyDomChange back to dom-if & dom-repeat to match P1. ([commit](https://github.com/Polymer/polymer/commit/e9e0cd17)) + +- Simplify host stack, set __dataHost unconditionally, and make _registerHost patchable. ([commit](https://github.com/Polymer/polymer/commit/929d056b)) + +- Move @private annotation to decorate class definition. ([commit](https://github.com/Polymer/polymer/commit/534654de)) + +- Add type for _overrideLegacyUndefined. ([commit](https://github.com/Polymer/polymer/commit/a7866b36)) + +- Attempt to fix travis issues ([commit](https://github.com/Polymer/polymer/commit/e2895403)) + +- Revert `isAttached` change based on review feedback. Deemed a breaking change. ([commit](https://github.com/Polymer/polymer/commit/1ff51e68)) + +- Update travis to use xenial distro and, latest Firefox, and node 10 ([commit](https://github.com/Polymer/polymer/commit/9c80994f)) + +- Applies micro-optimizations and removes obsolete settings ([commit](https://github.com/Polymer/polymer/commit/280f4f0a)) + +- Work around Closure Compiler bug to avoid upcoming type error ([commit](https://github.com/Polymer/polymer/commit/5382e2ca)) + +- Only import each file once (#5588) ([commit](https://github.com/Polymer/polymer/commit/27779a32)) + +- Avoid Array.from on Set. ([commit](https://github.com/Polymer/polymer/commit/991b0997)) + +- Update nested template names. ([commit](https://github.com/Polymer/polymer/commit/dc0754ee)) + +- Add runtime stamping tests around linking & unlinking effects. ([commit](https://github.com/Polymer/polymer/commit/9e106d82)) + +- Ensure parent is linked to child templateInfo. Fixes fastDomIf unstopping issue. ([commit](https://github.com/Polymer/polymer/commit/5e1a8b6d)) + +- Remove unused TemplateInfo properties from types. ([commit](https://github.com/Polymer/polymer/commit/5d6f34f5)) + +- Add other used TemplateInfo property types. ([commit](https://github.com/Polymer/polymer/commit/93854364)) + +- Add type for TemplateInfo#parent. ([commit](https://github.com/Polymer/polymer/commit/2697cf10)) + +- [ci-skip] Add comment explaining confusing check in _addPropertyToAttributeMap ([commit](https://github.com/Polymer/polymer/commit/c65a58ae)) + +- Ensure clients are flushed when runtime stamping via `_stampTemplate`. Maintains flush semantics with Templatizer stamping (relevant to fastDomIf, which is a switch between Templatizer-based stamping and runtime _stampTemplate-based stamping). Works around an issue with `noPatch` where nested undistributed dom-if's won't stamp. The changes to the tests are to remove testing that the full host tree is correct since the host doing the runtime stamping will no longer be the DOM getRootNode().host at ready time (this is exactly the case with Templatizer, whose semantics we intend to match). ([commit](https://github.com/Polymer/polymer/commit/7e7febc3)) + +- Fix template-finding issue with DisableUpgrade mixin. The existing rules are that `prototype._template` is first priority and dom-module via `is` is second priority _for a given class_. A subclass has a new shot at overriding the previous template either by defining a new `prototype._template` or a new `is` resulting in a dom-module lookup. However, trivially subclassing a Polymer legacy element breaks these rules, since if there is no _own_ `prototype._template` on the current class, it will lookup a dom-module using `is` from up the entire prototype chain. This defeats the rule that a `prototype._template` on the superclass should have taken priority over its dom-module. This change ensures that we only lookup dom-module if the class has an _own_ is property. ([commit](https://github.com/Polymer/polymer/commit/e534c3cf)) + +- Fix issue with camel cased properties and disable-upgrade ([commit](https://github.com/Polymer/polymer/commit/f95fd327)) + +- More closure fixes. ([commit](https://github.com/Polymer/polymer/commit/04ddc240)) + +- closure fixes ([commit](https://github.com/Polymer/polymer/commit/2bb488c8)) + +- lint fixes ([commit](https://github.com/Polymer/polymer/commit/11256634)) + +- Fix issue with defaults overriding bound values when disable-upgrade is used. ([commit](https://github.com/Polymer/polymer/commit/cd6d5d01)) + +- Add closure types ([commit](https://github.com/Polymer/polymer/commit/69140787)) + +- Use DisbleUpgradeMixin in legacy class generation ([commit](https://github.com/Polymer/polymer/commit/2203dae3)) + +- Add comment about why code is duplicated. ([commit](https://github.com/Polymer/polymer/commit/f4943890)) + +- Add tests for connected/disconnected while disabled ([commit](https://github.com/Polymer/polymer/commit/658c885c)) + +- Improve comments. ([commit](https://github.com/Polymer/polymer/commit/1e8b656c)) + +- Added comments. ([commit](https://github.com/Polymer/polymer/commit/d6f3a9ff)) + +- Fix typo and improve readbility ([commit](https://github.com/Polymer/polymer/commit/933995a0)) + +- Enable disable-upgrade when `legacyOptimizations` is set to true ([commit](https://github.com/Polymer/polymer/commit/f2784343)) + +- Remove use of Object.create on template info (significant perf impact). ([commit](https://github.com/Polymer/polymer/commit/309f77ba)) + +- Attempt to sync host properties on every call to _showHideChildren. Fixes an issue where a dom-if that is toggled synchronously true-false-true could fail to sync properties invalidated while false, since the hidden state is only checked at render timing, and the newly added dirty-check could fail if the hidden state has been changed back to its initial value. ([commit](https://github.com/Polymer/polymer/commit/e772ed0c)) + +- Add tests for extension and dom-if/repeat ([commit](https://github.com/Polymer/polymer/commit/2c264c67)) + +- Update stand alone disable-upgrade mixin. ([commit](https://github.com/Polymer/polymer/commit/e0ba67c4)) + +- Remove cruft from test ([commit](https://github.com/Polymer/polymer/commit/872094a2)) + +- Simplify logic for disable-upgrade ([commit](https://github.com/Polymer/polymer/commit/9c6f2661)) + +- Use a safer flag, based on internal testing. ([commit](https://github.com/Polymer/polymer/commit/c563d5a3)) + +- Reorder based on review feedback. ([commit](https://github.com/Polymer/polymer/commit/b5f8a6de)) + +- Fix closure type. ([commit](https://github.com/Polymer/polymer/commit/d32d300e)) + +- Updated comment. ([commit](https://github.com/Polymer/polymer/commit/53119175)) + +- Ensure hasPaths is also accumulated as part of info necessary to sync. ([commit](https://github.com/Polymer/polymer/commit/89d70557)) + +- Fix one more closure annotation. ([commit](https://github.com/Polymer/polymer/commit/3d09455b)) + +- Simplify algorithm; we already have list of computed deps in effect list. ([commit](https://github.com/Polymer/polymer/commit/064d0eff)) + +- Build computed graph from dependencies, rather than properties. ([commit](https://github.com/Polymer/polymer/commit/567e4640)) + +- Fix closure annotations for dom-if. ([commit](https://github.com/Polymer/polymer/commit/cee1893b)) + +- Avoid lint warnings. ([commit](https://github.com/Polymer/polymer/commit/18adf5fb)) + +- Minor simplifications/comments. ([commit](https://github.com/Polymer/polymer/commit/4f9fda06)) + +- Updates from review. ([commit](https://github.com/Polymer/polymer/commit/f0cbc837)) + +- Closure type fixes. ([commit](https://github.com/Polymer/polymer/commit/ff25283a)) + +- Initialize all settings from Polymer object when available. ([commit](https://github.com/Polymer/polymer/commit/df1eb73b)) + +- Fix host prop merging. ([commit](https://github.com/Polymer/polymer/commit/e4eb9f22)) + +- Updates based on review. ([commit](https://github.com/Polymer/polymer/commit/39207cce)) + +- Fix defaults back to false for new settings. ([commit](https://github.com/Polymer/polymer/commit/4bdbe925)) + +- Add a dirty check to showHideChildren ([commit](https://github.com/Polymer/polymer/commit/0ba19b4e)) + +- Fix host property syncing ([commit](https://github.com/Polymer/polymer/commit/fc693a09)) + +- Adds disable-upgrade directly into legacy `Polymer` elements ([commit](https://github.com/Polymer/polymer/commit/9756d861)) + +- Refactor DomIf into separate subclasses. ([commit](https://github.com/Polymer/polymer/commit/c2f31eda)) + +- Runtime stamped dom-if ([commit](https://github.com/Polymer/polymer/commit/e690dfe2)) + +- dom-if/dom-repeat bind-to-parent ([commit](https://github.com/Polymer/polymer/commit/27ed93af)) + +- Fix a few closure compiler issues ([commit](https://github.com/Polymer/polymer/commit/d55b9cb5)) + +- [ci skip] Add comment ([commit](https://github.com/Polymer/polymer/commit/70337ac8)) + +- Fix typo in comment ([commit](https://github.com/Polymer/polymer/commit/61715f1d)) + +- Cleanup, add tests. * remove old implementation * add API docs * rename some API * add dynamicFn to dep count * add test for method as dependency ([commit](https://github.com/Polymer/polymer/commit/b065d145)) + +- [wip] Add additional topo-sort based algorithm. ([commit](https://github.com/Polymer/polymer/commit/7cda770e)) + +- Dedupe against a single turn on only under orderedComputed ([commit](https://github.com/Polymer/polymer/commit/fc49a925)) + +- Fix closure issues ([commit](https://github.com/Polymer/polymer/commit/42dd361f)) + +- Add hasPaths optimziation ([commit](https://github.com/Polymer/polymer/commit/ef0efa6e)) + +- Minor comment updates ([commit](https://github.com/Polymer/polymer/commit/9ed31895)) + +- Evaluate computed property dependencies first. Fixes #5143 ([commit](https://github.com/Polymer/polymer/commit/832fcdec)) + +- Add more externs ([commit](https://github.com/Polymer/polymer/commit/2ed3bfac)) + +- Fix lint warnings ([commit](https://github.com/Polymer/polymer/commit/4151ef4d)) + +- Add comments per review feedback ([commit](https://github.com/Polymer/polymer/commit/bef674a9)) + +- Add legacyNotifyOrder. Improve comments. ([commit](https://github.com/Polymer/polymer/commit/52fe20da)) + +- Add test for literal-only static function. ([commit](https://github.com/Polymer/polymer/commit/4c65db8d)) + +- Remove unnecessary literal check ([commit](https://github.com/Polymer/polymer/commit/bf05e383)) + +- Simplify ([commit](https://github.com/Polymer/polymer/commit/11bdc39a)) + +- Add templatizer warnings. Move to legacyWarnings flag. ([commit](https://github.com/Polymer/polymer/commit/aa63db00)) + +- Add legacyUndefined and legacyNoBatch to externs ([commit](https://github.com/Polymer/polymer/commit/cc7d4cc8)) + +- NOOP has to be an array for closure compiler ([commit](https://github.com/Polymer/polymer/commit/e351f4dd)) + +- Add comments on warning limitations. ([commit](https://github.com/Polymer/polymer/commit/940d1a7a)) + +- Ensure properties are set one-by-one at startup. ([commit](https://github.com/Polymer/polymer/commit/add77842)) + +- Remove unnecessary qualification. ([commit](https://github.com/Polymer/polymer/commit/2874c86d)) + +- Avoid over-warning on templatizer props and "static" dynamicFns. ([commit](https://github.com/Polymer/polymer/commit/c966eb1f)) + +- Store splices directly on array when `legacyUndefined` is set ([commit](https://github.com/Polymer/polymer/commit/e29a3150)) + +- Fix test ([commit](https://github.com/Polymer/polymer/commit/32c30837)) + +- Add arg length check ([commit](https://github.com/Polymer/polymer/commit/6139e889)) + +- Adds `legacyNoBatch` setting ([commit](https://github.com/Polymer/polymer/commit/363bef2c)) + +- Add tests for `legacyUndefined` setting ([commit](https://github.com/Polymer/polymer/commit/52a559fc)) + +- Adds `legacyUndefined` setting ([commit](https://github.com/Polymer/polymer/commit/987ae2c4)) + ## [v3.3.1](https://github.com/Polymer/polymer/tree/v3.3.1) (2019-11-08) - [ci skip] bump to 3.3.1 ([commit](https://github.com/Polymer/polymer/commit/11f1f139))