Skip to content

Releases: LogRocket/redux-logger

1.0.1

21 Aug 04:25
Compare
Choose a tag to compare

Changelog:

  • fix: createLogger() threw error if doesn't have any parameters (#10).

1.0.0

20 Aug 21:18
Compare
Choose a tag to compare

Wow, first release for this tiny library!

It's a huge release because now logger is a function which accepts options as argument.

0.0.x

import logger from 'redux-logger';

const createStoreWithMiddleware = applyMiddleware(logger)(createStore);
const store = createStoreWithMiddleware(reducer);

1.0.0

import createLogger from 'redux-logger';

const logger = createLogger({
  level: 'info',
  collapsed: true,
  predicate: (getState, action) => action.type !== AUTH_REMOVE_TOKEN
});

const createStoreWithMiddleware = applyMiddleware(logger)(createStore);
const store = createStoreWithMiddleware(reducer);

It's very important part by @wizardzloy, who made this in #5 and give us so much flexible logger.

1.0.0 isn't break up old behavior but it's deprecated and will be removed 1.1.0.

Changelog

  • feat: log level (#3)
  • feat: bypass logging (#4)
  • feat: group collapsed (#1)