Skip to content

Bump Pastel from 7.0.1 to 8.0.0#581

Merged
SamboyCoding merged 1 commit into
developmentfrom
dependabot/nuget/Cpp2IL/Pastel-8.0.0
Jul 15, 2026
Merged

Bump Pastel from 7.0.1 to 8.0.0#581
SamboyCoding merged 1 commit into
developmentfrom
dependabot/nuget/Cpp2IL/Pastel-8.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 15, 2026

Copy link
Copy Markdown
Contributor

Updated Pastel from 7.0.1 to 8.0.0.

Release notes

Sourced from Pastel's releases.

8.0.0

BREAKING CHANGES

  • The useLegacy parameter of the ConsoleColor overloads has been renamed to useWebColors. Code that passes it by name has to be updated; the colours it produces are unchanged.
  • An undefined ConsoleColor value now throws an ArgumentOutOfRangeException instead of a KeyNotFoundException.

Bug fixes

  • Fixed a crash on .NET Framework when a color string ended with a reset escape sequence followed by a partial one, e.g. "\x1b[0m\x1b["
  • NO_COLOR is now only honored when it is non-empty, as the specification requires
  • The exception thrown for an invalid hexadecimal color value now names the parameter that callers actually pass (hexColor)
  • A denied registry read while detecting a CI/CD environment no longer takes the library down with a TypeInitializationException
  • The DisableRuntimeMarshalling assembly attribute is now actually applied on .NET 8 and .NET 9; its build condition had silently never matched

Performance

Allocations are down for every overload except the nested case, which is unchanged. Measured on .NET 9 with both versions loaded into the same process:

Method 7.0.1 8.0.0
Pastel(Color) 120 B 96 B -20%
Pastel(ConsoleColor) 88 B 64 B -27%
Pastel(hex) 120 B 96 B -20%
Pastel(Color), nested 184 B 184 B

Throughput is a few percent better across the board, but the margin is close enough to the measurement noise that the allocation figures above are the meaningful ones.

General

  • The ConsoleColor colour mapping is now documented as the combined CSS3 list, which is why DarkGray (#A9A9A9) is deliberately lighter than Gray (#​808080)

Commits viewable in compare view.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

---
updated-dependencies:
- dependency-name: Pastel
  dependency-version: 8.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels Jul 15, 2026
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 29427535166

Coverage remained the same at 36.304%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 12948
Covered Lines: 5078
Line Coverage: 39.22%
Relevant Branches: 8570
Covered Branches: 2734
Branch Coverage: 31.9%
Branches in Coverage %: Yes
Coverage Strength: 170741.18 hits per line

💛 - Coveralls

@SamboyCoding
SamboyCoding merged commit 96eb297 into development Jul 15, 2026
9 checks passed
@dependabot
dependabot Bot deleted the dependabot/nuget/Cpp2IL/Pastel-8.0.0 branch July 15, 2026 15:24
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 .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants