diff --git a/chapter-04/todo/package.json b/chapter-04/todo/package.json index 7449178..d1c22c6 100644 --- a/chapter-04/todo/package.json +++ b/chapter-04/todo/package.json @@ -4,7 +4,7 @@ "private": true, "devDependencies": { "react-scripts": "0.8.4", - "redux-immutable-state-invariant": "^1.2.4" + "redux-immutable-state-invariant": "^2.0.0" }, "dependencies": { "react": "^15.4.1", diff --git a/chapter-04/todo/src/Store.js b/chapter-04/todo/src/Store.js index 855246c..0f89479 100644 --- a/chapter-04/todo/src/Store.js +++ b/chapter-04/todo/src/Store.js @@ -15,7 +15,7 @@ const reducer = combineReducers({ const middlewares = []; if (process.env.NODE_ENV !== 'production') { - middlewares.push(require('redux-immutable-state-invariant')()); + middlewares.push(require('redux-immutable-state-invariant').default()); } const storeEnhancers = compose( diff --git a/chapter-04/todo_controlled_component/package.json b/chapter-04/todo_controlled_component/package.json index 7449178..d1c22c6 100644 --- a/chapter-04/todo_controlled_component/package.json +++ b/chapter-04/todo_controlled_component/package.json @@ -4,7 +4,7 @@ "private": true, "devDependencies": { "react-scripts": "0.8.4", - "redux-immutable-state-invariant": "^1.2.4" + "redux-immutable-state-invariant": "^2.0.0" }, "dependencies": { "react": "^15.4.1", diff --git a/chapter-04/todo_controlled_component/src/Store.js b/chapter-04/todo_controlled_component/src/Store.js index 855246c..0f89479 100644 --- a/chapter-04/todo_controlled_component/src/Store.js +++ b/chapter-04/todo_controlled_component/src/Store.js @@ -15,7 +15,7 @@ const reducer = combineReducers({ const middlewares = []; if (process.env.NODE_ENV !== 'production') { - middlewares.push(require('redux-immutable-state-invariant')()); + middlewares.push(require('redux-immutable-state-invariant').default()); } const storeEnhancers = compose( diff --git a/chapter-05/todo_perf/package.json b/chapter-05/todo_perf/package.json index 7449178..d1c22c6 100644 --- a/chapter-05/todo_perf/package.json +++ b/chapter-05/todo_perf/package.json @@ -4,7 +4,7 @@ "private": true, "devDependencies": { "react-scripts": "0.8.4", - "redux-immutable-state-invariant": "^1.2.4" + "redux-immutable-state-invariant": "^2.0.0" }, "dependencies": { "react": "^15.4.1", diff --git a/chapter-05/todo_perf/src/Store.js b/chapter-05/todo_perf/src/Store.js index 04fc8e9..759a386 100644 --- a/chapter-05/todo_perf/src/Store.js +++ b/chapter-05/todo_perf/src/Store.js @@ -15,7 +15,7 @@ const reducer = combineReducers({ const middlewares = []; if (process.env.NODE_ENV !== 'production') { - middlewares.push(require('redux-immutable-state-invariant')()); + middlewares.push(require('redux-immutable-state-invariant').default()); } const storeEnhancers = compose( diff --git a/chapter-05/todo_with_selector/package.json b/chapter-05/todo_with_selector/package.json index 465aa61..136b333 100644 --- a/chapter-05/todo_with_selector/package.json +++ b/chapter-05/todo_with_selector/package.json @@ -6,7 +6,7 @@ "enzyme": "^2.7.0", "react-addons-test-utils": "^15.4.2", "react-scripts": "0.8.4", - "redux-immutable-state-invariant": "^1.2.4" + "redux-immutable-state-invariant": "^2.0.0" }, "dependencies": { "react": "^15.4.1", diff --git a/chapter-05/todo_with_selector/src/Store.js b/chapter-05/todo_with_selector/src/Store.js index 04fc8e9..759a386 100644 --- a/chapter-05/todo_with_selector/src/Store.js +++ b/chapter-05/todo_with_selector/src/Store.js @@ -15,7 +15,7 @@ const reducer = combineReducers({ const middlewares = []; if (process.env.NODE_ENV !== 'production') { - middlewares.push(require('redux-immutable-state-invariant')()); + middlewares.push(require('redux-immutable-state-invariant').default()); } const storeEnhancers = compose( diff --git a/chapter-07/weather_redux/package.json b/chapter-07/weather_redux/package.json index e951e45..8b7a011 100644 --- a/chapter-07/weather_redux/package.json +++ b/chapter-07/weather_redux/package.json @@ -5,7 +5,7 @@ "proxy": "http://www.weather.com.cn/", "devDependencies": { "react-scripts": "0.8.4", - "redux-immutable-state-invariant": "^1.2.4", + "redux-immutable-state-invariant": "^2.0.0", "redux-mock-store": "^1.2.1", "sinon": "^1.17.7" }, diff --git a/chapter-07/weather_redux/src/Store.js b/chapter-07/weather_redux/src/Store.js index 006d5f7..c3a6d5a 100644 --- a/chapter-07/weather_redux/src/Store.js +++ b/chapter-07/weather_redux/src/Store.js @@ -15,7 +15,7 @@ const reducer = combineReducers({ const middlewares = [thunkMiddleware]; if (process.env.NODE_ENV !== 'production') { - middlewares.push(require('redux-immutable-state-invariant')()); + middlewares.push(require('redux-immutable-state-invariant').default()); } const storeEnhancers = compose( diff --git a/chapter-07/weather_redux_improved/package.json b/chapter-07/weather_redux_improved/package.json index 0b4fcd7..d21def5 100644 --- a/chapter-07/weather_redux_improved/package.json +++ b/chapter-07/weather_redux_improved/package.json @@ -5,7 +5,7 @@ "proxy": "http://www.weather.com.cn/", "devDependencies": { "react-scripts": "0.8.4", - "redux-immutable-state-invariant": "^1.2.4" + "redux-immutable-state-invariant": "^2.0.0" }, "dependencies": { "react": "^15.4.1", diff --git a/chapter-07/weather_redux_improved/src/Store.js b/chapter-07/weather_redux_improved/src/Store.js index 006d5f7..c3a6d5a 100644 --- a/chapter-07/weather_redux_improved/src/Store.js +++ b/chapter-07/weather_redux_improved/src/Store.js @@ -15,7 +15,7 @@ const reducer = combineReducers({ const middlewares = [thunkMiddleware]; if (process.env.NODE_ENV !== 'production') { - middlewares.push(require('redux-immutable-state-invariant')()); + middlewares.push(require('redux-immutable-state-invariant').default()); } const storeEnhancers = compose( diff --git a/chapter-09/weather_with_promise_middleware/package.json b/chapter-09/weather_with_promise_middleware/package.json index 0b4fcd7..d21def5 100644 --- a/chapter-09/weather_with_promise_middleware/package.json +++ b/chapter-09/weather_with_promise_middleware/package.json @@ -5,7 +5,7 @@ "proxy": "http://www.weather.com.cn/", "devDependencies": { "react-scripts": "0.8.4", - "redux-immutable-state-invariant": "^1.2.4" + "redux-immutable-state-invariant": "^2.0.0" }, "dependencies": { "react": "^15.4.1", diff --git a/chapter-09/weather_with_promise_middleware/src/Store.js b/chapter-09/weather_with_promise_middleware/src/Store.js index d3f13ea..e8e75e7 100644 --- a/chapter-09/weather_with_promise_middleware/src/Store.js +++ b/chapter-09/weather_with_promise_middleware/src/Store.js @@ -16,7 +16,7 @@ const reducer = combineReducers({ const middlewares = [promiseMiddleware]; if (process.env.NODE_ENV !== 'production') { - middlewares.push(require('redux-immutable-state-invariant')()); + middlewares.push(require('redux-immutable-state-invariant').default()); } const storeEnhancers = compose( diff --git a/chapter-10/todo_animated/package.json b/chapter-10/todo_animated/package.json index 682da01..1cde1eb 100644 --- a/chapter-10/todo_animated/package.json +++ b/chapter-10/todo_animated/package.json @@ -4,7 +4,7 @@ "private": true, "devDependencies": { "react-scripts": "0.8.4", - "redux-immutable-state-invariant": "^1.2.4" + "redux-immutable-state-invariant": "^2.0.0" }, "dependencies": { "react": "^15.4.1", diff --git a/chapter-10/todo_animated/src/Store.js b/chapter-10/todo_animated/src/Store.js index 04fc8e9..759a386 100644 --- a/chapter-10/todo_animated/src/Store.js +++ b/chapter-10/todo_animated/src/Store.js @@ -15,7 +15,7 @@ const reducer = combineReducers({ const middlewares = []; if (process.env.NODE_ENV !== 'production') { - middlewares.push(require('redux-immutable-state-invariant')()); + middlewares.push(require('redux-immutable-state-invariant').default()); } const storeEnhancers = compose( diff --git a/chapter-10/todo_react_motion/package.json b/chapter-10/todo_react_motion/package.json index ca1f000..abb1665 100644 --- a/chapter-10/todo_react_motion/package.json +++ b/chapter-10/todo_react_motion/package.json @@ -6,7 +6,7 @@ "enzyme": "^2.7.0", "react-addons-test-utils": "^15.4.2", "react-scripts": "0.8.4", - "redux-immutable-state-invariant": "^1.2.4" + "redux-immutable-state-invariant": "^2.0.0" }, "dependencies": { "react": "^15.4.1", diff --git a/chapter-10/todo_react_motion/src/Store.js b/chapter-10/todo_react_motion/src/Store.js index 04fc8e9..759a386 100644 --- a/chapter-10/todo_react_motion/src/Store.js +++ b/chapter-10/todo_react_motion/src/Store.js @@ -15,7 +15,7 @@ const reducer = combineReducers({ const middlewares = []; if (process.env.NODE_ENV !== 'production') { - middlewares.push(require('redux-immutable-state-invariant')()); + middlewares.push(require('redux-immutable-state-invariant').default()); } const storeEnhancers = compose( diff --git a/chapter-11/chunked_with_redux/package.json b/chapter-11/chunked_with_redux/package.json index f5e7ef3..98bb116 100644 --- a/chapter-11/chunked_with_redux/package.json +++ b/chapter-11/chunked_with_redux/package.json @@ -38,7 +38,7 @@ "promise": "7.1.1", "react-dev-utils": "^0.4.2", "recursive-readdir": "2.1.0", - "redux-immutable-state-invariant": "^1.2.4", + "redux-immutable-state-invariant": "^2.0.0", "strip-ansi": "3.0.1", "style-loader": "0.13.1", "url-loader": "0.5.7", diff --git a/chapter-11/chunked_with_redux/src/Store.js b/chapter-11/chunked_with_redux/src/Store.js index 92173c1..938cee4 100644 --- a/chapter-11/chunked_with_redux/src/Store.js +++ b/chapter-11/chunked_with_redux/src/Store.js @@ -14,7 +14,7 @@ const win = window; const middlewares = []; if (process.env.NODE_ENV !== 'production') { - middlewares.push(require('redux-immutable-state-invariant')()); + middlewares.push(require('redux-immutable-state-invariant').default()); } const storeEnhancers = compose( diff --git a/chapter-12/express_server/package.json b/chapter-12/express_server/package.json index e93d878..f5d8e5f 100644 --- a/chapter-12/express_server/package.json +++ b/chapter-12/express_server/package.json @@ -38,7 +38,7 @@ "promise": "7.1.1", "react-dev-utils": "^0.4.2", "recursive-readdir": "2.1.0", - "redux-immutable-state-invariant": "^1.2.4", + "redux-immutable-state-invariant": "^2.0.0", "strip-ansi": "3.0.1", "style-loader": "0.13.1", "url-loader": "0.5.7", diff --git a/chapter-12/express_server/src/Store.js b/chapter-12/express_server/src/Store.js index 92173c1..938cee4 100644 --- a/chapter-12/express_server/src/Store.js +++ b/chapter-12/express_server/src/Store.js @@ -14,7 +14,7 @@ const win = window; const middlewares = []; if (process.env.NODE_ENV !== 'production') { - middlewares.push(require('redux-immutable-state-invariant')()); + middlewares.push(require('redux-immutable-state-invariant').default()); } const storeEnhancers = compose( diff --git a/chapter-12/isomorphic/package.json b/chapter-12/isomorphic/package.json index d8f367e..ddaf9b1 100644 --- a/chapter-12/isomorphic/package.json +++ b/chapter-12/isomorphic/package.json @@ -38,7 +38,7 @@ "promise": "7.1.1", "react-dev-utils": "^0.4.2", "recursive-readdir": "2.1.0", - "redux-immutable-state-invariant": "^1.2.4", + "redux-immutable-state-invariant": "^2.0.0", "strip-ansi": "3.0.1", "style-loader": "0.13.1", "url-loader": "0.5.7", diff --git a/chapter-12/isomorphic/src/Store.js b/chapter-12/isomorphic/src/Store.js index ac94cc1..b713cae 100644 --- a/chapter-12/isomorphic/src/Store.js +++ b/chapter-12/isomorphic/src/Store.js @@ -15,7 +15,7 @@ const configureStore = () => { const middlewares = []; if (process.env.NODE_ENV !== 'production') { - middlewares.push(require('redux-immutable-state-invariant')()); + middlewares.push(require('redux-immutable-state-invariant').default()); } const storeEnhancers = compose(