v2.13 - Statistics Accuracy & Pester Tests
🎯 What's New in v2.13
This release focuses on statistics accuracy and introduces comprehensive Pester testing for CI/CD.
🐛 Fixed
- Docker statistics parsing: Fixed regex to support both
reclaimed XandTotal reclaimed space: Xoutput formats - Event logs WarningsCount: Fixed missing counter increment when event log clearing fails
- Windows Update false success: Added null-check to prevent misleading "0 updates installed" messages
- Temp files deduplication: Fixed duplicate cleanup when
%TEMP%equals%LOCALAPPDATA%\Temp - Browser cache negative values: Prevented incorrect statistics when browser recreates files during cleanup
⚡ Improved
- Get-FolderSize performance: Added
-Fileflag to skip directory objects (significantly faster) - Docker cleanup efficiency: Removed redundant
docker builder prune(already included in system prune) - Recycle Bin size fallback: Added
GetDetailsOffallback for more reliable size calculation - Disk Cleanup registry cleanup: StateFlags9999 now properly removed after cleanmgr execution
🧪 New: Pester Tests
- Added
tests/Helpers.Tests.ps1with 52 unit tests for helper functions - Added
tests/Fixes.Tests.ps1with 42 validation tests for all v2.13 fixes - Updated CI/CD workflow with Pester test job
- 94 tests passing ✅
📦 Installation
From PowerShell Gallery (Recommended)
Install-Script -Name WinCleanUpdate existing installation
Update-Script -Name WinCleanDirect download
irm https://raw.githubusercontent.com/bivlked/WinClean/main/WinClean.ps1 -OutFile WinClean.ps1🚀 Quick Start
# Preview mode (no changes)
.\WinClean.ps1 -ReportOnly
# Full maintenance
.\WinClean.ps1
# Skip updates, only cleanup
.\WinClean.ps1 -SkipUpdatesFull Changelog: https://github.com/bivlked/WinClean/blob/main/CHANGELOG.md