mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-24 19:25:12 +03:00
2558fab861
* refactor: remove uuid and rand dependencies where applicable ref: https://github.com/tauri-apps/tauri/issues/7756 * replace rand with getrandom * change files * InnerListeners private * revert listeners_object_name [skip ci] * default for next_event_id * remove raw listen function * fix event system * Apply suggestions from code review [skip ci] * update names [skip ci] --------- Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
674 B
674 B
tauri |
---|
patch:breaking |
This release contains a number of breaking changes to improve the consistency of tauri internals and the public facing APIs and simplifying the types where applicable:
- Removed
EventHandler
type. - Added
EventId
type - Changed
Manager::listen_global
andWindow::listen
to return the newEventId
type instead ofEventHandler
. - Removed the return type of
Manager::once_global
andWindow::once
- Changed
Manager::unlisten
andWindow::unlisten
to take he newEventId
type. - Added
tauri::scope::ScopeEventId
- Changed
FsScope::listen
to return the newScopeEventId
instead ofUuid
. - Added
FsScope::unlisten