Skip to content

Commit

Permalink
Release 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
waldbaer committed Feb 5, 2023
1 parent 5cd3ef2 commit 9c58dfc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@

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


## [1.1.1] - 2023-02-05

### Fixes
- Selected value is lost if the configured value is renamed.

**Background:**

Instead of the value name an UUID is now used to identify the selected value.

**Migration Steps:**

Old configurations without the UUID can still be loaded,
but value renaming is not working without the following migration steps:

- Open all existing persistent values config nodes and press 'Update'
- Open all persistent value nodes and press 'Done'.
- For now on the selected value should be automatically updated even if the value got renamed.

## [1.1.0] - 2023-02-02

### Features
Expand Down
6 changes: 3 additions & 3 deletions nodes/persistent-value.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@
// Ignore re-population change
if (selected.val() !== undefined) {
// Store actual selected value ID and name
const selected_id = selected.data('id');
if(selected_id !== 'undefined') {
node.valueId = selected_id;
const selectedId = selected.data('id');
if(selectedId !== 'undefined') {
node.valueId = selectedId;
valueIdField.val(node.valueId);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@waldbaer/node-red-persistent-values",
"version": "1.1.0",
"version": "1.1.1",
"description": "Persistent values for Node-RED",
"author": "waldbaer",
"license": "MIT",
Expand Down

0 comments on commit 9c58dfc

Please sign in to comment.