diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 69603af..66d66d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,9 +19,9 @@ jobs: - name: Setup Stack uses: haskell/actions/setup@v1 with: - ghc-version: '8.10.7' + ghc-version: "8.10.7" enable-stack: true - stack-version: 'latest' + stack-version: "latest" - name: Cache dependencies uses: actions/cache@v2 @@ -36,6 +36,7 @@ jobs: stack build --test --force-dirty install_root=$(stack path --local-install-root) mv ${install_root}/bin/smp-server smp-server-ubuntu-20_04-x86-64 + mv ${install_root}/bin/ntf-server ntf-server-ubuntu-20_04-x86-64 - name: Build changelog if: startsWith(github.ref, 'refs/tags/v') @@ -73,6 +74,7 @@ jobs: files: | LICENSE smp-server-ubuntu-20_04-x86-64 + ntf-server-ubuntu-20_04-x86-64 fail_on_unmatched_files: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 42dce14..1746ca9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,22 @@ +# 2.0.0 + +Push notifications server (beta): + +- supports APNS +- manage device tokens verification via notification delivery +- sending periodic background notification to check messages (not more frequent than every 20 min) + +SMP server: + +- disconnect inactive clients after some period +- remove undelivered messages after 30 days +- log aggregate usage daily stats: only the number of queues created/secured/deleted/used and messages sent/delivered is logged, as one line per day, so we can plan server capacity and diagnose any problems. + +SMP agent: + +- manage device tokens and notification server connection +- DOWN/UP events to the agent user about server disconnections/reconnections are now sent once per server + # 1.1.0 SMP server: diff --git a/apps/ntf-server/Main.hs b/apps/ntf-server/Main.hs index 5bef2eb..b23e75b 100644 --- a/apps/ntf-server/Main.hs +++ b/apps/ntf-server/Main.hs @@ -21,7 +21,7 @@ logCfg = LogConfig {lc_file = Nothing, lc_stderr = True} main :: IO () main = do - setLogLevel LogError + setLogLevel LogDebug -- change to LogError in production withGlobalLogging logCfg $ protocolServerCLI ntfServerCLIConfig runNtfServer ntfServerCLIConfig :: ServerCLIConfig NtfServerConfig diff --git a/package.yaml b/package.yaml index 8f894c4..c37b4b1 100644 --- a/package.yaml +++ b/package.yaml @@ -1,5 +1,5 @@ name: simplexmq -version: 1.1.0 +version: 2.0.0 synopsis: SimpleXMQ message broker description: | This package includes <./docs/Simplex-Messaging-Server.html server>, diff --git a/simplexmq.cabal b/simplexmq.cabal index 55a3ead..815db3f 100644 --- a/simplexmq.cabal +++ b/simplexmq.cabal @@ -5,7 +5,7 @@ cabal-version: 1.12 -- see: https://github.com/sol/hpack name: simplexmq -version: 1.1.0 +version: 2.0.0 synopsis: SimpleXMQ message broker description: This package includes <./docs/Simplex-Messaging-Server.html server>, <./docs/Simplex-Messaging-Client.html client> and diff --git a/src/Simplex/Messaging/Transport.hs b/src/Simplex/Messaging/Transport.hs index 87f4ef5..46eb9cf 100644 --- a/src/Simplex/Messaging/Transport.hs +++ b/src/Simplex/Messaging/Transport.hs @@ -96,7 +96,7 @@ supportedSMPVersions :: VersionRange supportedSMPVersions = mkVersionRange 1 1 simplexMQVersion :: String -simplexMQVersion = "1.1.0" +simplexMQVersion = "2.0.0" -- * Transport connection class