This repository has been archived by the owner on Nov 10, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~6.13.0
->~7.1.0
Release Notes
pinojs/pino
v7.1.0
Compare Source
What's Changed
New Contributors
Full Changelog: pinojs/pino@v7.0.5...v7.1.0
v7.0.5
Compare Source
What's Changed
Full Changelog: pinojs/pino@v7.0.4...v7.0.5
v7.0.4
Compare Source
What's Changed
New Contributors
Full Changelog: pinojs/pino@v7.0.3...v7.0.4
v7.0.3
Compare Source
What's Changed
New Contributors
Full Changelog: pinojs/pino@v7.0.2...v7.0.3
v7.0.2
Compare Source
What's Changed
pino.multistream
by @clemyan in https://github.com/pinojs/pino/pull/1152New Contributors
Full Changelog: pinojs/pino@v7.0.1...v7.0.2
v7.0.1
Compare Source
Updated install instructions
Full Changelog: pinojs/pino@v7.0.0...v7.0.1
v7.0.0
Compare Source
New Features
pino.transport()
Create a a stream that routes logs to a worker thread that
wraps around a Pino Transport.
Multiple transports may also be defined, and specific levels can be logged to each transport:
Transports may alternatively be arranged in a pipeline:
For more on transports, how they work, and how to create them see the
Transports documentation
.The internal implementation is based on
thread-stream
⇗.`pino.multistream()``
We have embedded a part of
pino-multi-stream
into pino itself, so you would be able to write to multiple streams from the same pino instance:This differs from
pino.transport()
as all the streams will be executed within the main thread, i.e. the one that created the pino instance.Added TypeScript types
Types have been added to the the project, so you can now use pino with TypeScript without downloading any additional types: you should remove
@types/pino
from your project. The following typescript example would now work correctly:Updated sonic-boom
sonic-boom, our
fs.createWriteStream()
replacement has become safer to use in v2.x.A few selected changes:
Solved "exit" problem for
sync: false
destinations and transportsThanks to the addition of
WeakRef
andFinalizationRegistry
to JavaScript (available in Node.js v14+) we can automatically flush asynchronous streams when the processes exits without leaking memory.Check out https://github.com/mcollina/on-exit-leak-free.
Breaking Changes
Deprecation of
prettyPrint
optionThe
prettyPrint
option has been deprecated in favor of the new transport system.Dropped Node.js v10.x
Node.js v10 went out of LTS/Maintenance in April 2021.
We are dropping support.
Apply
err
serializer everywhereWe will start applying the
err
serializer also toError
objects passed in as first argument to log methods, e.g.log.info(new Error('kaboom'))
will pass through the serializer.Removal of extreme mode
Extreme mode has been deprecated in previous release cycle and it has now been removed.
Pull Requests
options.level
documentation of the child logger by @marcbachmann in https://github.com/pinojs/pino/pull/1125Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.