From fbf9ed64ca2dedd8dde5245e99f9c6b59b8790f4 Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Sun, 19 Jul 2015 07:38:24 -0600 Subject: [PATCH] [changed] Add deprecation warning that factories will be removed For details see #825 --- src/templates/factory.index.js.template | 2 ++ src/templates/factory.js.template | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/templates/factory.index.js.template b/src/templates/factory.index.js.template index de68c1c23e..baaeb1ef02 100644 --- a/src/templates/factory.index.js.template +++ b/src/templates/factory.index.js.template @@ -2,6 +2,8 @@ import <%= component %> from './<%= component %>'; <% }); %> +console.warn('Support for factories will be removed in v0.25, for details see https://github.com/react-bootstrap/react-bootstrap/issues/825'); + export default { <% _.forEach(components, function (component) { %> <%= component %>, diff --git a/src/templates/factory.js.template b/src/templates/factory.js.template index d89a79c954..051dbd144e 100644 --- a/src/templates/factory.js.template +++ b/src/templates/factory.js.template @@ -1,4 +1,6 @@ import React from 'react'; import <%= name %> from '../<%= name %>'; +console.warn('Support for factories will be removed in v0.25, for details see https://github.com/react-bootstrap/react-bootstrap/issues/825'); + export default React.createFactory(<%= name %>);