{"_id":"react-lifecycles-compat","_rev":"37-3d68f1895e70c48f757da5af78fc6312","name":"react-lifecycles-compat","dist-tags":{"next":"1.1.1","latest":"3.0.4","v-2":"2.0.2"},"versions":{"0.0.0":{"name":"react-lifecycles-compat","version":"0.0.0","_id":"react-lifecycles-compat@0.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"integrity":"sha512-I2lSL50TYeyBPSyjRWLiSMHMt4qsPZLb3KYYRpaGI1NFt0OREbR9GGHyT4GH8tX2I8vmD/AsNFkJBYGAdh/R+A==","shasum":"2a42333eeec8b39a4c5b62e37291ea54c02ec390","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-0.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDc6yHI9dn9n9WJpRsvZ0n2DoMVNC39BY2gWuyjTn33xQIhAPNTJkdvqibpdOgRuEJ2brT6txRS3VY31yq8c1pddDqQ"}]},"maintainers":[{"name":"gaearon","email":"dan.abramov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat-0.0.0.tgz_1516924867588_0.5519317716825753"},"directories":{},"deprecated":"getSnapshotBeforeUpdate() poylfill did not properly handle falsy values. Use 1.1.4+ instead."},"1.0.0":{"name":"react-lifecycles-compat","version":"1.0.0","description":"Backwards compatibility polyfill for React class components","main":"index.js","license":"MIT","scripts":{"test":"jest test.js","build:dev":"NODE_ENV=development webpack","build:prod":"NODE_ENV=production webpack","build":"npm run build:dev && npm run build:prod","lint":"eslint index.js","postinstall":"node install.js","prepublish":"npm test && npm run build","prettier":"prettier --write {index,test}.js"},"files":["index.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"dependencies":{"webpack":"^2"},"devDependencies":{"chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"1e650f49203035e4f9de994cd4be80f63c267cea","_id":"react-lifecycles-compat@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-Iphc2tsVyT++ETw5PYKWiEcrPt+Dz4tznku9Vd5mO6PClqUin85Jp9vKoaHRuZKR9IMrnfuXaU4fN3U5N4Ftiw==","shasum":"539f7eaed465987d17f0af64c97c587c36c7566e","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsXrTmuYnRnP1UaeQ+vn+bYgg2rS7lYxMWhlSWpVx5kgIhALNEv/4giT5/FGbWdWnpLm6FTNxY6Jp0vvW2+cKRtUzf"}]},"maintainers":[{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"dg@domgan.com","name":"trueadm"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"acdlite@me.com","name":"acdlite"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"dan.abramov@gmail.com","name":"gaearon"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat-1.0.0.tgz_1517421592673_0.1656304041389376"},"deprecated":"getSnapshotBeforeUpdate() poylfill did not properly handle falsy values. Use 1.1.4+ instead.","directories":{}},"1.0.1":{"name":"react-lifecycles-compat","version":"1.0.1","description":"Backwards compatibility polyfill for React class components","main":"index.js","license":"MIT","scripts":{"test":"jest test.js","build:dev":"NODE_ENV=development webpack","build:prod":"NODE_ENV=production webpack","build":"npm run build:dev && npm run build:prod","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test && npm run build","prettier":"prettier --write {index,test}.js"},"files":["index.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"dependencies":{"webpack":"^2"},"devDependencies":{"chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"b944d16024c772048e839f565882f9a6a592499f","_id":"react-lifecycles-compat@1.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-8VakOXiF9JO+fml1go7bYh3y2366RDsO46jpVmisdY3EVrsKJ7BYutqFaOt0pLOduBSflYvdWaXqu6kRrjKX5A==","shasum":"dd3f42d8090c2569bea1bb5d2e2454ca29c54292","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrPmg/09vXsFUpJNAxBZV3dW/KI8vBRkQpF7lOOIfTMgIgZb1/IeThxIxq4+sfPQQXqdxxP3kSvNWPdkuxKY7u6Ak="}]},"maintainers":[{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"dg@domgan.com","name":"trueadm"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"acdlite@me.com","name":"acdlite"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"dan.abramov@gmail.com","name":"gaearon"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat-1.0.1.tgz_1517421987091_0.42573421308770776"},"deprecated":"getSnapshotBeforeUpdate() poylfill did not properly handle falsy values. Use 1.1.4+ instead.","directories":{}},"1.0.2":{"name":"react-lifecycles-compat","version":"1.0.2","description":"Backwards compatibility polyfill for React class components","main":"index.js","license":"MIT","scripts":{"test":"jest test.js","build:dev":"NODE_ENV=development webpack","build:prod":"NODE_ENV=production webpack","build":"npm run build:dev && npm run build:prod","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test && npm run build","prettier":"prettier --write {index,test}.js"},"files":["index.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"devDependencies":{"chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2","webpack":"^2"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"78e214e4ff5d65f894b9783c76533a68833731e8","_id":"react-lifecycles-compat@1.0.2","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-uyYuXIt73odE9MQM9vFemhYI8AOiBr2TC0/Q8Dx0T27mLt20cRwauafXYul2l6hqSyoGsz4G+AepeFiyoEqVaQ==","shasum":"551d8b1d156346e5fcf30ffac9b32ce3f78b8850","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIvP3ws4MAaFI9Wm13I2E5gmmIn/7QtBi0No94ZmlvmAIhAL3LN/D3SR3lcqLf0XpSWIPzEtIU84UWkG8gsRTnQgDb"}]},"maintainers":[{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"dg@domgan.com","name":"trueadm"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"acdlite@me.com","name":"acdlite"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"dan.abramov@gmail.com","name":"gaearon"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat-1.0.2.tgz_1517422048656_0.40167925134301186"},"directories":{},"deprecated":"getSnapshotBeforeUpdate() poylfill did not properly handle falsy values. Use 1.1.4+ instead."},"1.1.0":{"name":"react-lifecycles-compat","version":"1.1.0","description":"Backwards compatibility polyfill for React class components","main":"index.js","license":"MIT","scripts":{"test":"jest test.js","build:dev":"NODE_ENV=development webpack","build:prod":"NODE_ENV=production webpack","build":"npm run build:dev && npm run build:prod","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test && npm run build","prettier":"prettier --write {index,test}.js"},"files":["index.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"devDependencies":{"chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2","webpack":"^2"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"8409aafbe2144233a69627ce134491ae97d411d0","_id":"react-lifecycles-compat@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-rB36X/QzE8s1ASdhZVKAKbuNLwFAVwA8wZba9NHSUB2EDitZM1H7pO701QW2jgfI8rU3c+aWln1s5gbbL1yO0A==","shasum":"6641d0709bd5505329b5c90322147ef2d343485c","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-1.1.0.tgz","fileCount":6,"unpackedSize":16846,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNr3l1XQCFrr2NzmMNQ0LBzEGbcy1O6hLd6+QQfk6MjQIhAJFT9UrIiCmODB5kj2nAIf/4TYcH4DO0jn8DWi97/VD0"}]},"maintainers":[{"email":"acdlite@me.com","name":"acdlite"},{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"dg@domgan.com","name":"trueadm"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat_1.1.0_1522286042603_0.6195308853511297"},"_hasShrinkwrap":false,"deprecated":"getSnapshotBeforeUpdate() poylfill did not properly handle falsy values. Use 1.1.4+ instead."},"1.1.1":{"name":"react-lifecycles-compat","version":"1.1.1","description":"Backwards compatibility polyfill for React class components","main":"react-lifecycles-compat.cjs.js","module":"react-lifecycles-compat.es.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/reactjs/react-lifecycles-compat.git"},"scripts":{"build":"rollup -c","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test","pretest":"npm run install:dependencies && npm run build","prettier":"prettier --write {index,test}.js","test":"jest test.js"},"files":["react-lifecycles-compat.cjs.js","react-lifecycles-compat.es.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"devDependencies":{"camelcase":"^5.0.0","chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2","rollup":"^0.57.1","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"devEngines":{"node":"8.5 || 9.x"},"readme":"# react-lifecycles-compat\n\n## What is this project?\n\nReact version 17 will deprecate several of the class component API lifecycles: `componentWillMount`, `componentWillReceiveProps`, and `componentWillUpdate`. (Read the [Update on Async rendering blog post](https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html) to learn more about why.) A couple of new lifecycles are also being added to better support [async rendering mode](https://reactjs.org/blog/2018/03/01/sneak-peek-beyond-react-16.html).\n\nTypically, this type of change would require third party libraries to release a new major version in order to adhere to semver. However, the `react-lifecycles-compat` polyfill offers a way to use the new lifecycles with older versions of React as well (0.14.9+) so no breaking release is required. This enables shared libraries to support both older and newer versions of React simultaneously.\n\n## How can I use the polyfill\n\nFirst, install the polyfill from NPM:\n```sh\n# Yarn\nyarn add react-lifecycles-compat\n\n# NPM\nnpm install react-lifecycles-compat --save\n```\n\nNext, update your component and replace any of the deprecated lifecycles with new ones introduced with React 16.3. (Refer to the React docs for [examples of how to use the new lifecycles](https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html).)\n\nLastly, use the polyfill to make the new lifecycles work with older versions of React:\n```js\nimport React from 'react';\nimport polyfill from 'react-lifecycles-compat';\n\nclass ExampleComponent extends React.Component {\n  // ...\n}\n\n// Polyfill your component so the new lifecycles will work with older versions of React:\npolyfill(ExampleComponent);\n\nexport default ExampleComponent;\n```\n\n## Which lifecycles are supported?\n\nCurrently, this polyfill supports [static `getDerivedStateFromProps`](https://reactjs.org/docs/react-component.html#static-getderivedstatefromprops) and [`getSnapshotBeforeUpdate`](https://reactjs.org/docs/react-component.html#getsnapshotbeforeupdate)- both introduced in version 16.3.\n\n## Validation\n\nNote that in order for the polyfill to work, none of the following lifecycles can be defined by your component: `componentWillMount`, `componentWillReceiveProps`, or `componentWillUpdate`.\n\nNote also that if your component contains `getSnapshotBeforeUpdate`, `componentDidUpdate` must be defined as well.\n\nAn error will be thrown if any of the above conditions are not met.","readmeFilename":"README.md","gitHead":"41c3173ac0097c87660a59a215960155fe102ace","bugs":{"url":"https://github.com/reactjs/react-lifecycles-compat/issues"},"homepage":"https://github.com/reactjs/react-lifecycles-compat#readme","_id":"react-lifecycles-compat@1.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-XGN6uehZxZx/EZ6RXJ5L/9tiCYvL8kk9xNnXQCbEdM1MX9fmp6dLwvBuCIIZArxW8fJ7gxFJDmYpCYVizBLmyw==","shasum":"8a48bbfd35d9d7635453ff07f7dcdf2b1cb6c1a6","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-1.1.1.tgz","fileCount":7,"unpackedSize":17144,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBukU4vhZOfFqQs1ZorPpHIqKvZziVFr7GlvxETZDlspAiB55TGuaUmA94PcqC4pKzOzWp5VV6FGFxIUKz3dg/HcVA=="}]},"maintainers":[{"email":"acdlite@me.com","name":"acdlite"},{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"dg@domgan.com","name":"trueadm"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat_1.1.1_1522686040613_0.9795520833056199"},"_hasShrinkwrap":false,"deprecated":"getSnapshotBeforeUpdate() poylfill did not properly handle falsy values. Use 1.1.4+ instead."},"1.1.2":{"name":"react-lifecycles-compat","version":"1.1.2","description":"Backwards compatibility polyfill for React class components","main":"react-lifecycles-compat.cjs.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/reactjs/react-lifecycles-compat.git"},"scripts":{"build":"rollup -c","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test","pretest":"npm run install:dependencies && npm run build","prettier":"prettier --write {index,test}.js","test":"jest test.js"},"files":["react-lifecycles-compat.cjs.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"devDependencies":{"camelcase":"^5.0.0","chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2","rollup":"^0.57.1","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"6ef725e035cb470c8a8d0f6523055ce4dabb0b69","bugs":{"url":"https://github.com/reactjs/react-lifecycles-compat/issues"},"homepage":"https://github.com/reactjs/react-lifecycles-compat#readme","_id":"react-lifecycles-compat@1.1.2","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-Mey9RDujXB2jfvT2dkgKmk/SUOdgUkkwAopEfIXP3h6AhXA0s6ccgoyyhPcKbbKXAU6m266CAdNYoqpiJMpqxg==","shasum":"6b3a97bae12f421e57771d4715c7ebcd2833c07e","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-1.1.2.tgz","fileCount":6,"unpackedSize":13675,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKlCdhVj1EKkj1P9u53ajirk1BEab18M7XDEnEQqRg4QIgLDzNnjby71nyP1g/4VRhZZe1JbY6FsVPAH7Am2YLwCk="}]},"maintainers":[{"email":"acdlite@me.com","name":"acdlite"},{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"dg@domgan.com","name":"trueadm"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat_1.1.2_1522711068489_0.9029407027358576"},"_hasShrinkwrap":false,"deprecated":"getSnapshotBeforeUpdate() poylfill did not properly handle falsy values. Use 1.1.4+ instead."},"1.1.3":{"name":"react-lifecycles-compat","version":"1.1.3","description":"Backwards compatibility polyfill for React class components","main":"react-lifecycles-compat.cjs.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/reactjs/react-lifecycles-compat.git"},"scripts":{"build":"rollup -c","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test","pretest":"npm run install:dependencies && npm run build","prettier":"prettier --write {index,test}.js","test":"jest test.js"},"files":["react-lifecycles-compat.cjs.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"devDependencies":{"camelcase":"^5.0.0","chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2","rollup":"^0.57.1","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"870b33d8b13abeda47e3d8333dc6ad69bb9efe07","bugs":{"url":"https://github.com/reactjs/react-lifecycles-compat/issues"},"homepage":"https://github.com/reactjs/react-lifecycles-compat#readme","_id":"react-lifecycles-compat@1.1.3","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-MUbN8QVa/2L6qpL5Nbo5nYfg2PuzlLMr8yAv18Ff1261cZUcmDImpkzleJ2WuJWFcnezAMuf6V+/y1IK4SZt1A==","shasum":"d1adc866560701092748bc041acedde0ebe06f18","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-1.1.3.tgz","fileCount":6,"unpackedSize":14316,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBPHWsKeCVRkjbmb5VKrkdidRDsk7zkUg2xrJAtE0eoTAiEAxhFzweuHkK+9ryJZljV1nj4ffWmp3YMvygxkGq1s32E="}]},"maintainers":[{"email":"acdlite@me.com","name":"acdlite"},{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"dg@domgan.com","name":"trueadm"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat_1.1.3_1522771013938_0.9899289188058187"},"_hasShrinkwrap":false,"deprecated":"getSnapshotBeforeUpdate() poylfill did not properly handle falsy values. Use 1.1.4+ instead."},"1.1.4":{"name":"react-lifecycles-compat","version":"1.1.4","description":"Backwards compatibility polyfill for React class components","main":"react-lifecycles-compat.cjs.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/reactjs/react-lifecycles-compat.git"},"scripts":{"build":"rollup -c","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test","pretest":"npm run install:dependencies && npm run build","prettier":"prettier --write {index,test}.js","test":"jest test.js"},"files":["react-lifecycles-compat.cjs.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"devDependencies":{"camelcase":"^5.0.0","chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2","rollup":"^0.57.1","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"33abd5a169b11b789232a2a50741a4571454eee4","bugs":{"url":"https://github.com/reactjs/react-lifecycles-compat/issues"},"homepage":"https://github.com/reactjs/react-lifecycles-compat#readme","_id":"react-lifecycles-compat@1.1.4","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-g3pdexIqkn+CVvSpYIoyON8zUbF9kgfhp672gyz7wQ7PQyXVmJtah+GDYqpHpOrdwex3F77iv+alq79iux9HZw==","shasum":"fc005c72849b7ed364de20a0f64ff58ebdc2009a","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-1.1.4.tgz","fileCount":6,"unpackedSize":15164,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAnEarELfz76CzESF7TG9XMw9xDuSchmR6FO1alb2+NgIgSk3nKziL42jZ5lAd5c/qUE8P+Xq1zL7c2fumeYdZc7s="}]},"maintainers":[{"email":"acdlite@me.com","name":"acdlite"},{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"dg@domgan.com","name":"trueadm"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat_1.1.4_1522777803733_0.14093477755474537"},"_hasShrinkwrap":false},"2.0.0":{"name":"react-lifecycles-compat","version":"2.0.0","description":"Backwards compatibility polyfill for React class components","main":"react-lifecycles-compat.cjs.js","module":"react-lifecycles-compat.es.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/reactjs/react-lifecycles-compat.git"},"scripts":{"build":"rollup -c","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test","pretest":"npm run install:dependencies && npm run build","prettier":"prettier --write {index,test}.js","test":"jest test.js"},"files":["react-lifecycles-compat.cjs.js","react-lifecycles-compat.es.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"devDependencies":{"camelcase":"^5.0.0","chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2","rollup":"^0.57.1","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"ad22a03d08eae6b1c89ac7372166177b0dc1ca41","bugs":{"url":"https://github.com/reactjs/react-lifecycles-compat/issues"},"homepage":"https://github.com/reactjs/react-lifecycles-compat#readme","_id":"react-lifecycles-compat@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-txfpPCQYiazVdcbMRhatqWKcAxJweUu2wDXvts5/7Wyp6+Y9cHojqXHsLPEckzutfHlxZhG8Oiundbmp8Fd6eQ==","shasum":"71d9c4cde47114c4102454f76da055c2bc48c948","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-2.0.0.tgz","fileCount":7,"unpackedSize":19545,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEOmIbsav69xBT9qdH+sZIuFFso4jniAi85ubhF3eQ8VAiAOR13tjVyMfif9GgJGdMv2qFBd9xaplUckNVozmgmiNw=="}]},"maintainers":[{"email":"acdlite@me.com","name":"acdlite"},{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"dg@domgan.com","name":"trueadm"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat_2.0.0_1522896999849_0.2101655545994756"},"_hasShrinkwrap":false},"2.0.1":{"name":"react-lifecycles-compat","version":"2.0.1","description":"Backwards compatibility polyfill for React class components","main":"react-lifecycles-compat.cjs.js","module":"react-lifecycles-compat.es.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/reactjs/react-lifecycles-compat.git"},"scripts":{"build":"rollup -c","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test","pretest":"npm run install:dependencies && npm run build","prettier":"prettier --write {index,test}.js","test":"jest test.js"},"files":["react-lifecycles-compat.cjs.js","react-lifecycles-compat.es.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"devDependencies":{"camelcase":"^5.0.0","chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2","rollup":"^0.57.1","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"1e523a8b3fe50d8de8bb3fcb1936ebee3e52f7dd","bugs":{"url":"https://github.com/reactjs/react-lifecycles-compat/issues"},"homepage":"https://github.com/reactjs/react-lifecycles-compat#readme","_id":"react-lifecycles-compat@2.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-MX5RTNQDMluWqeT2D40iKBhTOlS0JgEzf2hq7GGWTg51FZXr0aLOM5oSRo1lD/9jU+Io6afYbsaJ7eulpeGuMg==","shasum":"5b52e412d8c2689345014764996456e5dc157470","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-2.0.1.tgz","fileCount":7,"unpackedSize":26457,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBMrpGKSzsb4hk1W+uOnEyb2VNXune62B7Pv6STqCrqPAiAKzrLC2JJzAbgn/vbFsqhalj5Y5ZdnDTs/atORuEV7vA=="}]},"maintainers":[{"email":"acdlite@me.com","name":"acdlite"},{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"dg@domgan.com","name":"trueadm"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat_2.0.1_1523306954423_0.7340132026377648"},"_hasShrinkwrap":false},"3.0.0":{"name":"react-lifecycles-compat","version":"3.0.0","description":"Backwards compatibility polyfill for React class components","main":"react-lifecycles-compat.cjs.js","module":"react-lifecycles-compat.es.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/reactjs/react-lifecycles-compat.git"},"scripts":{"build":"rollup -c","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test","pretest":"npm run install:dependencies && npm run build","prettier":"prettier --write {index,test}.js","test":"jest test.js"},"files":["react-lifecycles-compat.cjs.js","react-lifecycles-compat.es.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"devDependencies":{"camelcase":"^5.0.0","chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2","rollup":"^0.57.1","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"3bbdb0c5bb73ff6153fabc3a07606de55e227ee5","bugs":{"url":"https://github.com/reactjs/react-lifecycles-compat/issues"},"homepage":"https://github.com/reactjs/react-lifecycles-compat#readme","_id":"react-lifecycles-compat@3.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-MmRlMBNEoLjro0ig0VzQc1b7RRBTtqn99OQUunOapyvjzfrVutgEdHFAAZvS1WDpwwauuRr2kzE7FCGf7XnJDA==","shasum":"a1acdeeac980a0e9ffa69d7a3388497541d843ed","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.0.tgz","fileCount":7,"unpackedSize":25376,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDui01l7bp1KG/1z4C3EymhWrh/No6xGRJ/Dil13DYvPwIgN8ienHQA5PsTieGv6XbT8oUCcXo4s0QrLVViMTettFo="}]},"maintainers":[{"email":"acdlite@me.com","name":"acdlite"},{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"dg@domgan.com","name":"trueadm"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat_3.0.0_1523309454122_0.5882262950625381"},"_hasShrinkwrap":false,"deprecated":"Contains accidental untrasnpiled ES6 syntax. Prefer 3.0.2+"},"3.0.1":{"name":"react-lifecycles-compat","version":"3.0.1","description":"Backwards compatibility polyfill for React class components","main":"react-lifecycles-compat.cjs.js","module":"react-lifecycles-compat.es.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/reactjs/react-lifecycles-compat.git"},"scripts":{"build":"rollup -c","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test","pretest":"npm run install:dependencies && npm run build","prettier":"prettier --write {index,test}.js","test":"jest test.js"},"files":["react-lifecycles-compat.cjs.js","react-lifecycles-compat.es.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"devDependencies":{"camelcase":"^5.0.0","chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2","rollup":"^0.57.1","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"9190291b22d7ab4597310b60be7fa4554a8a809c","bugs":{"url":"https://github.com/reactjs/react-lifecycles-compat/issues"},"homepage":"https://github.com/reactjs/react-lifecycles-compat#readme","_id":"react-lifecycles-compat@3.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-Gvl/AwBV+0NeQ4niyzi4xbBQN8UX1snyEVOmPVkfs9FZRL+HOLUf6Lea/XNomfzNjCbG1G3xVJ5yB5LGY+2UYw==","shasum":"75b341421a307d9f67d0130d612dedb47d2ef494","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.1.tgz","fileCount":8,"unpackedSize":27176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG3dHAKA3j8r/T+Yx9MolXnivk0dvS7RIU+ao/0eiJrCAiEAyk4VRWW/BaGHvVAUplSfkydCITdZQ2A9F8rrcX4adVs="}]},"maintainers":[{"email":"acdlite@me.com","name":"acdlite"},{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"dg@domgan.com","name":"trueadm"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat_3.0.1_1523370062384_0.4433429838622436"},"_hasShrinkwrap":false,"deprecated":"Contains accidental untrasnpiled ES6 syntax. Prefer 3.0.2+"},"3.0.2":{"name":"react-lifecycles-compat","version":"3.0.2","description":"Backwards compatibility polyfill for React class components","main":"react-lifecycles-compat.cjs.js","module":"react-lifecycles-compat.es.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/reactjs/react-lifecycles-compat.git"},"scripts":{"build":"rollup -c","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test","pretest":"npm run install:dependencies && npm run build","prettier":"prettier --write {index,test}.js","test":"jest test.js"},"files":["react-lifecycles-compat.cjs.js","react-lifecycles-compat.es.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"devDependencies":{"camelcase":"^5.0.0","chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2","rollup":"^0.57.1","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"913c055d33cd5aa6f77366ec3b1478ddfc8f9686","bugs":{"url":"https://github.com/reactjs/react-lifecycles-compat/issues"},"homepage":"https://github.com/reactjs/react-lifecycles-compat#readme","_id":"react-lifecycles-compat@3.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-pbZOSMVVkvppW7XRn9fcHK5OgEDnYLwMva7P6TgS44/SN9uGGjfh3Z1c8tomO+y4IsHQ6Fsz2EGwmE7sMeNZgQ==","shasum":"7279047275bd727a912e25f734c0559527e84eff","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.2.tgz","fileCount":8,"unpackedSize":27486,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAD0z/n3h8HfoizxVGM83TKspmCiA9z1Ca3tCr0QY+WNAiA6EaA2T6VKP3FfVCnSkpap8vxmZiuuRSzrz07/TbSeSw=="}]},"maintainers":[{"email":"acdlite@me.com","name":"acdlite"},{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"dg@domgan.com","name":"trueadm"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat_3.0.2_1523455764555_0.3204549080436445"},"_hasShrinkwrap":false},"2.0.2":{"name":"react-lifecycles-compat","version":"2.0.2","description":"Backwards compatibility polyfill for React class components","main":"react-lifecycles-compat.cjs.js","module":"react-lifecycles-compat.es.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/reactjs/react-lifecycles-compat.git"},"scripts":{"build":"rollup -c","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test","pretest":"npm run install:dependencies && npm run build","prettier":"prettier --write {index,test}.js","test":"jest test.js"},"files":["react-lifecycles-compat.cjs.js","react-lifecycles-compat.es.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"devDependencies":{"camelcase":"^5.0.0","chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2","rollup":"^0.57.1","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"1e523a8b3fe50d8de8bb3fcb1936ebee3e52f7dd","readme":"# react-lifecycles-compat\n\n## What is this project?\n\nReact version 17 will deprecate several of the class component API lifecycles: `componentWillMount`, `componentWillReceiveProps`, and `componentWillUpdate`. (Read the [Update on Async rendering blog post](https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html) to learn more about why.) A couple of new lifecycles are also being added to better support [async rendering mode](https://reactjs.org/blog/2018/03/01/sneak-peek-beyond-react-16.html).\n\nTypically, this type of change would require third party libraries to release a new major version in order to adhere to semver. However, the `react-lifecycles-compat` polyfill offers a way to use the new lifecycles with older versions of React as well (0.14.9+) so no breaking release is required. This enables shared libraries to support both older and newer versions of React simultaneously.\n\n## How can I use the polyfill\n\nFirst, install the polyfill from NPM:\n```sh\n# Yarn\nyarn add react-lifecycles-compat\n\n# NPM\nnpm install react-lifecycles-compat --save\n```\n\nNext, update your component and replace any of the deprecated lifecycles with new ones introduced with React 16.3. (Refer to the React docs for [examples of how to use the new lifecycles](https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html).)\n\nLastly, use the polyfill to make the new lifecycles work with older versions of React:\n```js\nimport React from 'react';\nimport {polyfill} from 'react-lifecycles-compat';\n\nclass ExampleComponent extends React.Component {\n  // ...\n}\n\n// Polyfill your component so the new lifecycles will work with older versions of React:\npolyfill(ExampleComponent);\n\nexport default ExampleComponent;\n```\n\n## Which lifecycles are supported?\n\nCurrently, this polyfill supports [static `getDerivedStateFromProps`](https://reactjs.org/docs/react-component.html#static-getderivedstatefromprops) and [`getSnapshotBeforeUpdate`](https://reactjs.org/docs/react-component.html#getsnapshotbeforeupdate)- both introduced in version 16.3.\n\n## Validation\n\nNote that in order for the polyfill to work, none of the following lifecycles can be defined by your component: `componentWillMount`, `componentWillReceiveProps`, or `componentWillUpdate`.\n\nNote also that if your component contains `getSnapshotBeforeUpdate`, `componentDidUpdate` must be defined as well.\n\nAn error will be thrown if any of the above conditions are not met.","readmeFilename":"README.md","bugs":{"url":"https://github.com/reactjs/react-lifecycles-compat/issues"},"homepage":"https://github.com/reactjs/react-lifecycles-compat#readme","_id":"react-lifecycles-compat@2.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-BPksUj7VMAAFhcCw79sZA0Ow/LTAEjs3Sio1AQcuwLeOP+ua0f/08Su2wyiW+JjDDH6fRqNy3h5CLXh21u1mVg==","shasum":"00a23160eec17a43b94dd74f95d44a1a2c3c5ec1","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-2.0.2.tgz","fileCount":7,"unpackedSize":26472,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpJOtH1XGkRVf7rKxREa0SWwnEwGj3I8qCQ2rRF+yArQIgV7crJ6OE3CVCaQdRvdY7RVmb7VeyDZ+FtJHHcPPlm8c="}]},"maintainers":[{"email":"acdlite@me.com","name":"acdlite"},{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"dg@domgan.com","name":"trueadm"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat_2.0.2_1523572637131_0.7922873995792015"},"_hasShrinkwrap":false},"3.0.3":{"name":"react-lifecycles-compat","version":"3.0.3","description":"Backwards compatibility polyfill for React class components","main":"react-lifecycles-compat.cjs.js","module":"react-lifecycles-compat.es.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/reactjs/react-lifecycles-compat.git"},"scripts":{"build":"rollup -c","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test","pretest":"npm run install:dependencies && npm run build","prettier":"prettier --write {index,test}.js","test":"jest test.js"},"files":["react-lifecycles-compat.cjs.js","react-lifecycles-compat.es.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"devDependencies":{"camelcase":"^5.0.0","chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2","rollup":"^0.57.1","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"ed13d4e677832043684ebb9b411fa982cc051bb7","bugs":{"url":"https://github.com/reactjs/react-lifecycles-compat/issues"},"homepage":"https://github.com/reactjs/react-lifecycles-compat#readme","_id":"react-lifecycles-compat@3.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-bOr65SSYgxDgDNqLnDqt+gropXGPNB1Wbyys4tOYiNuP/qYWC4qFM9XH1ruzq+tT6EjE29pJsCr19rclKtpUEg==","shasum":"473820154732f1ccd762e89324abab154255da6b","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.3.tgz","fileCount":8,"unpackedSize":28536,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa8y8qCRA9TVsSAnZWagAAwHQP/2nO+YtQK7kpT1HctgYz\n6HUD+vTUXDXOg1C7CKllqwNdE4uYB21qG/y04Dt3jiu8rm4HgX1w5kNVkd+n\nt9p6H4qSXGjSwFfTQQsRY+YI4JZiBs/hwIM55Y+E3bB08ddWHrXlqroshR8w\nCVx5fFPWhGuh1DQ9eMFVhsjJsxnNM0SNBBkG/U+IQaSZCAZvHSaKQnfanzMI\nouvzVxWnji9G525v5mhVyjiL4ZVlpG73kvS8ajMcdA3qdr3s3y56YwFDw4JA\nyQIU0r7Z80JK+x1HQKjntAKo7ayEUmFTNQqHdjdbZgAGPw11tQRBVu1g3s77\nfZ9AWWYuT4tgHRjLDVJQvvzaYseiyJuA4jDEXlqRXdeh/+3ahUwCuovnCUrK\nOLlezcVhzbiphxPkblrKdH3Muzv4g7cDSI0CNwfAxbn4cOiDCSsFIsxd+Vgw\nkqx/KhWHMyAD95WWrS8NFuzJ1NfOXYk5RTWoNP+VrGuOWCyit77pnaKurPtH\nAdCLAUo1Pz8SAsZ9OevnjG7yT1TMnzG9cQABzqCqcujwlpFoch9mjF9rJXwH\nqskg5PL9rflkDiw+TtQ0OPf0QTZhjAuSZVDsxSweygGfOfeLN45KV+Oox5+4\nSX1ru6xxnueJ+slK/aUkR/mt4o5dtKkCSHpPbW48cDeXaj2RTKu80T0CQ7Kg\n0xc5\r\n=Dxug\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtXu2doUDFT5jTW7h8C6R+mbZLJSrFTLxF/E6fcK1A9gIgNjIZRJ8uKHQ7g7sTiKp69T1uMQpkRIStc2ERnQ8OOco="}]},"maintainers":[{"email":"acdlite@me.com","name":"acdlite"},{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"dg@domgan.com","name":"trueadm"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat_3.0.3_1525886761992_0.734494977230814"},"_hasShrinkwrap":false},"3.0.4":{"name":"react-lifecycles-compat","version":"3.0.4","description":"Backwards compatibility polyfill for React class components","main":"react-lifecycles-compat.cjs.js","module":"react-lifecycles-compat.es.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/reactjs/react-lifecycles-compat.git"},"scripts":{"build":"rollup -c","install:dependencies":"node install.js","lint":"eslint index.js","prepublish":"npm test","pretest":"npm run install:dependencies && npm run build","prettier":"prettier --write {index,test}.js","test":"jest test.js"},"files":["react-lifecycles-compat.cjs.js","react-lifecycles-compat.es.js","react-lifecycles-compat.js","react-lifecycles-compat.min.js"],"devDependencies":{"camelcase":"^5.0.0","chalk":"^2.3.0","eslint":"^4.16.0","eslint-config-es5":"^0.5.0","jest":"^22.1.4","jest-cli":"^22.1.4","prettier":"^1.10.2","rollup":"^0.57.1","rollup-plugin-replace":"^2.0.0","rollup-plugin-uglify":"^3.0.0"},"devEngines":{"node":"8.5 || 9.x"},"gitHead":"f457b78edcf85e44285ce8a840d133917de160da","bugs":{"url":"https://github.com/reactjs/react-lifecycles-compat/issues"},"homepage":"https://github.com/reactjs/react-lifecycles-compat#readme","_id":"react-lifecycles-compat@3.0.4","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"brianvaughn","email":"briandavidvaughn@gmail.com"},"dist":{"integrity":"sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==","shasum":"4f1a273afdfc8f3488a8c516bfda78f872352362","tarball":"https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz","fileCount":8,"unpackedSize":29017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9asSCRA9TVsSAnZWagAA0/QP/ihj4D+KqjSzlN8JQAPc\ngYlNs42V/EhGRGu5NPEf6xdRR3x0kJm3V+/lRezf3zQZ/lNq7Zc3EB1iIYkw\nZOY0niXLFzAraLqkrGW4icumy0lOANNeUdPX9qgdna2vDR9W7MEo+RL+ALxe\nJ8a7TGP+XoV+Eu+hhhh5bKlKjoo3H0c8Vifhd2HNTmv7as03bAimaYHM6hpQ\nigKiKvJ+96pkVVonu/fUVfJ6lzvsmd4PO/kiztfzjY2urzghBSWCmTbTGfjW\n4Yskn8ux8flv3Gvn7aOWdvdDSzRD1YF/kE0xYg7YpQLC/ewV3YK2N4yl7fRu\nV0ZJiAbwcWydAYtepEuTbDAsf1QaRrQkBsxedltgsy9YHwCWWDWNH7FGWls3\n43IB74H9A/930cTp4pu5vJgLFmvgTXoOriiJN9qr28G1PzkU/JF+rBO9k6nC\nosk5AkbcDDNHkS18SF0YpFnWL07A5AzkkZL7hYxQ+P8Ge4OloKFz6QHxt8Sn\nSe3Xutp49SFoEmKcCiaj/mjldASdYsh+07v6Vc/pE5l3AwJddmAmoTel+sVy\n0JALkAjNI11TKTZGpR3axqyOk31AaymsD60jKV2laKm6Ig7vK7Dp3RW7vOiH\n2HhTRkn78yniyi0FdiBEulASpMEcw4IrjAZ97JVOXodmFbvqdKhBCTruC40S\n64Yx\r\n=zkyz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEnoyGmU723ZAqWK1W/mYrLnZMSJBztMx65Zs8uobzi4AiBLThGbpRfCmxqxCeMuh83KX3qKfoS+rdra0RgWTFLqgg=="}]},"maintainers":[{"email":"acdlite@me.com","name":"acdlite"},{"email":"briandavidvaughn@gmail.com","name":"brianvaughn"},{"email":"opensource+npm@fb.com","name":"fb"},{"email":"flarnie.npm@gmail.com","name":"flarnie"},{"email":"dan.abramov@gmail.com","name":"gaearon"},{"email":"npm@sophiebits.com","name":"sophiebits"},{"email":"dg@domgan.com","name":"trueadm"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-lifecycles-compat_3.0.4_1526049554207_0.535416919843893"},"_hasShrinkwrap":false}},"readme":"# react-lifecycles-compat\n\n## What is this project?\n\nReact version 17 will deprecate several of the class component API lifecycles: `componentWillMount`, `componentWillReceiveProps`, and `componentWillUpdate`. (Read the [Update on Async rendering blog post](https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html) to learn more about why.) A couple of new lifecycles are also being added to better support [async rendering mode](https://reactjs.org/blog/2018/03/01/sneak-peek-beyond-react-16.html).\n\nTypically, this type of change would require third party libraries to release a new major version in order to adhere to semver. However, the `react-lifecycles-compat` polyfill offers a way to use the new lifecycles with older versions of React as well (0.14.9+) so no breaking release is required. This enables shared libraries to support both older and newer versions of React simultaneously.\n\n## How can I use the polyfill\n\nFirst, install the polyfill from NPM:\n```sh\n# Yarn\nyarn add react-lifecycles-compat\n\n# NPM\nnpm install react-lifecycles-compat --save\n```\n\nNext, update your component and replace any of the deprecated lifecycles with new ones introduced with React 16.3. (Refer to the React docs for [examples of how to use the new lifecycles](https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html).)\n\nLastly, use the polyfill to make the new lifecycles work with older versions of React:\n```js\nimport React from 'react';\nimport {polyfill} from 'react-lifecycles-compat';\n\nclass ExampleComponent extends React.Component {\n  static getDerivedStateFromProps(nextProps, prevState) {\n    // Normally this method would only work for React 16.3 and newer,\n    // But the polyfill will make it work for older versions also!\n  }\n\n  getSnapshotBeforeUpdate(prevProps, prevState) {\n    // Normally this method would only work for React 16.3 and newer,\n    // But the polyfill will make it work for older versions also!\n  }\n\n  // render() and other methods ...\n}\n\n// Polyfill your component so the new lifecycles will work with older versions of React:\npolyfill(ExampleComponent);\n\nexport default ExampleComponent;\n```\n\n## Which lifecycles are supported?\n\nCurrently, this polyfill supports [static `getDerivedStateFromProps`](https://reactjs.org/docs/react-component.html#static-getderivedstatefromprops) and [`getSnapshotBeforeUpdate`](https://reactjs.org/docs/react-component.html#getsnapshotbeforeupdate)- both introduced in version 16.3.\n\n## Validation\n\nNote that in order for the polyfill to work, none of the following lifecycles can be defined by your component: `componentWillMount`, `componentWillReceiveProps`, or `componentWillUpdate`.\n\nNote also that if your component contains `getSnapshotBeforeUpdate`, `componentDidUpdate` must be defined as well.\n\nAn error will be thrown if any of the above conditions are not met.","maintainers":[{"email":"opensource+npm@fb.com","name":"fb"},{"email":"npm@sophiebits.com","name":"sophiebits"}],"time":{"modified":"2023-08-24T18:08:44.379Z","created":"2018-01-26T00:01:07.691Z","0.0.0":"2018-01-26T00:01:07.691Z","1.0.0":"2018-01-31T17:59:53.588Z","1.0.1":"2018-01-31T18:06:27.204Z","1.0.2":"2018-01-31T18:07:28.717Z","1.1.0":"2018-03-29T01:14:02.723Z","1.1.1":"2018-04-02T16:20:40.716Z","1.1.2":"2018-04-02T23:17:48.579Z","1.1.3":"2018-04-03T15:56:54.025Z","1.1.4":"2018-04-03T17:50:03.837Z","2.0.0":"2018-04-05T02:56:39.928Z","2.0.1":"2018-04-09T20:49:14.527Z","3.0.0":"2018-04-09T21:30:54.422Z","3.0.1":"2018-04-10T14:21:02.460Z","3.0.2":"2018-04-11T14:09:24.617Z","2.0.2":"2018-04-12T22:37:17.864Z","3.0.3":"2018-05-09T17:26:02.095Z","3.0.4":"2018-05-11T14:39:14.276Z"},"readmeFilename":"README.md","description":"Backwards compatibility polyfill for React class components","license":"MIT","homepage":"https://github.com/reactjs/react-lifecycles-compat#readme","repository":{"type":"git","url":"git+https://github.com/reactjs/react-lifecycles-compat.git"},"bugs":{"url":"https://github.com/reactjs/react-lifecycles-compat/issues"}}