Skip to content

Commit 47f2ef5

Browse files
committed
chore: release v7.0.0
* (bluefox) Breaking change: all usages of `jsonata` must be rewritten to use promises. * (bluefox) Breaking change: all blockly scripts with `jsonata` blocks must de changed (just move some blocks) and saved anew. * (bluefox) Extended `createState` command with possibility to create aliases. * (bluefox) Corrected CRON card in rules * (bluefox) Added additional options to show the attributes of object in blockly * (bluefox) Corrected `existsStateAsync` function * (bluefox) Added `isDaylightSaving` state to indicate day saving time
1 parent aaa31fe commit 47f2ef5

File tree

17 files changed

+46
-45
lines changed

17 files changed

+46
-45
lines changed

CHANGELOG_OLD.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
The newest change log is in README.md
2+
## 6.1.0 (2022-11-03)
3+
* (Apollon77) Add a configurable check for number of setStates per Minute to prevent scripts from taking down ioBroker. Default are 1000 setState per minute. Only stops if the number is reached 2 minutes in a row!
4+
* (Apollon77) Add createAlias method to create aliases for states
5+
* (Apollon77) Add setStateDelayed to selector
6+
* (Apollon77) Add options to exec command
7+
* (Apollon77) Fix issues with cancelling schedules when stopping scripts
8+
* (bluefox) Corrected debug mode
9+
210
## 6.0.3 (2022-09-14)
311
* (AlCalzone) Downgrade Typescript to prevent errors with global typescript scripts
412

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ And then call `npm run build`.
5252
<!--
5353
### **WORK IN PROGRESS**
5454
-->
55-
### **WORK IN PROGRESS**
55+
### 7.0.0 (2023-02-21)
5656
* (bluefox) Breaking change: all usages of `jsonata` must be rewritten to use promises.
5757
* (bluefox) Breaking change: all blockly scripts with `jsonata` blocks must de changed (just move some blocks) and saved anew.
5858
* (bluefox) Extended `createState` command with possibility to create aliases.
@@ -79,14 +79,6 @@ And then call `npm run build`.
7979
### 6.1.2 (2022-11-03)
8080
* (bluefox) Added ukrainian translation
8181

82-
### 6.1.0 (2022-11-03)
83-
* (Apollon77) Add a configurable check for number of setStates per Minute to prevent scripts from taking down ioBroker. Default are 1000 setState per minute. Only stops if the number is reached 2 minutes in a row!
84-
* (Apollon77) Add createAlias method to create aliases for states
85-
* (Apollon77) Add setStateDelayed to selector
86-
* (Apollon77) Add options to exec command
87-
* (Apollon77) Fix issues with cancelling schedules when stopping scripts
88-
* (bluefox) Corrected debug mode
89-
9082
## License
9183
The MIT License (MIT)
9284

admin/asset-manifest.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"files": {
3-
"main.js": "/static/js/main.3fa20069.js",
3+
"main.js": "/static/js/main.158bac96.js",
44
"static/css/62.a2231b9d.chunk.css": "/static/css/62.a2231b9d.chunk.css",
5-
"static/js/62.acb4e2d9.chunk.js": "/static/js/62.acb4e2d9.chunk.js",
5+
"static/js/62.8cad6caf.chunk.js": "/static/js/62.8cad6caf.chunk.js",
66
"static/js/90.f5ce0179.chunk.js": "/static/js/90.f5ce0179.chunk.js",
77
"static/js/234.427745bc.chunk.js": "/static/js/234.427745bc.chunk.js",
88
"static/js/13.6f214f89.chunk.js": "/static/js/13.6f214f89.chunk.js",
@@ -143,9 +143,9 @@
143143
"static/media/Garage Doors.svg": "/static/media/Garage Doors.0c2a1cfca7ad1ea59625.svg",
144144
"static/media/Outdoor Blinds.svg": "/static/media/Outdoor Blinds.37b85a9c060a4af48da9.svg",
145145
"static/media/Upstairs.svg": "/static/media/Upstairs.441813e54e0daca0882d.svg",
146-
"main.3fa20069.js.map": "/static/js/main.3fa20069.js.map",
146+
"main.158bac96.js.map": "/static/js/main.158bac96.js.map",
147147
"62.a2231b9d.chunk.css.map": "/static/css/62.a2231b9d.chunk.css.map",
148-
"62.acb4e2d9.chunk.js.map": "/static/js/62.acb4e2d9.chunk.js.map",
148+
"62.8cad6caf.chunk.js.map": "/static/js/62.8cad6caf.chunk.js.map",
149149
"90.f5ce0179.chunk.js.map": "/static/js/90.f5ce0179.chunk.js.map",
150150
"234.427745bc.chunk.js.map": "/static/js/234.427745bc.chunk.js.map",
151151
"13.6f214f89.chunk.js.map": "/static/js/13.6f214f89.chunk.js.map",
@@ -166,6 +166,6 @@
166166
"44.c788402e.chunk.js.map": "/static/js/44.c788402e.chunk.js.map"
167167
},
168168
"entrypoints": [
169-
"static/js/main.3fa20069.js"
169+
"static/js/main.158bac96.js"
170170
]
171171
}

