{"_id":"react-is-deprecated","_rev":"3217526","name":"react-is-deprecated","description":"Adds an isDeprecated method to the React.PropTypes object","dist-tags":{"latest":"0.1.2"},"maintainers":[{"name":"aweary","email":""}],"time":{"modified":"2024-03-21T07:19:46.000Z","created":"2016-03-28T16:47:10.406Z","0.1.2":"2016-03-29T04:01:22.914Z","0.1.1":"2016-03-29T03:59:00.317Z","0.1.0":"2016-03-28T21:34:38.514Z","0.0.2":"2016-03-28T17:34:47.918Z","0.0.1":"2016-03-28T16:47:10.406Z"},"users":{},"author":{"name":"Brandon Dail"},"repository":{"type":"git","url":"https://www.github.com/Aweary/react-is-deprecated.git"},"versions":{"0.1.2":{"name":"react-is-deprecated","version":"0.1.2","description":"Adds an isDeprecated method to the React.PropTypes object","main":"dist.js","scripts":{"test":"mocha test","prepublish":"make build"},"keywords":["react","propTypes","isDeprecated"],"author":{"name":"Brandon Dail"},"license":"MIT","devDependencies":{"babel-cli":"^6.6.5","babel-preset-es2015":"^6.6.0","chai":"^3.5.0","mocha":"^2.4.5","react":"^0.14.7"},"repository":{"type":"git","url":"https://www.github.com/Aweary/react-is-deprecated.git"},"gitHead":"d39a1515cdf25b255225587b5d3b240685a1a0a9","_id":"react-is-deprecated@0.1.2","_shasum":"301148f86ea428fe8e673eca7a372160b7579dbd","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.1.1","_npmUser":{"name":"aweary","email":"Kierkegaurd@gmail.com"},"dist":{"shasum":"301148f86ea428fe8e673eca7a372160b7579dbd","size":2419,"noattachment":false,"key":"/react-is-deprecated/-/react-is-deprecated-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-is-deprecated/download/react-is-deprecated-0.1.2.tgz"},"maintainers":[{"name":"aweary","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-is-deprecated-0.1.2.tgz_1459224081815_0.13813335658051074"},"directories":{},"publish_time":1459224082914,"_hasShrinkwrap":false,"_cnpm_publish_time":1459224082914,"_cnpmcore_publish_time":"2021-12-16T12:09:52.735Z"},"0.1.1":{"name":"react-is-deprecated","version":"0.1.1","description":"Adds an isDeprecated method to the React.PropTypes object","main":"dist.js","scripts":{"test":"mocha test","prepublish":"make build"},"keywords":["react","propTypes","isDeprecated"],"author":{"name":"Brandon Dail"},"license":"MIT","devDependencies":{"babel-cli":"^6.6.5","babel-preset-es2015":"^6.6.0","chai":"^3.5.0","mocha":"^2.4.5","react":"^0.14.7"},"repository":{"type":"git","url":"https://www.github.com:Aweary/react-is-deprecated.git"},"gitHead":"70561035b9a32118d134f23753f6a2f4e9963798","_id":"react-is-deprecated@0.1.1","_shasum":"a58d276358375178368f3bb979287f6a8607539f","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.1.1","_npmUser":{"name":"aweary","email":"Kierkegaurd@gmail.com"},"dist":{"shasum":"a58d276358375178368f3bb979287f6a8607539f","size":2420,"noattachment":false,"key":"/react-is-deprecated/-/react-is-deprecated-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-is-deprecated/download/react-is-deprecated-0.1.1.tgz"},"maintainers":[{"name":"aweary","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-is-deprecated-0.1.1.tgz_1459223939356_0.9361318738665432"},"directories":{},"publish_time":1459223940317,"_hasShrinkwrap":false,"_cnpm_publish_time":1459223940317,"_cnpmcore_publish_time":"2021-12-16T12:09:52.959Z"},"0.1.0":{"name":"react-is-deprecated","version":"0.1.0","description":"Adds an isDeprecated method to the React.PropTypes object","main":"dist.js","scripts":{"test":"mocha test","prepublish":"make build"},"keywords":["react","propTypes","isDeprecated"],"author":{"name":"Brandon Dail"},"license":"MIT","devDependencies":{"babel-cli":"^6.6.5","babel-preset-es2015":"^6.6.0","chai":"^3.5.0","mocha":"^2.4.5","react":"^0.14.7"},"gitHead":"5bb1ffe7c8f2ffd86b51398e7bc7a771a939ddf7","_id":"react-is-deprecated@0.1.0","_shasum":"05ee017f293bb22bb94bc79d7cc251a2ea816946","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.1.1","_npmUser":{"name":"aweary","email":"Kierkegaurd@gmail.com"},"dist":{"shasum":"05ee017f293bb22bb94bc79d7cc251a2ea816946","size":2367,"noattachment":false,"key":"/react-is-deprecated/-/react-is-deprecated-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-is-deprecated/download/react-is-deprecated-0.1.0.tgz"},"maintainers":[{"name":"aweary","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-is-deprecated-0.1.0.tgz_1459200876214_0.19964263029396534"},"directories":{},"publish_time":1459200878514,"_hasShrinkwrap":false,"_cnpm_publish_time":1459200878514,"_cnpmcore_publish_time":"2021-12-16T12:09:53.182Z"},"0.0.2":{"name":"react-is-deprecated","version":"0.0.2","description":"Adds an isDeprecated method to the React.PropTypes object","main":"dist.js","scripts":{"test":"mocha test"},"keywords":["react","propTypes","isDeprecated"],"author":{"name":"Brandon Dail"},"license":"MIT","devDependencies":{"babel-cli":"^6.6.5","babel-preset-es2015":"^6.6.0","chai":"^3.5.0","mocha":"^2.4.5","react":"^0.14.7"},"gitHead":"e65d0e7123a2385ee7a376c6a5f3cdd3cb37ebff","_id":"react-is-deprecated@0.0.2","_shasum":"ef18adc558ec4583e134633f2442afa7e42b1c31","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.1.1","_npmUser":{"name":"aweary","email":"Kierkegaurd@gmail.com"},"dist":{"shasum":"ef18adc558ec4583e134633f2442afa7e42b1c31","size":1555,"noattachment":false,"key":"/react-is-deprecated/-/react-is-deprecated-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-is-deprecated/download/react-is-deprecated-0.0.2.tgz"},"maintainers":[{"name":"aweary","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-is-deprecated-0.0.2.tgz_1459186486836_0.2357994511257857"},"directories":{},"publish_time":1459186487918,"_hasShrinkwrap":false,"_cnpm_publish_time":1459186487918,"_cnpmcore_publish_time":"2021-12-16T12:09:53.390Z"},"0.0.1":{"name":"react-is-deprecated","version":"0.0.1","description":"Adds an isDeprecated method to the React.PropTypes object","main":"dist.js","scripts":{"test":"mocha test"},"keywords":["react","propTypes","isDeprecated"],"author":{"name":"Brandon Dail"},"license":"MIT","devDependencies":{"babel-cli":"^6.6.5","babel-preset-es2015":"^6.6.0","chai":"^3.5.0","mocha":"^2.4.5","react":"^0.14.7"},"gitHead":"5a1d18fd3bcb9f2bf380264566c5a334a3a451d9","_id":"react-is-deprecated@0.0.1","_shasum":"1f5ddec1e69566a81112fcd209c335599843fa3a","_from":".","_npmVersion":"3.5.3","_nodeVersion":"4.1.1","_npmUser":{"name":"aweary","email":"Kierkegaurd@gmail.com"},"dist":{"shasum":"1f5ddec1e69566a81112fcd209c335599843fa3a","size":1335,"noattachment":false,"key":"/react-is-deprecated/-/react-is-deprecated-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-is-deprecated/download/react-is-deprecated-0.0.1.tgz"},"maintainers":[{"name":"aweary","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-is-deprecated-0.0.1.tgz_1459183629471_0.9746103137731552"},"directories":{},"publish_time":1459183630406,"_hasShrinkwrap":false,"_cnpm_publish_time":1459183630406,"_cnpmcore_publish_time":"2021-12-16T12:09:53.581Z"}},"readme":"# react-is-deprecated\n\n> Add an `isDeprecated` to your React PropTypes.\n\n\n## Install\n\n```\n$ npm install --save react-is-deprecated\n```\n\n\n## Usage\n\n`react-is-deprecated` provides two options for wrapping `React.PropTypes`. You can use the `deprecate` function (recommended) to wrap a specific type and output a warning\nwhenever the prop is defined:\n\n```js\n\nstatic propTypes = {\n  deprecated: deprecate(PropTypes.string, `Your message here`)\n}\n\n```\n\nIf you'd like to have an `isDeprecated` function attached to all `React.PropTypes` options you can use `addIsDeprecated`.\n\n```js\n\nconst PropTypes = addIsDeprecated(React.PropTypes);\n...\nstatic propTypes = {\n  deprecated: PropTypes.object.isDeprecated('Your message here.')\n}\n\n```\n\n**Note: `addIsDeprecated` returns a copy of the passed `PropTypes` instance\nand does not mutate the `React.PropTypes`. `isDeprecated` will only work on the PropType object returned.**\n\n\n## API\n\n### `deprecate(propType: React.PropTypes.[type], message: string)`\nReturns a function wrapping the `propType` argument with a check to determine if the prop is defined and, if so, log out a warning via `console.warn` once.\n\n### `addIsDeprecated(input: React.PropTypes)`\n\nReturns an augmented version of `React.PropTypes` with `isDeprecated` added to all top level properties.\n\n### `[type].isDeprecated(message: string)`\nIf you use the `addIsDeprecated` function to return a new copy of `React.PropTypes` then each type will have an `isDeprecated` message.\nIt is identical to `deprecate` with the exception that it is already\nbound to the `[type]` and just accepts the message.\n\n## License\n\nMIT © Brandon Dail\n","_attachments":{},"license":"MIT"}