pinojs / quick-format-unescaped

Solves a problem with util.format
MIT License
17 stars 13 forks source link

Breaking: take in custom formatter option #40

Open JaneJeon opened 2 years ago

JaneJeon commented 2 years ago

See https://github.com/pinojs/pino/issues/1376

Changes:

JaneJeon commented 2 years ago

@davidmarkclements bump? https://github.com/pinojs/pino/issues/1376

mcollina commented 2 years ago

You can make this non-breaking by doing:

function build(opts) { ... }
const formatter = build(theDefaultOpts)
module.exports = formatter
module.exports.build = build
davidmarkclements commented 2 years ago

hey thanks for this