From 395123214ddc2fb9ecf81f80131470f412f09897 Mon Sep 17 00:00:00 2001 From: JuanCF Date: Fri, 21 Aug 2026 18:53:26 -0600 Subject: [PATCH 1/2] chore: bump version to v1.3.0 Prepare the v1.3.0 release by updating the version string everywhere it appears. The frontend package.json version and the APP_VERSION constant are the self-referencing app version shown in the UI, while the NUTWATCH_REF defaults in scripts/setup.sh (header comment, constant, and help output), vm/nut-vm.sh, and the README environment tables pin which release tag installers download from GitHub Releases. Pointing these at v1.3.0 before tagging keeps fresh installs self-consistent once the tag is pushed and release.yml publishes the tarball. SCRIPT_VERSION in vm/nut-vm.sh intentionally stays at 1.0.0 because the VM script itself has not changed since v1.2.0. --- README.md | 4 ++-- scripts/setup.sh | 6 +++--- src/frontend/package.json | 2 +- src/frontend/src/constants/index.ts | 2 +- vm/nut-vm.sh | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 907df63..35ceb37 100644 --- a/README.md +++ b/README.md @@ -411,7 +411,7 @@ sudo NUT_UPS_NAME="myups" NUT_ADMIN_PASS="securepass" AUTO=1 bash scripts/setup. | `NUT_MONITOR_PASS` | _(auto-gen)_ | NUT monitor password | | `NUT_LISTEN_ADDR` | `0.0.0.0` | NUT listen address | | `NUT_LISTEN_PORT` | `3493` | NUT listen port | -| `NUTWATCH_REF` | `v1.2.0` | NutWatch release tag | +| `NUTWATCH_REF` | `v1.3.0` | NutWatch release tag | | `NUTWATCH_URL_PREFIX` | _(unset)_ | Override tarball URL for local testing | After install, the app is fully open (no login). Create the first admin with `manage.py create-admin ` (run from the NutWatch install directory, e.g. `venv/bin/python manage.py create-admin admin`) to turn on session login and per-user API keys — or create it from the dashboard's first-run Setup page. @@ -584,7 +584,7 @@ COMMUNITY_SCRIPTS_URL=https://my-mirror.example.com bash vm/nut-vm.sh | Variable | Default | Description | |----------|---------|-------------| -| `NUTWATCH_REF` | `v1.2.0` | Git tag for release download URL | +| `NUTWATCH_REF` | `v1.3.0` | Git tag for release download URL | | `NUTWATCH_URL_PREFIX` | _(unset)_ | Override URL for testing local builds | --- diff --git a/scripts/setup.sh b/scripts/setup.sh index dae76d2..30ea528 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -11,7 +11,7 @@ # AUTO=1 bash scripts/setup.sh # non-interactive, defaults/auto-generated passwords # # Shared environment variables: -# NUTWATCH_REF — NutWatch release tag (default: v1.2.0) +# NUTWATCH_REF — NutWatch release tag (default: v1.3.0) # NUTWATCH_URL_PREFIX — override tarball URL for local testing # # NutWatch is fully open (no login) until an admin account is created, either @@ -36,7 +36,7 @@ set -euo pipefail # Constants #=============================================================================== -NUTWATCH_REF="${NUTWATCH_REF:-v1.2.0}" +NUTWATCH_REF="${NUTWATCH_REF:-v1.3.0}" NUTWATCH_RELEASES_URL="https://github.com/JuanCF/nutwatch/releases/download/${NUTWATCH_REF}" NUTWATCH_TARBALL_URL="${NUTWATCH_URL_PREFIX:-${NUTWATCH_RELEASES_URL}}/nutwatch.tar.gz" @@ -703,7 +703,7 @@ main() { echo "" echo "Environment variables:" echo " AUTO=1 — non-interactive mode (fresh install only)" - echo " NUTWATCH_REF — release tag (default: v1.2.0)" + echo " NUTWATCH_REF — release tag (default: v1.3.0)" echo "" echo "NutWatch is open (no login) until an admin account is created via the" echo "dashboard's Setup page or 'manage.py create-admin' in the install dir." diff --git a/src/frontend/package.json b/src/frontend/package.json index 1611b3a..5059bee 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -1,7 +1,7 @@ { "name": "nutwatch-frontend", "private": true, - "version": "1.2.0", + "version": "1.3.0", "type": "module", "scripts": { "dev": "vite", diff --git a/src/frontend/src/constants/index.ts b/src/frontend/src/constants/index.ts index f98e943..d02b924 100644 --- a/src/frontend/src/constants/index.ts +++ b/src/frontend/src/constants/index.ts @@ -105,7 +105,7 @@ export const CONFIG_FILENAMES = ['ups.conf', 'upsd.conf', 'upsmon.conf', 'upsd.u export const READONLY_CONFIG = 'upsd.users'; -export const APP_VERSION = 'v1.2.0'; +export const APP_VERSION = 'v1.3.0'; export const MAX_LOG_LINES = 1000; diff --git a/vm/nut-vm.sh b/vm/nut-vm.sh index 7230f90..4433385 100644 --- a/vm/nut-vm.sh +++ b/vm/nut-vm.sh @@ -171,7 +171,7 @@ readonly UBUNTU_IMG_NAME="ubuntu-24.04-minimal-cloudimg-amd64.img" readonly IMG_CACHE_DIR="/var/lib/vz/template/cache" readonly NUT_DEFAULT_PORT=3493 readonly SCRIPT_VERSION="1.0.0" -readonly NUTWATCH_REF="${NUTWATCH_REF:-v1.2.0}" +readonly NUTWATCH_REF="${NUTWATCH_REF:-v1.3.0}" readonly NUTWATCH_RELEASES_URL="https://github.com/JuanCF/nutwatch/releases/download/${NUTWATCH_REF}" # UPS Vendor IDs From 1677aae8afad7bd1dee965c05d64f471840cf0f7 Mon Sep 17 00:00:00 2001 From: JuanCF Date: Fri, 21 Aug 2026 19:07:54 -0600 Subject: [PATCH 2/2] chore: sync lockfile root version to 1.3.0 The frontend package-lock.json still recorded the root package as 1.0.0 after the manifest was bumped to 1.3.0, leaving the committed package metadata inconsistent. Align both root version fields so tooling and audits see a single version across manifest and lockfile. --- src/frontend/package-lock.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/package-lock.json b/src/frontend/package-lock.json index 6b3d7b4..1cdaa93 100644 --- a/src/frontend/package-lock.json +++ b/src/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "nutwatch-frontend", - "version": "1.0.0", + "version": "1.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nutwatch-frontend", - "version": "1.0.0", + "version": "1.3.0", "dependencies": { "d3": "^7.9.0", "react": "^18.3.1",