Skip to content

2.7.0 — diff (alpha), formatter for title

Compare
Choose a tag to compare
@imevro imevro released this 05 Oct 19:41
· 67 commits to master since this release

Diff

@sibelius merged redux-diff-logger and now you can use it by passing diff: true to options in createLogger(), f.e.

const logger = createLogger({
  diff: true,
});

❗️ Diff is very unstable and not tested, so we don't recommend use it as primary feature of logging.

Formatter for title

@spalger made titleFormatter option (#165)

titleFormatter = (action: Object, time: String?, took: Number?) => title

Format the title used for each action.

Default: prints something like action @ ${time} ${action.type} (in ${took.toFixed(2)} ms)

Bugfixes

  • fix: performance now checking for null and don't fail with TypeError (#173)
  • fix: default color of title now inherits console's default color (#176)