Skip to content

Releases: silkfire/Pastel

7.0.0 (August 17, 2025)

17 Aug 20:40

Choose a tag to compare

BREAKING CHANGES

  • The behaviour of overloads that use ConsoleColor has been changed. Previously, the resulting colour would be the fixed value that the ConsoleColor enum represents. Now it will be one of the 16 theme-defined ANSI base colors instead, meaning that it will respect the colours configured in your terminal. To return to the old behaviour, simply pass true to the useLegacy parameter.

6.0.1 (December 6, 2024)

06 Dec 18:37

Choose a tag to compare

Bug fixes

  • Fixed a bug where nested color strings weren't closed properly

6.0.0 (November 17, 2024)

16 Nov 23:59

Choose a tag to compare

General

  • Added .NET 9 support; .NET 8 is still supported

BREAKING CHANGES

  • Dropped .NET 6 support

5.2.1 (October 27, 2024)

26 Oct 22:47

Choose a tag to compare

Features

  • Added extension methods for ReadOnlySpan<char>

5.1.0 (April 24, 2024)

24 Apr 18:55

Choose a tag to compare

Features

  • Added an option to disable the detection of a CI/CD environment to override the disabling of output coloring

5.0.0 (January 20, 2024)

20 Jan 14:20

Choose a tag to compare

Features

  • Rewrote the string generation functionality from scratch to accomplish significant performance improvements

Benchmarks run on .NET 8

Pastel 4.x

Method Mean Error StdDev Gen0 Allocated
Pastel_SimpleColorization_Color 293.1 ns 1.54 ns 1.44 ns 0.0300 504 B
Pastel_SimpleColorization_ConsoleColor 288.5 ns 1.34 ns 1.25 ns 0.0300 504 B
Pastel_SimpleColorization_HexStringColor 313.6 ns 0.83 ns 0.65 ns 0.0324 544 B
Pastel_Nested_Color 1,084.9 ns 2.99 ns 2.80 ns 0.1011 1704 B
Pastel_Nested_ConsoleColor 1,076.4 ns 3.58 ns 3.18 ns 0.1011 1704 B
Pastel_Nested_HexStringColor 1,221.5 ns 3.03 ns 2.69 ns 0.1049 1784 B

Pastel 5.x

Method Mean Mean diff Gen0 Allocated Allocated diff
Pastel_SimpleColorization_Color 30.71 ns -89.52% 0.0086 144 B -71.43%
Pastel_SimpleColorization_ConsoleColor 31.90 ns -88.94% 0.0086 144 B -71.43%
Pastel_SimpleColorization_HexStringColor 32.60 ns -89.61% 0.0086 144 B -73.53%
Pastel_Nested_Color 101.34 ns -90.66% 0.0286 480 B -71.83%
Pastel_Nested_ConsoleColor 106.09 ns -90.14% 0.0286 480 B -71.83%
Pastel_Nested_HexStringColor 123.34 ns -89.90% 0.0286 480 B -73.10%
  • Added .NET 8 TFM leveraging .NET 8-specific features

4.2.0 (October 9, 2023)

09 Oct 15:24

Choose a tag to compare

Features

  • Added support for detecting and disabling colors in CI/CD environments

4.1.0 (December 18, 2022)

18 Dec 15:38

Choose a tag to compare

Features

  • Added overloads that support ConsoleColor as a color value

4.0.2 (November 24, 2022)

24 Nov 12:55

Choose a tag to compare

General

  • Added .NET 7 support; .NET 6 is still supported
  • Added support for .NET Framework 4.6.2 and higher
  • Improved regex and P/Invoke performance for .NET 7

BREAKING CHANGES

  • Dropped .NET Standard support

3.0.0 (November 17, 2021)

28 Nov 12:26

Choose a tag to compare

BREAKING CHANGES

  • Replace .NET 5 support with .NET 6