diff --git a/.changes/shell-command-apis.md b/.changes/shell-command-apis.md index 2307e07c3..86ee5a40c 100644 --- a/.changes/shell-command-apis.md +++ b/.changes/shell-command-apis.md @@ -2,4 +2,4 @@ "shell": "patch" --- -Added `Command::arg`, `Command::env` and changed `Command::new` input type. \ No newline at end of file +Added `Command::arg`, `Command::env` and changed `Command::new` input type. diff --git a/.changes/window-plugin-refactor.md b/.changes/window-plugin-refactor.md new file mode 100644 index 000000000..000d4c238 --- /dev/null +++ b/.changes/window-plugin-refactor.md @@ -0,0 +1,10 @@ +--- +"window": "patch" +"window-js": "patch" +--- + +The window plugin is recieving a few changes to improve consistency and add new features: + +- Removed `appWindow` variable from JS module, use `getCurrent` or `Window.getCurrent`. +- Removed `WindowManager`, `WebviewWindow` and `WebviewHandle` types and merged them into one `Window` type that matches the name of the rust window type. +- Added `Window.getCurrent` and `Window.getAll` which is a convenient method for `getCurrent` and `getAll` functions. diff --git a/examples/api/src/App.svelte b/examples/api/src/App.svelte index dd0df9936..740ebeca2 100644 --- a/examples/api/src/App.svelte +++ b/examples/api/src/App.svelte @@ -1,7 +1,7 @@