From d70c733677f34547e96ff52307ac814e7ff633f1 Mon Sep 17 00:00:00 2001 From: Kkkermit <132657029+Kkkermit@users.noreply.github.com> Date: Thu, 3 Dec 2026 09:54:16 +0000 Subject: [PATCH 1/3] build: move to Node 26, the long-term-support release Node 26 (Lithium) became the active long-term-support line on 28 October 2026 and is supported until April 2029. CI, the desktop builds and the release pipeline read .nvmrc, so they move with it. engines now asks for 26 or newer, the version everything is built and tested with. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TCk6t7edJdscNtTSeFmyQN --- .nvmrc | 2 +- AGENTS.md | 3 ++- CONTRIBUTING.md | 2 +- README.md | 2 +- docs/DEVELOPMENT.md | 4 ++-- package-lock.json | 2 +- package.json | 2 +- 7 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.nvmrc b/.nvmrc index 2bd5a0a..6f4247a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22 +26 diff --git a/AGENTS.md b/AGENTS.md index 81354de..563c80f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -43,7 +43,8 @@ with no account and no network; the end-to-end tests use it. | Tests | Vitest + Testing Library (jsdom), Playwright + `@axe-core/playwright`, `cargo test` | | CI/CD | GitHub Actions: CI, desktop installers, tagged releases, CodeQL, PR labels (see Testing) | -Node 22.12+ (`.nvmrc`), npm with exact versions (`.npmrc` `save-exact`). +Node 26+ (`.nvmrc`; the long-term-support line until April 2029), npm with exact versions +(`.npmrc` `save-exact`). ## Commands diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e5066e3..d364184 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,7 +15,7 @@ Everyone taking part is expected to follow the [Code of Conduct](CODE_OF_CONDUCT ## Set up -You need [Node.js](https://nodejs.org/) 22.12 or newer and npm; for the desktop app, also +You need [Node.js](https://nodejs.org/) 26 or newer and npm; for the desktop app, also [Rust](https://rustup.rs/) 1.89 or newer and your system's Tauri prerequisites (the packages for Windows, macOS and each Linux family are listed in [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md#prerequisites)). Then: diff --git a/README.md b/README.md index 88212e9..78fdf02 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ into the computer_ → **Minimized**. More in the [user guide](docs/GUIDE.md). ## Build from source -You need [Node.js](https://nodejs.org/) 22.12 or newer, and for the desktop app +You need [Node.js](https://nodejs.org/) 26 or newer, and for the desktop app [Rust](https://rustup.rs/) plus the [Tauri prerequisites](https://v2.tauri.app/start/prerequisites/) for your system ([docs/DEVELOPMENT.md](docs/DEVELOPMENT.md#prerequisites) lists them). diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index 77c8466..29ae323 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -9,8 +9,8 @@ requests, [CONTRIBUTING.md](../CONTRIBUTING.md). **For the web app** (most of the work: every page, the player, lyrics, stats): - [Git](https://git-scm.com/) -- [Node.js](https://nodejs.org/) **22.12 or newer**, with npm. `.nvmrc` names the version, so - `nvm use` or `fnm use` picks it. +- [Node.js](https://nodejs.org/) **26 or newer** (the current long-term-support release), with + npm. `.nvmrc` names the version, so `nvm use` or `fnm use` picks it. **For the desktop app**, also: diff --git a/package-lock.json b/package-lock.json index f5d3000..8af34d5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -53,7 +53,7 @@ "vitest": "5.1.2" }, "engines": { - "node": ">=22.12.0" + "node": ">=26.0.0" } }, "node_modules/@adobe/css-tools": { diff --git a/package.json b/package.json index 1626d12..848e5d3 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "license": "Apache-2.0", "type": "module", "engines": { - "node": ">=22.12.0" + "node": ">=26.0.0" }, "scripts": { "dev": "vite", From 47ba563d3384efc242852dfa6a3e902f98a6d114 Mon Sep 17 00:00:00 2001 From: Kkkermit <132657029+Kkkermit@users.noreply.github.com> Date: Thu, 3 Dec 2026 09:57:45 +0000 Subject: [PATCH 2/3] docs(release): let release tags be created in a personal repository A ruleset can only list GitHub Actions as a bypass actor in an organization's repository: in a personal one GitHub refuses it ("must be part of the ruleset source or owner organization"). The one-time set-up now drops the release tags ruleset's "creation" rule instead, keeping the rules that stop a tag being moved or deleted. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TCk6t7edJdscNtTSeFmyQN --- AGENTS.md | 5 +++-- docs/RELEASING.md | 21 +++++++++++---------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 563c80f..d3ba2a4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -810,8 +810,9 @@ label)` (axe WCAG 2.2 A/AA, no serious or critical violations), `enterDemo`, `se version (`scripts/set-version.mjs --check`, and that a full release is on `main`), calls `ci.yml` and `desktop.yml`, packages the files with `SHA256SUMS.txt` and publishes a GitHub Release with generated notes, creating the tag on the commit when it doesn't exist. The - "release tags" ruleset must let GitHub Actions create `v*` tags for that (RELEASING.md, - One-time set-up); otherwise the release is left as a draft for an admin to publish. Changes + "release tags" ruleset must not restrict creating `v*` tags for that (RELEASING.md, + One-time set-up: a personal repository's ruleset can't list GitHub Actions as a bypass + actor); otherwise the release is left as a draft for an admin to publish. Changes to it run a dry run. - `codeql.yml`: code scanning for TypeScript, Rust and the workflows. - `labeler.yml`: labels pull requests by files (`.github/labeler.yml`) and title type; the diff --git a/docs/RELEASING.md b/docs/RELEASING.md index 5a4b004..cd6797d 100644 --- a/docs/RELEASING.md +++ b/docs/RELEASING.md @@ -83,23 +83,24 @@ A full release's tag must be on `main`; a pre-release's may be on any branch. ### One-time set-up: let GitHub Actions tag releases -The repository's **release tags** ruleset lets only admins create, move or delete `v*` tags. A -release from a merge is tagged by GitHub Actions, so the ruleset has to let it do that too, or -the pipeline stops with the release ready as a **draft** (publishing it from the Releases page, as -an admin, creates the tag). To allow it, add GitHub Actions to the ruleset's bypass list, once, -with an admin's `gh`: +The repository's **release tags** ruleset protects `v*` tags. A release from a merge is tagged by +GitHub Actions, so the ruleset must not stop it creating one, or the pipeline stops with the +release ready as a **draft** (publishing it from the Releases page, as an admin, creates the tag). +A ruleset can only name GitHub Actions in its bypass list in an organization's repository, so in +a personal one the ruleset keeps tags from being moved or deleted, and leaves creating them to +anyone who can push. Once, with an admin's `gh`, drop its "creation" rule: ```bash repo=Kkkermit/Spotify-Stats id=$(gh api "repos/$repo/rulesets" --jq '.[] | select(.name == "release tags") | .id') -gh api "repos/$repo/rulesets/$id" --jq '{name, target, enforcement, conditions, rules, - bypass_actors: (.bypass_actors + [{actor_id: 15368, actor_type: "Integration", bypass_mode: "always"}])}' \ +gh api "repos/$repo/rulesets/$id" --jq '{name, target, enforcement, conditions, bypass_actors, + rules: [.rules[] | select(.type != "creation")]}' \ | gh api -X PUT "repos/$repo/rulesets/$id" --input - ``` -(15368 is the GitHub Actions app.) Tags still can't be moved or deleted by anyone else, and only -workflows running this repository's own code on `main`, a tag or a feature branch hold a token -that can write; pull requests from forks don't. +A published tag still can't be moved or deleted. Only people with write access, and workflows +running this repository's own code on `main`, a tag or a feature branch, can create tags; +pull requests from forks get a read-only token. ### What a release contains From ff0a8e0fc41bf86deecd0c887423157f571c093d Mon Sep 17 00:00:00 2001 From: Kkkermit <132657029+Kkkermit@users.noreply.github.com> Date: Thu, 3 Dec 2026 10:06:16 +0000 Subject: [PATCH 3/3] chore(release): 1.1.1 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01TCk6t7edJdscNtTSeFmyQN --- package-lock.json | 4 ++-- package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8af34d5..e2ff3f0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "statsify", - "version": "1.1.0", + "version": "1.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "statsify", - "version": "1.1.0", + "version": "1.1.1", "license": "Apache-2.0", "dependencies": { "@fontsource-variable/figtree": "5.3.0", diff --git a/package.json b/package.json index 848e5d3..78dca15 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "statsify", "private": true, - "version": "1.1.0", + "version": "1.1.1", "description": "Your Spotify listening stats, library and player in one place. Web app and Windows/macOS/Linux desktop app (Tauri).", "keywords": [ "spotify", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 19c89cf..6cf42c4 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -3484,7 +3484,7 @@ dependencies = [ [[package]] name = "spotify-stats" -version = "1.1.0" +version = "1.1.1" dependencies = [ "rusqlite", "serde", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 150d855..7668f0a 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "spotify-stats" -version = "1.1.0" +version = "1.1.1" description = "Statsify: your listening stats, library and player controls on the desktop." authors = ["Kkkermit"] license = "Apache-2.0" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index c410761..0b6422f 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Statsify", - "version": "1.1.0", + "version": "1.1.1", "identifier": "com.kkkermit.spotifystats", "build": { "beforeDevCommand": "npm run dev",