Skip to content

1.5.0 - Chikoi

Latest

Choose a tag to compare

@xchwarze xchwarze released this 07 Oct 12:30
· 4 commits to master since this release

Frieren Release Notes - Version 1.5.0

The big one after 1.4.3. Two audit passes went through the whole project — first a general feature sweep, then a second pass specifically hunting hardcoded, single-router assumptions — and every real bug they turned up got fixed along the way. On top of that, Wireless and Network both grow real functionality (new radio/interface fields, full interface lifecycle in Network), the frontend gets a proper test suite for the first time, and CI now runs all of it on every push. The installer also picks up opcache, tuned for this project's actual footprint.

Keeping the tradition, here's a track:
'Insertion' by Chikoi the Maid - Bandcamp Helltube

This is a big one on top of 1.4.3: Wireless grows cell_density/distance (radio) and ieee80211w/bssid (interface) fields plus a more readable overview (human encryption labels, real-freqlist band/(USB) badges) and a client-interface zone guard, Network gets full interface create/delete/restart instead of edit-only, a GitHub Actions pipeline runs backend and frontend tests on every push to master, the frontend gets full test coverage across every feature for the first time, and a long list of cross-router hardcoded assumptions and correctness bugs get fixed — plus opcache in the installer.

New Features

  • Radio Configuration Fields: Radios now expose cell_density and distance (ACK timeout tuning for long-range links), editable from the same Radio Configuration panel as channel/txpower/htmode.

  • Interface Security & Identity Fields: Wireless interfaces now expose ieee80211w (Management Frame Protection: Disabled/Optional/Required) and an optional BSSID override, laid out per usability feedback — MFP before Hidden AP, BSSID right after SSID.

  • Full Network Interface Lifecycle: Network interfaces can now be created, deleted, and restarted directly from the panel, with mtu/macaddr/peerdns fields on the form. Previously the UI could only edit an interface that already existed in UCI.

  • CI Pipeline: GitHub Actions now runs the whole test battery on every push to master — PHPUnit across PHP 8.2/8.3/8.4 (matching what OpenWrt 23.05/24.10/25.12 actually ship), Vitest for the frontend, and a mock-mode Playwright suite (the live-device e2e/api projects stay local-only, they need a real router on the LAN).

  • Wireless Overview Enrichment: The overview now reads like something a human can act on — a new EncryptionLabel translates UCI's raw psk2+ccmp into WPA2-PSK (CCMP) (display-only; the edit form still gets the raw value to match the dropdown), a missing encryption shows a dash instead of None, the band badge is derived from the radio's real freqlist so a dual-band USB adapter no longer looks single-band (and is tagged (USB)), and interface BSSIDs are surfaced.

  • Client-Interface Zone Guard: Scan-to-connect now pre-selects wwan (the device-less network reserved for a wifi client uplink) and the panel warns when a client/STA interface isn't bound to wan/wan6/wwan — easy to leave one on lan by mistake since the association itself still succeeds.

  • Localized Log Timestamps: logread's English-only, timezone-less ctime string is gone — the backend now sends an epoch, formatted client-side in the viewer's own locale/timezone via a new shared dateHelper (also adopted by frieren-modules-private/recon, which had its own copy).

  • Panel Header Actions: PanelCard now supports action buttons in the card header, wrapping cleanly on narrow screens.

