File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+
6
+ ## [ 1.1.1] - 2023-02-05
7
+
8
+ ### Fixes
9
+ - Selected value is lost if the configured value is renamed.
10
+
11
+ ** Background:**
12
+
13
+ Instead of the value name an UUID is now used to identify the selected value.
14
+
15
+ ** Migration Steps:**
16
+
17
+ Old configurations without the UUID can still be loaded,
18
+ but value renaming is not working without the following migration steps:
19
+
20
+ - Open all existing persistent values config nodes and press 'Update'
21
+ - Open all persistent value nodes and press 'Done'.
22
+ - For now on the selected value should be automatically updated even if the value got renamed.
23
+
5
24
## [ 1.1.0] - 2023-02-02
6
25
7
26
### Features
Original file line number Diff line number Diff line change 111
111
// Ignore re-population change
112
112
if ( selected . val ( ) !== undefined ) {
113
113
// Store actual selected value ID and name
114
- const selected_id = selected . data ( 'id' ) ;
115
- if ( selected_id !== 'undefined' ) {
116
- node . valueId = selected_id ;
114
+ const selectedId = selected . data ( 'id' ) ;
115
+ if ( selectedId !== 'undefined' ) {
116
+ node . valueId = selectedId ;
117
117
valueIdField . val ( node . valueId ) ;
118
118
}
119
119
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @waldbaer/node-red-persistent-values" ,
3
- "version" : " 1.1.0 " ,
3
+ "version" : " 1.1.1 " ,
4
4
"description" : " Persistent values for Node-RED" ,
5
5
"author" : " waldbaer" ,
6
6
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments