Skip to content

Commit dc920d9

Browse files
authored
v4.0.0 (#573)
* v4.0.0 * update
1 parent f53c1f5 commit dc920d9

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# 4.0.0
2+
3+
SMP server:
4+
5+
- Basic authentication. The server address can now include an optional password that is required to create messaging queues, so the contacts who message you will not be able to receive messages via your server, unless you share with them the address with the password. It is recommended to enable basic authentication on all private servers by adding `create_password` parameter into AUTH section of server INI file (the previously deployed servers do not have this section, you need to add it).
6+
- Disable creating new queues completely with `new_queues: off` parameter in AUTH section of INI file - it can be used to simplify migrating the exising connections to another server.
7+
- Updated server CLI with changed defaults:
8+
- interactive server initialization, use -y flag to initalize the server non-interactively.
9+
- store log is now enabled by default, so messaging queues and messages are restored when the server is restarted (to restore undelivered messages the server needs to be stopped with SIGINT signal).
10+
- a random password is now generated by default during the server initialization.
11+
12+
SMP agent:
13+
14+
- API to test SMP servers. It connects to the server, creates and deletes a messaging queue. The new SimpleX Chat client uses this API to allow you to test that you have the correct server address, with the valid certificate fingerprint and pasword, before enabling the new server.
15+
116
# 3.4.0
217

318
SMP agent:

package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: simplexmq
2-
version: 3.4.0
2+
version: 4.0.0
33
synopsis: SimpleXMQ message broker
44
description: |
55
This package includes <./docs/Simplex-Messaging-Server.html server>,

simplexmq.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cabal-version: 1.12
55
-- see: https://github.com/sol/hpack
66

77
name: simplexmq
8-
version: 3.4.0
8+
version: 4.0.0
99
synopsis: SimpleXMQ message broker
1010
description: This package includes <./docs/Simplex-Messaging-Server.html server>,
1111
<./docs/Simplex-Messaging-Client.html client> and

src/Simplex/Messaging/Transport.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ supportedSMPServerVRange :: VersionRange
9999
supportedSMPServerVRange = mkVersionRange 1 5
100100

101101
simplexMQVersion :: String
102-
simplexMQVersion = "3.4.0"
102+
simplexMQVersion = "4.0.0"
103103

104104
-- * Transport connection class
105105

tests/CLITests.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ smpServerTest storeLog basicAuth = do
5151
lookupValue "INACTIVE_CLIENTS" "disconnect" ini `shouldBe` Right "off"
5252
doesFileExist (cfgPath <> "/ca.key") `shouldReturn` True
5353
r <- lines <$> capture_ (withArgs ["start"] $ (100000 `timeout` smpServerCLI cfgPath logPath) `catchAll_` pure (Just ()))
54-
r `shouldContain` ["SMP server v3.4.0"]
54+
r `shouldContain` ["SMP server v4.0.0"]
5555
r `shouldContain` (if storeLog then ["Store log: " <> logPath <> "/smp-server-store.log"] else ["Store log disabled."])
5656
r `shouldContain` ["Listening on port 5223 (TLS)..."]
5757
r `shouldContain` ["not expiring inactive clients"]

0 commit comments

Comments
 (0)