fix(deps): update dependency log-process-errors to v12 #6077
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:
^8.0.0
->^12.0.0
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
ehmicky/log-process-errors (log-process-errors)
v12.0.0
Compare Source
Breaking changes
18.18.0
v11.0.1
Compare Source
Dependencies
v11.0.0
Compare Source
Breaking changes
16.17.0
v10.2.0
Compare Source
Features
v10.1.1
Compare Source
Internal
v10.1.0
Compare Source
Features
is-error-instance
v10.0.0
Compare Source
Package size
The npm package size has been reduced by 98%, from 4500kB to 87kB.
Custom logic
The
log
option was renamed toonError
. Its argumentsare
(originalError, event)
instead of(error, level, originalError)
.The process error
event
is now passed as a second argument instead of beingset as
error.name
. Its case is not capitalized anymore, to match the eventname in Node.js.
Before:
After:
Pretty-printing
Errors are not pretty-printed anymore. As a consequence, the
colors
option wasremoved too. The
onError
option can be used instead tocustomize how the errors are printed.
Filtering
The
levels
option was removed. TheonError
option canbe used for filtering.
Before:
After:
Testing option
The
testing
option was removed. TheonError
option canbe used instead.
Before:
After:
Process exit
The
exitOn
option was changed from an array of strings to a simpler boolean.It was also renamed
exit
.The exit is still graceful, i.e. it waits for ongoing tasks to complete, up to 3
seconds. However, if there are none, the process now exits immediately.
Before:
After:
Compatibility with other libraries
If other libraries (such as
Winston,
Bugsnag,
etc.) are also listening for process events, they might also try to exit the
process. This created conflicts with this library. This has been fixed by making
the
exit
option default tofalse
when process eventslisteners already exist.
Bug fixes
--unhandled-rejections=strict
error.stack
isundefined
ornull
TypeScript
TypeScript types have been simplified.
Internal
Added 100% test coverage.
v9.4.0
Compare Source
Features
v9.3.0
Compare Source
Documentation
modern-errors
v9.2.0
Compare Source
Features
v9.1.0
Compare Source
Features
v9.0.0
Compare Source
Breaking changes
14.18.0
Configuration
📅 Schedule: Branch creation - "* 0-3 * * 1" (UTC), Automerge - 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 was generated by Mend Renovate. View the repository job log.