{"_id":"deprecation","_rev":"226468","name":"deprecation","description":"Log a deprecation message with stack","dist-tags":{"latest":"2.3.1"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"time":{"modified":"2021-06-03T15:43:03.000Z","created":"2019-03-06T05:14:50.762Z","2.3.1":"2019-06-13T17:45:59.689Z","2.3.0":"2019-06-13T07:25:26.555Z","2.2.0":"2019-06-13T07:23:37.179Z","2.1.0":"2019-06-13T06:17:16.587Z","2.0.0":"2019-05-14T22:23:48.697Z","1.0.1":"2019-03-06T05:49:12.161Z","1.0.0":"2019-03-06T05:14:50.762Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/gr2m/deprecation.git"},"versions":{"2.3.1":{"name":"deprecation","description":"Log a deprecation message with stack","version":"2.3.1","license":"ISC","esnext":"dist-src/index.js","main":"dist-node/index.js","module":"dist-web/index.js","types":"dist-types/index.d.ts","pika":true,"sideEffects":false,"keywords":["deprecate","deprecated","deprecation"],"repository":{"type":"git","url":"git+https://github.com/gr2m/deprecation.git"},"dependencies":{},"devDependencies":{"@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.4.0","@pika/plugin-build-types":"^0.4.0","@pika/plugin-build-web":"^0.4.0","@pika/plugin-standard-pkg":"^0.4.0","semantic-release":"^15.13.3"},"bugs":{"url":"https://github.com/gr2m/deprecation/issues"},"homepage":"https://github.com/gr2m/deprecation#readme","_id":"deprecation@2.3.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"6368cbdb40abf3373b525ac87e4a260c3a700919","size":1867,"noattachment":false,"key":"/deprecation/-/deprecation-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/deprecation/download/deprecation-2.3.1.tgz"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deprecation_2.3.1_1560447959272_0.7006460691001619"},"_hasShrinkwrap":false,"publish_time":1560447959689,"_cnpm_publish_time":1560447959689},"2.3.0":{"name":"deprecation","description":"Log a deprecation message with stack","version":"2.3.0","license":"ISC","esnext":"dist-src/index.js","main":"dist-node/index.js","module":"dist-web/index.js","types":"dist-types/index.d.ts","pika":true,"sideEffects":false,"keywords":["deprecate","deprecated","deprecation"],"repository":{"type":"git","url":"git+https://github.com/gr2m/deprecation.git"},"dependencies":{},"devDependencies":{"@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.4.0","@pika/plugin-build-types":"^0.4.0","@pika/plugin-build-web":"^0.4.0","@pika/plugin-standard-pkg":"^0.4.0","semantic-release":"github:semantic-release/semantic-release#gr2m-actions-test"},"bugs":{"url":"https://github.com/gr2m/deprecation/issues"},"homepage":"https://github.com/gr2m/deprecation#readme","_id":"deprecation@2.3.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"a828f8e6a1105b70b5a8f971a3d057cbfde890cb","size":1879,"noattachment":false,"key":"/deprecation/-/deprecation-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deprecation/download/deprecation-2.3.0.tgz"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deprecation_2.3.0_1560410726450_0.6162189951414576"},"_hasShrinkwrap":false,"publish_time":1560410726555,"_cnpm_publish_time":1560410726555},"2.2.0":{"name":"deprecation","description":"Log a deprecation message with stack","version":"2.2.0","license":"ISC","esnext":"dist-src/index.js","main":"dist-node/index.js","module":"dist-web/index.js","types":"dist-types/index.d.ts","pika":true,"sideEffects":false,"keywords":["deprecate","deprecated","deprecation"],"repository":{"type":"git","url":"git+https://github.com/gr2m/deprecation.git"},"dependencies":{},"devDependencies":{"@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.4.0","@pika/plugin-build-types":"^0.4.0","@pika/plugin-build-web":"^0.4.0","@pika/plugin-standard-pkg":"^0.4.0","semantic-release":"github:semantic-release/semantic-release#gr2m-actions-test"},"bugs":{"url":"https://github.com/gr2m/deprecation/issues"},"homepage":"https://github.com/gr2m/deprecation#readme","_id":"deprecation@2.2.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"6445d064cadfeec53d45ab8d0eba66be03d58455","size":1879,"noattachment":false,"key":"/deprecation/-/deprecation-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deprecation/download/deprecation-2.2.0.tgz"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deprecation_2.2.0_1560410617060_0.6462803196386204"},"_hasShrinkwrap":false,"publish_time":1560410617179,"_cnpm_publish_time":1560410617179},"2.1.0":{"name":"deprecation","version":"2.1.0","description":"Log a deprecation message with stack","types":"src/index.d.ts","scripts":{"build":"pack build","pretest":"npm run -s build","test":"node test.js","semantic-release":"semantic-release"},"keywords":["deprecate","deprecated","deprecation"],"author":{"name":"Gregor Martynus"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/gr2m/deprecation.git"},"devDependencies":{"@pika/pack":"^0.3.7","@pika/plugin-build-node":"^0.4.0","@pika/plugin-build-types":"^0.4.0","@pika/plugin-build-web":"^0.4.0","@pika/plugin-standard-pkg":"^0.4.0","semantic-release":"^15.13.3"},"dependencies":{},"@pika/pack":{"pipeline":[["@pika/plugin-standard-pkg"],["@pika/plugin-build-node"],["@pika/plugin-build-web"],["@pika/plugin-build-types"]]},"gitHead":"15c0d6dee8bdba9364f80623c4c333c9ee09eb8b","bugs":{"url":"https://github.com/gr2m/deprecation/issues"},"homepage":"https://github.com/gr2m/deprecation#readme","_id":"deprecation@2.1.0","_npmVersion":"6.5.0","_nodeVersion":"10.16.0","_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"dist":{"shasum":"3c7d3e40da3a1f1bea49ac00248bab5b496f546e","size":2207,"noattachment":false,"key":"/deprecation/-/deprecation-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deprecation/download/deprecation-2.1.0.tgz"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deprecation_2.1.0_1560406636495_0.31508048425630397"},"_hasShrinkwrap":false,"publish_time":1560406636587,"_cnpm_publish_time":1560406636587},"2.0.0":{"name":"deprecation","version":"2.0.0","description":"Log a deprecation message with stack","main":"index.js","types":"index.d.ts","scripts":{"test":"node test.js"},"keywords":["deprecate","deprecated","deprecation"],"author":{"name":"Gregor Martynus"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/gr2m/deprecation.git"},"devDependencies":{"semantic-release":"^15.13.3"},"gitHead":"09cc6c56b762a84c2a67618f9f6e7e29bb7eb6ff","bugs":{"url":"https://github.com/gr2m/deprecation/issues"},"homepage":"https://github.com/gr2m/deprecation#readme","_id":"deprecation@2.0.0","_npmVersion":"6.5.0","_nodeVersion":"10.15.3","_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"dist":{"shasum":"dd0427cd920c78bc575ec39dab2f22e7c304fb9d","size":1850,"noattachment":false,"key":"/deprecation/-/deprecation-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deprecation/download/deprecation-2.0.0.tgz"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deprecation_2.0.0_1557872628562_0.003851486126736914"},"_hasShrinkwrap":false,"publish_time":1557872628697,"_cnpm_publish_time":1557872628697},"1.0.1":{"name":"deprecation","version":"1.0.1","description":"Log a deprecation message with stack","main":"index.js","scripts":{"test":"node test.js"},"keywords":["deprecate","deprecated","deprecation"],"author":{"name":"Gregor Martynus"},"license":"ISC","repository":{"type":"git","url":"git+https://github.com/gr2m/deprecation.git"},"devDependencies":{"semantic-release":"^15.13.3"},"gitHead":"67b5c8c7c98cf99fa18c63dc4d7f79b0aa5815bd","bugs":{"url":"https://github.com/gr2m/deprecation/issues"},"homepage":"https://github.com/gr2m/deprecation#readme","_id":"deprecation@1.0.1","_npmVersion":"6.5.0","_nodeVersion":"10.15.2","_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"dist":{"shasum":"2df79b79005752180816b7b6e079cbd80490d711","size":1804,"noattachment":false,"key":"/deprecation/-/deprecation-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/deprecation/download/deprecation-1.0.1.tgz"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deprecation_1.0.1_1551851352031_0.8364341825561346"},"_hasShrinkwrap":false,"publish_time":1551851352161,"_cnpm_publish_time":1551851352161},"1.0.0":{"name":"deprecation","version":"1.0.0","description":"Log a deprecation message with stack","main":"index.js","scripts":{"test":"node test.js"},"keywords":[],"author":{"name":"Gregor Martynus"},"license":"ISC","gitHead":"b19fe411e5e0adce18eb20e65c4d3560ea04a317","_id":"deprecation@1.0.0","_nodeVersion":"10.15.0","_npmVersion":"6.8.0","dist":{"shasum":"d1b269dc48efcf5e32939562094bd466b5453695","size":1548,"noattachment":false,"key":"/deprecation/-/deprecation-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/deprecation/download/deprecation-1.0.0.tgz"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/deprecation_1.0.0_1551849290594_0.39170509842811363"},"_hasShrinkwrap":false,"publish_time":1551849290762,"_cnpm_publish_time":1551849290762}},"readme":"# deprecation\n\n> Log a deprecation message with stack\n\n![build](https://action-badges.now.sh/gr2m/deprecation)\n\n## Usage\n\n<table>\n<tbody valign=top align=left>\n<tr><th>\nBrowsers\n</th><td width=100%>\n\nLoad `deprecation` directly from [cdn.pika.dev](https://cdn.pika.dev)\n\n```html\n<script type=\"module\">\n  import { Deprecation } from \"https://cdn.pika.dev/deprecation/v2\";\n</script>\n```\n\n</td></tr>\n<tr><th>\nNode\n</th><td>\n\nInstall with `npm install deprecation`\n\n```js\nconst { Deprecation } = require(\"deprecation\");\n// or: import { Deprecation } from \"deprecation\";\n```\n\n</td></tr>\n</tbody>\n</table>\n\n```js\nfunction foo() {\n  bar();\n}\n\nfunction bar() {\n  baz();\n}\n\nfunction baz() {\n  console.warn(new Deprecation(\"[my-lib] foo() is deprecated, use bar()\"));\n}\n\nfoo();\n// { Deprecation: [my-lib] foo() is deprecated, use bar()\n//     at baz (/path/to/file.js:12:15)\n//     at bar (/path/to/file.js:8:3)\n//     at foo (/path/to/file.js:4:3)\n```\n\nTo log a deprecation message only once, you can use the [once](https://www.npmjs.com/package/once) module.\n\n```js\nconst Deprecation = require(\"deprecation\");\nconst once = require(\"once\");\n\nconst deprecateFoo = once(console.warn);\n\nfunction foo() {\n  deprecateFoo(new Deprecation(\"[my-lib] foo() is deprecated, use bar()\"));\n}\n\nfoo();\nfoo(); // logs nothing\n```\n\n## License\n\n[ISC](LICENSE)\n","_attachments":{},"homepage":"https://github.com/gr2m/deprecation#readme","bugs":{"url":"https://github.com/gr2m/deprecation/issues"},"license":"ISC"}