Skip to content

refactor!: rewrite configuration API and introduce event-driven reload system#15

Merged
devspexx merged 8 commits intomasterfrom
feat/improve-clarity
Apr 6, 2026
Merged

refactor!: rewrite configuration API and introduce event-driven reload system#15
devspexx merged 8 commits intomasterfrom
feat/improve-clarity

Conversation

@devspexx
Copy link
Copy Markdown
Owner

@devspexx devspexx commented Apr 6, 2026

Overview

Complete rewrite of the configuration system.

This introduces a new architecture based on file watching, checksum validation, and event-driven updates.


Changes

  • Rewrote ConfigManager, YamlConfig, and watcher system
  • Introduced YamlConfigWatcher (single WatchService)
  • Added SHA-256 checksum-based change detection
  • Added debounce protection for file events
  • Implemented ConfigReloadEvent
  • Simplified and cleaned API usage
  • Improved thread safety (async watcher + sync events)
  • Removed old API and outdated methods

Behavior

  • Configs automatically reload when files change
  • No reload if content is unchanged
  • Events are fired on the main thread
  • Single watcher handles all configs

Breaking Changes

  • Old API has been removed
  • Method names and usage changed
  • Events renamed and simplified

Version

This is released as v1.3.0

@devspexx devspexx added Documentation Improvements or additions to documentation, comments, or examples. Enhancement An improvement to existing functionality without changing its core behavior. labels Apr 6, 2026
@devspexx devspexx merged commit 58affc7 into master Apr 6, 2026
2 checks passed
@devspexx devspexx deleted the feat/improve-clarity branch April 6, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements or additions to documentation, comments, or examples. Enhancement An improvement to existing functionality without changing its core behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants