Releases: silkfire/Pastel
Releases · silkfire/Pastel
7.0.0 (August 17, 2025)
BREAKING CHANGES
- The behaviour of overloads that use
ConsoleColorhas been changed. Previously, the resulting colour would be the fixed value that theConsoleColorenum 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 passtrueto theuseLegacyparameter.
6.0.1 (December 6, 2024)
Bug fixes
- Fixed a bug where nested color strings weren't closed properly
6.0.0 (November 17, 2024)
General
- Added .NET 9 support; .NET 8 is still supported
BREAKING CHANGES
- Dropped .NET 6 support
5.2.1 (October 27, 2024)
Features
- Added extension methods for
ReadOnlySpan<char>
5.1.0 (April 24, 2024)
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)
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)
Features
- Added support for detecting and disabling colors in CI/CD environments
4.1.0 (December 18, 2022)
Features
- Added overloads that support
ConsoleColoras a color value
4.0.2 (November 24, 2022)
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)
BREAKING CHANGES
- Replace .NET 5 support with .NET 6