From 96c4c332fe4669e11b7570d3e8996cced9cf9042 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Tue, 10 May 2016 11:49:14 -0400 Subject: [PATCH] chore(all): prepare release 1.0.0-beta.1.2.1 --- bower.json | 2 +- dist/amd/aurelia-metadata.d.ts | 8 ++++---- dist/aurelia-metadata.d.ts | 8 ++++---- dist/aurelia-metadata.js | 16 ++++++++-------- dist/commonjs/aurelia-metadata.d.ts | 8 ++++---- dist/es2015/aurelia-metadata.d.ts | 8 ++++---- dist/system/aurelia-metadata.d.ts | 8 ++++---- doc/CHANGELOG.md | 8 ++++++++ doc/api.json | 16 ++++++++++++---- package.json | 2 +- 10 files changed, 50 insertions(+), 34 deletions(-) diff --git a/bower.json b/bower.json index 67e72cd..02e32a8 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-metadata", - "version": "1.0.0-beta.1.2.0", + "version": "1.0.0-beta.1.2.1", "description": "Utilities for reading and writing the metadata of JavaScript functions.", "keywords": [ "aurelia", diff --git a/dist/amd/aurelia-metadata.d.ts b/dist/amd/aurelia-metadata.d.ts index c35b144..72b5a18 100644 --- a/dist/amd/aurelia-metadata.d.ts +++ b/dist/amd/aurelia-metadata.d.ts @@ -29,7 +29,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup the metadata on. * @param targetKey The member on the target to lookup the metadata on. */ - get(metadataKey: string, target: Function, targetKey: string): Object; + get(metadataKey: string, target: Function, targetKey?: string): Object; /** * Gets metadata specified by a key on a target, only searching the own instance. @@ -37,7 +37,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup the metadata on. * @param targetKey The member on the target to lookup the metadata on. */ - getOwn(metadataKey: string, target: Function, targetKey: string): Object; + getOwn(metadataKey: string, target: Function, targetKey?: string): Object; /** * Defines metadata specified by a key on a target. @@ -45,7 +45,7 @@ declare module 'aurelia-metadata' { * @param target The target to set the metadata on. * @param targetKey The member on the target to set the metadata on. */ - define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void; + define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void; /** * Gets metadata specified by a key on a target, or creates an instance of the specified metadata if not found. @@ -54,7 +54,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup or create the metadata on. * @param targetKey The member on the target to lookup or create the metadata on. */ - getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object; + getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object; } /** diff --git a/dist/aurelia-metadata.d.ts b/dist/aurelia-metadata.d.ts index c35b144..72b5a18 100644 --- a/dist/aurelia-metadata.d.ts +++ b/dist/aurelia-metadata.d.ts @@ -29,7 +29,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup the metadata on. * @param targetKey The member on the target to lookup the metadata on. */ - get(metadataKey: string, target: Function, targetKey: string): Object; + get(metadataKey: string, target: Function, targetKey?: string): Object; /** * Gets metadata specified by a key on a target, only searching the own instance. @@ -37,7 +37,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup the metadata on. * @param targetKey The member on the target to lookup the metadata on. */ - getOwn(metadataKey: string, target: Function, targetKey: string): Object; + getOwn(metadataKey: string, target: Function, targetKey?: string): Object; /** * Defines metadata specified by a key on a target. @@ -45,7 +45,7 @@ declare module 'aurelia-metadata' { * @param target The target to set the metadata on. * @param targetKey The member on the target to set the metadata on. */ - define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void; + define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void; /** * Gets metadata specified by a key on a target, or creates an instance of the specified metadata if not found. @@ -54,7 +54,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup or create the metadata on. * @param targetKey The member on the target to lookup or create the metadata on. */ - getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object; + getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object; } /** diff --git a/dist/aurelia-metadata.js b/dist/aurelia-metadata.js index 16b7ae3..8941ddf 100644 --- a/dist/aurelia-metadata.js +++ b/dist/aurelia-metadata.js @@ -22,21 +22,21 @@ interface MetadataType { * @param target The target to lookup the metadata on. * @param targetKey The member on the target to lookup the metadata on. */ - get(metadataKey: string, target: Function, targetKey: string): Object; + get(metadataKey: string, target: Function, targetKey?: string): Object; /** * Gets metadata specified by a key on a target, only searching the own instance. * @param metadataKey The key for the metadata to lookup. * @param target The target to lookup the metadata on. * @param targetKey The member on the target to lookup the metadata on. */ - getOwn(metadataKey: string, target: Function, targetKey: string): Object; + getOwn(metadataKey: string, target: Function, targetKey?: string): Object; /** * Defines metadata specified by a key on a target. * @param metadataKey The key for the metadata to define. * @param target The target to set the metadata on. * @param targetKey The member on the target to set the metadata on. */ - define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void; + define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void; /** * Gets metadata specified by a key on a target, or creates an instance of the specified metadata if not found. * @param metadataKey The key for the metadata to lookup or create. @@ -44,7 +44,7 @@ interface MetadataType { * @param target The target to lookup or create the metadata on. * @param targetKey The member on the target to lookup or create the metadata on. */ - getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object; + getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object; } /** @@ -54,19 +54,19 @@ export const metadata: MetadataType = { resource: 'aurelia:resource', paramTypes: 'design:paramtypes', properties: 'design:properties', - get(metadataKey: string, target: Function, targetKey: string): Object { + get(metadataKey: string, target: Function, targetKey?: string): Object { if (!target) { return undefined; } let result = metadata.getOwn(metadataKey, target, targetKey); return result === undefined ? metadata.get(metadataKey, Object.getPrototypeOf(target), targetKey) : result; }, - getOwn(metadataKey: string, target: Function, targetKey: string): Object { + getOwn(metadataKey: string, target: Function, targetKey?: string): Object { if (!target) { return undefined; } return Reflect.getOwnMetadata(metadataKey, target, targetKey); }, - define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void { + define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void { Reflect.defineMetadata(metadataKey, metadataValue, target, targetKey); }, - getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object { + getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object { let result = metadata.getOwn(metadataKey, target, targetKey); if (result === undefined) { diff --git a/dist/commonjs/aurelia-metadata.d.ts b/dist/commonjs/aurelia-metadata.d.ts index c35b144..72b5a18 100644 --- a/dist/commonjs/aurelia-metadata.d.ts +++ b/dist/commonjs/aurelia-metadata.d.ts @@ -29,7 +29,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup the metadata on. * @param targetKey The member on the target to lookup the metadata on. */ - get(metadataKey: string, target: Function, targetKey: string): Object; + get(metadataKey: string, target: Function, targetKey?: string): Object; /** * Gets metadata specified by a key on a target, only searching the own instance. @@ -37,7 +37,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup the metadata on. * @param targetKey The member on the target to lookup the metadata on. */ - getOwn(metadataKey: string, target: Function, targetKey: string): Object; + getOwn(metadataKey: string, target: Function, targetKey?: string): Object; /** * Defines metadata specified by a key on a target. @@ -45,7 +45,7 @@ declare module 'aurelia-metadata' { * @param target The target to set the metadata on. * @param targetKey The member on the target to set the metadata on. */ - define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void; + define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void; /** * Gets metadata specified by a key on a target, or creates an instance of the specified metadata if not found. @@ -54,7 +54,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup or create the metadata on. * @param targetKey The member on the target to lookup or create the metadata on. */ - getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object; + getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object; } /** diff --git a/dist/es2015/aurelia-metadata.d.ts b/dist/es2015/aurelia-metadata.d.ts index c35b144..72b5a18 100644 --- a/dist/es2015/aurelia-metadata.d.ts +++ b/dist/es2015/aurelia-metadata.d.ts @@ -29,7 +29,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup the metadata on. * @param targetKey The member on the target to lookup the metadata on. */ - get(metadataKey: string, target: Function, targetKey: string): Object; + get(metadataKey: string, target: Function, targetKey?: string): Object; /** * Gets metadata specified by a key on a target, only searching the own instance. @@ -37,7 +37,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup the metadata on. * @param targetKey The member on the target to lookup the metadata on. */ - getOwn(metadataKey: string, target: Function, targetKey: string): Object; + getOwn(metadataKey: string, target: Function, targetKey?: string): Object; /** * Defines metadata specified by a key on a target. @@ -45,7 +45,7 @@ declare module 'aurelia-metadata' { * @param target The target to set the metadata on. * @param targetKey The member on the target to set the metadata on. */ - define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void; + define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void; /** * Gets metadata specified by a key on a target, or creates an instance of the specified metadata if not found. @@ -54,7 +54,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup or create the metadata on. * @param targetKey The member on the target to lookup or create the metadata on. */ - getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object; + getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object; } /** diff --git a/dist/system/aurelia-metadata.d.ts b/dist/system/aurelia-metadata.d.ts index c35b144..72b5a18 100644 --- a/dist/system/aurelia-metadata.d.ts +++ b/dist/system/aurelia-metadata.d.ts @@ -29,7 +29,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup the metadata on. * @param targetKey The member on the target to lookup the metadata on. */ - get(metadataKey: string, target: Function, targetKey: string): Object; + get(metadataKey: string, target: Function, targetKey?: string): Object; /** * Gets metadata specified by a key on a target, only searching the own instance. @@ -37,7 +37,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup the metadata on. * @param targetKey The member on the target to lookup the metadata on. */ - getOwn(metadataKey: string, target: Function, targetKey: string): Object; + getOwn(metadataKey: string, target: Function, targetKey?: string): Object; /** * Defines metadata specified by a key on a target. @@ -45,7 +45,7 @@ declare module 'aurelia-metadata' { * @param target The target to set the metadata on. * @param targetKey The member on the target to set the metadata on. */ - define(metadataKey: string, metadataValue: Object, target: Function, targetKey: string): void; + define(metadataKey: string, metadataValue: Object, target: Function, targetKey?: string): void; /** * Gets metadata specified by a key on a target, or creates an instance of the specified metadata if not found. @@ -54,7 +54,7 @@ declare module 'aurelia-metadata' { * @param target The target to lookup or create the metadata on. * @param targetKey The member on the target to lookup or create the metadata on. */ - getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey: string): Object; + getOrCreateOwn(metadataKey: string, Type: Function, target: Function, targetKey?: string): Object; } /** diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 7de6f36..290b176 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,11 @@ +### 1.0.0-beta.1.2.1 (2016-05-10) + + +#### Bug Fixes + +* **metadata:** targetKey in Reflect.defineMetadata is optional ([fa861f7c](https://github.com/aurelia/metadata/commit/fa861f7c8fd867331b607021ec3b0e871262990f)) + + ### 1.0.0-beta.1.2.0 (2016-03-22) * Update to Babel 6 diff --git a/doc/api.json b/doc/api.json index 8b5489b..fc54e0b 100644 --- a/doc/api.json +++ b/doc/api.json @@ -509,7 +509,9 @@ "name": "targetKey", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, "comment": { "text": "The member on the target to set the metadata on.\n" }, @@ -578,7 +580,9 @@ "name": "targetKey", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, "comment": { "text": "The member on the target to lookup the metadata on.\n" }, @@ -661,7 +665,9 @@ "name": "targetKey", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, "comment": { "text": "The member on the target to lookup or create the metadata on.\n" }, @@ -730,7 +736,9 @@ "name": "targetKey", "kind": 32768, "kindString": "Parameter", - "flags": {}, + "flags": { + "isOptional": true + }, "comment": { "text": "The member on the target to lookup the metadata on.\n" }, diff --git a/package.json b/package.json index 54ace94..6709a35 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-metadata", - "version": "1.0.0-beta.1.2.0", + "version": "1.0.0-beta.1.2.1", "description": "Utilities for reading and writing the metadata of JavaScript functions.", "keywords": [ "aurelia",