From 086ad2c4208e0c48eb9f677da1e999910bf9127a Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Wed, 20 Dec 2023 09:20:59 +0100 Subject: [PATCH] chore: deprecate old `discover` method implementation --- lib/src/scripting_api/wot.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/src/scripting_api/wot.dart b/lib/src/scripting_api/wot.dart index 207e0723..eb8b4c71 100644 --- a/lib/src/scripting_api/wot.dart +++ b/lib/src/scripting_api/wot.dart @@ -52,7 +52,13 @@ abstract interface class WoT { /// using the `await for` syntax. /// It also allows for stopping the Discovery process prematurely and /// for retrieving information about its current state (i.e., whether it is - /// still `active`). + /// still [ThingDiscovery.active]). + @Deprecated( + 'The discover method is curently in the process of being adjusted to the ' + 'latest Scripting API version and is therefore subject to change. ' + 'For direct and directory discovery, please refer to the ' + 'requestThingDescription and exploreDirectory methods instead.', + ) ThingDiscovery discover( Uri url, { ThingFilter? thingFilter,