Skip to content

Commit

Permalink
chore(all): prepare release 0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Nov 11, 2015
1 parent dd35c4f commit d302651
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-metadata",
"version": "0.10.0",
"version": "0.10.1",
"description": "Utilities for reading and writing the metadata of JavaScript functions.",
"keywords": [
"aurelia",
Expand Down
9 changes: 5 additions & 4 deletions dist/aurelia-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ interface DeprecatedOptions {
* Decorator: Enables marking methods as deprecated.
* @param optionsOrTarget Options for how the deprected decorator should function at runtime.
*/
export function deprecated(optionsOrTarget?: DeprecatedOptions, maybeKey?: string, maybeDescriptor?: Object) {
export function deprecated(optionsOrTarget?: DeprecatedOptions, maybeKey?: string, maybeDescriptor?: Object): any {
function decorator(target, key, descriptor) {
const methodSignature = `${target.constructor.name}#${key}`;
let options = maybeKey ? {} : optionsOrTarget || {};
Expand Down Expand Up @@ -274,7 +274,7 @@ export function deprecated(optionsOrTarget?: DeprecatedOptions, maybeKey?: strin
* Decorator: Enables mixing behaior into a class.
* @param behavior An object with keys for each method to mix into the target class.
*/
export function mixin(behavior: Object) {
export function mixin(behavior: Object): any {
const instanceKeys = Object.keys(behavior);
function _mixin(possible) {
Expand Down Expand Up @@ -356,7 +356,7 @@ interface ProtocolOptions {
* @param name The name of the protocol.
* @param options The validation function or options object used in configuring the protocol.
*/
export function protocol(name: string, options?: ((target: any) => string | boolean) | ProtocolOptions) {
export function protocol(name: string, options?: ((target: any) => string | boolean) | ProtocolOptions): any {
options = ensureProtocolOptions(options);

let result = function(target) {
Expand Down Expand Up @@ -385,8 +385,9 @@ export function protocol(name: string, options?: ((target: any) => string | bool
* Creates a protocol decorator.
* @param name The name of the protocol.
* @param options The validation function or options object used in configuring the protocol.
* @return The protocol decorator;
*/
protocol.create = function(name: string, options?: ((target: any) => string | boolean) | ProtocolOptions) {
protocol.create = function(name: string, options?: ((target: any) => string | boolean) | ProtocolOptions): Function {
options = ensureProtocolOptions(options);
let hidden = 'protocol:' + name;
let result = function(target) {
Expand Down
9 changes: 5 additions & 4 deletions dist/es6/aurelia-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ interface DeprecatedOptions {
* Decorator: Enables marking methods as deprecated.
* @param optionsOrTarget Options for how the deprected decorator should function at runtime.
*/
export function deprecated(optionsOrTarget?: DeprecatedOptions, maybeKey?: string, maybeDescriptor?: Object) {
export function deprecated(optionsOrTarget?: DeprecatedOptions, maybeKey?: string, maybeDescriptor?: Object): any {
function decorator(target, key, descriptor) {
const methodSignature = `${target.constructor.name}#${key}`;
let options = maybeKey ? {} : optionsOrTarget || {};
Expand Down Expand Up @@ -274,7 +274,7 @@ export function deprecated(optionsOrTarget?: DeprecatedOptions, maybeKey?: strin
* Decorator: Enables mixing behaior into a class.
* @param behavior An object with keys for each method to mix into the target class.
*/
export function mixin(behavior: Object) {
export function mixin(behavior: Object): any {
const instanceKeys = Object.keys(behavior);
function _mixin(possible) {
Expand Down Expand Up @@ -356,7 +356,7 @@ interface ProtocolOptions {
* @param name The name of the protocol.
* @param options The validation function or options object used in configuring the protocol.
*/
export function protocol(name: string, options?: ((target: any) => string | boolean) | ProtocolOptions) {
export function protocol(name: string, options?: ((target: any) => string | boolean) | ProtocolOptions): any {
options = ensureProtocolOptions(options);

let result = function(target) {
Expand Down Expand Up @@ -385,8 +385,9 @@ export function protocol(name: string, options?: ((target: any) => string | bool
* Creates a protocol decorator.
* @param name The name of the protocol.
* @param options The validation function or options object used in configuring the protocol.
* @return The protocol decorator;
*/
protocol.create = function(name: string, options?: ((target: any) => string | boolean) | ProtocolOptions) {
protocol.create = function(name: string, options?: ((target: any) => string | boolean) | ProtocolOptions): Function {
options = ensureProtocolOptions(options);
let hidden = 'protocol:' + name;
let result = function(target) {
Expand Down
8 changes: 8 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 0.10.1 (2015-11-11)


#### Bug Fixes

* **all:** improve TS happiness for decorators ([dd35c4fd](https://github.com/aurelia/metadata/commit/dd35c4fd1ef089764bdbacde8380aa4d47e28d2c))


## 0.10.0 (2015-11-09)


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": "aurelia-metadata",
"version": "0.10.0",
"version": "0.10.1",
"description": "Utilities for reading and writing the metadata of JavaScript functions.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit d302651

Please sign in to comment.