Make winston a peer dependency, ensuring that the user and module are always using the same version of winston. As a side benefit, users get a newer winston module on their own timeline.
Fix #86. Default output of expressFormat has no color. Add colorize: true to express-winston options to enable the previous colorized output. The colorize option on express-winston is not related to the option of the same name on some winston transports. (Thank you to @brunolemos for pointing the way forward in #109).
Drop support for inherited properties on the object provided to the baseMeta option. Users probably didn't rely on this functionality, and it could've actually been surprising in a bad way. Also allows us to use ES2015 Object.assign in the (very bright) future.
Commits are left un-squashed for the moment to see the thinking process. I'll squash to 3 commits before merge.
There are 3 changes (all breaking):
colorize: true
to express-winston options to enable the previous colorized output. Thecolorize
option on express-winston is not related to the option of the same name on some winston transports. (Thank you to @brunolemos for pointing the way forward in #109).baseMeta
option. Users probably didn't rely on this functionality, and it could've actually been surprising in a bad way. Also allows us to use ES2015Object.assign
in the (very bright) future.Commits are left un-squashed for the moment to see the thinking process. I'll squash to 3 commits before merge.
Feedback welcome!