Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency log-process-errors to v12 #6077

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 18, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
log-process-errors ^8.0.0 -> ^12.0.0 age adoption passing confidence

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

  • Minimal supported Node.js version is now 18.18.0

v11.0.1

Compare Source

Dependencies

  • Upgrade internal dependencies

v11.0.0

Compare Source

Breaking changes

  • Minimal supported Node.js version is now 16.17.0

v10.2.0

Compare Source

Features

  • Improve tree-shaking support

v10.1.1

Compare Source

Internal

  • Add more tests

v10.1.0

Compare Source

Features

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 to onError. Its arguments
are (originalError, event) instead of (error, level, originalError).

The process error event is now passed as a second argument instead of being
set as error.name. Its case is not capitalized anymore, to match the event
name in Node.js.

Before:

logProcessErrors({
  log: (error) => {
    if (error.name === 'UncaughtException') {
      console.error(error)
    }
  },
})

After:

logProcessErrors({
  onError: (error, event) => {
    if (event === 'uncaughtException') {
      console.error(error)
    }
  },
})

Pretty-printing

Errors are not pretty-printed anymore. As a consequence, the colors option was
removed too. The onError option can be used instead to
customize how the errors are printed.

Filtering

The levels option was removed. The onError option can
be used for filtering.

Before:

logProcessErrors({
  levels: {
    warning: 'silent',
  },
})

After:

logProcessErrors({
  onError: (error, event) => {
    if (event !== 'warning') {
      console.error(error)
    }
  },
})

Testing option

The testing option was removed. The onError option can
be used instead.

Before:

logProcessErrors({ testing: 'ava' })

After:

logProcessErrors({
  // Throw the `error` to make the unit test fail while letting other tests run
  onError: (error) => {
    throw error
  },
})

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:

logProcessErrors({ exitOn: [] })

After:

logProcessErrors({ exit: false })

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 to false when process events
listeners already exist.

Bug fixes

  • Fix support for --unhandled-rejections=strict
  • Do not crash when error.stack is undefined or null
  • Support cross-realm errors

TypeScript

TypeScript types have been simplified.

Internal

Added 100% test coverage.

v9.4.0

Compare Source

Features

  • Reduce npm package size

v9.3.0

Compare Source

Documentation

v9.2.0

Compare Source

Features

  • Reduce npm package size

v9.1.0

Compare Source

Features

  • Add TypeScript types

v9.0.0

Compare Source

Breaking changes

  • Minimal supported Node.js version is now 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added dependencies Pull requests that update a dependency file javascript labels Feb 18, 2025
@renovate renovate bot requested a review from a team as a code owner February 18, 2025 18:32
@mrstork
Copy link
Contributor

mrstork commented Feb 18, 2025

Requires minimum node version >= 18.18

@mrstork mrstork closed this Feb 18, 2025
@mrstork mrstork deleted the renovate/log-process-errors-12.x branch February 18, 2025 18:35
Copy link
Contributor Author

renovate bot commented Feb 18, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 12.x releases. But if you manually upgrade to 12.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant