Skip to content

Commit

Permalink
Release 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks committed Jan 27, 2018
2 parents 8901f20 + e487a45 commit b1d8c9f
Show file tree
Hide file tree
Showing 10 changed files with 7,176 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
language: node_js
sudo: required
node_js:
- "node"
addons:
chrome: stable
firefox: latest
script:
- npm run test:setup
- cd test/integration && xvfb-run $(npm bin)/wct
- cd test/integration && $(npm bin)/wct
12 changes: 9 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
# Change Log

## [Unreleased]
<!-- ## [Unreleased] -->

## [1.0.2] - 2018-01-26
- Fix missing generated files from `1.0.1` release.

## [1.0.1] - 2018-01-26
- Fix malformed warning about missing type.

## [1.0.0] - 2018-01-10
- Generated typings for the `DeclarativeEventListeners` mixin are now available at `mixins/declarative-event-listeners.d.ts`.
- [BREAKING] The `@observe` decorator now takes its dependencies as a rest parameter instead of an array (e.g. `@observer('foo', 'bar')` instead of `@observer(['foo', 'bar'])`.
- [BREAKING] The `@observe` decorator 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.js` instead of `global.js` (same for corresponding `.d.ts` file).

## [0.1.2] - 2018-01-01
## [0.1.2] - 2018-01-04
- Added `observer` and `computed` properties to the `@property` decorator options.
- Added `@listen` decorator and `DeclarativeEventListeners` mixin.
- Fixed bug where use of `Polymer.mixinBehaviors` with `@property` or `@computed` would throw an exception relating to the definition of the element's "properties" property.
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ Define a custom element.
`is` class property is used. Also sets the `is` property on the class if not
already set.

This decorator automatically calls
[`customElements.define()`](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)
with your class, so you should not include your own call to that function.

```ts
@customElement('my-element')
class MyElement extends Polymer.Element {
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "polymer-decorators",
"homepage": "https://github.com/Polymer/polymer-decorators",
"version": "1.0.0",
"version": "1.0.2",
"authors": [
"The Polymer Project Authors"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polymer/decorators",
"version": "1.0.0",
"version": "1.0.2",
"description": "TypeScript decorators for Polymer 2.0",
"main": "lib/decorators.js",
"types": "lib/decorators.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion polymer-decorators.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function createProperty(proto, name, options) {
type = Reflect.getMetadata('design:type', proto, name);
}
else {
console.error('A type could not be found for ${propName}. ' +
console.error(`A type could not be found for ${name}. ` +
'Set a type or configure Metadata Reflection API support.');
}
if (!proto.constructor.hasOwnProperty('properties')) {
Expand Down
2 changes: 1 addition & 1 deletion src/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function createProperty(
type = Reflect.getMetadata('design:type', proto, name);
} else {
console.error(
'A type could not be found for ${propName}. ' +
`A type could not be found for ${name}. ` +
'Set a type or configure Metadata Reflection API support.');
}

Expand Down
Loading

0 comments on commit b1d8c9f

Please sign in to comment.