Skip to content

v1.2.3 - Fixed Module Import & Dependency Management

Choose a tag to compare

@Noble-Effeciency13 Noble-Effeciency13 released this 04 Aug 16:28
· 19 commits to main since this release

Summary

Fixed module import and dependency management issues for both local development and PowerShell Gallery installation scenarios.

What's Fixed

  • Module Import: Fixed automatic dependency resolution during module import for both local and PSGallery scenarios
  • Local Development: Resolved blocking issues when importing module locally with missing dependencies
  • PowerShell Gallery: Fixed dependency management for users installing from PSGallery
  • Silent Operation: Module now imports silently by default with verbose option available

Key Improvements

  • Universal Import Support: Import-Module .\PIMActivation.psd1 (dev) and Install-Module PIMActivation (prod) both work seamlessly
  • Automatic Installation: Missing dependencies are automatically installed during import
  • Clean Experience: Silent installation with progress suppression for better user experience
  • Troubleshooting: Verbose mode available via -Verbose parameter when needed

Usage

# Local development - now works without manual dependency installation
Import-Module .\PIMActivation.psd1

# PowerShell Gallery - dependencies handled automatically
Install-Module PIMActivation -Scope CurrentUser

# Verbose output for troubleshooting
Import-Module .\PIMActivation.psd1 -Verbose

Technical Changes

  • Fixed hybrid dependency management approach for development vs production
  • Optimized dependency collection using ArrayLists
  • Added silent installation with proper preference handling
  • Maintained backward compatibility

This release ensures the module "just works" regardless of how it's imported or installed.

Full Changelog: https://github.com/Noble-Effeciency13/PIMActivation/blob/main/CHANGELOG.md