Commit 6989da1
Moving react as a peerDependency
- Currently we have react 15.x.x as a hard dependency in react-json-schema.
- If consumers of react-json-schema are still on 0.14.x, this means we will now have two versions of react in our final bundle.
- To avoid this set react 15.x.x as a peer dependency. This way applications consuming react-json-schema can gradually migrate to react 15.x.x and still use react-json-schema with no sideeffects on bundle size1 parent 4c60197 commit 6989da1
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
0 commit comments