{"_id":"react-is-deprecated","_rev":"7-652922734939a17d3f6ecfacbcf04d75","name":"react-is-deprecated","description":"Adds an isDeprecated method to the React.PropTypes object","dist-tags":{"latest":"0.1.2"},"versions":{"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","tarball":"https://registry.npmjs.org/react-is-deprecated/-/react-is-deprecated-0.0.1.tgz","integrity":"sha512-QLXTpJOs8quCm0vHC/WBfAmq4fVmjQlu6zNwyLWazUnjDlVfvw5XAnOi7bSGcf8nCcibPkR/LDqs4QBSfdjHBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZbqjIYlebEv0TTLDeqvwx+Gti/ahamde2QDfEQMKGqAIgdfnjklP81vl6fm4Hz87CpvMWEBttJ8n5BIF8welJet8="}]},"maintainers":[{"name":"aweary","email":"Kierkegaurd@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-is-deprecated-0.0.1.tgz_1459183629471_0.9746103137731552"}},"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","tarball":"https://registry.npmjs.org/react-is-deprecated/-/react-is-deprecated-0.0.2.tgz","integrity":"sha512-rff10lhPuop+YZXGOH1q0QzXAC5e46M5r8YOvJOGZDRMhI8uphkMzI2SWtkuu4cGRdqFNzbOSuCsosokc4D6ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzk0n6uk5V3hSCUsnZxzFEwOl/+zc22R9UpgTKVhU2fQIhAMti3EcLTCTeRr0j3TA1S8AQA+4xNKQobZsZs78Dvt6W"}]},"maintainers":[{"name":"aweary","email":"Kierkegaurd@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-is-deprecated-0.0.2.tgz_1459186486836_0.2357994511257857"}},"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","tarball":"https://registry.npmjs.org/react-is-deprecated/-/react-is-deprecated-0.1.0.tgz","integrity":"sha512-0XhD0S+FB1YvOVjb0x8Ip+J0E1+0Kmc1KtBEnkM96ZVQn+QdwoEB/mQ7ZAaANVbEn85KJ2He9fWl5VVpz7WVCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0bKmlY/XzRcNIb5UpIZTsitLiWuA7CD0AvNXdO3kMswIhANWOaRQPmDfWdpd6x4QkfSlUlQ0BzluinNpGcWSB8QJE"}]},"maintainers":[{"name":"aweary","email":"Kierkegaurd@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-is-deprecated-0.1.0.tgz_1459200876214_0.19964263029396534"}},"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","tarball":"https://registry.npmjs.org/react-is-deprecated/-/react-is-deprecated-0.1.1.tgz","integrity":"sha512-X5oD8JJgv+UXnPm0aTCs3mZZ2OusEJ2ciFkrhzKqWvyuENP3ktiVT8wtSTqxdk06EgHqyRDVHs8Qa84Cf6Fqsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDV2AVFNgiyCZ0MfxEZAeqVg1xb+iplLduHJk/Q7JIluQIhAKP14QX3CpjwZCZr4o6msUdt3UTesJT05ep5bJt4+Q2n"}]},"maintainers":[{"name":"aweary","email":"Kierkegaurd@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-is-deprecated-0.1.1.tgz_1459223939356_0.9361318738665432"}},"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","tarball":"https://registry.npmjs.org/react-is-deprecated/-/react-is-deprecated-0.1.2.tgz","integrity":"sha512-n3Y04lqbuwMiSywwAKBwW89YxAPuFwS5tYA4L6wDGLQCdSsod1KSfzCIiTTUvS9hPdaB39HdvxjxAaS0Lk4h+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeYyxHMg0yVL8Csm85vmDyKfJLEd/nRK2Ub00ucEMbGwIgL2zjckDkW/W+HpCqLx07MdaQ86dSXB8/4Q49BvX+RFw="}]},"maintainers":[{"name":"aweary","email":"Kierkegaurd@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/react-is-deprecated-0.1.2.tgz_1459224081815_0.13813335658051074"}}},"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","maintainers":[{"name":"aweary","email":"Kierkegaurd@gmail.com"}],"time":{"modified":"2022-06-26T00:16:54.884Z","created":"2016-03-28T16:47:10.406Z","0.0.1":"2016-03-28T16:47:10.406Z","0.0.2":"2016-03-28T17:34:47.918Z","0.1.0":"2016-03-28T21:34:38.514Z","0.1.1":"2016-03-29T03:59:00.317Z","0.1.2":"2016-03-29T04:01:22.914Z"},"keywords":["react","propTypes","isDeprecated"],"author":{"name":"Brandon Dail"},"license":"MIT","readmeFilename":"README.md","repository":{"type":"git","url":"https://www.github.com/Aweary/react-is-deprecated.git"}}