Skip to content

Commit 1cd5ffc

Browse files
committed
⚑ [perf] Improves caching and updates module version
⚑ [perf] Improves caching and boosts performance - πŸ’Ύ Implements an enhanced caching system that utilizes an OS-wide cache in AppData, centralizing cache storage. - πŸš€ Achieves a 6-19x performance improvement due to the enhanced caching mechanism. πŸ› οΈ [fix] Corrects regex and updates output message - πŸ› Fixes a regular expression in `Show-ColorScriptHelp` to correctly identify parameter metadata lines, ensuring proper formatting. The `?` was escaped incorrectly. - βœ… Updates the success message in `Add-ColorScriptProfile` to a more standard format: "[OK]". 🧹 [chore] Updates module version and release notes - πŸ“¦ Updates the module version in `ColorScripts-Enhanced.psd1` from '2025.10.15.0349' to '2025.10.15.1509' to reflect the latest changes. - πŸ“ Updates the release notes in `ColorScripts-Enhanced.psd1` to include the new caching improvements and performance enhancements. Signed-off-by: Nick2bad4u <[email protected]>
1 parent f40b353 commit 1cd5ffc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

β€ŽColorScripts-Enhanced/ColorScripts-Enhanced.psd1β€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
RootModule = 'ColorScripts-Enhanced.psm1'
1212

1313
# Version number of this module.
14-
ModuleVersion = '2025.10.15.0349'
14+
ModuleVersion = '2025.10.15.1509'
1515

1616
# Supported PSEditions
1717
CompatiblePSEditions = @('Desktop', 'Core')
@@ -172,7 +172,7 @@ Full documentation: https://github.com/Nick2bad4u/ps-color-scripts-enhanced
172172

173173
# ReleaseNotes of this module
174174
ReleaseNotes = @'
175-
Version 2025.10.15.0349:
175+
Version 2025.10.15.1509:
176176
- Enhanced caching system with OS-wide cache in AppData
177177
- 6-19x performance improvement
178178
- Cache stored in centralized location

β€ŽColorScripts-Enhanced/ColorScripts-Enhanced.psm1β€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function Show-ColorScriptHelp {
127127
# Example headers in magenta
128128
Write-Host $line -ForegroundColor Magenta
129129
}
130-
elseif ($line -match '^\s+Required\?|^\s+Position\?|^\s+Default value|^\s+Accept pipeline input\?|^\s+Accept wildcard characters\?') {
130+
elseif ($line -match '^\s+Required\\?|^\s+Position\\?|^\s+Default value|^\s+Accept pipeline input\\?|^\s+Accept wildcard characters\\?') {
131131
# Parameter metadata in dark gray
132132
Write-Host $line -ForegroundColor DarkGray
133133
}
@@ -2724,7 +2724,7 @@ function Add-ColorScriptProfile {
27242724

27252725
[System.IO.File]::WriteAllText($profilePath, $updatedContent + $newline, $script:Utf8NoBomEncoding)
27262726

2727-
Write-Host "βœ“ Added ColorScripts-Enhanced startup snippet to $profilePath" -ForegroundColor Green
2727+
Write-Host "[OK] Added ColorScripts-Enhanced startup snippet to $profilePath" -ForegroundColor Green
27282728

27292729
return [pscustomobject]@{
27302730
Path = $profilePath

0 commit comments

Comments
Β (0)