{"_id":"deprecated-decorator","_rev":"10-b426f4cc3077390b511bcc77e5e419ae","name":"deprecated-decorator","description":"A simple decorator for deprecated methods and properties.","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.0":{"name":"deprecated-decorator","version":"0.1.0","description":"A simple decorator for deprecated methods and properties.","main":"bld/index.js","typings":"bld/index.d.ts","scripts":{"build":"tsc","test":"node node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/vilic/deprecated-decorator.git"},"keywords":["deprecated","decorator"],"author":{"name":"vilicvane"},"license":"MIT","bugs":{"url":"https://github.com/vilic/deprecated-decorator/issues"},"homepage":"https://github.com/vilic/deprecated-decorator#readme","devDependencies":{"chai":"latest","mocha":"latest","sinon":"latest","source-map-support":"latest","typescript":"latest"},"gitHead":"2b0106625c38645013af23b9670ba1125770cec6","_id":"deprecated-decorator@0.1.0","_shasum":"a3eb6219bbb9622392cf140c3fa22ddf20ac1777","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"vilic","email":"i@vilic.info"},"maintainers":[{"name":"vilic","email":"i@vilic.info"}],"dist":{"shasum":"a3eb6219bbb9622392cf140c3fa22ddf20ac1777","tarball":"https://registry.npmjs.org/deprecated-decorator/-/deprecated-decorator-0.1.0.tgz","integrity":"sha512-6KH9XUIjFE+dsLqetQLVFxanfMQVelCnXciESsOh67VzOWQ2tLfFI5b/9ibpd8Q0aMDStzhycwNzG4kyU40RqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBnUt6n7Kge3gfzw+TRPSwhdXpxUS/3ylpHYu2Spl7LoAiEApmnhMW7n27jBm3DGd2viWo255ibEfceyNRvkpH9ywmM="}]},"directories":{}},"0.1.1":{"name":"deprecated-decorator","version":"0.1.1","description":"A simple decorator for deprecated methods and properties.","main":"bld/index.js","typings":"bld/index.d.ts","scripts":{"build":"tsc","test":"node node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/vilic/deprecated-decorator.git"},"keywords":["deprecated","decorator"],"author":{"name":"vilicvane"},"license":"MIT","bugs":{"url":"https://github.com/vilic/deprecated-decorator/issues"},"homepage":"https://github.com/vilic/deprecated-decorator#readme","devDependencies":{"chai":"latest","mocha":"latest","sinon":"latest","source-map-support":"latest","typescript":"latest"},"gitHead":"ee1e0fa41379e604731da99e16a6c2b8ccd3eb00","_id":"deprecated-decorator@0.1.1","_shasum":"aabd3a96e9956b409da2159e3eec88db723518bc","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"vilic","email":"i@vilic.info"},"maintainers":[{"name":"vilic","email":"i@vilic.info"}],"dist":{"shasum":"aabd3a96e9956b409da2159e3eec88db723518bc","tarball":"https://registry.npmjs.org/deprecated-decorator/-/deprecated-decorator-0.1.1.tgz","integrity":"sha512-QdD7BbHQa6RTl2A/rainvFtXZjVCEqRb5LdlhDif8y1/aZO9JEyvp7act6YjugAgsOFitdiHPO5fcXHeeHuKBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAQUC5DhnWmls2HsJnaDi9cp0wqkW7kmk+GwRgBHLwgxAiEApx1phFopWKGA2Y2Pw9s/wUl+By9tfbF6g8sCYN8AQMc="}]},"directories":{}},"0.1.2":{"name":"deprecated-decorator","version":"0.1.2","description":"A simple decorator for deprecated methods and properties.","main":"bld/index.js","typings":"bld/index.d.ts","scripts":{"build":"tsc","test":"node node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/vilic/deprecated-decorator.git"},"keywords":["deprecated","decorator"],"author":{"name":"vilicvane"},"license":"MIT","bugs":{"url":"https://github.com/vilic/deprecated-decorator/issues"},"homepage":"https://github.com/vilic/deprecated-decorator#readme","devDependencies":{"chai":"latest","mocha":"latest","sinon":"latest","source-map-support":"latest","typescript":"latest"},"gitHead":"03ee1a7d67c4cd5d48a6ecae6e06d8ff4af06c3b","_id":"deprecated-decorator@0.1.2","_shasum":"95dcfedac030355c460ede72336f6ae841d3cdda","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"vilic","email":"i@vilic.info"},"maintainers":[{"name":"vilic","email":"i@vilic.info"}],"dist":{"shasum":"95dcfedac030355c460ede72336f6ae841d3cdda","tarball":"https://registry.npmjs.org/deprecated-decorator/-/deprecated-decorator-0.1.2.tgz","integrity":"sha512-Kzafin8dMylQx9Eq3HYvwcFefCLmonwNMvCw+wySybRODCcRMx2dO+5b/9Y0qxQXUj2qwktu+JZm005i1pdz1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICpOvPUdSajN8/23DReFW/xyWqbgdpVFNZJquIIg39OIAiEAgDU9RbsPPF6wZTqlW/Na+h5maLoLLkEEeW0DeH3qnU4="}]},"directories":{}},"0.1.3":{"name":"deprecated-decorator","version":"0.1.3","description":"A simple decorator for deprecated methods and properties.","main":"bld/index.js","typings":"bld/index.d.ts","scripts":{"build":"tsc","test":"node node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/vilic/deprecated-decorator.git"},"keywords":["deprecated","decorator"],"author":{"name":"vilicvane"},"license":"MIT","bugs":{"url":"https://github.com/vilic/deprecated-decorator/issues"},"homepage":"https://github.com/vilic/deprecated-decorator#readme","devDependencies":{"chai":"latest","mocha":"latest","sinon":"latest","source-map-support":"latest","typescript":"latest"},"gitHead":"58706fe2825793c134e65a262efb5a99a6d3236e","_id":"deprecated-decorator@0.1.3","_shasum":"eee37c305557d00b09e43097d1a9bae1c30dfba2","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"vilic","email":"i@vilic.info"},"maintainers":[{"name":"vilic","email":"i@vilic.info"}],"dist":{"shasum":"eee37c305557d00b09e43097d1a9bae1c30dfba2","tarball":"https://registry.npmjs.org/deprecated-decorator/-/deprecated-decorator-0.1.3.tgz","integrity":"sha512-RF/1FGX03mGk375YTBDYYQKu/bsDyrBgpCfA8suV6lCV20ikJHK4u/kdqIE2yPBEZvMrZk/AKX2ehNwsMKM8Zw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICBxP5raUalYDN+AK2Xw1Z8wxPH/HnUtjBnXTm6+UBlOAiEAsZb2wY90MPNXQ7ajE9bWnG9hsO/kAO8BxPQLrghGUa0="}]},"directories":{}},"0.1.4":{"name":"deprecated-decorator","version":"0.1.4","description":"A simple decorator for deprecated methods and properties.","main":"bld/index.js","typings":"bld/index.d.ts","scripts":{"build":"tsc","test":"node node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/vilic/deprecated-decorator.git"},"keywords":["deprecated","decorator","typescript","babel","es7"],"author":{"name":"vilicvane"},"license":"MIT","bugs":{"url":"https://github.com/vilic/deprecated-decorator/issues"},"homepage":"https://github.com/vilic/deprecated-decorator#readme","devDependencies":{"chai":"latest","mocha":"latest","sinon":"latest","source-map-support":"latest","typescript":"latest"},"gitHead":"28a7e2407b3ee73ad5df2a6e03a7c072b5671333","_id":"deprecated-decorator@0.1.4","_shasum":"4648498a749f4d0ff9f3ab251f0b8c6c49fe9e3e","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"vilic","email":"i@vilic.info"},"maintainers":[{"name":"vilic","email":"i@vilic.info"}],"dist":{"shasum":"4648498a749f4d0ff9f3ab251f0b8c6c49fe9e3e","tarball":"https://registry.npmjs.org/deprecated-decorator/-/deprecated-decorator-0.1.4.tgz","integrity":"sha512-m7T5KtxN99r1tnmvXOBmDchsWk5bWvVLrHDtN/blsGFZlU7xOF+WR/sep9nDUNtpUhN41qtRPmkp77d7eKeOUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDkrsNqiVbs9jC3qSMC7M7l4tMygO50ucmqsFVItvU9dAiBpz8SnJSZISc71+UKxViZI/OU6FGpdM1+85bpiC2WByw=="}]},"directories":{}},"0.1.5":{"name":"deprecated-decorator","version":"0.1.5","description":"A simple decorator for deprecated methods and properties.","main":"bld/index.js","typings":"bld/index.d.ts","scripts":{"build":"tsc","test":"node node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/vilic/deprecated-decorator.git"},"keywords":["deprecated","decorator","typescript","babel","es7"],"author":{"name":"vilicvane"},"license":"MIT","bugs":{"url":"https://github.com/vilic/deprecated-decorator/issues"},"homepage":"https://github.com/vilic/deprecated-decorator#readme","devDependencies":{"chai":"latest","mocha":"latest","sinon":"latest","source-map-support":"latest","typescript":"latest"},"gitHead":"e6b148a11c894aa56340a7d0db5bdfa9bc48c6b5","_id":"deprecated-decorator@0.1.5","_shasum":"194f341c7ce64f76719365f09afee447970e4945","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"vilic","email":"i@vilic.info"},"maintainers":[{"name":"vilic","email":"i@vilic.info"}],"dist":{"shasum":"194f341c7ce64f76719365f09afee447970e4945","tarball":"https://registry.npmjs.org/deprecated-decorator/-/deprecated-decorator-0.1.5.tgz","integrity":"sha512-RTRArVhtnuLQ+AEK4GQQXnyPF4TvWmHekw3TdXCI1F0voOGy09zHufJS9UOXCZTBEulPS1QId4V3jdGEhY2ltw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGi7B9XS7MGX3qf99UBGbS3IV1WmQYWtZJsr3fv+OA97AiA/GQTpwDS1jqOnt2m/EASu0OLf5Zp4HG1eWwxI//PD/g=="}]},"directories":{}},"0.1.6":{"name":"deprecated-decorator","version":"0.1.6","description":"A simple decorator for deprecated methods and properties.","main":"bld/index.js","typings":"bld/index.d.ts","scripts":{"build":"tsc","test":"node node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/vilic/deprecated-decorator.git"},"keywords":["deprecated","decorator","typescript","babel","es7"],"author":{"name":"vilicvane"},"license":"MIT","bugs":{"url":"https://github.com/vilic/deprecated-decorator/issues"},"homepage":"https://github.com/vilic/deprecated-decorator#readme","devDependencies":{"chai":"latest","mocha":"latest","sinon":"latest","source-map-support":"latest","typescript":"latest"},"gitHead":"a76ea08aa19e9fc86ffa75c9423be4df05c661b3","_id":"deprecated-decorator@0.1.6","_shasum":"00966317b7a12fe92f3cc831f7583af329b86c37","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.0","_npmUser":{"name":"vilic","email":"i@vilic.info"},"dist":{"shasum":"00966317b7a12fe92f3cc831f7583af329b86c37","tarball":"https://registry.npmjs.org/deprecated-decorator/-/deprecated-decorator-0.1.6.tgz","integrity":"sha512-MHidOOnCHGlZDKsI21+mbIIhf4Fff+hhCTB7gtVg4uoIqjcrTZc5v6M+GS2zVI0sV7PqK415rb8XaOSQsQkHOw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGqnpcQiA8/9qgw5p4XU5rq8+gQekksrI9gaWUoB8RqHAiBg+f7kMBgBaCKYTFXPaOnPZj1TbLl2KGJ4VQVYky0WvQ=="}]},"maintainers":[{"name":"vilic","email":"i@vilic.info"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/deprecated-decorator-0.1.6.tgz_1460445443854_0.7697029851842672"},"directories":{}}},"readme":"[![NPM Package](https://badge.fury.io/js/deprecated-decorator.svg)](https://www.npmjs.com/package/deprecated-decorator)\n[![Build Status](https://travis-ci.org/vilic/deprecated-decorator.svg)](https://travis-ci.org/vilic/deprecated-decorator) \n\n# Deprecated Decorator\n\nA simple decorator for deprecated properties, methods and classes. It can also wrap normal functions via the old-fashioned way.\n\nTranspilers supported:\n\n- **TypeScript** with `experimentalDecorators` option enabled.\n- **Babel** with [transform-decorators-legacy](https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy) for version 6.x.\n\n## Install\n\n```sh\nnpm install deprecated-decorator --save\n```\n\n## API References\n\n```ts\nexport declare type DeprecatedDecorator = ClassDecorator & PropertyDecorator;\n\nexport interface DeprecatedOptions {\n    alternative?: string;\n    version?: string;\n    url?: string;\n}\n\nexport declare function deprecated(options?: DeprecatedOptions): DeprecatedDecorator;\nexport declare function deprecated(alternative?: string, version?: string, url?: string): DeprecatedDecorator;\n\nexport declare function deprecated<T extends Function>(fn: T): T;\nexport declare function deprecated<T extends Function>(options: DeprecatedOptions, fn: T): T;\nexport declare function deprecated<T extends Function>(alternative: string, fn: T): T;\nexport declare function deprecated<T extends Function>(alternative: string, version: string, fn: T): T;\nexport declare function deprecated<T extends Function>(alternative: string, version: string, url: string, fn: T): T;\n\nexport default deprecated;\n```\n\n## Usage\n\nDecorating a class will enable warning on constructor and static methods (including static getters and setters):\n\n```ts\nimport deprecated from 'deprecated-decorator';\n\n// alternative, since version, url\n@deprecated('Bar', '0.1.0', 'http://vane.life/')\nclass Foo {\n    static method() { }\n}\n```\n\nOr you can decorate methods respectively:\n\n```ts\nimport deprecated from 'deprecated-decorator';\n\nclass Foo {\n    @deprecated('otherMethod')\n    method() { }\n    \n    @deprecated({\n        alternative: 'otherProperty',\n        version: '0.1.2',\n        url: 'http://vane.life/'\n    })\n    get property() { }\n}\n```\n\nFor functions:\n\n```ts\nimport deprecated from 'deprecated-decorator';\n\nlet foo = deprecated({\n    alternative: 'bar',\n    version: '0.1.0'\n}, function foo() {\n    // ...\n});\n```\n\n## License\n\nMIT License.\n","maintainers":[{"email":"vilicvane@live.com","name":"vilicvane"}],"time":{"modified":"2024-01-16T21:55:33.055Z","created":"2016-01-03T18:05:33.341Z","0.1.0":"2016-01-03T18:05:33.341Z","0.1.1":"2016-01-03T18:19:51.089Z","0.1.2":"2016-01-03T18:32:29.989Z","0.1.3":"2016-01-04T12:41:20.325Z","0.1.4":"2016-01-04T13:55:58.709Z","0.1.5":"2016-01-04T14:04:21.590Z","0.1.6":"2016-04-12T07:17:24.399Z"},"homepage":"https://github.com/vilic/deprecated-decorator#readme","keywords":["deprecated","decorator","typescript","babel","es7"],"repository":{"type":"git","url":"git+https://github.com/vilic/deprecated-decorator.git"},"author":{"name":"vilicvane"},"bugs":{"url":"https://github.com/vilic/deprecated-decorator/issues"},"license":"MIT","readmeFilename":"README.md"}