Viscalyx.Common

0.5.0

Common commands that adds or improves functionality in various scenarios.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Viscalyx.Common

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Viscalyx.Common

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

Copyright the Viscalyx.Common contributors. All rights reserved.

Package Details

Author(s)

  • Viscalyx

Tags

Common Utility Pester PSReadLine Sampler

Functions

ConvertTo-AnsiSequence ConvertTo-DifferenceString ConvertTo-RelativePath Get-ModuleByVersion Get-ModuleFileSha Get-ModuleVersion Get-NumericalSequence Get-PSReadLineHistory Get-TextOffset Install-ModulePatch Invoke-PesterJob New-SamplerGitHubReleaseTag Out-Difference Pop-VMLatestSnapshot Remove-History Remove-PSHistory Remove-PSReadLineHistory Split-StringAtIndex Test-FileHash

Dependencies

This module has no dependencies.

Release Notes

## [0.5.0] - 2025-09-14

### Added

- `Invoke-PesterJob`
 - Added new switch parameter `EnableSourceLineMapping` to map code coverage
   lines from built module files back to their corresponding source files
   using ModuleBuilder's Convert-LineNumber command. When enabled, this
   parameter automatically enables PassThru and requires ModuleBuilder
   module unless running in a Sampler project environment.
 - Added new parameter `FilterCodeCoverageResult` to filter code coverage results
   by function or class name when using EnableSourceLineMapping. Supports
   wildcard patterns and accepts arrays of filter patterns for flexible
   filtering of missed coverage lines.

### Fixed

- Improved handling escape character in tests.
- Fix build configuration due to changes in DscResource.DocGenerator.
- Fix error stream redirection in all test files to preserve error stream
 visibility ([issue #32](https://github.com/viscalyx/Viscalyx.Common/issues/32)).
- Fixed stream redirection in integration tests.
- Improved test code quality and accuracy.

### Changed

- Editor: Update VS Code settings to set default terminal
 profiles and enable Copilot instruction files.
- Tooling: Add task arguments and improve `test` and `build`
 task configuration for reproducible runs.
- Bump actions/checkout from 4 to 5
- Bump actions/stale from 9 to 10

FileList

Version History

Version Downloads Last updated
0.5.0 (current version) 9 9/14/2025
0.5.0-previe... 4 9/14/2025
0.4.2-previe... 4 9/13/2025
0.4.2-previe... 11 2/28/2025
0.4.1 476 2/27/2025
0.4.1-previe... 4 2/27/2025
0.4.1-previe... 4 2/27/2025
0.4.1-previe... 4 2/26/2025
0.4.0 55 2/26/2025
0.4.0-previe... 4 2/26/2025
0.3.1-previe... 6 2/4/2025
0.3.1-previe... 4 2/4/2025
0.3.1-previe... 4 2/3/2025
0.3.0 1,537 9/2/2024
0.3.0-previe... 3 9/2/2024
0.2.0 12 8/25/2024
0.2.0-previe... 3 8/25/2024
0.2.0-previe... 42 8/13/2024
0.1.0-previe... 4 8/4/2024
Show more