From dd2f46ad1fb5f45ea1a46a3d77b4e9a0d3c1438a Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Tue, 22 Feb 2022 17:51:20 +0100
Subject: [PATCH] Release 0.6.2

---
 CHANGELOG.md        | 4 ++++
 CMakeLists.txt      | 4 ++--
 appveyor.yml        | 2 +-
 lib/http/client.cpp | 2 +-
 meson.build         | 2 +-
 5 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2752d8396..ab1af2932 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
 # Changelog
 
+## [0.6.2] -- 2022-02-22
+
+- Fix exception on "new" version string format
+
 ## [0.6.1] -- 2021-12-20
 
 - Set counter for encrypted files always to 0
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 82c03c3b6..921041c98 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,12 +38,12 @@ option(USE_BUNDLED_SPDLOG "Use the bundled version of spdlog." ${HUNTER_ENABLED}
 
 if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
 project(matrix_client
-	VERSION 0.6.1
+	VERSION 0.6.2
 	DESCRIPTION "Client API library for Matrix."
 	HOMEPAGE_URL https://github.com/Nheko-Reborn/mtxclient)
 else()
 project(matrix_client
-	VERSION 0.6.1
+	VERSION 0.6.2
 	DESCRIPTION "Client API library for Matrix.")
 endif()
 
diff --git a/appveyor.yml b/appveyor.yml
index bffd9e650..c2215a9e6 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,6 +1,6 @@
 ---
 
-version: 0.6.1-{build}
+version: 0.6.2-{build}
 
 configuration: Release
 image: Visual Studio 2019
diff --git a/lib/http/client.cpp b/lib/http/client.cpp
index db067c848..8b461f320 100644
--- a/lib/http/client.cpp
+++ b/lib/http/client.cpp
@@ -54,7 +54,7 @@ coeurl::Headers
 mtx::http::Client::prepare_headers(bool requires_auth)
 {
     coeurl::Headers headers;
-    headers["User-Agent"] = "mtxclient v0.6.1";
+    headers["User-Agent"] = "mtxclient v0.6.2";
 
     if (requires_auth && !access_token_.empty())
         headers["Authorization"] = "Bearer " + access_token();
diff --git a/meson.build b/meson.build
index f8d6ddbf2..e465b0689 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
 project(
   'mtxclient',
   'cpp',
-version : '0.6.1',
+version : '0.6.2',
 meson_version : '>=0.57.0',
 license : 'MIT',
 default_options : 'cpp_std=c++17'
-- 
GitLab