# Settings.js and upgrading

**URL:** <https://discourse.nodered.org/t/settings-js-and-upgrading/57389>\
**Category:** Core Development\
**Created:** [28 January 2022 08:53 UTC](https://discourse.nodered.org/t/settings-js-and-upgrading/57389 "2022-01-28T08:53:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [28 January 2022 08:53 UTC](https://discourse.nodered.org/t/settings-js-and-upgrading/57389/1 "2022-01-28T08:53:13Z")

</div>

Just a general question, when new features are introduced which can be controlled via the settings.js file, how is the settings.js maintained/merged when changing to another node-red version ? Is this being handled during the upgrade process ?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [28 January 2022 08:56 UTC](https://discourse.nodered.org/t/settings-js-and-upgrading/57389/2 "2022-01-28T08:56:04Z")

</div>

No, you would need to add any new / additional settings if you wanted to take advantage of them (though as you know, its fine to leave the old settings file unaltered).

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [28 January 2022 09:14 UTC](https://discourse.nodered.org/t/settings-js-and-upgrading/57389/3 "2022-01-28T09:14:05Z")

</div>

@bakman2 You can also stop NR, rename the settings.js file, start and stop NR and compare the new settings.js file to the old one to see the changes and copy your old settings into it.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [28 January 2022 09:42 UTC](https://discourse.nodered.org/t/settings-js-and-upgrading/57389/4 "2022-01-28T09:42:40Z")

</div>

Got it thanks. Good to keep in mind.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [28 January 2022 11:58 UTC](https://discourse.nodered.org/t/settings-js-and-upgrading/57389/5 "2022-01-28T11:58:59Z")

</div>

I have to say that this is an ongoing concern of mine about upgrades. It would probably help a lot if the change note said clearly whether the settings.js file had any new/changed properties. Sometimes this information is buried in the text and not necessarily obvious.

Including a notification in the Editor after a new version upgrade would also be helpful.

A diff of the two versions kept somewhere would be even more useful and would save us having to do that each time 🙂

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [28 January 2022 16:32 UTC](https://discourse.nodered.org/t/settings-js-and-upgrading/57389/6 "2022-01-28T16:32:05Z")

</div>

> [@TotallyInformation](#):
>
> A diff of the two versions

which two versions ? the latest master and previous master ? - not much use if you have modified it anyway...

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [28 January 2022 18:20 UTC](https://discourse.nodered.org/t/settings-js-and-upgrading/57389/7 "2022-01-28T18:20:02Z")

</div>

Sorry, I meant the version in your userDir against the master version in the Node-RED installation folder.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 February 2022 18:20 UTC](https://discourse.nodered.org/t/settings-js-and-upgrading/57389/8 "2022-02-11T18:20:41Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
