From 020a8ae6e6e00316cc1d0fb91896b94f46fa0b9f Mon Sep 17 00:00:00 2001 From: Dan Anstis Date: Thu, 22 Jan 2026 10:40:52 +1000 Subject: [PATCH] fix: convert AvailableVersion to string for proper display The Version object from Find-Module was being stored directly, causing it to display as a hashtable after JSON serialization/deserialization. Adding .ToString() ensures consistent string formatting matching CurrentVersion behavior. Fixes #57 --- functions/Get-Updates.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/Get-Updates.ps1 b/functions/Get-Updates.ps1 index e165bf1..77804b5 100644 --- a/functions/Get-Updates.ps1 +++ b/functions/Get-Updates.ps1 @@ -48,7 +48,7 @@ function Get-Updates { [PSCustomObject]@{ Module = $Module.Name CurrentVersion = $Module.Version.ToString() - AvailableVersion = $Available.Version + AvailableVersion = $Available.Version.ToString() } } } catch { @@ -63,7 +63,7 @@ function Get-Updates { [PSCustomObject]@{ Module = $Module.Name CurrentVersion = $Module.Version.ToString() - AvailableVersion = $Available.Version + AvailableVersion = $Available.Version.ToString() } } } catch {