tauri/.changes/get-current-ambguity.md
Amr Bashir 2b1ceb40d3
refactor(api)!: renamed getCurrent functions to avoid ambiguity (#10229)
* refactor(api)!: renamed `getCurrent` functions to avoid ambiguity

closes #10193

* Update .changes/get-current-ambguity.md

* rename `getAll` and update docs and examples
2024-07-11 14:26:15 +03:00

610 B

@tauri-apps/api tauri
patch:breaking patch:breaking

Renamed the JS getCurrent and getAll functions to a clearer name to avoid ambiguity:

  • getCurrent in window module has been renamed to getCurrentWindow
  • getCurrent in webview module has been renamed to getCurrentWebview
  • getCurrent in webviewWindow module has been renamed to getCurrentWebviewWindow
  • getAll in window module has been renamed to getAllWindows
  • getAll in webview module has been renamed to getAllWebviews
  • getAll in webviewWindow module has been renamed to getAllWebviewWindows