- Breaking: Non-nullable constraint: Data types must be non-nullable (enforced via
extends Object)
- Readme updates
- Chores
- Breaking: Renamed constructors for clarity
DC.data()→DC.some()(explicitly wraps in Some)DC.nullData()→DC.none()(explicitly creates None)
- Breaking: Renamed factory methods
Option.from()→Option.auto()(auto-detects null)
- New:
DC.auto(nullableData)- automatically creates Some or None based on null check - New:
DC.fromOption(option)- lifts existing Option into DC without double-wrapping
- Downgrade meta to 1.17.0 for Flutter test compatibility
- Readme updates
- Readme updates
- Requires Dart 3.0+ for sealed class support
- Breaking: Complete API redesign - removed
pick(),mapData(); addedfold(),forwardErrorOr(),forwardErrorOrElse() - Breaking:
DCDatanow containsOption<Data>(Some/None pattern) instead of nullable types - New:
mapError()for error transformations, comprehensive Option API for null-safety
- Changelog updates
- Readme updates
- Added
foldmethod for exhaustive pattern matching with required handlers - Added
mapDatamethod to transform successful data while preserving errors - Added
mapErrormethod to transform errors while preserving data - Improved type safety and null handling
- Enhanced documentation with additional examples
- Added null safety
- Fixed 'Dart_LoadScriptFromKernel: The binary program does not contain main' bug
- Description updates
- Initial release