Skip to content

Latest commit

 

History

History
109 lines (74 loc) · 3.68 KB

CHANGELOG.md

File metadata and controls

109 lines (74 loc) · 3.68 KB

CHANGELOG

4.3.0 (2018/12/23)

  • [#30] Precompile before publishing to npm.
  • [#32] Add new option to increase default highWaterMark value.

4.2.0 (2018/06/11)

  • [#26] Do not use copy-by-value for this.level.
  • [#25] Wrap calls to format.transform with try / catch.
  • [#24] Use readable-stream package to get the _final semantics across all versions of Node.

4.1.0 (2018/05/31)

  • [#23] Revert to prototypal-based syntax for backwards compatibility.

4.0.0 (2018/05/24)

  • BREAKING Update transports to use ES6 classes. Creation of TransportStream and LegacyTransportStream now requires the new keyword.

No longer works

const Transport = require('winston-transport');
const transport = Transport({
  log: (info, callback) => { /* log something */ }
});

Do this instead

const Transport = require('winston-transport');
const transport = new Transport({
  log: (info, callback) => { /* log something */ }
});

3.3.0 (2018/05/24)

Unpublished: overlooked that 26f816e introduced a breaking change.

  • [#21] Do not log when there is no info object.
  • [#20] Add silent options to typings.
  • [#19] Refactor test fixtures to use es6-classes.
  • [#18] Use triple-beam for info object constants.
  • [#17] Add linting and Node v10 to the travis build of the project.

3.2.1 (2018/04/25)

  • [#16] Reorder in TS defs: namespace must come after class in order for delcaration merging to work as expected.

3.2.0 (2018/04/22)

  • [#13] Add silent support to LegacyTransportStream. Fixes [#8].
  • [#14] Ensure that if a Transport-specific format is provided it is invoked on each chunk before passing it to .log. Fixes [#12].
  • [#11] Revice d.ts
  • Add .travis.yml.
  • Documentation updates:
    • [#5] Update deprecated link.
    • [#7] Correct this reference in README.md by using an arrow function.

3.1.0 (2018/04/06)

  • [#10] Add silent option to TransportStream. Still needs to be implemented for LegacyTransportStream.
  • Bump mocha to ^5.0.5.
  • Bump nyc to ^11.6.0.

3.0.1 (2017/10/01)

  • [#4] Use ES6-class for defining Transport in README.md.
  • [#4] Do not overwrite prototypal methods unless they are provided in the options.

3.0.0 (2017/09/29)

  • Use Symbol.for('level') to lookup immutable level on info objects.

2.1.1 (2017/09/29)

  • Properly interact with the { format }, if provided.

2.1.0 (2017/09/27)

  • If a format is defined use it to mutate the info.

2.0.0 (2017/04/11)

  • #2 Final semantics for winston-transport base implementations:
    • TransportStream: the new objectMode Writable stream which should be the base for all future Transports after winston >= 3.
    • LegacyTransportStream: the backwards compatible wrap to Transports written for winston < 3. There isn't all that much different for those implementors except that log(level, message, meta, callback) is now log(info, callback) where info is the object being plumbed along the objectMode pipe-chain. This was absolutely critical to not "break the ecosystem" and give the over 500 Transport package authors an upgrade path.
    • Along with all the code coverage & WritableStream goodies:
      • 100% code coverage for TransportStream
      • 100% code coverage for LegacyTransportStream
      • Implementation of _writev for TransportStream
      • Implementation of _writev for LegacyTransportStream

1.0.2 (2015/11/30)

  • Pass the write stream callback so that we can communicate backpressure up the chain of streams.

1.0.1 (2015/11/22)

  • First require-able version.

1.0.0 (2015/11/22)

  • Initial version.