Skip to content

Commit

Permalink
chore(all): prepare release 1.0.0-beta.1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed May 10, 2016
1 parent a290d81 commit 96c4c33
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 34 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": "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",
Expand Down
8 changes: 4 additions & 4 deletions dist/amd/aurelia-metadata.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ 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.
* @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.
Expand All @@ -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;
}

/**
Expand Down
8 changes: 4 additions & 4 deletions dist/aurelia-metadata.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ 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.
* @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.
Expand All @@ -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;
}

/**
Expand Down
16 changes: 8 additions & 8 deletions dist/aurelia-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,29 @@ 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.
* @param Type The type of metadata to create if existing metadata is not found.
* @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;
}

/**
Expand All @@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions dist/commonjs/aurelia-metadata.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ 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.
* @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.
Expand All @@ -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;
}

/**
Expand Down
8 changes: 4 additions & 4 deletions dist/es2015/aurelia-metadata.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ 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.
* @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.
Expand All @@ -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;
}

/**
Expand Down
8 changes: 4 additions & 4 deletions dist/system/aurelia-metadata.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ 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.
* @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.
Expand All @@ -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;
}

/**
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 @@
### 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
Expand Down
16 changes: 12 additions & 4 deletions doc/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
},
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": "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",
Expand Down

0 comments on commit 96c4c33

Please sign in to comment.