dillon1000/react
Commit
Browse files Remove ReactPropTypeLocationNames module
ReactPropTypeLocationNames was a map of location identifiers to location display names, for use in warnings. But in practice, this did nothing except rename "childContext" to "child context." Not worth it, IMO. Since we are going to add an API for running prop type checks manually, we need the ability to support arbitrary prop type locations. So each place that used to accept a ReactPropTypeLocation now just accepts a string.
Changed paths9 files
First-parent comparisonsrc/isomorphic/classic/__tests__/ReactContextValidator-test.js ModifiedM src/isomorphic/classic/class/ReactClass.js ModifiedM src/isomorphic/classic/types/ReactPropTypes.js ModifiedM src/isomorphic/classic/types/__tests__/ReactPropTypesProduction-test.js ModifiedM src/renderers/shared/fiber/ReactFiberContext.js ModifiedM src/renderers/shared/stack/reconciler/ReactCompositeComponent.js ModifiedD src/shared/types/ReactPropTypeLocationNames.js DeletedD src/shared/types/ReactPropTypeLocations.js DeletedM src/shared/types/checkReactTypeSpec.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…