-
Notifications
You must be signed in to change notification settings - Fork 149
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: add missing useOnlyCustomProps options to type definitions #514
Fix: add missing useOnlyCustomProps options to type definitions #514
Conversation
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.
Thanks for opening a PR! Can you please add a unit test? We use tsd for types.
@mcollina absolutely! I'm not familiar with tsd, but based on the work on the test suite it seemed adding the property suffice for the test expectation. please let me know if it requires more work 🙇🏼 disclaimer: I opted to amend the existing commit to not clutter the git history - this way the change and the test are located in a single commit. I hope you don't mind! |
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
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [pino-pretty](https://togithub.com/pinojs/pino-pretty) | [`^11.1.0` -> `^11.2.1`](https://renovatebot.com/diffs/npm/pino-pretty/11.1.0/11.2.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/pino-pretty/11.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/pino-pretty/11.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/pino-pretty/11.1.0/11.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/pino-pretty/11.1.0/11.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>pinojs/pino-pretty (pino-pretty)</summary> ### [`v11.2.1`](https://togithub.com/pinojs/pino-pretty/releases/tag/v11.2.1): v11 [Compare Source](https://togithub.com/pinojs/pino-pretty/compare/v11.2.0...v11.2.1) #### What's Changed - Fix: add missing useOnlyCustomProps options to type definitions by [@​pcdevil](https://togithub.com/pcdevil) in [https://github.com/pinojs/pino-pretty/pull/514](https://togithub.com/pinojs/pino-pretty/pull/514) #### New Contributors - [@​pcdevil](https://togithub.com/pcdevil) made their first contribution in [https://github.com/pinojs/pino-pretty/pull/514](https://togithub.com/pinojs/pino-pretty/pull/514) **Full Changelog**: pinojs/pino-pretty@v11.2.0...v11.2.1 ### [`v11.2.0`](https://togithub.com/pinojs/pino-pretty/releases/tag/v11.2.0) [Compare Source](https://togithub.com/pinojs/pino-pretty/compare/v11.1.0...v11.2.0) #### What's Changed - fix: add injection of lacking arguments of customPrettifiers by [@​pasha-vuiko](https://togithub.com/pasha-vuiko) in [https://github.com/pinojs/pino-pretty/pull/501](https://togithub.com/pinojs/pino-pretty/pull/501) #### New Contributors - [@​pasha-vuiko](https://togithub.com/pasha-vuiko) made their first contribution in [https://github.com/pinojs/pino-pretty/pull/501](https://togithub.com/pinojs/pino-pretty/pull/501) **Full Changelog**: pinojs/pino-pretty@v11.1.0...v11.2.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/fwouts/previewjs). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [pino-pretty](https://togithub.com/pinojs/pino-pretty) | [`11.0.0` -> `11.2.2`](https://renovatebot.com/diffs/npm/pino-pretty/11.0.0/11.2.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/pino-pretty/11.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/pino-pretty/11.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/pino-pretty/11.0.0/11.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/pino-pretty/11.0.0/11.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>pinojs/pino-pretty (pino-pretty)</summary> ### [`v11.2.2`](https://togithub.com/pinojs/pino-pretty/releases/tag/v11.2.2) [Compare Source](https://togithub.com/pinojs/pino-pretty/compare/v11.2.1...v11.2.2) #### What's Changed - Type fixes by [@​joshkel](https://togithub.com/joshkel) in [https://github.com/pinojs/pino-pretty/pull/522](https://togithub.com/pinojs/pino-pretty/pull/522) #### New Contributors - [@​joshkel](https://togithub.com/joshkel) made their first contribution in [https://github.com/pinojs/pino-pretty/pull/522](https://togithub.com/pinojs/pino-pretty/pull/522) **Full Changelog**: pinojs/pino-pretty@v11.2.1...v11.2.2 ### [`v11.2.1`](https://togithub.com/pinojs/pino-pretty/releases/tag/v11.2.1): v11 [Compare Source](https://togithub.com/pinojs/pino-pretty/compare/v11.2.0...v11.2.1) #### What's Changed - Fix: add missing useOnlyCustomProps options to type definitions by [@​pcdevil](https://togithub.com/pcdevil) in [https://github.com/pinojs/pino-pretty/pull/514](https://togithub.com/pinojs/pino-pretty/pull/514) #### New Contributors - [@​pcdevil](https://togithub.com/pcdevil) made their first contribution in [https://github.com/pinojs/pino-pretty/pull/514](https://togithub.com/pinojs/pino-pretty/pull/514) **Full Changelog**: pinojs/pino-pretty@v11.2.0...v11.2.1 ### [`v11.2.0`](https://togithub.com/pinojs/pino-pretty/releases/tag/v11.2.0) [Compare Source](https://togithub.com/pinojs/pino-pretty/compare/v11.1.0...v11.2.0) #### What's Changed - fix: add injection of lacking arguments of customPrettifiers by [@​pasha-vuiko](https://togithub.com/pasha-vuiko) in [https://github.com/pinojs/pino-pretty/pull/501](https://togithub.com/pinojs/pino-pretty/pull/501) #### New Contributors - [@​pasha-vuiko](https://togithub.com/pasha-vuiko) made their first contribution in [https://github.com/pinojs/pino-pretty/pull/501](https://togithub.com/pinojs/pino-pretty/pull/501) **Full Changelog**: pinojs/pino-pretty@v11.1.0...v11.2.0 ### [`v11.1.0`](https://togithub.com/pinojs/pino-pretty/releases/tag/v11.1.0) [Compare Source](https://togithub.com/pinojs/pino-pretty/compare/v11.0.0...v11.1.0) #### What's Changed - Bump tsd from 0.30.7 to 0.31.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/pinojs/pino-pretty/pull/503](https://togithub.com/pinojs/pino-pretty/pull/503) - Fix Object.create(null) by [@​chrisands](https://togithub.com/chrisands) in [https://github.com/pinojs/pino-pretty/pull/507](https://togithub.com/pinojs/pino-pretty/pull/507) - Bump sonic-boom from 3.8.1 to 4.0.1 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/pinojs/pino-pretty/pull/509](https://togithub.com/pinojs/pino-pretty/pull/509) - Bump pino from 8.21.0 to 9.0.0 by [@​dependabot](https://togithub.com/dependabot) in [https://github.com/pinojs/pino-pretty/pull/510](https://togithub.com/pinojs/pino-pretty/pull/510) - feat: automatically consume pino config when using pino@>=8.21.0 by [@​10xLaCroixDrinker](https://togithub.com/10xLaCroixDrinker) in [https://github.com/pinojs/pino-pretty/pull/508](https://togithub.com/pinojs/pino-pretty/pull/508) - fix: pass error-like objects ([#​505](https://togithub.com/pinojs/pino-pretty/issues/505)) by [@​aqemi](https://togithub.com/aqemi) in [https://github.com/pinojs/pino-pretty/pull/506](https://togithub.com/pinojs/pino-pretty/pull/506) - Add node v22 to CI by [@​mcollina](https://togithub.com/mcollina) in [https://github.com/pinojs/pino-pretty/pull/511](https://togithub.com/pinojs/pino-pretty/pull/511) - feat: Added exports color support in TTY by [@​synapse](https://togithub.com/synapse) in [https://github.com/pinojs/pino-pretty/pull/513](https://togithub.com/pinojs/pino-pretty/pull/513) #### New Contributors - [@​chrisands](https://togithub.com/chrisands) made their first contribution in [https://github.com/pinojs/pino-pretty/pull/507](https://togithub.com/pinojs/pino-pretty/pull/507) - [@​aqemi](https://togithub.com/aqemi) made their first contribution in [https://github.com/pinojs/pino-pretty/pull/506](https://togithub.com/pinojs/pino-pretty/pull/506) - [@​synapse](https://togithub.com/synapse) made their first contribution in [https://github.com/pinojs/pino-pretty/pull/513](https://togithub.com/pinojs/pino-pretty/pull/513) **Full Changelog**: pinojs/pino-pretty@v11.0.0...v11.1.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **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 was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/open-feature/playground). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Hello,
I started using pino-pretty in a TypeScript project and noticed the
useOnlyCustomProps
option is not present in the type definitions module. The JSDoc lists it at L71-72, so I assume it was a copy-paste error at some time.This pull request addresses this discrepancy by copying the readme's description!