Skip to content

v1.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Sep 12:47
· 4 commits to master since this release
77b02ce

Added

  • Set-PrtgMessage accepts the message from the pipeline. Get-Status | Set-PrtgMessage
    used to fail with a binding error, while Add-PrtgChannel and Write-PrtgError already took
    pipeline input. Each piped item overwrites the message, so the last one wins, and a piped
    object binds as its string form, so pipe the property you mean. Masking, the # strip and
    the truncation apply as for a direct call; the positional and -Text calls are unchanged.

Changed

Internal

  • The behaviour tests run against the source tree; only the artifact tests read the build.
    ./tasks.ps1 test builds, then imports Source/, so a failure names the source file and line
    and a forgotten build can no longer pass. -Target Dist runs the same tests against the built
    module and -Path runs one file or folder. The checks about the build itself moved to
    Tests/Artifact/, always read Dist/, and now also catch a stale build and manifest drift.

  • ./tasks.ps1 coverage measures the source files. It reports a percentage per file and
    every missed command as <file>:<line>: <command>.

  • The log caller detection recognises the module's own frames by its base folder instead of
    the root module's file name, which only ever matched the concatenated build.