diff --git a/Changelog.txt b/Changelog.txt
index c7197ba717..93362df317 100644
--- a/Changelog.txt
+++ b/Changelog.txt
@@ -23,6 +23,37 @@
# - title by author
# }}}
+{{{ 5.40.0 2022-xx-xx
+
+:: new features
+
+- [1966872] Content server viewer: Allow editing bookmarks
+
+- [1967028] Read covers from CBC comic files
+
+- [1966537] Allow filtering authors/tags when creating virtual library based on them
+
+- [1966851] Add a copy button to the image view popup
+
+- Template language: Support for nested functions and a string concatenation operator
+
+:: bug fixes
+
+- DOCX Output: Fix a comment immediately after a
tag breaking the conversion
+
+- Standalone ToC editor: Fix spurious error message if left open for more than two minutes
+
+- [1965693] Fix search-as-you-type triggers extra search after manual confirmation
+
+:: improved recipes
+- Courrier International
+
+:: new recipes
+- Reason Magazine by Howard Cornett
+- Seminar Magazine by unkn0wn
+- Frontline by unkn0wn
+}}}
+
{{{ 5.39.1 2022-03-18
:: new features
diff --git a/src/calibre/constants.py b/src/calibre/constants.py
index bfda36023b..0b81b8ee14 100644
--- a/src/calibre/constants.py
+++ b/src/calibre/constants.py
@@ -5,7 +5,7 @@ from functools import lru_cache
import sys, locale, codecs, os, collections, collections.abc
__appname__ = 'calibre'
-numeric_version = (5, 39, 1)
+numeric_version = (5, 40, 0)
__version__ = '.'.join(map(str, numeric_version))
git_version = None
__author__ = "Kovid Goyal "