Repository navigation
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_densityanddistance(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/peerdnsfields 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/apiprojects 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+ccmpinto WPA2-PSK (CCMP) (display-only; the edit form still gets the raw value to match the dropdown), a missing encryption shows a dash instead ofNone, 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 towan/wan6/wwan— easy to leave one onlanby 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 shareddateHelper(also adopted byfrieren-modules-private/recon, which had its own copy). -
Panel Header Actions:
PanelCardnow 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-laninstead 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 scattereduci -q deletecall 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=0keeps 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.postinstnow also restartsphp8-fpmon 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=''viauciSet()— which lands as the literal stringUNSET, not a removed option — and never clearedssid/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.
-
getAssociationListNull-Interface Guard: Anullifname from a client-mode radio crashed the call under PHP 8.1+'s deprecation warnings, corrupting the JSON response. -
serverPingNow 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/packageNameare now null-coalesced before touching the filesystem in the modules/packages controllers. -
api-clean.phpNo 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. aglob("$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 inModuleOpenWrtHelper.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-templatefound during the audit passes —yup/semverdeclared as realdevDependencies;SQLite::find()returnsnullon a miss instead of a fatalTypeError; the setup wizard copies.env.prodto.envinstead of the project root and prompts forforceSidebarinstead of hardcoding it;VITE_ANALYZER_ENABLEdefaults tofalsesoyarn builddoesn't hang;HelperInterfaceis kept in sync withOpenWrtHelper's real surface;VITE_SOURCEMAPrenamed toVITE_SOURCEMAP_ENABLEto match the code that reads it;OpenWrtHelper::exec()initializes$outputbefore use; boolean precedence fixed ingetWirelessOverview()'s phy enrichment check;getSystemLogs()no longer double-escapes its search term;installModule/downloadModulevalidatemoduleNamebefore touching the filesystem;SettingsControllerwhitelists which fieldssetSectionDatacan write; therealpathpath-traversal check inRouter::loadModulewas re-enabled;@frieren/terminal-coreadded to the Vite externals/globals list;validate.jsnow fails on a manifest/package.json version mismatch.
Developer Experience
-
tests-php/Renamed for Symmetry:tests/→tests-php/, matchingtests-js/. -
Module Template Docs & Scaffolding: Added
CHEATSHEET.mdand PHPUnit/Vitest test scaffolding tofrieren-module-template. -
FAQ: Documented manual module install/uninstall steps.
Full Changelog: 1.4.3...1.5.0