Skip to content

Releases: LogRocket/redux-logger

2.0.1

29 Sep 09:53
Compare
Choose a tag to compare

Changelog

  • fix: formatted action didn't passed to logger (thanks @fshowalter, #37)

2.0.0

25 Sep 05:35
Compare
Choose a tag to compare

It's time to drop support for old deprecated applyMiddleware(logger) without options! 🎉

Breaking changes

  • support for old logger is dropped, so now redux-logger supports only createLogger() with options

  • actions now transforms via actionTransformer, so if you have, for example, action type as Symbol, you need write your own function which returns action with action.type as String.

    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, SymbolString or convert Immutable.js to plain JS object

  • umd builds in /dist/index.js and /dist/index.min.js with name reduxLogger

    <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 to react-transform and react-transform-hmr), so if you starter in webpack, react or redux, check out it, because now that tiny example is more useful than ever.

1.0.9

22 Sep 07:16
Compare
Choose a tag to compare

Changelog

  • fix: performance is undefined error (#29 by #30)

1.0.8

16 Sep 06:14
Compare
Choose a tag to compare

Changelog

  • feat: collapsed option can take predicate function as value ((getState, action) => boolean) (#25)

P.S: boolean value supported too, of course.

1.0.7

15 Sep 17:43
Compare
Choose a tag to compare

Changelog

  • feat: log duration of action (#24)

1.0.6

24 Aug 15:35
Compare
Choose a tag to compare

Changelog

  • feat: timestamp as option (#18)

1.0.5

22 Aug 19:51
Compare
Choose a tag to compare

Changelog

  • feat: state transformer in options (#16)

1.0.4

22 Aug 10:04
Compare
Choose a tag to compare

Changelog

  • feat: add support for Symbol action types (#14)

1.0.3

21 Aug 06:11
Compare
Choose a tag to compare

Changelog

  • fix: custom loggers from 1.0.2 broke console (#12)

1.0.2

21 Aug 05:23
Compare
Choose a tag to compare

Changelog

  • feat: custom loggers (thanks @idolize for PR #9)
import CustomNodeLoggerWithColors from 'node-colors-log';

const logger = createLogger({
  logger: CustomNodeLoggerWithColors
});