From f6d32c48b1fa25c3267463ae10a786c2e8b57e30 Mon Sep 17 00:00:00 2001 From: AlexKVal Date: Sat, 25 Jul 2015 14:27:06 +0300 Subject: [PATCH] [changed] deprecate 'utils/CustomPropTypes' exporting --- src/index.js | 15 ++++++++++++++- src/utils/index.js | 7 ++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index ae6077a6f2..4ac89226c2 100644 --- a/src/index.js +++ b/src/index.js @@ -67,4 +67,17 @@ export Collapse from './Collapse'; export Fade from './Collapse'; export * as FormControls from './FormControls'; -export * as utils from './utils'; + +import childrenValueInputValidation from './utils/childrenValueInputValidation'; +import createChainedFunction from './utils/createChainedFunction'; +import domUtils from './utils/domUtils'; +import ValidComponentChildren from './utils/ValidComponentChildren'; +import CustomPropTypes from './utils/CustomPropTypes'; + +export const utils = { + childrenValueInputValidation, + createChainedFunction, + domUtils, + ValidComponentChildren, + CustomPropTypes +}; diff --git a/src/utils/index.js b/src/utils/index.js index f024432a7b..e0048ad683 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -1,5 +1,10 @@ +import deprecationWarning from './deprecationWarning'; + export childrenValueInputValidation from './childrenValueInputValidation'; export createChainedFunction from './createChainedFunction'; -export CustomPropTypes from './CustomPropTypes'; export domUtils from './domUtils'; export ValidComponentChildren from './ValidComponentChildren'; + +deprecationWarning('utils/CustomPropTypes', 'npm install react-prop-types', + 'https://github.com/react-bootstrap/react-bootstrap/issues/937'); +export CustomPropTypes from './CustomPropTypes';