This repo is a fork of https://github.com/JedWatson/react-select frozen in time at v1.0.0-rc.10
(Sept 13, 2017). The state of the code at this version tag can be browsed here.
We fell behind on versions, and the upgrade from a v1 release candidate to v3 includes major non-trivial changes (v2 was also a very significant upgrade with breaking changes). In the meantime, React 16.9
introduced deprecations for a number of lifecycle methods, so react-select
is throwing a bunch of deprecation warnings in the console.
This fork will allow us to:
- Edit the source code to remove the deprecated lifecycle methods to in turn remove the warnings.
- Use v1 and v3 of
react-select
simultaneously while we upgreade each consumer (since this fork is referenced asreact-select-legacy
inpackage.json
in our other repos, it will not collide withreact-select
).
If additional updates are needed to this source code, the process is:
- Create a branch against this repo
- Make the necessary changes to the code
- Run
npm run build
(this will transpile/src
into/lib
via Babel) - Update the "version" key in
package.json
by incrementing the version number (e.g.1.0.0-rc.10
-->1.0.0-rc.11
). - Commit all the changes
- Issue a PR & merge
- Create a new GitHub Release by clicking "Draft a new release" on the Releases page. Use the same version number you just added in
package.json
, and prefix with a "v" (v1.0.0-rc.11
). - In the repo consuming this forked package, update
package.json
to point to the updated release version."react-select-legacy": "https://github.com/ThriveTrm/react-select#v1.0.0-rc.11"
, thenyarn install
If you need to test your in-progress-changes via the consumer repos, you can do so by pointing the consumer's package.json
directly at a branch of this repo rather than a release version: "react-select-legacy": "https://github.com/ThriveTrm/react-select#branch-name-here"
, then yarn install