2.0.0
It's time to drop support for old deprecated applyMiddleware(logger) without options! π
Breaking changes
-
support for old
loggeris dropped, so nowredux-loggersupports onlycreateLogger()with options -
actions now transforms via
actionTransformer, so if you have, for example, action type asSymbol, you need write your own function which returns action withaction.typeasString.const logger = createLogger({ actionTransformer: (action) => { return Object.assign({}, action, { type: String(action.type), }); }, }); const store = applyMiddleware(logger)
Changelog
-
actionTransformer(#31, #33), function which transforms action before logging (for example,SymbolβStringor convertImmutable.jsto plain JS object -
umd builds in
/dist/index.jsand/dist/index.min.jswith namereduxLogger<script src="/redux-logger/dist/index.js"></script> <script> const logger = reduxLogger({ duration: true, collapsed: true, }); </script>
I don't know, maybe somebody needs it.
-
createLogger()now fully documented using JSDoc -
README updated too
-
updated packages in
example -
also updated example for latest best practices (for example, switched from deprecated
react-hot-loadertoreact-transformandreact-transform-hmr), so if you starter inwebpack,reactorredux, check out it, because now that tiny example is more useful than ever.