From 2a61085f078417c6a0767d3e2d8162bac83c963c Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Sun, 7 Sep 2025 15:04:06 +0100 Subject: [PATCH 1/2] backward compatible encoding for missing NetworkError --- src/Simplex/Messaging/Protocol.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Simplex/Messaging/Protocol.hs b/src/Simplex/Messaging/Protocol.hs index e5d918cc6..40314ad2a 100644 --- a/src/Simplex/Messaging/Protocol.hs +++ b/src/Simplex/Messaging/Protocol.hs @@ -2258,7 +2258,11 @@ $(J.deriveJSON defaultJSON ''MsgFlags) $(J.deriveJSON (sumTypeJSON id) ''CommandError) -$(J.deriveJSON (sumTypeJSON $ dropPrefix "NE") ''NetworkError) +$(J.deriveToJSON (sumTypeJSON $ dropPrefix "NE") ''NetworkError) + +instance FromJSON NetworkError where + parseJSON = $(J.mkParseJSON (sumTypeJSON $ dropPrefix "NE") ''NetworkError) + omittedField = Just NEFailedError $(J.deriveJSON (sumTypeJSON id) ''BrokerErrorType) From 7e98b3103f4eb9a6a9a99604afb6f3a32ffc013d Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Sun, 7 Sep 2025 15:13:19 +0100 Subject: [PATCH 2/2] 6.4.5.2 --- simplexmq.cabal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplexmq.cabal b/simplexmq.cabal index 69ad73c9a..6dc3d0be4 100644 --- a/simplexmq.cabal +++ b/simplexmq.cabal @@ -1,7 +1,7 @@ cabal-version: 1.12 name: simplexmq -version: 6.4.5.1 +version: 6.4.5.2 synopsis: SimpleXMQ message broker description: This package includes <./docs/Simplex-Messaging-Server.html server>, <./docs/Simplex-Messaging-Client.html client> and