Major Improvements

  • Two-Pass Hardcoded-Assumption Audit: A dedicated pass went looking for places that quietly assumed the dev router's exact hardware/config instead of querying it live. Fixed: the "critical service" list is now computed server-side from live state instead of a fixed front-end array; the terminal resolved its bind device by hardcoding br-lan instead of asking what the LAN device actually is; Wireless overview enrichment silently dropped fields when a device reported an unexpected shape instead of guarding for it; the interface form's encryption dropdown is now built from the device's queried capabilities instead of a hardcoded constants array.

  • Full Frontend Test Coverage: Every feature (dashboard, login, modules, network, packages, settings, system, terminal, wireless) now has component/hook tests where there were gaps before, plus a new PHPUnit suite covering core helpers and the built-in controllers that had none.

  • Disabled-Radio Status Clarified: An interface sitting on a disabled radio now reads "Down (radio disabled)" instead of a plain "Down" that read like the interface's own config was broken.

  • Centralized UCI Option Deletion: A single uciDelete() helper replaces scattered uci -q delete call sites across modules.

  • Opcache Enabled (Installer): The OpenWrt package now ships php8-mod-opcache, sized for this project's real footprint (~50 own files, no vendor deps on-device) rather than framework defaults. revalidate_freq=0 keeps it correct against hot-installed/updated modules instead of trading correctness for a fixed interval — the panel is single-admin, low-QPS, so the per-request stat() cost is free. postinst now also restarts php8-fpm on upgrade so a package update can't leave stale bytecode running.

Bug Fixes

  • Network Interface Name/Protocol Validation Widened: The interface-name regex rejected valid hyphenated names; the protocol whitelist was too narrow.

  • Zero-Match Log Search No Longer Treated as Error: An empty search result ([]) was being treated as a failure (false) at both the helper and controller layers.

  • Monitor-Mode Switch Left Stale Fields: Switching an interface to monitor mode wrote network='' via uciSet() — which lands as the literal string UNSET, not a removed option — and never cleared ssid/encryption/key/hidden, so a stale value from a prior ap/sta config lingered. Those options are now deleted properly.

  • Authenticated Query Error Toasts: Error toasts on authenticated React Query calls are now configured instead of firing with default/duplicate behaviour.

  • getAssociationList Null-Interface Guard: A null ifname from a client-mode radio crashed the call under PHP 8.1+'s deprecation warnings, corrupting the JSON response.

  • serverPing Now Returns on Its Error Branch: Previously fell through silently instead of responding.

  • Helper Autoload Restored: A regression had dropped helper autoloading.

  • Filesystem Path Guards: moduleName/packageName are now null-coalesced before touching the filesystem in the modules/packages controllers.

  • api-clean.php No Longer Corrupts String Literals: The production minifier's comment-stripper ran a second, regex-based pass over already-tokenized output that treated any literal /*...*/ sequence inside a PHP string (e.g. a glob("$dir/*") call) as a comment, silently deleting code between two unrelated string literals. Caught live: a freshly-installed 1.5.0 panel hard-failed with a parse error in ModuleOpenWrtHelper.php. The tokenizer-based pass above already strips comments correctly and is string-literal safe — the regex pass only needed to collapse blank lines.

  • Module Template Hardening: A batch of correctness fixes in frieren-module-template found during the audit passes — yup/semver declared as real devDependencies; SQLite::find() returns null on a miss instead of a fatal TypeError; the setup wizard copies .env.prod to .env instead of the project root and prompts for forceSidebar instead of hardcoding it; VITE_ANALYZER_ENABLE defaults to false so yarn build doesn't hang; HelperInterface is kept in sync with OpenWrtHelper's real surface; VITE_SOURCEMAP renamed to VITE_SOURCEMAP_ENABLE to match the code that reads it; OpenWrtHelper::exec() initializes $output before use; boolean precedence fixed in getWirelessOverview()'s phy enrichment check; getSystemLogs() no longer double-escapes its search term; installModule/downloadModule validate moduleName before touching the filesystem; SettingsController whitelists which fields setSectionData can write; the realpath path-traversal check in Router::loadModule was re-enabled; @frieren/terminal-core added to the Vite externals/globals list; validate.js now fails on a manifest/package.json version mismatch.

Developer Experience

  • tests-php/ Renamed for Symmetry: tests/ → tests-php/, matching tests-js/.

  • Module Template Docs & Scaffolding: Added CHEATSHEET.md and PHPUnit/Vitest test scaffolding to frieren-module-template.

  • FAQ: Documented manual module install/uninstall steps.

Full Changelog: 1.4.3...1.5.0