File tree 4 files changed +231
-239
lines changed
4 files changed +231
-239
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ All notable changes to this project will be documented in this file.
11
11
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) , and this project adheres
12
12
to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
13
13
14
+ ## [ 1.3.4]
15
+
16
+ ### Fixed
17
+
18
+ - onChange fired when value not changed #390 - thanks for reporting @Delphius7
19
+
14
20
## [ 1.3.3]
15
21
16
22
### Fixed
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " node-red-contrib-homekit-bridged" ,
3
- "version" : " 1.3.3 " ,
3
+ "version" : " 1.3.4 " ,
4
4
"description" : " Node-RED nodes to simulate Apple HomeKit devices." ,
5
5
"main" : " build/nodes/nrchkb.js" ,
6
6
"scripts" : {
57
57
"@types/node-persist" : " ^3.1.1" ,
58
58
"@types/node-red" : " ^1.1.1" ,
59
59
"@types/semver" : " ^7.3.4" ,
60
- "@typescript-eslint/eslint-plugin" : " ^4.20 .0" ,
61
- "@typescript-eslint/parser" : " ^4.20 .0" ,
60
+ "@typescript-eslint/eslint-plugin" : " ^4.22 .0" ,
61
+ "@typescript-eslint/parser" : " ^4.22 .0" ,
62
62
"babel-eslint" : " ^10.1.0" ,
63
- "eslint" : " ^7.23 .0" ,
64
- "eslint-config-prettier" : " ^8.1 .0" ,
63
+ "eslint" : " ^7.24 .0" ,
64
+ "eslint-config-prettier" : " ^8.2 .0" ,
65
65
"eslint-plugin-prettier" : " ^3.3.1" ,
66
66
"husky" : " ^6.0.0" ,
67
67
"lint-staged" : " ^10.5.4" ,
68
68
"mocha" : " ^8.3.2" ,
69
- "node-red" : " ^1.2.9 " ,
69
+ "node-red" : " ^1.3.2 " ,
70
70
"node-red-node-test-helper" : " ^0.2.7" ,
71
71
"pinst" : " ^2.1.6" ,
72
72
"prettier" : " ^2.2.1" ,
73
73
"ts-node" : " ^9.1.1" ,
74
- "typescript" : " ^4.2.3 "
74
+ "typescript" : " ^4.2.4 "
75
75
},
76
76
"husky" : {
77
77
"hooks" : {
Original file line number Diff line number Diff line change @@ -168,16 +168,18 @@ module.exports = function (node: HAPServiceNodeType) {
168
168
} `
169
169
)
170
170
171
- onValueChange . call (
172
- this ,
173
- 0 ,
174
- {
175
- oldValue,
176
- newValue,
177
- context,
178
- } ,
179
- originator
180
- )
171
+ if ( oldValue != newValue ) {
172
+ onValueChange . call (
173
+ this ,
174
+ 0 ,
175
+ {
176
+ oldValue,
177
+ newValue,
178
+ context,
179
+ } ,
180
+ originator
181
+ )
182
+ }
181
183
}
182
184
183
185
const onInput = function ( msg : Record < string , any > ) {
You can’t perform that action at this time.
0 commit comments