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 ebf660b..12ce7ee 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 @@ -809,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/CONTRIBUTING.md b/CONTRIBUTING.md index 2809205..0d6e2c7 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.92 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 eaa17ea..51f05d0 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/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 diff --git a/package-lock.json b/package-lock.json index fca3a4c..69f4e2f 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", @@ -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 003086c..615c1b3 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", @@ -25,7 +25,7 @@ "license": "Apache-2.0", "type": "module", "engines": { - "node": ">=22.12.0" + "node": ">=26.0.0" }, "scripts": { "dev": "vite", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 91cf87b..bd8ed25 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -3201,7 +3201,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 56b4514..fff3c1a 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",