-
Notifications
You must be signed in to change notification settings - Fork 151
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: unescape \\ for levelKey #538
Conversation
typeof log[key] === 'boolean' | ||
}) | ||
] | ||
.map((key) => key.replaceAll(/\\/g, '')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This strips off the \\
in log\\.level
so that you get the correct key to ignore.
const formatted = pretty(chunk.toString()) | ||
t.equal( | ||
formatted, | ||
`[${formattedEpoch}] WARN (${pid}): foo\n` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without this fix, you would get log.level
underneath in the prettified object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@mcollina Pino 9.0.0 dropped support for Node 14. Is that something that can be done here as well? I can switch to |
Yes, we should drop 14. It'll be a new major, though. |
Should I make that change in this PR? For example: matrix:
node-version: [18.17, 20, 22]
os: [ubuntu-latest]
pino-version: [^9.0.0] |
@eliw00d send a fresh PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [pino-pretty](https://github.com/pinojs/pino-pretty) | dependencies | major | [`11.3.0` -> `13.0.0`](https://renovatebot.com/diffs/npm/pino-pretty/11.3.0/13.0.0) | --- ### Release Notes <details> <summary>pinojs/pino-pretty (pino-pretty)</summary> ### [`v13.0.0`](https://github.com/pinojs/pino-pretty/releases/tag/v13.0.0) [Compare Source](pinojs/pino-pretty@v12.1.0...v13.0.0) #### What's Changed - chore: replace readable-stream with built-in stream by [@​benmccann](https://github.com/benmccann) in pinojs/pino-pretty#542 #### New Contributors - [@​benmccann](https://github.com/benmccann) made their first contribution in pinojs/pino-pretty#542 **Full Changelog**: pinojs/pino-pretty@v12.1.0...v13.0.0 ### [`v12.1.0`](https://github.com/pinojs/pino-pretty/releases/tag/v12.1.0) [Compare Source](pinojs/pino-pretty@v12.0.0...v12.1.0) #### What's Changed - fix: unescape \ for levelKey by [@​eliw00d](https://github.com/eliw00d) in pinojs/pino-pretty#538 **Full Changelog**: pinojs/pino-pretty@v12.0.0...v12.1.0 ### [`v12.0.0`](https://github.com/pinojs/pino-pretty/releases/tag/v12.0.0) [Compare Source](pinojs/pino-pretty@v11.3.0...v12.0.0) #### What's Changed - build(deps-dev): lock typescript minor version by [@​Fdawgs](https://github.com/Fdawgs) in pinojs/pino-pretty#534 - Bump typescript from 5.0.4 to 5.6.3 by [@​dependabot](https://github.com/dependabot) in pinojs/pino-pretty#535 - Drop support for Node.js 14 & 16 by [@​eliw00d](https://github.com/eliw00d) in pinojs/pino-pretty#540 #### New Contributors - [@​eliw00d](https://github.com/eliw00d) made their first contribution in pinojs/pino-pretty#540 **Full Changelog**: pinojs/pino-pretty@v11.3.0...v12.0.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xNDIuNyIsInVwZGF0ZWRJblZlciI6IjM4LjE0Mi43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> Reviewed-on: https://git.tristess.app/alexandresoro/ouca/pulls/308 Reviewed-by: Alexandre Soro <[email protected]> Co-authored-by: renovate <[email protected]> Co-committed-by: renovate <[email protected]>
closes #456