tauri/.changes/tauri-uuid-rand.md
Amr Bashir 2558fab861
refactor!: remove uuid and rand dependencies where applicable (#7939)
* 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>
2023-10-17 05:47:41 +03:00

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 and Window::listen to return the new EventId type instead of EventHandler.
  • Removed the return type of Manager::once_global and Window::once
  • Changed Manager::unlisten and Window::unlisten to take he new EventId type.
  • Added tauri::scope::ScopeEventId
  • Changed FsScope::listen to return the new ScopeEventId instead of Uuid.
  • Added FsScope::unlisten