Skip to content

Latest commit

 

History

History
100 lines (60 loc) · 4.07 KB

CHANGELOG.md

File metadata and controls

100 lines (60 loc) · 4.07 KB

Change Log

All notable changes to this project will be documented in this file. The format is based on Keep a Changelog.

alternate-node-red-installer adheres to Semantic Versioning.

None

WARNING: Although this has the same major version number as the previous release, it is a breaking release. This is to allow the major versions to be aligned to Node-RED itself.

Breaking

  • Minimum version of Node.js supported is now v14 in alignment with Node-RED v3.
  • Update to node-red v3.0.2 as minimum - the latest version of node-red will always be installed when nrinstall is run.

Fixed

  • Changes to the systemd service file - removing spurious quote characters.
  • Changes to the data/envfile.ini file - removing spurious quote characters.

Changed

  • Update example-settings.js to a newer version - aligned to node-red v3.0.2 with enhancements & additional help
  • Removed .eslintrc.js/.eslintrc.json - not required
  • Removed package-lock.json - not required
  • Minor improvements

Breaking

  • Minimum version of Node.js supported is now v12

Changed

  • Dependencies updated (note that several dependencies from Sindresorhus are used - annoyingly he has forced a move to ESM only, this is just too hard to contemplate right now so still using older versions)

Fixed

  • Removed some extraneous quotes

Added

  • An example settings.js file (data/example-settings/js)

    This contains a number of enhancements over the default including extended information that can be collapsed for easier reading.

    It also is configured to pick up the environment variables specified in this packages templates.

  • backup.sh, backupw.sh, and backupm.sh BASH scripts in the new scripts folder to efficiently back up your working Node-RED installation if installed using this alternate installer.

    The scripts should be run from CRON daily, weekly and monthly respectively.

    Please amend the indicated variables in the scripts so that they will work for your own installation.

    # Node-RED daily backup (3AM every day)
    0 3 * * * "/home/home/nrmain"/backup.sh > /dev/null
    # Node-RED weekly backup (03:30 every Sunday)
    30 3 * * 0 "/home/home/nrmain"/backupw.sh > /dev/null
    # Node-RED monthly backup (04:00 on the first of every month)
    0 4 1 * * "/home/home/nrmain"/backupm.sh > /dev/null
    

    They give you 7 days of daily backups, 5 weekly backups, and 12 monthly backups. They should be easy enough to adapt to whatever schedule you want.

    Output from the scripts are written to syslog, review with sudo cat /var/log/syslog | grep nrmain-backup or sudo journalctl -t nrmain-backup.

    Note that the backup scripts have been updated for Node-RED v1.3 such that data/externalModules/node_modules is excluded.

Breaking

  • Node.js v10 is now the minimum version due to dependency module changes.

Added

  • CHANGELOG and TODO files.
  • Two command line commands are now available if you install this package globally:
    • alternate-node-red-installer - OK, so this is a bit long and I can never remember it myself!
    • nrinstall - Yes, that's a bit more memorable. 😎

Changed

  • Bump to v2.0 due to breaking change. And to v2.0.1 for the extra command name.
  • Bump dependencies to latest versions.
  • Tidy and improve code.
  • Install now sets correct paths in ./system/node-red-service and ./data/envfile.ini.

Fixed