Releases: Polymer/polymer
v1.11.3
Meaningful Changes
- Fix a memory leak where element templates are cached on the prototype
- fix an expectation on event paths existing in gestures library
- Port scoped keyframe naming fix from 2.x
Raw Notes
v2.5.0
New Features
- Added
Polymer.htmlLiteral
tagged template literal function to safely include non-<template>
variables inPolymer.html
templates.// Example const title = Polymer.htmlLiteral`World!`; class LiteralElement extends Polymer.Element { static get template() { return Polymer.html`<span>Hello ${title}</span>` } }
- Note: This is now the only way to include literals in
Polymer.html
strings
- Note: This is now the only way to include literals in
- Allow use of templatizer without an owner & host property
Meaningful Changes
- Fix unintended behavior change in
Polymer.ResolveUrl.resolveUrl()
by again allowing urls beginning with#
and/
to be treated as absolute URLs.- If you want a more standard URL handling behavior, please use
new URL()
- If you want a more standard URL handling behavior, please use
- Fix observers being called twice
- Ensure path notifications from templatized instances don't throw
- Fix differences between
this.slice()
andArray.prototype.slice()
Raw Notes
-
Update types (commit)
-
Update JSDocs to use tags (commit)
-
Fix type declarations inadvertedtly referencing Polymer.Element. (#5084) (commit)
-
Add hash/abs URL resolution tests. (commit)
-
Update types. (commit)
-
Add comments about resolveUrl idiosyncrasies. (commit)
-
Revert "Move absolute url logic to element-mixin" (commit)
-
Avoid tracking parentNode since it's unncessary (commit)
-
Update types. (commit)
-
Fix nit. (commit)
-
Avoid comment constructor for IE support. (commit)
-
Disallow non-templates as interpolations in Polymer.html (#5023) (commit)
-
update types (commit)
-
[element-mixin] Do not create property accessors unless a property effect exists (commit)
-
Invoke JS compiler rename for properties (commit)
-
Add package-lock.json back (commit)
-
fix test. (commit)
-
Enhance robustness by replacing slot with a comment (commit)
-
Avoid use of element accessors on doc frag to fix IE/Edge. (commit)
-
Fix linter errors (commit)
-
Fix issue with observers being called twice (commit)
-
Revert package-lock change (commit)
-
[ci-skip] Update changelog (2.4.0) (commit)
-
Add package-lock.json to .gitignore (commit)
-
Update types (commit)
-
Add comments re: instanceProps (commit)
-
Change if-condition to check for arguments.length (commit)
-
Delete package-lock.json (commit)
-
[ci skip] Fix test case name (commit)
-
Fix issue where el.splice could not clear full array (commit)
-
Make owner optional as well. (commit)
-
Update package-lock.json (commit)
-
Update typescript types again, after fixing jsdoc. (commit)
-
Fix lint warnings. (commit)
-
Update typescript types. (commit)
-
Ensure path notifications from templatized instances don't throw. Fixes #3422 (commit)
-
Allow templatizer to be used without owner or host prop forwarding. Fixes #4458 (commit)
-
Templatize: remove slots when hiding children (commit)
-
Clarify API docs for PropertyAccessors mixin (commit)
v2.4.0-rc.1
2.4.0-rc.1
Stable Release v1.11.2
Stable Release v2.3.1
Bug fix
- Fixed a styling bug introduced in 2.3.0 that could cause incorrect ordering of styles included via
<style include>
and/or throw an exception if a<style>
was not a direct child of the template.
Raw Notes
Stable Release: v2.3.0
New Features
- Property observers can now take a function reference in addition to taking a string name
- Example
class XFoo extends Polymer.Element { static get properties() { return { prop: { type: String, observer: function (newProp, oldProp) { return this.prop2Changed(newProp, oldProp); } } }; } }
- Example
Meaningful Changes
- When using
Polymer.passiveTouchGestures
, don't set passive ontouchend
events, allowingtap
andup
gestures to preventclick
. - Do not collapse multiple styles into a single style, which allows for lower memory usage in native ShadowDOM. ShadyCSS and ShadyDOM polyfill will still collapse into one style for now.
- dom-repeat will now always resort and/or refilter an array when an item changes.
Raw Notes
-
[ci skip] commit new version in lib/utils/boot.html when using npm version (commit)
-
change PolymerElement extern to var (commit)
-
update node devDependencies (commit)
-
fix lint error (commit)
-
Fix :dir selectors with nested custom elements (commit)
-
Update test to be more descriptive (commit)
-
make PASSIVE_TOUCH take an argument (commit)
-
Do not set touchend listeners to passive (commit)
-
Add some @function annotations to APIs that are defined by assignment. (commit)
-
add return jsdoc to void functions (commit)
-
Update CONTRIBUTING.md (commit)
-
Fix typo. (commit)
-
Comment reworded based on feedback. (commit)
-
Semantic issue (proposal) plus minor fixes (commit)
-
Depend on webcomponents and shadycss with shady-unscoped support (commit)
-
Ensure re-sort/filter always happens after array item set. Fixes #3626 (commit)
-
move test after (commit)
-
test more permutations (commit)
-
Fix missing comma in
Path.translate
JSDoc (commit) -
Minor fixes (update URLs) (commit)
-
add license headers (commit)
-
Prep for processing of
shady-unscoped
moving to ShadyCSS (commit) -
Implement type change in Polymer.ElementMixin (commit)
-
instance.$.foo should only give Elements (commit)
-
Clarify all elements between changes must apply mixing. Fixes #4914 (commit)
-
add safari 11 to sauce testing (commit)
-
Fix tests on Firefox. (commit)
-
Update externs again. (commit)
-
Update externs. (commit)
-
Lint fixes (commit)
-
Allow style elements to be separate in the element template. (commit)
-
Lint fix. (commit)
-
Add support for styles with a
shady-unscoped
attribute (commit) -
[ci skip] Update CHANGELOG (commit)
-
[ci skip] version script did not work as expected (commit)
-
adding test case for 4696 4706 (commit)
-
Support property observers which are direct function references in addition to strings. Provides better static analysis and refactoring support in multiple tools. Alleviates the need for property reflection with Closure-compiler renaming. (commit)
-
removing package-lock.json from PR (commit)
-
implementing the code review suggestions (commit)
-
Updating deserialize function (use of ternary operation). Fixes #4696 (commit)
Stable Release v1.11.1
Meaningful Changes
- Fix
:dir
selector to handle a few more complicated use casesother-custom-element:dir()
:dir()
in a shadowroot should behave like*:dir()
- A few cases where the
dir
attribute is set between inside of a shadowroot
- Allow arbitrary whitespace in
<style include>
attribute value - When using
Polymer.Settings.passiveTouchGestures
, don't setpassive
ontouchend
events, allowingtap
andup
gestures to preventclick
.
Raw Notes
-
make PASSIVE_TOUCH take an argument (commit)
-
Handle more dir cases (commit)
-
Make
:dir
more robust (commit) -
Do not set touchend listeners to passive (commit)
-
Add comments on modified transforms (commit)
-
Fix :dir() bare selector in native shadowdom (commit)
-
Fix :dir selector when element uses CSS Custom Property Shim (commit)
-
Add a load-bearing escape into the comment regex (commit)
-
Polymer 1: Allow arbitrary whitespace in CSS imports (commit)
-
fix license issues (commit)
-
Fix tests on Firefox. (commit)
-
[ci skip] update changelog (commit)
-
Add support for styles with a
shady-unscoped
attribute (commit) -
Skip tests of ::shadow and /deep/ under native Shadow DOM (commit)
Stable Release: v2.2.0
New Features
:dir()
css selector now supported- The
:dir()
selector allows for writing text-orientation specific styling. More information on MDN :dir()
can be used by usingPolymer.DirMixin
for elements extendingPolymer.Element
, or automatically when using legacyPolymer({})
calls.- Use of
:dir()
requires the application to set thedir
attribute on<html>
, and all elements will use the same direction. - Individual elements can opt-out of the global direction be setting the
dir
attribute in HTML or atready()
, but these elements must from then on be handled manually.
- The
Raw Notes
-
[ci skip] Autoupdate version when releasing (commit)
-
add edge 15, use chrome stable (commit)
-
super it and put back takeRecords (commit)
-
more feedback (commit)
-
Address feedback (commit)
-
add some description of the dir mixin (commit)
-
Fix linting (commit)
-
Always do the :dir transform (commit)
-
Clean up closure externs (commit)
-
remove bogus semicolon (commit)
-
Declare Polymer.Templatizer directly, for Closure. (#4870) (commit)
-
First draft of a
:dir
aware element mixin (commit) -
[ci-skip] Update CHANGELOG (commit)
Stable Release v1.11.0
New Features
:dir()
css selector now supported- The
:dir()
selector allows for writing text-orientation specific styling. More information on MDN - Use of
:dir()
requires the application to set thedir
attribute on<html>
, and all elements will use the same direction.
- The
Meaningful Changes
- custom styles with complex selectors (
html *
,html:not([foo]) .bar
) are now supported correctly.
Raw Notes
Stable Release v2.1.1
Meaningful Changes
- Workaround for upcoming removal of styles in import documents styling the main document #4849.
Raw Notes
-
Prepare for release 2.1.1 (commit)
-
Move @externs before @license because Closure likes that. (commit)
-
just move the style instead (commit)
-
Copy styles to main document (commit)
-
[ci skip] update changelog (commit)
-
Fix shady dom style querySelector (commit)
-
Fix linter error (commit)
-
Exclude script and style tags for parsing bindings (commit)
-
Special-case undefined textarea.value same as input. Fixes #4630 (commit)