data_channel 5.0.0
data_channel: ^5.0.0 copied to clipboard
data_channel (DC) is a simple dart utility for handling exceptions and data routing.
5.0.0 #
- Breaking: Non-nullable constraint: Data types must be non-nullable (enforced via
extends Object)
4.0.0+1 #
- Readme updates
- Chores
4.1.0 #
- 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
4.0.0+3 #
- Downgrade meta to 1.17.0 for Flutter test compatibility
4.0.0 #
- 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
3.0.0+2 #
- Changelog updates
3.0.0+1 #
- Readme updates
3.0.0 #
- 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
2.0.0+1 #
- Added null safety
1.0.4+1 #
- Fixed 'Dart_LoadScriptFromKernel: The binary program does not contain main' bug
1.0.3 #
- Description updates
1.0.0 #
- Initial release