diff --git a/CHANGELOG.md b/CHANGELOG.md index 375cfde..6f34861 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,12 +7,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] -## [2.1.2] - 2026-05-26 +## [2.1.3] - 2026-06-18 -### Changed +### Fixed -- CI workflows migrated to PowerShellOrg reusable CI and release - workflows ([#457](https://github.com/PowerShellOrg/Plaster/pull/457)) +- `Import-Module Plaster` printed `Plaster vX.Y.Z module loaded + successfully` on every import — the message was logged at + `Information` level with `-InformationAction Continue`, so it + displayed regardless of `$env:PLASTER_LOG_LEVEL`. Demoted it (and the + symmetric "module is being removed" message) to `Verbose` so they are + silent by default and surface only when `PLASTER_LOG_LEVEL=Verbose` + ([#470](https://github.com/PowerShellOrg/Plaster/pull/470), + closes [#458](https://github.com/PowerShellOrg/Plaster/issues/458)) + +## [2.1.2] - 2026-05-26 ### Fixed diff --git a/Plaster/Plaster.psd1 b/Plaster/Plaster.psd1 index 5d22abe..2a68b4a 100644 --- a/Plaster/Plaster.psd1 +++ b/Plaster/Plaster.psd1 @@ -6,7 +6,7 @@ GUID = 'cfce3c5e-402f-412a-a83a-7b7ee9832ff4' # Version number of this module. - ModuleVersion = '2.1.2' + ModuleVersion = '2.1.3' # Supported PSEditions CompatiblePSEditions = @('Desktop', 'Core') diff --git a/Plaster/Plaster.psm1 b/Plaster/Plaster.psm1 index 9b23605..4dd06d9 100644 --- a/Plaster/Plaster.psm1 +++ b/Plaster/Plaster.psm1 @@ -177,7 +177,7 @@ Export-ModuleMember -Variable @('TargetNamespace', 'DefaultEncoding', 'JsonSchem # Module cleanup on removal $MyInvocation.MyCommand.ScriptBlock.Module.OnRemove = { - Write-PlasterLog -Level Information -Message "Plaster module is being removed" + Write-PlasterLog -Level Verbose -Message "Plaster module is being removed" # Clean up any module-scoped variables or resources Remove-Variable -Name 'PlasterVersion' -Scope Script -ErrorAction SilentlyContinue @@ -188,4 +188,4 @@ $MyInvocation.MyCommand.ScriptBlock.Module.OnRemove = { } # Module initialization complete -Write-PlasterLog -Level Information -Message "Plaster v$PlasterVersion module loaded successfully (PowerShell $($PSVersionTable.PSVersion))" +Write-PlasterLog -Level Verbose -Message "Plaster v$PlasterVersion module loaded successfully (PowerShell $($PSVersionTable.PSVersion))"