]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc: new section in upgrading guide about upcoming changes
authorPetr Špaček <petr.spacek@nic.cz>
Mon, 7 Sep 2020 07:00:53 +0000 (09:00 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Mon, 7 Sep 2020 14:53:28 +0000 (16:53 +0200)
doc/upgrading.rst

index a30ca42c60d7dabe0e1ceee0e685f5432fed938f..f00435accd2f2ce07816d13b8fac75e95577fa68 100644 (file)
@@ -6,10 +6,31 @@
 Upgrading
 *********
 
-This section summarizes steps required for upgrade to newer Knot Resolver versions.
+This section summarizes steps required when upgrading to newer Knot Resolver versions.
 We advise users to also read :ref:`release_notes` for respective versions.
 Section *Module changes* is relevant only for users who develop or use third-party modules.
 
+Upcoming changes
+================
+
+Following section provides information about selected changes in not-yet-released versions.
+We advise users to prepare for these changes sooner rather than later to make it easier to upgrade to
+newer versions when they are released.
+
+Users
+-----
+
+* Users of :ref:`control-sockets` API need to terminate each command sent to resolver with newline
+  character (ASCII ``\n``). Correct usage: ``cache.stats()\n``.
+  Newline terminated commands are accepted by all resolver versions >= 1.0.0.
+* Human readable output from :ref:`control-sockets` is not stable and changes from time to time.
+  Users who need machine readable output for scripts should use Lua function
+  ``tojson()`` to convert Lua values into standard JSON format instead of attempting to parse
+  the human readable output. For example API call ``tojson(cache.stats())\n`` will return JSON string
+  with ``cache.stats()`` results represented as dictionary.
+  Function ``tojson()`` is available in all resolver versions >= 1.0.0.
+
+
 5.0 to 5.1
 ==========