Releases: LogRocket/redux-logger
2.0.1
2.0.0
It's time to drop support for old deprecated applyMiddleware(logger)
without options! 🎉
Breaking changes
-
support for old
logger
is dropped, so nowredux-logger
supports 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.type
asString
.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
→String
or convertImmutable.js
to plain JS object -
umd builds in
/dist/index.js
and/dist/index.min.js
with 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-loader
toreact-transform
andreact-transform-hmr
), so if you starter inwebpack
,react
orredux
, check out it, because now that tiny example is more useful than ever.