Skip to content

build: Statsify 1.1.1 on Node 26 LTS, and the release-tag set-up fixed - #19

Merged
Kkkermit merged 4 commits into
mainfrom
feature/node-26
Dec 3, 2026
Merged

Kkkermit merged 4 commits into
mainfrom
feature/node-26

Conversation

@Kkkermit

@Kkkermit Kkkermit commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

What and why

Version 1.1.1. Merging this pull request releases it. It will be the first fully automatic release: the "release tags" ruleset no longer restricts creating v* tags, so the pipeline can tag and publish v1.1.1 itself.

Move to Node 26, the long-term-support release.

  • Why not Node 25: it reached end of life on 1 June 2026 and gets no more security fixes.
  • Why Node 26: it has been the active LTS line since 28 October 2026 and is supported until April 2029.
  • Changes:
    • .nvmrc → 26. CI, the desktop builds and the release pipeline all read it, so they move with it.
    • engines in package.json (and the lockfile's root entry) → >=26.0.0, the version everything is built and tested with.
    • README, CONTRIBUTING, docs/DEVELOPMENT.md and AGENTS.md now say Node 26.
    • @types/node was already on 26.x, from Dependabot.

Release docs fix. The one-time command in docs/RELEASING.md tried to add GitHub Actions to the "release tags" ruleset's bypass list. GitHub refuses that for a personal repository: "Actor GitHub Actions integration must be part of the ruleset source or owner organization".

  • New command: it drops the ruleset's creation rule instead.
  • Still protected: the update, deletion and non_fast_forward rules stay, so a published tag can never be moved or deleted.
  • Who can create tags: only people with write access, and this repository's own workflows; pull requests from forks get a read-only token.

How it was tested

All under Node 26.14.0 (npm 11.21.3), downloaded from nodejs.org and checked against its SHA256SUMS:

  • Install: npm ci is clean, with no engine warnings from any dependency, 0 vulnerabilities, and the lockfile unchanged.
  • Unit tests: npm run check passes (typecheck, lint, 549 unit tests, build), with no deprecation warnings.
  • End-to-end: the whole suite at desktop, tablet and phone sizes: 440 passed, 0 failed.
  • Version: npm run version:set -- --check 1.1.1 passes, and cargo check --locked confirms Cargo.lock matches.
  • Rust: no Rust code changes.
  • Desktop builds: this pull request's Desktop app run builds the Windows, macOS and Linux installers on Node 26.
  • Ruleset command: I ran its read-only half against the repository. It produces the same ruleset without the creation rule.

Checklist

  • The branch is named feature/<name> and the commits follow the commit style.
  • npm run check passes (typecheck, lint, unit tests, build).
  • npm run e2e passes, or the change can't affect the UI.
  • Rust changed: cargo fmt --check, cargo clippy --all-targets -- -D warnings and cargo test pass in src-tauri/.
  • New behaviour has tests (Vitest for logic, Playwright with an axe check for UI, Rust tests for commands).
  • UI changes work at desktop, tablet and phone sizes, by keyboard, with reduced motion and in every theme.
  • Docs are updated (README, docs/, AGENTS.md) where behaviour, commands or architecture changed.
  • No secrets, tokens, personal data or real listening history in code, tests, screenshots or logs.

https://claude.ai/code/session_01TCk6t7edJdscNtTSeFmyQN


Generated by Claude Code

Kkkermit and others added 2 commits December 3, 2026 09:54
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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TCk6t7edJdscNtTSeFmyQN
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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TCk6t7edJdscNtTSeFmyQN
@github-actions github-actions Bot added the ci CI, workflows and tooling label Dec 3, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TCk6t7edJdscNtTSeFmyQN
@Kkkermit Kkkermit changed the title build: move to Node 26 LTS, and fix the release-tag set-up build: Statsify 1.1.1 on Node 26 LTS, and the release-tag set-up fixed Dec 3, 2026
@github-actions github-actions Bot added the desktop The desktop app (src-tauri) label Dec 3, 2026
Kkkermit added a commit that referenced this pull request Dec 3, 2026
…#20)

## What and why

Fixes Dependabot alert #198: *Unsoundness in `Iterator` and
`DoubleEndedIterator` impls for `glib::VariantStrIter`*
(RUSTSEC-2024-0429, moderate, affects `glib` 0.15.0 to 0.19.x, fixed in
0.20.0).

**Where `glib` came from.** It's a Linux-only dependency: Tauri's Linux
stack (`gtk` 0.18, `webkit2gtk` 2.0, through `tao`, `wry`, `muda`,
`libappindicator` and `tauri` itself) pulled in `glib` 0.18.5. Windows
and macOS builds never contained it.

**Why Dependabot couldn't fix it.** `gtk` 0.18 pins `glib` 0.18, so the
newest version Dependabot could reach was 0.18.5.

**The fix.** Tauri 2.13.0 (28 November) moved its whole Linux stack to
new bindings: `gtk` 0.19, `webkit2gtk` 3.1, `wry` 0.58, `tao` 0.38,
`muda` 0.22 and `tray-icon` 0.27, all on `glib` 0.22. So:
- **Rust:** `tauri` 2.12.7 → 2.13.0 and `tauri-build` 2.7.6 → 2.8.0,
with the plugins on their latest. The lockfile now has a single `glib`,
0.22.11.
- **Minimums:** `Cargo.toml` asks for `tauri` 2.13 and `tauri-build`
2.8, so a regenerated lockfile can never fall back to `glib` 0.18. A
comment there says why.
- **npm:** `@tauri-apps/api` and `@tauri-apps/cli` 2.12 → 2.13.0, to
match (Tauri's CLI refuses mismatched versions).
- **Rust version:** Tauri 2.13 and the new GTK crates require Rust
**1.92**, so the minimum moves from 1.89 to 1.92 (`rust-version` and the
docs). CI already builds with the latest stable Rust.

**Was Statsify exposed?** No. Nothing in our dependency tree calls
`VariantStrIter` (`str_iter()` / `array_iter_str()`); only `glib` itself
contains it. The upgrade removes the vulnerable version anyway, and
Dependabot closes the alert once main's lockfile no longer has it.

## How it was tested

- **Rust (Linux):** `cargo fmt --check`, `cargo clippy --all-targets --
-D warnings` and `cargo test` (67 tests) pass. This compiles the whole
new GTK stack against the system libraries.
- **Windows:** the Windows-only window-material code calls
`WebviewWindow::hwnd()`, whose signature is unchanged in 2.13. This pull
request's Desktop app run builds the Windows, macOS and Linux
installers.
- **Unit tests:** `npm run check` passes (typecheck, lint, 549 unit
tests, build).
- **End-to-end:** the whole suite at desktop, tablet and phone sizes:
440 passed, 0 failed. The fake desktop bridge rejects any IPC call it
doesn't know, so a change in how `@tauri-apps/api` 2.13 calls the shell
would have failed it.

## Checklist

- [x] The branch is named `feature/<name>` and the commits follow the
[commit
style](https://github.com/Kkkermit/Spotify-Stats/blob/main/CONTRIBUTING.md#commits).
- [x] `npm run check` passes (typecheck, lint, unit tests, build).
- [x] `npm run e2e` passes, or the change can't affect the UI.
- [x] Rust changed: `cargo fmt --check`, `cargo clippy --all-targets --
-D warnings` and `cargo test` pass in `src-tauri/`.
- [x] New behaviour has tests (Vitest for logic, Playwright with an axe
check for UI, Rust tests for commands).
- [x] UI changes work at desktop, tablet and phone sizes, by keyboard,
with reduced motion and in every theme.
- [x] Docs are updated (README, `docs/`, `AGENTS.md`) where behaviour,
commands or architecture changed.
- [x] No secrets, tokens, personal data or real listening history in
code, tests, screenshots or logs.

**Releasing:** this pull request doesn't change the version. To ship the
fix in 1.1.1, merge it before #19, which bumps the version to 1.1.1 and
so releases it.

---
_Generated by [Claude Code](https://claude.ai/code)_

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@Kkkermit
Kkkermit merged commit 78560da into main Dec 3, 2026
18 checks passed
@Kkkermit
Kkkermit deleted the feature/node-26 branch December 3, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI, workflows and tooling desktop The desktop app (src-tauri)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant