Repository navigation
Releases: hexxfy/omp
Releases · hexxfy/omp
Release list
v0.5.0
Breaking changes
- Replace the Dispatcher API (
ListenFunc,EventType,NewEvent,Event) with type-safeOn[T]andEmit. - Remove string
EventTypeconstants and theEvent{type, payload}envelope; events are now plain structs. - Remove the per-dialog
Eventsfield in favor of typedOnResponsecallbacks.
Features
- Add generic type-safe event handling via
On[T]andEmit. - Add
EventEmitterinterface withBaseEventEmitterandSetEventEmitterfor wrapping event dispatch. - Add typed
OnResponsecallbacks toMessageDialog,InputDialog,ListDialogandTabListDialog.
Improvements
- Route events by Go type instead of strings.
- Dispatch event handlers synchronously and in order.
- Drop the
golang.org/x/syncdependency.
v0.4.0
Features
- Add IsValidModel function.
- Add players RedirectDownload method.
- Make SetConfigOption and ConfigOption functions publicly available for working with config values.