From 9fb51e547e84224a14f33d6f3c9ac17348d0788f Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Thu, 11 Apr 2024 10:25:35 +0000 Subject: [PATCH 1/2] Add breaking change warning for openhab-js Signed-off-by: Florian Hotze --- distributions/openhab/src/main/resources/bin/update.lst | 1 + 1 file changed, 1 insertion(+) diff --git a/distributions/openhab/src/main/resources/bin/update.lst b/distributions/openhab/src/main/resources/bin/update.lst index 0276461e6..ca0bf2015 100644 --- a/distributions/openhab/src/main/resources/bin/update.lst +++ b/distributions/openhab/src/main/resources/bin/update.lst @@ -134,6 +134,7 @@ ALERT;Twitter Binding has become X. All related references to Twitter and Tweets ALERT;AndroidTV Binding: The thing configuration of 'port' has been renamed and split to 'googletvPort' and 'shieldtvPort' ALERT;evcc Binding: Update to evcc API version 0.123.1 results in several new or updated channels. Existing Items will need to be adjusted. ALERT;ISM8 Binding: Most channels have changed and are now using Units of Measurements. Items must be adapted and the things must be recreated. +ALERT;JavaScript Scripting Automation: The 'Item' suffix has been removed from Item.type, i.e. 'SwitchItem' becomes 'Switch'. ALERT;Jython Scripting: Default python lib path changed from "/automation/lib/python" to "/automation/jython/lib" and default python script path changed from "automation/jsr223" to "automation/jython". Just move your python scripts and libraries to new locations. The path "automation/jsr223" is still working, because it is used as a deprecated path for all automation add-ons. ALERT;OpenWeatherMap Binding: One Call API version 2.5 is to be shut down in June 2024. Read the binding's documentation for the migration process. From 8e8006b43d08f4da410a8f5ce0c0aa4a277f8dd3 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Sun, 5 May 2024 22:40:46 +0200 Subject: [PATCH 2/2] Add breaking change warnings for 5.0.0 Refs https://github.com/openhab/openhab-js/blob/main/CHANGELOG.md#500. Signed-off-by: Florian Hotze --- distributions/openhab/src/main/resources/bin/update.lst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distributions/openhab/src/main/resources/bin/update.lst b/distributions/openhab/src/main/resources/bin/update.lst index ca0bf2015..4eb15f5a3 100644 --- a/distributions/openhab/src/main/resources/bin/update.lst +++ b/distributions/openhab/src/main/resources/bin/update.lst @@ -135,6 +135,8 @@ ALERT;AndroidTV Binding: The thing configuration of 'port' has been renamed and ALERT;evcc Binding: Update to evcc API version 0.123.1 results in several new or updated channels. Existing Items will need to be adjusted. ALERT;ISM8 Binding: Most channels have changed and are now using Units of Measurements. Items must be adapted and the things must be recreated. ALERT;JavaScript Scripting Automation: The 'Item' suffix has been removed from Item.type, i.e. 'SwitchItem' becomes 'Switch'. +ALERT;JavaScript Scripting Automation: The 'Item.history' API has been replaced by 'Item.persistence', which mostly provides the same functionality, but some return types changed and 'historicState' has been renamed to 'persistedState'. Blockly users should search for '.history' using the developer sidebar and re-save all scripts that contain this search query. +ALERT;JavaScript Scripting Automation: Deprecated methods 'actions.ScriptExecution.createTimerWithArgument' (use 'createTimer'), 'cache.get', 'cache.put', 'cache.remove' & 'cache.exists' (use the private or shared cache) and fields 'state' (use 'receivedState') & 'receivedTrigger' (use 'receivedEvent') have been removed from the event object. ALERT;Jython Scripting: Default python lib path changed from "/automation/lib/python" to "/automation/jython/lib" and default python script path changed from "automation/jsr223" to "automation/jython". Just move your python scripts and libraries to new locations. The path "automation/jsr223" is still working, because it is used as a deprecated path for all automation add-ons. ALERT;OpenWeatherMap Binding: One Call API version 2.5 is to be shut down in June 2024. Read the binding's documentation for the migration process.