Skip to content

Commit 9c58dfc

Browse files
committed
Release 1.1.1
1 parent 5cd3ef2 commit 9c58dfc

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@
22

33
All notable changes to this project will be documented in this file.
44

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+
524
## [1.1.0] - 2023-02-02
625

726
### Features

nodes/persistent-value.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@
111111
// Ignore re-population change
112112
if (selected.val() !== undefined) {
113113
// 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;
117117
valueIdField.val(node.valueId);
118118
}
119119

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@waldbaer/node-red-persistent-values",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Persistent values for Node-RED",
55
"author": "waldbaer",
66
"license": "MIT",

0 commit comments

Comments
 (0)