-
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
feat: Added exports color support in TTY #513
Conversation
@@ -178,4 +178,5 @@ module.exports = build | |||
module.exports.build = build | |||
module.exports.prettyFactory = prettyFactory | |||
module.exports.colorizerFactory = colors | |||
module.exports.isColorSupported = isColorSupported |
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.
Can you mention this in documentation?
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.
hey @kibertoad just added a small section to inform the users about this new option. Let me know if seems good?
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.
thank you, it's great!
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.
Can you please add a test?
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
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 | |---|---|---|---|---|---| | [cspell](https://streetsidesoftware.github.io/cspell/) ([source](https://togithub.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell)) | [`8.8.2` -> `8.8.3`](https://renovatebot.com/diffs/npm/cspell/8.8.2/8.8.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/cspell/8.8.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/cspell/8.8.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/cspell/8.8.2/8.8.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/cspell/8.8.2/8.8.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [pino-pretty](https://togithub.com/pinojs/pino-pretty) | [`11.0.0` -> `11.1.0`](https://renovatebot.com/diffs/npm/pino-pretty/11.0.0/11.1.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/pino-pretty/11.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/pino-pretty/11.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/pino-pretty/11.0.0/11.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/pino-pretty/11.0.0/11.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [ts-jest](https://kulshekhar.github.io/ts-jest) ([source](https://togithub.com/kulshekhar/ts-jest)) | [`29.1.3` -> `29.1.4`](https://renovatebot.com/diffs/npm/ts-jest/29.1.3/29.1.4) | [![age](https://developer.mend.io/api/mc/badges/age/npm/ts-jest/29.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/ts-jest/29.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/ts-jest/29.1.3/29.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/ts-jest/29.1.3/29.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>streetsidesoftware/cspell (cspell)</summary> ### [`v8.8.3`](https://togithub.com/streetsidesoftware/cspell/blob/HEAD/packages/cspell/CHANGELOG.md#small883-2024-05-23-small) [Compare Source](https://togithub.com/streetsidesoftware/cspell/compare/v8.8.2...v8.8.3) - chore: Update Integration Test Performance Data ([#​5663](https://togithub.com/streetsidesoftware/cspell/issues/5663)) ([b605dd3](https://togithub.com/streetsidesoftware/cspell/commit/b605dd3)), closes [#​5663](https://togithub.com/streetsidesoftware/cspell/issues/5663) </details> <details> <summary>pinojs/pino-pretty (pino-pretty)</summary> ### [`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> <details> <summary>kulshekhar/ts-jest (ts-jest)</summary> ### [`v29.1.4`](https://togithub.com/kulshekhar/ts-jest/blob/HEAD/CHANGELOG.md#2914-2024-05-28) [Compare Source](https://togithub.com/kulshekhar/ts-jest/compare/v29.1.3...v29.1.4) ##### Bug Fixes - fix(transformer): allow transforming of .cts/.mts extensions. ([#​3996](https://togithub.com/kulshekhar/ts-jest/issues/3996)) ([b8f6eaa](https://togithub.com/kulshekhar/ts-jest/commit/b8f6eaa)), closes [#​3996](https://togithub.com/kulshekhar/ts-jest/issues/3996) ##### Features - feat: make cli generate esm config based on `type: "module"` ([#​4210](https://togithub.com/kulshekhar/ts-jest/issues/4210)) ([81a5f64](https://togithub.com/kulshekhar/ts-jest/commit/81a5f64)), closes [#​4210](https://togithub.com/kulshekhar/ts-jest/issues/4210) [#​4012](https://togithub.com/kulshekhar/ts-jest/issues/4012) </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. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- 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/UK-Export-Finance/mdm-api). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuOCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny44IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Abhi Markan <[email protected]>
[![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>
isColorSupported
fromColorette
to check for color support without installing the dependency again.