diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4046195b..2710fc4c 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,2 +1,2 @@ # Code owners for Polymer -* @sorvell @kevinpschaaf @TimvdLippe @azakus \ No newline at end of file +* @sorvell @kevinpschaaf @azakus diff --git a/CHANGELOG.md b/CHANGELOG.md index c45488a2..144757fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,36 @@ # Change Log +## [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)) + +- Remove TimvdLippe from CODEOWNERS ([commit](https://github.com/Polymer/polymer/commit/b99c2997)) + +- Add node field to PolymerDomApi ([commit](https://github.com/Polymer/polymer/commit/15747c83)) + +- Improve types for the template field on Polymer elements. (#5596) ([commit](https://github.com/Polymer/polymer/commit/4274bcec)) + +- Add module field ([commit](https://github.com/Polymer/polymer/commit/9a4d4d9a)) + +- Wrap other `hasOwnProperty` checks in `JSCompiler_renameProperty`. ([commit](https://github.com/Polymer/polymer/commit/0541b21a)) + +- Wrap `hasOwnProperty` checks for `__hasRegisterFinished` in `JSCompiler_renameProperty()`. ([commit](https://github.com/Polymer/polymer/commit/9e90fd2e)) + +- Fix typing error in fixPlaceholder ([commit](https://github.com/Polymer/polymer/commit/f050ce9e)) + +- Fix up comments based on feedback ([commit](https://github.com/Polymer/polymer/commit/ab49f51a)) + +- Workaround bindings to textarea.placeholder in IE ([commit](https://github.com/Polymer/polymer/commit/61767da2)) + +- Add additional externs (#5575) ([commit](https://github.com/Polymer/polymer/commit/69ee4688)) + +- Make Closure compiler happier about ShadyDOM access ([commit](https://github.com/Polymer/polymer/commit/46ee2aec)) + +- Remove other double import (#5565) ([commit](https://github.com/Polymer/polymer/commit/0d2c2e5d)) + +- Only use CONST_CASE for constants. (#5564) ([commit](https://github.com/Polymer/polymer/commit/54f8b47f)) + +- [skip ci] update changelog ([commit](https://github.com/Polymer/polymer/commit/ac12b3bc)) + ## [v3.3.0](https://github.com/Polymer/polymer/tree/v3.3.0) (2019-06-24) - [ci skip] Update version to 3.3.0 ([commit](https://github.com/Polymer/polymer/commit/dd7c0d70)) diff --git a/externs/polymer-dom-api-externs.js b/externs/polymer-dom-api-externs.js index 9b52e339..2076d03f 100644 --- a/externs/polymer-dom-api-externs.js +++ b/externs/polymer-dom-api-externs.js @@ -14,7 +14,7 @@ * * @interface */ -var PolymerDomApi = function() {}; +let PolymerDomApi = function() {}; /** * @param {?Node} node @@ -103,6 +103,9 @@ PolymerDomApi.prototype.getDestinationInsertionPoints = function() {}; /** @return {?Node} */ PolymerDomApi.prototype.getOwnerRoot = function() {}; +/** @type {!Node} */ +PolymerDomApi.prototype.node; + /** * @param {string} attribute * @param {string} value diff --git a/externs/polymer-externs.js b/externs/polymer-externs.js index ef4a6a31..f49bf21e 100644 --- a/externs/polymer-externs.js +++ b/externs/polymer-externs.js @@ -41,7 +41,7 @@ PolymerInit.prototype.extends; PolymerInit.prototype.properties; /** @type {(!Array | undefined)} */ PolymerInit.prototype.observers; -/** @type {(!HTMLTemplateElement | string | undefined)} */ +/** @type {(!HTMLTemplateElement | string | undefined | null)} */ PolymerInit.prototype.template; /** @type {(!Object | undefined)} */ PolymerInit.prototype.hostAttributes; @@ -60,7 +60,7 @@ PolymerElementConstructor.extends; PolymerElementConstructor.properties; /** @type {(!Array | undefined)} */ PolymerElementConstructor.observers; -/** @type {(!HTMLTemplateElement | string | undefined)} */ +/** @type {(!HTMLTemplateElement | string | undefined | null)} */ PolymerElementConstructor.template; /** @interface */ @@ -174,7 +174,7 @@ var PolymerElement = function() {}; PolymerElement.is; /** * The template to stamp when creating this element type. - * @type {!HTMLTemplateElement|undefined} + * @type {!HTMLTemplateElement|undefined|null} */ PolymerElement.template; /** diff --git a/lib/elements/dom-bind.js b/lib/elements/dom-bind.js index 33e7293b..e8e4a905 100644 --- a/lib/elements/dom-bind.js +++ b/lib/elements/dom-bind.js @@ -115,7 +115,7 @@ export class DomBind extends domBindBase { render() { let template; if (!this.__children) { - template = /** @type {HTMLTemplateElement} */(template || this.querySelector('template')); + template = /** @type {?HTMLTemplateElement} */(template || this.querySelector('template')); if (!template) { // Wait until childList changes and template should be there by then let observer = new MutationObserver(() => { diff --git a/lib/legacy/polymer.dom.js b/lib/legacy/polymer.dom.js index ff4fac88..22b863e0 100644 --- a/lib/legacy/polymer.dom.js +++ b/lib/legacy/polymer.dom.js @@ -45,7 +45,7 @@ export const matchesSelector = function(node, selector) { class DomApiNative { /** - * @param {Node} node Node for which to create a Polymer.dom helper object. + * @param {!Node} node Node for which to create a Polymer.dom helper object. */ constructor(node) { if (window['ShadyDOM'] && window['ShadyDOM']['inUse']) { diff --git a/lib/mixins/element-mixin.js b/lib/mixins/element-mixin.js index b9a7c864..af201174 100644 --- a/lib/mixins/element-mixin.js +++ b/lib/mixins/element-mixin.js @@ -24,7 +24,7 @@ import { wrap } from '../utils/wrap.js'; * Current Polymer version in Semver notation. * @type {string} Semver notation of the current version of Polymer. */ -export const version = '3.3.0'; +export const version = '3.3.1'; export const builtCSS = window.ShadyCSS && window.ShadyCSS['cssBuild']; diff --git a/package-lock.json b/package-lock.json index 566c3821..b40ee588 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@polymer/polymer", - "version": "3.3.0", + "version": "3.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a30c075a..851ed99d 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "@polymer/polymer", - "version": "3.3.0", + "version": "3.3.1", "description": "The Polymer library makes it easy to create your own web components. Give your element some markup and properties, and then use it on a site. Polymer provides features like dynamic templates and data binding to reduce the amount of boilerplate you need to write", "main": "polymer-element.js", + "module": "polymer-element.js", "directories": { "doc": "docs", "test": "test"