diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c9ddb4..dced39d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ This file is the source of truth for release notes. The newest entry must match the version in `WandEnhancer/Properties/AssemblyInfo.cs`. +## [1.0.9.1] - 2026-06-24 + +### Fixes + +- Fixed Pro features disappearing after a day or two when Wand refreshed account data in the background; account store updates now preserve the patched active subscription by @Kava-4 in #110. Related issue #106 +- Fixed the new Pro account reducer guard so normal account updates do not fail while keeping Pro active. + ## [1.0.9.0] - 2026-06-15 ### Features @@ -154,4 +161,4 @@ The newest entry must match the version in `WandEnhancer/Properties/AssemblyInfo ### Changes -- Basic ElectronJS wrapper over the original script. \ No newline at end of file +- Basic ElectronJS wrapper over the original script. diff --git a/WandEnhancer/Core/EnhancerConfig.cs b/WandEnhancer/Core/EnhancerConfig.cs index a4d08a3..423f11e 100644 --- a/WandEnhancer/Core/EnhancerConfig.cs +++ b/WandEnhancer/Core/EnhancerConfig.cs @@ -58,7 +58,7 @@ namespace WandEnhancer.Core var state = RequireGroup(match, "state", "setAccountReducer"); var account = RequireGroup(match, "account", "setAccountReducer"); return - $"const {decl}=\"ACTION_SET_ACCOUNT\";function {fn}({parameters}){{const a={account};return a&&\"object\"==typeof a&&(a={{...a,subscription:{{period:\"yearly\",state:\"active\"}}}}),{{...{state},account:a}}}}"; + $"const {decl}=\"ACTION_SET_ACCOUNT\";function {fn}({parameters}){{const a={account}&&\"object\"==typeof {account}?{{...{account},subscription:{{period:\"yearly\",state:\"active\"}}}}:{account};return{{...{state},account:a}}}}"; } private static string BuildRemoteBridgeResetPatch(Match match) diff --git a/WandEnhancer/Properties/AssemblyInfo.cs b/WandEnhancer/Properties/AssemblyInfo.cs index 471e072..04f8e96 100644 --- a/WandEnhancer/Properties/AssemblyInfo.cs +++ b/WandEnhancer/Properties/AssemblyInfo.cs @@ -51,5 +51,5 @@ using System.Windows; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.9.0")] -[assembly: AssemblyFileVersion("1.0.9.0")] \ No newline at end of file +[assembly: AssemblyVersion("1.0.9.1")] +[assembly: AssemblyFileVersion("1.0.9.1")] \ No newline at end of file