Skip to content

Latest commit

 

History

History
89 lines (64 loc) · 4.71 KB

CHANGELOG.md

File metadata and controls

89 lines (64 loc) · 4.71 KB

3.4.0

  • Added: Nested Whitelists (#225, @kapalex)

3.3.0

  • Added: options.headerBlacklist (#217, @maxday)

3.2.1

  • Added: options.skip (#214, #147, @ahnkee)

3.2.0

  • Replaced: _header -> getHeader (#210, @Gregoirevda)
  • Replaced coverage tool blanket with nyc (#211, @golopot)
  • Add eslint and fix lint errors (#212, @golopot)

3.1.0

  • Fix large _.template memory consumption (#203, @slickmb)

3.0.1

  • Add format to options to allow user-specified formatting following winston@3 conventions (#190, @crellison)

3.0.0

express-winston@3 shouldn't have any breaking changes of its own, but there are breaking changes as a result of upgrading winston and Node.js.

[email protected] will be the last version to support winston@2.

Breaking changes

2.6.0

  • Add exceptionToMeta and blacklistedMetaFields for filtering returned meta object (#173, @cubbuk)

2.5.1

  • Allow msg to be a function (#160, @brendancwood)

2.5.0

  • Reduce memory usage (#164, @Kmaschta)

2.4.0

  • Allow options.level to be a function for dynamic level setting (#148, @CryptArchy)

2.3.0

  • Allow line breaks inside msg interpolation (#143, @ltegman)

2.2.0

  • Add dynamic metadata support to error logger (#139, @scarlettsteph)

2.1.3

  • Re-enable logging of req.body when request whitelist contains body and there is no no body whitelist/blacklist (broken in 2.1.1) (#136)

2.1.2

  • Fix error throwing when no req is logged (#130)

2.1.1

  • Fix bodyBlacklist not working when requestWhitelist contains body (#128, @jacobcabantomski-ct)

2.1.0

  • Add dynamic metadata support (#124, @jpdelima)
  • Add support for colorize-ing status code, no expressFormat required (#121)

2.0.0

Breaking changes

  • Make winston a peer dependency. npm install --save winston if you haven't already.
  • expressFormat has no color by default. Add colorize: true to express-winston options to enable the previous colorized output. (#86)
  • Drop support for inherited properties on the object provided to the baseMeta option. This is unlikely to actually break anyone's real-world setup.

1.4.2

  • Upgrade winston to 1.1 (#114)

1.4.1

  • Don't throw exception on invalid JSON in response body (#112)

1.4.0

  • Allow custom log level for error logger (#111)

1.3.1

  • underscore -> lodash (#88)

1.3.0

  • Allow custom status levels (#102)
  • Add per-instance equivalents of all global white/blacklists (#105)
  • Allow user to override module-level whitelists and functions without having to worry about using the right object reference (#92)

1.2.0

  • Add baseMeta and metaField options (#91)
  • Document requestFilter and responseFilter options
  • Drop support for node 0.6 and 0.8