keokilee / react-typescript-boilerplate

Boilerplate project for setting up Typescript and React with Babel and Webpack.
ISC License
114 stars 23 forks source link

redux@3.1.0 untested ⚠️ #114

Closed greenkeeperio-bot closed 8 years ago

greenkeeperio-bot commented 8 years ago

Hello :wave:

:warning::warning::warning:

redux just published its new version 3.1.0, which is covered by your current version range. No automated tests are configured for this project.

This means it’s now unclear whether your software still works. Manually check if that’s still the case and close this pull request – if it broke, use this branch to work on adaptions and fixes.

Do you think getting a pull request for every single new version of your dependencies is too noisy? Configure continuous integration and you will only receive them when tests fail. 

Happy fixing and merging :palm_tree:


GitHub Release

Wait, what?

You don’t have to change anything. However if you use store enhancers such as applyMiddleware() or Redux DevTools you might like that you can now express the same code in a more JavaScript-friendly way:

- const createStoreWithMiddleware = applyMiddleware(
-   thunk,
-   logger
- )(createStore)
- const store = createStoreWithMiddleware(
-   rootReducer,
-   initialState
- )
+ const store = createStore(
+   rootReducer,
+   initialState,
+   applyMiddleware(thunk, logger)
+ )

For multiple store enhancers you can still use compose() but in a similar more straightforward fashion:

- const finalCreateStore = compose(
-   applyMiddleware(thunk, logger),
-   DevTools.instrument()
- )(createStore)
- const store = finalCreateStore(reducer, initialState)
+ const store = createStore(
+   reducer,
+   initialState,
+   compose(
+     applyMiddleware(thunk, logger),
+     DevTools.instrument()
+   )
+ )

The second initialState argument stays optional so you can skip it when specifying the enhancer.

The old way of doing things still works, too.
We’re just adding a nicer way to apply enhancers, that’s all.

Happy reducing!


The new version differs by 125 commits .

There are 125 commits in total. See the full diff.


This pull request was created by greenkeeper.io. It keeps your software, up to date, all the time.

Tired of seeing this sponsor message? Upgrade to the supporter plan! You'll also get your pull requests faster :zap: