Repository navigation
2.0.0
BREAKING CHANGES
DiscloudConfigConstructor: The public constructor that allowed passing file content (lines) has been removed to enforce a more robust, non-blocking asynchronous pattern. Instantiation now relies on factories and an asynchronousrefresh()method.watch()Method Return Type: Thewatch()method now returns aStream<DiscloudConfigData?>(a stream that can contain nulls) instead ofStream<DiscloudConfigData>to handle cases where the file is deleted or a read error occurs.DiscloudConfigDataRefactoring: TheDiscloudConfigDataclass is now an immutable class managed byfreezed. This changes the object's fundamental structure and requires using the new.copyWith()method for updates.
Features
- Improved Linting: Added new linting rules for better code quality and consistency.
freezedIntegration:DiscloudConfigDatanow uses thefreezedpackage, providing immutability and helper methods likecopyWith.
Fixes
- Asynchronous Initialization: Replaced synchronous file I/O in constructors with a fully asynchronous pattern to prevent blocking.
What's Changed
- feat: Refactor DiscloudConfigData to use freezed and improve linting by @Gorniaky in #2
- docs: Update documentation for DiscloudConfig and File extensions with examples by @Gorniaky in #3
Full Changelog: 1.0.9...2.0.0