Skip to content

v1.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 08 Feb 22:12
Immutable release. Only release title and notes can be modified.

Highlights

Server Optimization

  • Centralized API error response helpers, replacing 378 inline error constructions with 7 reusable helpers (#85)
  • Extracted auth middleware factory, deduplicating 4 identical middleware methods into a single configurable factory (#86, #89)
  • Added struct validation tags (binding:"required", binding:"oneof=...") to all API request types, removing redundant manual checks (#90)
  • Wrapped LoadFromDisk multi-table operations in database transactions for crash safety (#91)
  • Centralized hardcoded constants (token durations, pagination defaults, SQLite config) into named constants (#92)
  • Enforced consistent pagination parameter parsing across all list endpoints (#93)

Server Restructuring

  • Restructured build/ package into build/stages/, build/engine/, and build/kernel/ sub-packages (#95)
  • Split db/database.go into database.go and persistence.go for better separation of concerns (#96)
  • Audited download/ package -- already well-organized, no changes needed (#97)

CLI Deduplication

  • Extracted shared output format handler, eliminating duplicated JSON/YAML/table formatting across 14 command files (#87)
  • Extracted flag-to-request builder pattern for update commands, removing repetitive flag-reading boilerplate (#88)

WebUI Deduplication

  • Extracted shared category color map used by Components views (#81)
  • Consolidated 13 service files' duplicated getApiUrl/getAuthHeaders into centralized authFetch (#82)
  • Extracted useDetailView composable for shared detail view state management across 5 views (#83)
  • Extracted useListView composable for shared list view state management across 6 views (#84)
  • Extracted shared isAdmin utility and Notification component, replacing 9 inline closures and 5 inline JSX blocks (#94)

Components

Component Description
ldfd LDF daemon / API server
ldfctl Command-line client
WebUI Web interface (served by ldfd)

Milestones Included

  • MX.0 -- Optimization & Cleanup: code deduplication, security hardening, transaction safety, constant centralization, and package restructuring across all three components (17 issues)

Installation

# Download and extract
tar -xzf ldfd-v1.3.0-linux-amd64.tar.gz
tar -xzf ldfctl-v1.3.0-linux-amd64.tar.gz

# Verify
./ldfd version
./ldfctl version