admin/google-blockly/own/blocks_convert.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Blockly.Blocks.convert_toboolean = {
5656
};
5757

5858
Blockly.JavaScript.convert_toboolean = function (a) {
59-
return ["(function (){var val = " + Blockly.JavaScript.valueToCode(a, "VALUE", Blockly.JavaScript.ORDER_ATOMIC) + "; if (val === 'true') return true; if (val === 'false') return false; return !!val;})()", Blockly.JavaScript.ORDER_ATOMIC];
59+
return ["(function (){const val = " + Blockly.JavaScript.valueToCode(a, "VALUE", Blockly.JavaScript.ORDER_ATOMIC) + "; if (val === 'true') return true; if (val === 'false') return false; return !!val;})()", Blockly.JavaScript.ORDER_ATOMIC];
6060
};
6161

6262
// --- to String --------------------------------------------------
@@ -253,11 +253,11 @@ Blockly.JavaScript.convert_from_date = function (block) {
253253
} else if (option === 's') {
254254
code = 'getDateObject(' + value + ').getSeconds()';
255255
} else if (option === 'sid') {
256-
code = '(function () {var v = getDateObject(' + value + '); return v.getHours() * 3600 + v.getMinutes() * 60 + v.getSeconds();})()';
256+
code = '(function () {const v = getDateObject(' + value + '); return v.getHours() * 3600 + v.getMinutes() * 60 + v.getSeconds();})()';
257257
} else if (option === 'm') {
258258
code = '(getDateObject(' + value + ').getMinutes())';
259259
} else if (option === 'mid') {
260-
code = '(function () {var v = getDateObject(' + value + '); return v.getHours() * 60 + v.getMinutes();})()';
260+
code = '(function () {const v = getDateObject(' + value + '); return v.getHours() * 60 + v.getMinutes();})()';
261261
} else if (option === 'h') {
262262
code = 'getDateObject(' + value + ').getHours()';
263263
} else if (option === 'd') {

admin/google-blockly/own/blocks_system.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,9 +811,9 @@ Blockly.JavaScript['get_value_async'] = function(block) {
811811
var attr = block.getFieldValue('ATTR');
812812
var statement = Blockly.JavaScript.statementToCode(block, 'STATEMENT');
813813
if (attr === 'type' || attr.indexOf('.') !== -1) {
814-
return 'getObjectAsync("' + oid + '", async function (err, obj) {\n var value = obj.' + attr + ';\n' + statement + '});\n';
814+
return 'getObjectAsync("' + oid + '", async function (err, obj) {\n let value = obj.' + attr + ';\n' + statement + '});\n';
815815
} else {
816-
return 'getState("' + oid + '", async function (err, state) {\n var value = state.' + attr + ';\n' + statement + '});\n';
816+
return 'getState("' + oid + '", async function (err, state) {\n let value = state.' + attr + ';\n' + statement + '});\n';
817817
}
818818
};
819819

admin/google-blockly/own/blocks_time.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ Blockly.JavaScript['time_get'] = function(block) {
407407
} else if (option === 'm') {
408408
code = '(new Date().getMinutes())';
409409
} else if (option === 'mid') {
410-
code = '(function () {var v = new Date(); return v.getHours() * 60 + v.getMinutes();})()';
410+
code = '(function () {const v = new Date(); return v.getHours() * 60 + v.getMinutes();})()';
411411
} else if (option === 'h') {
412412
code = '(new Date().getHours())';
413413
} else if (option === 'd') {

admin/google-blockly/own/blocks_trigger.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Blockly.JavaScript['on_ext'] = function(block) {
274274
var oid = '[].concat(' + oids.join(').concat(') + ')';
275275

276276
var code = 'on({id: ' + oid + ', ' + val + (ack_condition ? ', ack: ' + ack_condition : '') + '}, async function (obj) {\n ' +
277-
(oids.length === 1 ? 'var value = obj.state.val;\n var oldValue = obj.oldState.val;\n' : '') +
277+
(oids.length === 1 ? 'let value = obj.state.val;\n let oldValue = obj.oldState.val;\n' : '') +
278278
statements_name + '});\n';
279279
return code;
280280
};
@@ -347,7 +347,7 @@ Blockly.JavaScript['on'] = function(block) {
347347
val = 'change: "' + dropdown_condition + '"';
348348
}
349349

350-
var code = 'on({id: "' + value_objectid + '"' + (objectname ? '/*' + objectname + '*/' : '') + ', ' + val + (ack_condition ? ', ack: ' + ack_condition : '') + '}, async function (obj) {\n var value = obj.state.val;\n var oldValue = obj.oldState.val;\n' + statements_name + '});\n';
350+
var code = 'on({id: "' + value_objectid + '"' + (objectname ? '/*' + objectname + '*/' : '') + ', ' + val + (ack_condition ? ', ack: ' + ack_condition : '') + '}, async function (obj) {\n let value = obj.state.val;\n let oldValue = obj.oldState.val;\n' + statements_name + '});\n';
351351
return code;
352352
};
353353

0 commit comments

Comments
 (0)