From acf331432041bdbf0b4dbb14d32086a7812828a1 Mon Sep 17 00:00:00 2001 From: Rob Eisenberg Date: Mon, 9 Nov 2015 23:01:21 -0500 Subject: [PATCH] chore(all): prepare release 0.10.0 --- bower.json | 2 +- dist/amd/aurelia-metadata.d.ts | 2 +- dist/aurelia-metadata.d.ts | 2 +- dist/commonjs/aurelia-metadata.d.ts | 2 +- dist/es6/aurelia-metadata.d.ts | 2 +- dist/system/aurelia-metadata.d.ts | 2 +- doc/CHANGELOG.md | 15 + doc/api.json | 1138 +-------------------------- package.json | 2 +- 9 files changed, 23 insertions(+), 1144 deletions(-) diff --git a/bower.json b/bower.json index 2af08ca..fda981e 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "aurelia-metadata", - "version": "0.9.0", + "version": "0.10.0", "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 5eaa0b2..fa8bce1 100644 --- a/dist/amd/aurelia-metadata.d.ts +++ b/dist/amd/aurelia-metadata.d.ts @@ -105,7 +105,7 @@ declare module 'aurelia-metadata' { * Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016. * @param rest The decorators to apply. */ - export function decorators(...rest: any[]): DecoratorApplicator; + export function decorators(...rest: Function[]): DecoratorApplicator; /** * Decorator: Enables marking methods as deprecated. diff --git a/dist/aurelia-metadata.d.ts b/dist/aurelia-metadata.d.ts index 5eaa0b2..fa8bce1 100644 --- a/dist/aurelia-metadata.d.ts +++ b/dist/aurelia-metadata.d.ts @@ -105,7 +105,7 @@ declare module 'aurelia-metadata' { * Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016. * @param rest The decorators to apply. */ - export function decorators(...rest: any[]): DecoratorApplicator; + export function decorators(...rest: Function[]): DecoratorApplicator; /** * Decorator: Enables marking methods as deprecated. diff --git a/dist/commonjs/aurelia-metadata.d.ts b/dist/commonjs/aurelia-metadata.d.ts index 5eaa0b2..fa8bce1 100644 --- a/dist/commonjs/aurelia-metadata.d.ts +++ b/dist/commonjs/aurelia-metadata.d.ts @@ -105,7 +105,7 @@ declare module 'aurelia-metadata' { * Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016. * @param rest The decorators to apply. */ - export function decorators(...rest: any[]): DecoratorApplicator; + export function decorators(...rest: Function[]): DecoratorApplicator; /** * Decorator: Enables marking methods as deprecated. diff --git a/dist/es6/aurelia-metadata.d.ts b/dist/es6/aurelia-metadata.d.ts index 5eaa0b2..fa8bce1 100644 --- a/dist/es6/aurelia-metadata.d.ts +++ b/dist/es6/aurelia-metadata.d.ts @@ -105,7 +105,7 @@ declare module 'aurelia-metadata' { * Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016. * @param rest The decorators to apply. */ - export function decorators(...rest: any[]): DecoratorApplicator; + export function decorators(...rest: Function[]): DecoratorApplicator; /** * Decorator: Enables marking methods as deprecated. diff --git a/dist/system/aurelia-metadata.d.ts b/dist/system/aurelia-metadata.d.ts index 5eaa0b2..fa8bce1 100644 --- a/dist/system/aurelia-metadata.d.ts +++ b/dist/system/aurelia-metadata.d.ts @@ -105,7 +105,7 @@ declare module 'aurelia-metadata' { * Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016. * @param rest The decorators to apply. */ - export function decorators(...rest: any[]): DecoratorApplicator; + export function decorators(...rest: Function[]): DecoratorApplicator; /** * Decorator: Enables marking methods as deprecated. diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 6fd4fb1..2f3eb46 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,18 @@ +## 0.10.0 (2015-11-09) + + +#### Bug Fixes + +* **decorators:** remove generics causing the build to fail ([88067ab4](https://github.com/aurelia/metadata/commit/88067ab4d52b9d8d8b8888a78cd92edd5e0f197c)) +* **eslintrc:** linting configuration ([86ee6498](https://github.com/aurelia/metadata/commit/86ee6498b26565dac53114d64ab42cab1cbbf44a)) +* **protocol:** make decorates work with any object type ([dd64b951](https://github.com/aurelia/metadata/commit/dd64b951f3589573a418ab138046be08ebdc5220)) + + +#### Features + +* **all:** new decorators, mixin, protocol and deprecated; new way for ES5/6 to apply decor ([b0c2cd4c](https://github.com/aurelia/metadata/commit/b0c2cd4c018dd5deed22e396cd50b468e633751d)) + + ## 0.9.0 (2015-10-13) diff --git a/doc/api.json b/doc/api.json index a61f129..73b8901 100644 --- a/doc/api.json +++ b/doc/api.json @@ -1,1137 +1 @@ -{ - "id": 2, - "name": "\"aurelia-metadata\"", - "kind": 2, - "kindString": "Module", - "flags": {}, - "children": [ - { - "id": 45, - "name": "Origin", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "A metadata annotation that describes the origin module of the function to which it's attached." - }, - "children": [ - { - "id": 48, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Creates an instance of Origin metadata." - }, - "signatures": [ - { - "id": 49, - "name": "new Origin", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "comment": { - "shortText": "Creates an instance of Origin metadata." - }, - "parameters": [ - { - "id": 50, - "name": "moduleId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The id of the module from which the item originated." - }, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 51, - "name": "moduleMember", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The member name of the export on the module object from which the item originated.\n" - }, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Origin", - "id": 45, - "moduleName": "\"aurelia-metadata\"" - } - } - ] - }, - { - "id": 46, - "name": "moduleId", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The id of the module from which the item originated." - }, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 47, - "name": "moduleMember", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The member name of the export on the module object from which the item originated." - }, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 52, - "name": "get", - "kind": 2048, - "kindString": "Method", - "flags": { - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 53, - "name": "get", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Get the Origin metadata for the specified function.", - "returns": "Returns the Origin metadata.\n" - }, - "parameters": [ - { - "id": 54, - "name": "fn", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The function to inspect for Origin metadata." - }, - "type": { - "type": "reference", - "name": "Function" - } - } - ], - "type": { - "type": "reference", - "name": "Origin", - "id": 45, - "moduleName": "\"aurelia-metadata\"" - } - } - ] - }, - { - "id": 55, - "name": "set", - "kind": 2048, - "kindString": "Method", - "flags": { - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 56, - "name": "set", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Set the Origin metadata for the specified function.", - "returns": "Returns the Origin metadata.\n" - }, - "parameters": [ - { - "id": 57, - "name": "fn", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "shortText": "The Origin metadata to store on the function." - }, - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 58, - "name": "origin", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Origin", - "id": 45, - "moduleName": "\"aurelia-metadata\"" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 48 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 46, - 47 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 52, - 55 - ] - } - ] - }, - { - "id": 29, - "name": "DecoratorApplicator", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "An object capable of applying it's captured decorators to a target." - }, - "children": [ - { - "id": 30, - "name": "on", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 31, - "name": "on", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 32, - "name": "target", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - }, - { - "id": 33, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 34, - "name": "descriptor", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "Object" - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 30 - ] - } - ] - }, - { - "id": 35, - "name": "DeprecatedOptions", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Options that control how the deprected decorator should function at runtime." - }, - "children": [ - { - "id": 37, - "name": "error", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Specifies whether or not the deprecation should throw an error." - }, - "type": { - "type": "instrinct", - "name": "boolean" - } - }, - { - "id": 36, - "name": "message", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Specifies a custom deprecation message." - }, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 37, - 36 - ] - } - ] - }, - { - "id": 3, - "name": "MetadataType", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Helpers for working with metadata on functions." - }, - "children": [ - { - "id": 5, - "name": "paramTypes", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The metadata key representing parameter type information." - }, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 6, - "name": "properties", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The metadata key representing property information." - }, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 4, - "name": "resource", - "kind": 1024, - "kindString": "Property", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "The metadata key representing pluggable resources." - }, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 17, - "name": "define", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 18, - "name": "define", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 19, - "name": "metadataKey", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 20, - "name": "metadataValue", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Object" - } - }, - { - "id": 21, - "name": "target", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 22, - "name": "targetKey", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 7, - "name": "get", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 8, - "name": "get", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 9, - "name": "metadataKey", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 10, - "name": "target", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 11, - "name": "targetKey", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Object" - } - } - ] - }, - { - "id": 23, - "name": "getOrCreateOwn", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 24, - "name": "getOrCreateOwn", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 25, - "name": "metadataKey", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 26, - "name": "Type", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 27, - "name": "target", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 28, - "name": "targetKey", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Object" - } - } - ] - }, - { - "id": 12, - "name": "getOwn", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 13, - "name": "getOwn", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 14, - "name": "metadataKey", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 15, - "name": "target", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Function" - } - }, - { - "id": 16, - "name": "targetKey", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Object" - } - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 5, - 6, - 4 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 17, - 7, - 23, - 12 - ] - } - ] - }, - { - "id": 38, - "name": "ProtocolOptions", - "kind": 256, - "kindString": "Interface", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Options used during protocol creation." - }, - "children": [ - { - "id": 42, - "name": "compose", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 43, - "name": "compose", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 44, - "name": "target", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "instrinct", - "name": "void" - } - } - ] - }, - { - "id": 39, - "name": "validate", - "kind": 2048, - "kindString": "Method", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 40, - "name": "validate", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 41, - "name": "target", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "instrinct", - "name": "string" - }, - { - "type": "instrinct", - "name": "boolean" - } - ] - } - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 42, - 39 - ] - } - ] - }, - { - "id": 59, - "name": "metadata", - "kind": 32, - "kindString": "Variable", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Provides helpers for working with metadata." - }, - "type": { - "type": "reference", - "name": "MetadataType", - "id": 3, - "moduleName": "\"aurelia-metadata\"" - } - }, - { - "id": 60, - "name": "decorators", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 61, - "name": "decorators", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016." - }, - "parameters": [ - { - "id": 62, - "name": "rest", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isRest": true - }, - "comment": { - "text": "The decorators to apply.\n" - }, - "type": { - "type": "instrinct", - "isArray": true, - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "DecoratorApplicator", - "id": 29, - "moduleName": "\"aurelia-metadata\"" - } - } - ] - }, - { - "id": 63, - "name": "deprecated", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 64, - "name": "deprecated", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Decorator: Enables marking methods as deprecated." - }, - "parameters": [ - { - "id": 65, - "name": "optionsOrTarget", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "text": "Options for how the deprected decorator should function at runtime.\n" - }, - "type": { - "type": "reference", - "name": "DeprecatedOptions", - "id": 35, - "moduleName": "\"aurelia-metadata\"" - } - }, - { - "id": 66, - "name": "maybeKey", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 67, - "name": "maybeDescriptor", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "Object" - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - }, - { - "id": 68, - "name": "mixin", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 69, - "name": "mixin", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Decorator: Enables mixing behaior into a class." - }, - "parameters": [ - { - "id": 70, - "name": "behavior", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "An object with keys for each method to mix into the target class.\n" - }, - "type": { - "type": "reference", - "name": "Object" - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - }, - { - "id": 71, - "name": "protocol", - "kind": 64, - "kindString": "Function", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 72, - "name": "protocol", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Decorator: Creates a protocol." - }, - "parameters": [ - { - "id": 73, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "The name of the protocol." - }, - "type": { - "type": "instrinct", - "name": "string" - } - }, - { - "id": 74, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "comment": { - "text": "The validation function or options object used in configuring the protocol.\n" - }, - "type": { - "type": "union", - "types": [ - { - "type": "reflection", - "declaration": { - "id": 75, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 76, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 77, - "name": "target", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "instrinct", - "name": "any" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "instrinct", - "name": "string" - }, - { - "type": "instrinct", - "name": "boolean" - } - ] - } - } - ] - } - }, - { - "type": "reference", - "name": "ProtocolOptions", - "id": 38 - } - ] - } - } - ], - "type": { - "type": "instrinct", - "name": "any" - } - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 45 - ] - }, - { - "title": "Interfaces", - "kind": 256, - "children": [ - 29, - 35, - 3, - 38 - ] - }, - { - "title": "Variables", - "kind": 32, - "children": [ - 59 - ] - }, - { - "title": "Functions", - "kind": 64, - "children": [ - 60, - 63, - 68, - 71 - ] - } - ] -} \ No newline at end of file +{"id":2,"name":"\"aurelia-metadata\"","kind":2,"kindString":"Module","flags":{},"children":[{"id":45,"name":"Origin","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"A metadata annotation that describes the origin module of the function to which it's attached."},"children":[{"id":48,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of Origin metadata."},"signatures":[{"id":49,"name":"new Origin","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of Origin metadata."},"parameters":[{"id":50,"name":"moduleId","kind":32768,"kindString":"Parameter","flags":{},"comment":{"shortText":"The id of the module from which the item originated."},"type":{"type":"instrinct","name":"string"}},{"id":51,"name":"moduleMember","kind":32768,"kindString":"Parameter","flags":{},"comment":{"shortText":"The member name of the export on the module object from which the item originated.\n"},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"Origin","id":45}}]},{"id":46,"name":"moduleId","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The id of the module from which the item originated."},"type":{"type":"instrinct","name":"string"}},{"id":47,"name":"moduleMember","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The member name of the export on the module object from which the item originated."},"type":{"type":"instrinct","name":"string"}},{"id":52,"name":"get","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":53,"name":"get","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Get the Origin metadata for the specified function.","returns":"Returns the Origin metadata.\n"},"parameters":[{"id":54,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The function to inspect for Origin metadata."},"type":{"type":"reference","name":"Function"}}],"type":{"type":"reference","name":"Origin","id":45}}]},{"id":55,"name":"set","kind":2048,"kindString":"Method","flags":{"isStatic":true,"isExported":true},"signatures":[{"id":56,"name":"set","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Set the Origin metadata for the specified function.","returns":"Returns the Origin metadata.\n"},"parameters":[{"id":57,"name":"fn","kind":32768,"kindString":"Parameter","flags":{},"comment":{"shortText":"The Origin metadata to store on the function."},"type":{"type":"reference","name":"Function"}},{"id":58,"name":"origin","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Origin","id":45}}],"type":{"type":"instrinct","name":"void"}}]}],"groups":[{"title":"Constructors","kind":512,"children":[48]},{"title":"Properties","kind":1024,"children":[46,47]},{"title":"Methods","kind":2048,"children":[52,55]}]},{"id":29,"name":"DecoratorApplicator","kind":256,"kindString":"Interface","flags":{"isExported":true},"comment":{"shortText":"An object capable of applying it's captured decorators to a target."},"children":[{"id":30,"name":"on","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":31,"name":"on","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":32,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}},{"id":33,"name":"key","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"string"}},{"id":34,"name":"descriptor","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reference","name":"Object"}}],"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Methods","kind":2048,"children":[30]}]},{"id":35,"name":"DeprecatedOptions","kind":256,"kindString":"Interface","flags":{"isExported":true},"comment":{"shortText":"Options that control how the deprected decorator should function at runtime."},"children":[{"id":37,"name":"error","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Specifies whether or not the deprecation should throw an error."},"type":{"type":"instrinct","name":"boolean"}},{"id":36,"name":"message","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Specifies a custom deprecation message."},"type":{"type":"instrinct","name":"string"}}],"groups":[{"title":"Properties","kind":1024,"children":[37,36]}]},{"id":3,"name":"MetadataType","kind":256,"kindString":"Interface","flags":{"isExported":true},"comment":{"shortText":"Helpers for working with metadata on functions."},"children":[{"id":5,"name":"paramTypes","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The metadata key representing parameter type information."},"type":{"type":"instrinct","name":"string"}},{"id":6,"name":"properties","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The metadata key representing property information."},"type":{"type":"instrinct","name":"string"}},{"id":4,"name":"resource","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The metadata key representing pluggable resources."},"type":{"type":"instrinct","name":"string"}},{"id":17,"name":"define","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":18,"name":"define","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":19,"name":"metadataKey","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}},{"id":20,"name":"metadataValue","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Object"}},{"id":21,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Function"}},{"id":22,"name":"targetKey","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"instrinct","name":"void"}}]},{"id":7,"name":"get","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":8,"name":"get","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":9,"name":"metadataKey","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}},{"id":10,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Function"}},{"id":11,"name":"targetKey","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"Object"}}]},{"id":23,"name":"getOrCreateOwn","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":24,"name":"getOrCreateOwn","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":25,"name":"metadataKey","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}},{"id":26,"name":"Type","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Function"}},{"id":27,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Function"}},{"id":28,"name":"targetKey","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"Object"}}]},{"id":12,"name":"getOwn","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":13,"name":"getOwn","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":14,"name":"metadataKey","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}},{"id":15,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"reference","name":"Function"}},{"id":16,"name":"targetKey","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"Object"}}]}],"groups":[{"title":"Properties","kind":1024,"children":[5,6,4]},{"title":"Methods","kind":2048,"children":[17,7,23,12]}]},{"id":38,"name":"ProtocolOptions","kind":256,"kindString":"Interface","flags":{"isExported":true},"comment":{"shortText":"Options used during protocol creation."},"children":[{"id":42,"name":"compose","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":43,"name":"compose","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":44,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"instrinct","name":"void"}}]},{"id":39,"name":"validate","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":40,"name":"validate","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":41,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"instrinct","name":"boolean"}]}}]}],"groups":[{"title":"Methods","kind":2048,"children":[42,39]}]},{"id":59,"name":"metadata","kind":32,"kindString":"Variable","flags":{"isExported":true},"comment":{"shortText":"Provides helpers for working with metadata."},"type":{"type":"reference","name":"MetadataType","id":3}},{"id":60,"name":"decorators","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":61,"name":"decorators","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Enables applying decorators, particularly for use when there is no syntax support in the language, such as with ES5 and ES2016."},"parameters":[{"id":62,"name":"rest","kind":32768,"kindString":"Parameter","flags":{"isRest":true},"comment":{"text":"The decorators to apply.\n"},"type":{"type":"reference","isArray":true,"name":"Function"}}],"type":{"type":"reference","name":"DecoratorApplicator","id":29}}]},{"id":63,"name":"deprecated","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":64,"name":"deprecated","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Decorator: Enables marking methods as deprecated."},"parameters":[{"id":65,"name":"optionsOrTarget","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Options for how the deprected decorator should function at runtime.\n"},"type":{"type":"reference","name":"DeprecatedOptions","id":35}},{"id":66,"name":"maybeKey","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"instrinct","name":"string"}},{"id":67,"name":"maybeDescriptor","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"type":{"type":"reference","name":"Object"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":68,"name":"mixin","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":69,"name":"mixin","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Decorator: Enables mixing behaior into a class."},"parameters":[{"id":70,"name":"behavior","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"An object with keys for each method to mix into the target class.\n"},"type":{"type":"reference","name":"Object"}}],"type":{"type":"instrinct","name":"any"}}]},{"id":71,"name":"protocol","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":72,"name":"protocol","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Decorator: Creates a protocol."},"parameters":[{"id":73,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The name of the protocol."},"type":{"type":"instrinct","name":"string"}},{"id":74,"name":"options","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"The validation function or options object used in configuring the protocol.\n"},"type":{"type":"union","types":[{"type":"reflection","declaration":{"id":75,"name":"__type","kind":65536,"kindString":"Type literal","flags":{},"signatures":[{"id":76,"name":"__call","kind":4096,"kindString":"Call signature","flags":{},"parameters":[{"id":77,"name":"target","kind":32768,"kindString":"Parameter","flags":{},"type":{"type":"instrinct","name":"any"}}],"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"instrinct","name":"boolean"}]}}]}},{"type":"reference","name":"ProtocolOptions","id":38}]}}],"type":{"type":"instrinct","name":"any"}}]}],"groups":[{"title":"Classes","kind":128,"children":[45]},{"title":"Interfaces","kind":256,"children":[29,35,3,38]},{"title":"Variables","kind":32,"children":[59]},{"title":"Functions","kind":64,"children":[60,63,68,71]}]} \ No newline at end of file diff --git a/package.json b/package.json index ed3c773..ffdf568 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-metadata", - "version": "0.9.0", + "version": "0.10.0", "description": "Utilities for reading and writing the metadata of JavaScript functions.", "keywords": [ "aurelia",