·
2 commits
to master
since this release
Release Notes - Rust v0.4.47
🔒 System Package Protection & CLI Safety
We're excited to announce a major feature update focused on system integrity and CLI tool validation! This release adds robust protection for your development environment across Windows, Linux, and macOS.
🛡️ New Features
System Package Protection
- Cross-platform safety: Prevents accidental deletion of critical system packages
- Smart detection: Automatically identifies and protects OS-managed packages
- Platform-aware: Custom protection rules for each OS:
- Linux: Protects
apt,pacman,dnf,yum, andsnappackages - macOS: Shields Homebrew and MacPorts installations
- Windows: Safeguards Chocolatey and Scoop packages
- Linux: Protects
CLI Tool Validation
- Pre-execution checks: Verifies required CLI tools are installed before running
- Graceful failure: Clear error messages when tools are missing
- Supported tools:
- 🟢 Node.js / npm
- 🟢 Bun (cross-platform)
- 🟢 Deno
- 🟢 Yarn
- 🟢 pnpm
Enhanced Path Detection
- Multi-location scanning: Checks common installation paths
- PATH environment validation: Uses
which(Unix) andwhere(Windows) - Version verification: Validates minimum required versions
- Custom installation support: Detects non-standard installations
🔧 Improvements
Cli protection
- Added support for Bun cache directories
- Protect npm,node , bun ,deno , yarn and pnpm cli execuables
Platform-Specific Enhancements
Windows:
- Proper handling of
%APPDATA%,%LOCALAPPDATA%,%USERPROFILE% - Support for Program Files installations
- Chocolatey package detection
Linux:
/usr/bin,/usr/local/bin,/optscanning- NVM (Node Version Manager) support
- Pyenv and virtualenv detection
- Snap package awareness
macOS:
- Homebrew and MacPorts support
/opt/homebrewscanning for Apple Silicon- NVM and pyenv integration
📦 New Cache Directories Added
// Bun
~/.bun/cache
%LOCALAPPDATA%/bun/cache
// npm internals
~/.npm/_cacache
~/.npm/_logs
~/.npm/_locks
// Deno
~/.deno/deps
%LOCALAPPDATA%/deno/deps
// pnpm
~/.pnpm-store
%LOCALAPPDATA%/pnpm/store
// Additional Node.js
~/.cache/yarn
~/.yarn/cache
~/.pnpm-cache
**Full Changelog**: https://github.com/Mwangi-Derrick/dev-purge/compare/rust-v-0.4.46...rust-v-0.4.47