github AnInsomniacy/motrix-next v3.4.0-beta.1
v3.4.0-beta.1 — Code Quality & Architecture Overhaul

latest releases: v3.8.6, v3.8.6-beta.7, v3.8.6-beta.6...
pre-releaseone month ago

What's Changed

Comprehensive code quality overhaul across both the Rust backend and Vue frontend, focusing on modularity, testability, and industrial-grade test coverage.

🛠 Improvements

Rust Backend

  • Engine module splitengine.rs decomposed into engine/{mod, args, lifecycle, state, cleanup}.rs for better maintainability
  • Error handling — Integrated thiserror for structured error types across all commands
  • Tracker protocol classification — New classify_tracker_protocol function replaces inline matching
  • CI hardening — Added cargo fmt --check and cargo clippy to CI pipeline
  • Sidecar renamearia2cmotrixnext-aria2c to avoid system binary conflicts on Linux

Vue Frontend

  • Store decompositiontask.ts (465→288L): extracted 13 CRUD operations to taskOperations.ts with DI pattern
  • Event handler cleanupuseAppEvents.ts: decomposed 235-line god function into 7 focused sub-functions
  • AddTask refactoring — Extracted animation hooks (useAddTaskAnimations.ts) and file operations (useAddTaskFileOps.ts)
  • New composablesuseTaskActions, useAdvancedActions, useMagnetFlow, useTaskLifecycle, useAddTaskSubmit
  • Task restart — Robust restart with automatic rollback on failure (taskRestart.ts)
  • Notification system — Dedicated task notification module (taskNotifications.ts)

✅ Testing

  • Frontend — 79 test files, 2573 tests (up from ~1800)
  • Backend — 79 Rust tests covering engine args, state machine, error handling, tray, UPnP
  • New behavioral teststaskOperations.test.ts (43 tests), useAddTaskFileOps.test.ts (22 tests)
  • Structural guards — Architecture tests prevent file bloat and god function regression

Don't miss a new motrix-next release

NewReleases is sending notifications on new releases.