You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add file extension for file based rules.
- Wording improvements.
- Update ECMAScript version from 2022 to 2024.
Signed-off-by: Florian Hotze <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ This library is included by default in the openHAB [JavaScript Scripting add-on]
46
46
47
47
### Default Installation
48
48
49
-
Install the openHAB [JavaScript Scripting add-on](https://www.openhab.org/addons/automation/jsscripting/), a version of this library will be automatically installed and available to ECMAScript 2022+ rules created using [File Based Rules](#file-based-rules) or [UI Based Rules](#ui-based-rules).
49
+
Install the openHAB [JavaScript Scripting add-on](https://www.openhab.org/addons/automation/jsscripting/), a version of this library will be automatically installed and available to ECMAScript 2024+ rules created using [File Based Rules](#file-based-rules) or [UI Based Rules](#ui-based-rules).
50
50
51
51
openHAB also provides the [JavaScript Scripting (Nashorn) add-on](https://www.openhab.org/addons/automation/jsscriptingnashorn/), which is based on the older Nashorn JavaScript engine. This is referred to as `ECMA - 262 Edition 5.1` or `application/javascript;version=ECMAScript-5.1` in the Main UI.
52
52
*This library is not compatible with this older runtime.*
@@ -1212,8 +1212,8 @@ See [openhab-js : utils](https://openhab.github.io/openhab-js/utils.html) for fu
1212
1212
1213
1213
## File Based Rules
1214
1214
1215
-
The JS Scripting binding will load scripts from `automation/js` in the user configuration directory.
1216
-
The system will automatically reload scripts when changes are detected to files.
1215
+
The JavaScript Scripting automation add-on will load`.js` scripts from `automation/js` in the user configuration directory.
1216
+
The system will automatically reload a script when changes are detected to the script file.
1217
1217
Local variable state is not persisted among reloads, see using the [cache](#cache) for a convenient way to persist objects.
1218
1218
1219
1219
File based rules can be created in 2 different ways: using [JSRule](#jsrule) or the [Rule Builder](#rule-builder).
0 commit comments