Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ehmicky/log-process-errors
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 10.1.1
Choose a base ref
...
head repository: ehmicky/log-process-errors
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 10.2.0
Choose a head ref

Commits on Oct 16, 2022

  1. Copy the full SHA
    8836ac9 View commit details

Commits on Oct 23, 2022

  1. Copy the full SHA
    a348aa3 View commit details
  2. Fix linting

    ehmicky committed Oct 23, 2022
    Copy the full SHA
    e5e90a7 View commit details
  3. Copy the full SHA
    8c993db View commit details

Commits on Oct 29, 2022

  1. Refactor types

    ehmicky committed Oct 29, 2022
    Copy the full SHA
    bf24592 View commit details

Commits on Oct 30, 2022

  1. Copy the full SHA
    847ee33 View commit details
  2. Copy the full SHA
    c44d246 View commit details
  3. Add Related project

    ehmicky committed Oct 30, 2022
    Copy the full SHA
    e5e98ae View commit details
  4. Improve README

    ehmicky committed Oct 30, 2022
    Copy the full SHA
    1d81dac View commit details
  5. Copy the full SHA
    1332bba View commit details
  6. Use node: URLs

    ehmicky committed Oct 30, 2022
    Copy the full SHA
    df4d777 View commit details

Commits on Nov 2, 2022

  1. Improve bug report template

    ehmicky committed Nov 2, 2022
    Copy the full SHA
    2092214 View commit details
  2. Copy the full SHA
    3e4f2e2 View commit details

Commits on Nov 4, 2022

  1. Fix package.json

    ehmicky committed Nov 4, 2022
    Copy the full SHA
    daebc22 View commit details

Commits on Nov 6, 2022

  1. Copy the full SHA
    8222085 View commit details
  2. Copy the full SHA
    2fb5308 View commit details
  3. Copy the full SHA
    9bda59d View commit details
  4. Copy the full SHA
    d64b130 View commit details
  5. Copy the full SHA
    449f818 View commit details
  6. Copy the full SHA
    b605c5a View commit details
  7. Copy the full SHA
    b2d6b89 View commit details
  8. Copy the full SHA
    e565eaa View commit details
  9. Copy the full SHA
    3529e4e View commit details
  10. Copy the full SHA
    9dbda3c View commit details
  11. Copy the full SHA
    124de3b View commit details
  12. Release 10.2.0

    ehmicky committed Nov 6, 2022
    Copy the full SHA
    b5d0614 View commit details

Commits on Nov 7, 2022

  1. Update README

    ehmicky committed Nov 7, 2022
    Copy the full SHA
    e42b711 View commit details
  2. Improve type tests

    ehmicky committed Nov 7, 2022
    Copy the full SHA
    fac5557 View commit details

Commits on Nov 11, 2022

  1. Improve tree-shaking support

    ehmicky committed Nov 11, 2022
    Copy the full SHA
    b2caffb View commit details
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Bug report
description: Create a report to help us improve
description: Report a bug
title: Please replace with a clear and descriptive title
labels: [bug]
body:
49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_types.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Bug report (TypeScript types)
description: Report a bug about TypeScript types
title: Please replace with a clear and descriptive title
labels: [bug]
body:
- type: markdown
attributes:
value: Thanks for reporting this bug!
- type: checkboxes
attributes:
label: Guidelines
options:
- label:
Please search other issues to make sure this bug has not already
been reported.
required: true
- type: textarea
attributes:
label: Describe the bug
placeholder: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
attributes:
label: Steps to reproduce
description: |
Please reproduce the bug using the [TypeScript playground](https://www.typescriptlang.org/play) or [Bug workbench](https://www.typescriptlang.org/dev/bug-workbench), then paste the URL here.
validations:
required: true
- type: textarea
attributes:
label: Environment
description: |
Enter the following command in a terminal and copy/paste its output:
```bash
npx envinfo --system --binaries --browsers --npmPackages template-name typescript --npmGlobalPackages typescript
```
validations:
required: true
- type: checkboxes
attributes:
label: Pull request (optional)
description:
Pull requests are welcome! If you would like to help us fix this bug,
please check our [contributions
guidelines](../blob/main/CONTRIBUTING.md).
options:
- label: I can submit a pull request.
required: false
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 10.2.0

## Features

- Improve tree-shaking support

# 10.1.1

## Internal
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -3,11 +3,11 @@
<img alt="log-process-errors logo" src="https://raw.githubusercontent.com/ehmicky/design/main/log-process-errors/log-process-errors.svg" width="500"/>
</picture>

[![Codecov](https://img.shields.io/codecov/c/github/ehmicky/log-process-errors.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/log-process-errors)
[![TypeScript](https://img.shields.io/badge/-typed-brightgreen?logo=typescript&colorA=gray&logoColor=0096ff)](/src/main.d.ts)
[![Node](https://img.shields.io/node/v/log-process-errors.svg?logo=node.js&logoColor=66cc33)](https://www.npmjs.com/package/log-process-errors)
[![Twitter](https://img.shields.io/badge/%E2%80%8B-twitter-brightgreen.svg?logo=twitter)](https://twitter.com/intent/follow?screen_name=ehmicky)
[![Medium](https://img.shields.io/badge/%E2%80%8B-medium-brightgreen.svg?logo=medium)](https://medium.com/@ehmicky)
[![Node](https://img.shields.io/badge/-Node.js-808080?logo=node.js&colorA=404040&logoColor=66cc33)](https://www.npmjs.com/package/log-process-errors)
[![TypeScript](https://img.shields.io/badge/-Typed-808080?logo=typescript&colorA=404040&logoColor=0096ff)](/types/main.d.ts)
[![Codecov](https://img.shields.io/badge/-Tested%20100%25-808080?logo=codecov&colorA=404040)](https://codecov.io/gh/ehmicky/log-process-errors)
[![Twitter](https://img.shields.io/badge/-Twitter-808080.svg?logo=twitter&colorA=404040)](https://twitter.com/intent/follow?screen_name=ehmicky)
[![Medium](https://img.shields.io/badge/-Medium-808080.svg?logo=medium&colorA=404040)](https://medium.com/@ehmicky)

[📰 Medium article.](https://medium.com/@ehmicky/node-js-process-errors-are-broken-193980f0a77b)

@@ -48,7 +48,8 @@ npm install -D log-process-errors
This is because logging is modified globally and libraries users might not
expect this side-effect. Also, this might lead to conflicts between libraries.

This package is an ES module and must be loaded using
This package works in Node.js >=14.18.0. It is an ES module and must be loaded
using
[an `import` or `import()` statement](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c),
not `require()`.

@@ -59,7 +60,7 @@ not `require()`.
[`options`](#options) `object?`\
_Return value_: `() => void`

Initializes `log-process-errors`.
Start handling process errors.

```js
import logProcessErrors from 'log-process-errors'
@@ -116,7 +117,7 @@ short description of the [event](#event) is also appended to its message.

#### event

_Type_: `string`
_Type_: `Event`

Process event name among:
[`'uncaughtException'`](https://nodejs.org/api/process.html#process_event_uncaughtexception),
@@ -128,6 +129,8 @@ Process event name among:

- [`modern-errors`](https://github.com/ehmicky/modern-errors): Handle errors
like it's 2022 🔮
- [`modern-errors-process`](https://github.com/ehmicky/modern-errors-process):
Handle process errors
- [`error-custom-class`](https://github.com/ehmicky/error-custom-class): Create
one error class
- [`error-class-utils`](https://github.com/ehmicky/error-class-utils): Utilities
Loading