- Add
@ExportDecoratedItemsannotation to@queryand@queryAll(used by tsickle). - The
@listendecorator allows event handler functions that accept any subtype of Event. So you can write an event listener that accepts e.g. KeyboardEvent. Note that the relationship between the event name and the event subtype is not checked.
- Updated for Polymer 3.0.
- Now distributed on NPM as
@polymer/decorators. Bower is no longer supported. - [BREAKING] Dropped support for Polymer 2.0. See the
2.xbranch for the previous version, which can still be installed from Bower. - [BREAKING] Now distributed as ES modules, like Polymer itself. HTML imports
and the
Polymer.decoratorsglobal are no longer available. - [BREAKING] Dropped support for the Metadata Reflection API. All properties
must now explicitly set a
type.
- Fix incorrectly formatted Polymer dependency that caused
ENOTFOUNDerrors (#85).
- Add @ExportDecoratedItems annotations to decorators, for use by tsickle.
- A warning is no longer emitted when a computed property does not have
a property
typeset. - The missing
typewarning is now aconsole.warninstead of aconsole.error.
- [BREAKING] It is now always a compilation error to pass an argument to the
@computeddecorator factory that is not a property of the element class. Previously this check only applied when the class was explicitly passed as a generic parameter. Users must no longer pass the class as a generic parameter. - [BREAKING] It is now a compilation to apply the
@customElementdecorator to a class which does not extendPolymer.Element. Polymer >= 2.4 (which provides this type) is now a Bower dependency of this package. - [BREAKING] It is now a compilation error to apply the
@listendecorator to a method that is not compatible with the signature(e: EventTarget) => void, or that hasprivateorprotectedvisibility. - [BREAKING] It is now a compilation error to pass zero targets to the
@computeddecorator factory.
- An exception is now thrown if both the
tagnameparameter to@customElementis provided, and the staticisclass property is set (except in the case that theisproperty is not an own-property of the class). Previously theisproperty would always silently win over thetagnamewhen both were set. - An exception is now thrown if the
@listendecorator is applied to an element that does not have theDeclarativeEventListenersmixin applied. - Decorators now have more constrained type signatures.
- Remove npm dependency on
reflect-metadatapackage.
- Allow
@propertyto be used together with@computedso that itstypecan be set. - Fix bug where
@observecould not be used withPolymer.mixinBehaviors.
- Fix missing generated files from
1.0.1release.
- Fix malformed warning about missing type.
- Generated typings for the
DeclarativeEventListenersmixin are now available atmixins/declarative-event-listeners.d.ts. - [BREAKING] The
@observedecorator now takes its dependencies as a rest parameter instead of an array (e.g.@observe('foo', 'bar')instead of@observe(['foo', 'bar'])). - [BREAKING] Decorators are now located at
polymer-decorators.jsinstead ofglobal.js(same for corresponding.d.tsfile).
- Added
observerandcomputedproperties to the@propertydecorator options. - Added
@listendecorator andDeclarativeEventListenersmixin. - Fixed bug where use of
Polymer.mixinBehaviorswith@propertyor@computedwould throw an exception relating to the definition of the element's "properties" property.
- Metadata Reflection polyfill is no longer a bower dependency.
- Initial release.