Added a new optional `allowDowngrades` parameter to the JavaScript check command that allows the updater to consider versions that are lower than the current version as valid updates. When enabled, the version comparator will accept any version that is different from the current version, effectively allowing downgrades.
Making `flags` optional in the `saveWindowState`, `restoreState`, `restoreStateCurrent` JavaScripts APIs, leaving it empty will make it use plugin's default flags
Hi! We, the maintainers, are really excited that you are interested in contributing to Tauri. Before submitting your contribution though, please make sure to take a moment and read through the [Code of Conduct](CODE_OF_CONDUCT.md), as well as the appropriate section for the contribution you intend to make:
- The issue list of this repo is **exclusively** for bug reports and feature requests. Non-conforming issues will be closed immediately.
- If you have a question, you can get quick answers from the [Tauri Discord chat](https://discord.com/invite/tauri).
- Try to search for your issue, it may have already been answered or even fixed in the development branch (`v2`).
- Check if the issue is reproducible with the latest stable version of Tauri. If you are using a pre-release, please indicate the specific version you are using.
- It is **required** that you clearly describe the steps necessary to reproduce the issue you are running into. Although we would love to help our users as much as possible, diagnosing issues without clear reproduction steps is extremely time-consuming and simply not sustainable.
- Use only the minimum amount of code necessary to reproduce the unexpected behavior. A good bug report should isolate specific methods that exhibit unexpected behavior and precisely define how expectations were violated. What did you expect the method or methods to do, and how did the observed behavior differ? The more precisely you isolate the issue, the faster we can investigate.
- Issues with no clear repro steps will not be triaged. If an issue labeled "need repro" receives no further input from the issue author for more than 5 days, it will be closed.
- If your issue is resolved but still open, don't hesitate to close it. In case you found a solution by yourself, it could be helpful for others to explain how you fixed it.
- Most importantly, we beg your patience: the team must balance your request against many other responsibilities — fixing other bugs, answering other questions, new features, new documentation, etc. The issue list is not paid support and we cannot make guarantees about how fast your issue can be resolved.
## Pull Request Guidelines
- You have to [sign your commits](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits).
- It's OK to have multiple small commits as you work on the PR - we will let GitHub automatically squash it before merging.
- If adding new feature:
- Provide convincing reason to add this feature. Ideally you should open a suggestion issue first and have it greenlighted before working on it.
- If fixing a bug:
- If you are resolving a special issue, add `(fix: #xxxx[,#xxx])` (#xxxx is the issue id) in your PR title for a better release log, e.g. `fix: update entities encoding/decoding (fix #3899)`.
- Provide detailed description of the bug in the PR, or link to an issue that does.
- If the PR is meant to be released, follow the instructions in `.changes/readme.md` to log your changes. ie. [readme.md](https://github.com/tauri-apps/plugins-workspace/blob/v2/.changes/readme.md)
## Development Guide
**NOTE: If you have any question don't hesitate to ask in our Discord server. We try to keep this guide to up guide, but if something doesn't work let us know.**
### General Setup
First, [join our Discord server](https://discord.com/invite/tauri) and let us know that you want to contribute. This way we can point you in the right direction and help ensure your contribution will be as helpful as possible.
To set up your machine for development, follow the [Tauri setup guide](https://v2.tauri.app/start/prerequisites/) to get all the tools you need to develop Tauri apps. The only additional tool you may need is [PNPM](https://pnpm.io/).
Next, [fork](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo) and clone [this repository](https://github.com/tauri-apps/plugins-workspace/tree/v2).
### Developing and testing
The easiest way to test your changes is to use the [example app](https://github.com/tauri-apps/plugins-workspace/tree/v2/examples/api) example app. It automatically rebuilds and uses your local copy of the plugins. To run it follow the instructions inside [README.md](https://github.com/tauri-apps/plugins-workspace/blob/v2/examples/api/README.md).
To test local changes against your own application simply point the plugin create to your local repository, for example:
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
## \[2.4.0]
- [`764e8f77`](https://github.com/tauri-apps/plugins-workspace/commit/764e8f7719247da515243d9c9cafa6d087d21769) ([#2707](https://github.com/tauri-apps/plugins-workspace/pull/2707)) Added a new builder method app_name() to allow customizing the application name in the autostart entry.
## \[2.3.0]
## \[2.3.0]
- [`8ecb418a`](https://github.com/tauri-apps/plugins-workspace/commit/8ecb418a1a35d7f234dc5d833746ac2d8e062aec) ([#2569](https://github.com/tauri-apps/plugins-workspace/pull/2569)) Add a `Builder` for more flexible settings
- [`8ecb418a`](https://github.com/tauri-apps/plugins-workspace/commit/8ecb418a1a35d7f234dc5d833746ac2d8e062aec) ([#2569](https://github.com/tauri-apps/plugins-workspace/pull/2569)) Add a `Builder` for more flexible settings
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
## \[2.2.1]
- [`f634e524`](https://github.com/tauri-apps/plugins-workspace/commit/f634e5248ebe428f8305a59f74c13fc15147fb8e) This is an "empty" release to update the plugins' source files on crates.io and docs.rs. This should fix docs.rs build failures for projects using tauri plugins as dependencies.
## \[2.2.0]
## \[2.2.0]
- [`3a79266b`](https://github.com/tauri-apps/plugins-workspace/commit/3a79266b8cf96a55b1ae6339d725567d45a44b1d) ([#2173](https://github.com/tauri-apps/plugins-workspace/pull/2173) by [@FabianLars](https://github.com/tauri-apps/plugins-workspace/../../FabianLars)) Bumped all plugins to `v2.2.0`. From now, the versions for the Rust and JavaScript packages of each plugin will be in sync with each other.
- [`3a79266b`](https://github.com/tauri-apps/plugins-workspace/commit/3a79266b8cf96a55b1ae6339d725567d45a44b1d) ([#2173](https://github.com/tauri-apps/plugins-workspace/pull/2173) by [@FabianLars](https://github.com/tauri-apps/plugins-workspace/../../FabianLars)) Bumped all plugins to `v2.2.0`. From now, the versions for the Rust and JavaScript packages of each plugin will be in sync with each other.
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
## \[2.2.2]
- [`f634e524`](https://github.com/tauri-apps/plugins-workspace/commit/f634e5248ebe428f8305a59f74c13fc15147fb8e) This is an "empty" release to update the plugins' source files on crates.io and docs.rs. This should fix docs.rs build failures for projects using tauri plugins as dependencies.
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
## \[2.3.0]
- [`f6e11282`](https://github.com/tauri-apps/plugins-workspace/commit/f6e11282a7f4036dd6d1dbb8f100e777e9e42f11) ([#2787](https://github.com/tauri-apps/plugins-workspace/pull/2787) by [@mikew](https://github.com/tauri-apps/plugins-workspace/../../mikew)) Added `Cli.matches_from(args)`. This can be combined with the `args` passed to the callback of `tauri_plugin_single_instance::init` to parse the command line arguments passed to subsequent instances of the application.
- [`37c2fb41`](https://github.com/tauri-apps/plugins-workspace/commit/37c2fb41201160e85c8dc3ad40f462cd4e17a304) ([#2772](https://github.com/tauri-apps/plugins-workspace/pull/2772) by [@floriskn](https://github.com/tauri-apps/plugins-workspace/../../floriskn)) Added a new `global` boolean flag to the `CliArg` struct to support global CLI arguments. This flag allows arguments like `--verbose` to be marked as global and automatically propagated to all subcommands, enabling consistent availability throughout the CLI.
The new field is optional and defaults to false.
## \[2.2.1]
- [`f634e524`](https://github.com/tauri-apps/plugins-workspace/commit/f634e5248ebe428f8305a59f74c13fc15147fb8e) This is an "empty" release to update the plugins' source files on crates.io and docs.rs. This should fix docs.rs build failures for projects using tauri plugins as dependencies.
## \[2.2.0]
## \[2.2.0]
- [`3a79266b`](https://github.com/tauri-apps/plugins-workspace/commit/3a79266b8cf96a55b1ae6339d725567d45a44b1d) ([#2173](https://github.com/tauri-apps/plugins-workspace/pull/2173) by [@FabianLars](https://github.com/tauri-apps/plugins-workspace/../../FabianLars)) Bumped all plugins to `v2.2.0`. From now, the versions for the Rust and JavaScript packages of each plugin will be in sync with each other.
- [`3a79266b`](https://github.com/tauri-apps/plugins-workspace/commit/3a79266b8cf96a55b1ae6339d725567d45a44b1d) ([#2173](https://github.com/tauri-apps/plugins-workspace/pull/2173) by [@FabianLars](https://github.com/tauri-apps/plugins-workspace/../../FabianLars)) Bumped all plugins to `v2.2.0`. From now, the versions for the Rust and JavaScript packages of each plugin will be in sync with each other.
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
## \[2.2.3]
- [`f634e524`](https://github.com/tauri-apps/plugins-workspace/commit/f634e5248ebe428f8305a59f74c13fc15147fb8e) This is an "empty" release to update the plugins' source files on crates.io and docs.rs. This should fix docs.rs build failures for projects using tauri plugins as dependencies.
if("__TAURI__"inwindow){var__TAURI_PLUGIN_CLIPBOARD_MANAGER__=function(e){"use strict";varn;asyncfunctiont(e,n={},t){returnwindow.__TAURI_INTERNALS__.invoke(e,n,t)}"function"==typeofSuppressedError&&SuppressedError;classr{getrid(){returnfunction(e,n,t,r){if("function"==typeofn||!n.has(e))thrownewTypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)}(this,n,"f")}constructor(e){n.set(this,void0),function(e,n,t){if("function"==typeofn||!n.has(e))thrownewTypeError("Cannot write private member to an object whose class did not declare it");n.set(e,t)}(this,n,e)}asyncclose(){returnt("plugin:resources|close",{rid:this.rid})}}n=newWeakMap;classaextendsr{constructor(e){super(e)}staticasyncnew(e,n,r){returnt("plugin:image|new",{rgba:i(e),width:n,height:r}).then((e=>newa(e)))}staticasyncfromBytes(e){returnt("plugin:image|from_bytes",{bytes:i(e)}).then((e=>newa(e)))}staticasyncfromPath(e){returnt("plugin:image|from_path",{path:e}).then((e=>newa(e)))}asyncrgba(){returnt("plugin:image|rgba",{rid:this.rid}).then((e=>newUint8Array(e)))}asyncsize(){returnt("plugin:image|size",{rid:this.rid})}}functioni(e){returnnull==e?null:"string"==typeofe?e:einstanceofa?e.rid:e}returne.clear=asyncfunction(){awaitt("plugin:clipboard-manager|clear")},e.readImage=asyncfunction(){returnawaitt("plugin:clipboard-manager|read_image").then((e=>newa(e)))},e.readText=asyncfunction(){returnawaitt("plugin:clipboard-manager|read_text")},e.writeHtml=asyncfunction(e,n){awaitt("plugin:clipboard-manager|write_html",{html:e,altText:n})},e.writeImage=asyncfunction(e){awaitt("plugin:clipboard-manager|write_image",{image:i(e)})},e.writeText=asyncfunction(e,n){awaitt("plugin:clipboard-manager|write_text",{label:n?.label,text:e})},e}({});Object.defineProperty(window.__TAURI__,"clipboardManager",{value:__TAURI_PLUGIN_CLIPBOARD_MANAGER__})}
if("__TAURI__"inwindow){var__TAURI_PLUGIN_CLIPBOARD_MANAGER__=function(e){"use strict";varn;asyncfunctiont(e,n={},t){returnwindow.__TAURI_INTERNALS__.invoke(e,n,t)}"function"==typeofSuppressedError&&SuppressedError;classr{getrid(){returnfunction(e,n,t,r){if("function"==typeofn?e!==n||!r:!n.has(e))thrownewTypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)}(this,n,"f")}constructor(e){n.set(this,void0),function(e,n,t){if("function"==typeofn||!n.has(e))thrownewTypeError("Cannot write private member to an object whose class did not declare it");n.set(e,t)}(this,n,e)}asyncclose(){returnt("plugin:resources|close",{rid:this.rid})}}n=newWeakMap;classaextendsr{constructor(e){super(e)}staticasyncnew(e,n,r){returnt("plugin:image|new",{rgba:i(e),width:n,height:r}).then((e=>newa(e)))}staticasyncfromBytes(e){returnt("plugin:image|from_bytes",{bytes:i(e)}).then((e=>newa(e)))}staticasyncfromPath(e){returnt("plugin:image|from_path",{path:e}).then((e=>newa(e)))}asyncrgba(){returnt("plugin:image|rgba",{rid:this.rid}).then((e=>newUint8Array(e)))}asyncsize(){returnt("plugin:image|size",{rid:this.rid})}}functioni(e){returnnull==e?null:"string"==typeofe?e:einstanceofa?e.rid:e}returne.clear=asyncfunction(){awaitt("plugin:clipboard-manager|clear")},e.readImage=asyncfunction(){returnawaitt("plugin:clipboard-manager|read_image").then((e=>newa(e)))},e.readText=asyncfunction(){returnawaitt("plugin:clipboard-manager|read_text")},e.writeHtml=asyncfunction(e,n){awaitt("plugin:clipboard-manager|write_html",{html:e,altText:n})},e.writeImage=asyncfunction(e){awaitt("plugin:clipboard-manager|write_image",{image:i(e)})},e.writeText=asyncfunction(e,n){awaitt("plugin:clipboard-manager|write_text",{label:n?.label,text:e})},e}({});Object.defineProperty(window.__TAURI__,"clipboardManager",{value:__TAURI_PLUGIN_CLIPBOARD_MANAGER__})}
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
## \[2.3.0]
## \[2.3.0]
- [`4d10acee`](https://github.com/tauri-apps/plugins-workspace/commit/4d10acee61bad8045705508121424ed5f2d381f6) ([#993](https://github.com/tauri-apps/plugins-workspace/pull/993) by [@m00nwtchr](https://github.com/tauri-apps/plugins-workspace/../../m00nwtchr)) Exposed Android's `path`, `pathPattern` and `pathSuffix` configurations.
- [`4d10acee`](https://github.com/tauri-apps/plugins-workspace/commit/4d10acee61bad8045705508121424ed5f2d381f6) ([#993](https://github.com/tauri-apps/plugins-workspace/pull/993) by [@m00nwtchr](https://github.com/tauri-apps/plugins-workspace/../../m00nwtchr)) Exposed Android's `path`, `pathPattern` and `pathSuffix` configurations.
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
## \[2.3.0]
## \[2.3.0]
- [`dac4d537`](https://github.com/tauri-apps/plugins-workspace/commit/dac4d53724bb3430a00a3f0119857cba32a031e8) ([#2613](https://github.com/tauri-apps/plugins-workspace/pull/2613) by [@Legend-Master](https://github.com/tauri-apps/plugins-workspace/../../Legend-Master)) Reduce the overhead of `watch` and `unwatch`
- [`dac4d537`](https://github.com/tauri-apps/plugins-workspace/commit/dac4d53724bb3430a00a3f0119857cba32a031e8) ([#2613](https://github.com/tauri-apps/plugins-workspace/pull/2613) by [@Legend-Master](https://github.com/tauri-apps/plugins-workspace/../../Legend-Master)) Reduce the overhead of `watch` and `unwatch`
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
## \[2.2.5]
- [`f634e524`](https://github.com/tauri-apps/plugins-workspace/commit/f634e5248ebe428f8305a59f74c13fc15147fb8e) This is an "empty" release to update the plugins' source files on crates.io and docs.rs. This should fix docs.rs build failures for projects using tauri plugins as dependencies.
## \[2.2.4]
## \[2.2.4]
- [`a1b3fa27`](https://github.com/tauri-apps/plugins-workspace/commit/a1b3fa27f11022c9b6622b4fab12d93239eb05de) ([#2515](https://github.com/tauri-apps/plugins-workspace/pull/2515) by [@FabianLars](https://github.com/tauri-apps/plugins-workspace/../../FabianLars)) Re-exported the `Geolocation`, `Haptics`, `Notification`, and `Os` structs so that they show up on docs.rs.
- [`a1b3fa27`](https://github.com/tauri-apps/plugins-workspace/commit/a1b3fa27f11022c9b6622b4fab12d93239eb05de) ([#2515](https://github.com/tauri-apps/plugins-workspace/pull/2515) by [@FabianLars](https://github.com/tauri-apps/plugins-workspace/../../FabianLars)) Re-exported the `Geolocation`, `Haptics`, `Notification`, and `Os` structs so that they show up on docs.rs.
if("__TAURI__"inwindow){var__TAURI_PLUGIN_GEOLOCATION__=function(t){"use strict";functionn(t,n,e,i){if("function"==typeofn||!n.has(t))thrownewTypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?i:"a"===e?i.call(t):i?i.value:n.get(t)}functione(t,n,e,i,s){if("function"==typeofn||!n.has(t))thrownewTypeError("Cannot write private member to an object whose class did not declare it");returnn.set(t,e),e}vari,s,o,r;"function"==typeofSuppressedError&&SuppressedError;consta="__TAURI_TO_IPC_KEY__";classc{constructor(t){i.set(this,void0),s.set(this,0),o.set(this,[]),r.set(this,void0),e(this,i,t||(()=>{})),this.id=function(t,n=!1){returnwindow.__TAURI_INTERNALS__.transformCallback(t,n)}((t=>{consta=t.index;if("end"int)returnvoid(a==n(this,s,"f")?this.cleanupCallback():e(this,r,a));constc=t.message;if(a==n(this,s,"f")){for(n(this,i,"f").call(this,c),e(this,s,n(this,s,"f")+1);n(this,s,"f")inn(this,o,"f");){constt=n(this,o,"f")[n(this,s,"f")];n(this,i,"f").call(this,t),deleten(this,o,"f")[n(this,s,"f")],e(this,s,n(this,s,"f")+1)}n(this,s,"f")===n(this,r,"f")&&this.cleanupCallback()}elsen(this,o,"f")[a]=c}))}cleanupCallback(){Reflect.deleteProperty(window,`_${this.id}`)}setonmessage(t){e(this,i,t)}getonmessage(){returnn(this,i,"f")}[(i=newWeakMap,s=newWeakMap,o=newWeakMap,r=newWeakMap,a)](){return`__CHANNEL__:${this.id}`}toJSON(){returnthis[a]()}}asyncfunction_(t,n={},e){returnwindow.__TAURI_INTERNALS__.invoke(t,n,e)}returnt.checkPermissions=asyncfunction(){returnawaitasyncfunction(t){return_(`plugin:${t}|check_permissions`)}("geolocation")},t.clearWatch=asyncfunction(t){await_("plugin:geolocation|clear_watch",{channelId:t})},t.getCurrentPosition=asyncfunction(t){returnawait_("plugin:geolocation|get_current_position",{options:t})},t.requestPermissions=asyncfunction(t){returnawait_("plugin:geolocation|request_permissions",{permissions:t})},t.watchPosition=asyncfunction(t,n){conste=newc;returne.onmessage=t=>{"string"==typeoft?n(null,t):n(t)},await_("plugin:geolocation|watch_position",{options:t,channel:e}),e.id},t}({});Object.defineProperty(window.__TAURI__,"geolocation",{value:__TAURI_PLUGIN_GEOLOCATION__})}
if("__TAURI__"inwindow){var__TAURI_PLUGIN_GEOLOCATION__=function(t){"use strict";functionn(t,n,i,e){if("function"==typeofn?t!==n||!e:!n.has(t))thrownewTypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?e:"a"===i?e.call(t):e?e.value:n.get(t)}functioni(t,n,i,e,s){if("function"==typeofn||!n.has(t))thrownewTypeError("Cannot write private member to an object whose class did not declare it");returnn.set(t,i),i}vare,s,o,a;"function"==typeofSuppressedError&&SuppressedError;constr="__TAURI_TO_IPC_KEY__";classc{constructor(t){e.set(this,void0),s.set(this,0),o.set(this,[]),a.set(this,void0),i(this,e,t||(()=>{})),this.id=function(t,n=!1){returnwindow.__TAURI_INTERNALS__.transformCallback(t,n)}((t=>{constr=t.index;if("end"int)returnvoid(r==n(this,s,"f")?this.cleanupCallback():i(this,a,r));constc=t.message;if(r==n(this,s,"f")){for(n(this,e,"f").call(this,c),i(this,s,n(this,s,"f")+1);n(this,s,"f")inn(this,o,"f");){constt=n(this,o,"f")[n(this,s,"f")];n(this,e,"f").call(this,t),deleten(this,o,"f")[n(this,s,"f")],i(this,s,n(this,s,"f")+1)}n(this,s,"f")===n(this,a,"f")&&this.cleanupCallback()}elsen(this,o,"f")[r]=c}))}cleanupCallback(){window.__TAURI_INTERNALS__.unregisterCallback(this.id)}setonmessage(t){i(this,e,t)}getonmessage(){returnn(this,e,"f")}[(e=newWeakMap,s=newWeakMap,o=newWeakMap,a=newWeakMap,r)](){return`__CHANNEL__:${this.id}`}toJSON(){returnthis[r]()}}asyncfunction_(t,n={},i){returnwindow.__TAURI_INTERNALS__.invoke(t,n,i)}returnt.checkPermissions=asyncfunction(){returnawaitasyncfunction(t){return_(`plugin:${t}|check_permissions`)}("geolocation")},t.clearWatch=asyncfunction(t){await_("plugin:geolocation|clear_watch",{channelId:t})},t.getCurrentPosition=asyncfunction(t){returnawait_("plugin:geolocation|get_current_position",{options:t})},t.requestPermissions=asyncfunction(t){returnawait_("plugin:geolocation|request_permissions",{permissions:t})},t.watchPosition=asyncfunction(t,n){consti=newc;returni.onmessage=t=>{"string"==typeoft?n(null,t):n(t)},await_("plugin:geolocation|watch_position",{options:t,channel:i}),i.id},t}({});Object.defineProperty(window.__TAURI__,"geolocation",{value:__TAURI_PLUGIN_GEOLOCATION__})}
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
## \[2.2.1]
## \[2.2.1]
- [`494d1fea`](https://github.com/tauri-apps/plugins-workspace/commit/494d1fea137ffd60da98b25305c9d666df62cc63) ([#2684](https://github.com/tauri-apps/plugins-workspace/pull/2684) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated `global-hotkey` crate to `0.7` to fix a panic when trying to register a key combination which was already registered by another program. No API changes.
- [`494d1fea`](https://github.com/tauri-apps/plugins-workspace/commit/494d1fea137ffd60da98b25305c9d666df62cc63) ([#2684](https://github.com/tauri-apps/plugins-workspace/pull/2684) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated `global-hotkey` crate to `0.7` to fix a panic when trying to register a key combination which was already registered by another program. No API changes.
if("__TAURI__"inwindow){var__TAURI_PLUGIN_GLOBAL_SHORTCUT__=function(t){"use strict";functione(t,e,s,i){if("function"==typeofe||!e.has(t))thrownewTypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(t):i?i.value:e.get(t)}functions(t,e,s,i,r){if("function"==typeofe||!e.has(t))thrownewTypeError("Cannot write private member to an object whose class did not declare it");returne.set(t,s),s}vari,r,n,a;"function"==typeofSuppressedError&&SuppressedError;consto="__TAURI_TO_IPC_KEY__";classc{constructor(t){i.set(this,void0),r.set(this,0),n.set(this,[]),a.set(this,void0),s(this,i,t||(()=>{})),this.id=function(t,e=!1){returnwindow.__TAURI_INTERNALS__.transformCallback(t,e)}((t=>{consto=t.index;if("end"int)returnvoid(o==e(this,r,"f")?this.cleanupCallback():s(this,a,o));constc=t.message;if(o==e(this,r,"f")){for(e(this,i,"f").call(this,c),s(this,r,e(this,r,"f")+1);e(this,r,"f")ine(this,n,"f");){constt=e(this,n,"f")[e(this,r,"f")];e(this,i,"f").call(this,t),deletee(this,n,"f")[e(this,r,"f")],s(this,r,e(this,r,"f")+1)}e(this,r,"f")===e(this,a,"f")&&this.cleanupCallback()}elsee(this,n,"f")[o]=c}))}cleanupCallback(){Reflect.deleteProperty(window,`_${this.id}`)}setonmessage(t){s(this,i,t)}getonmessage(){returne(this,i,"f")}[(i=newWeakMap,r=newWeakMap,n=newWeakMap,a=newWeakMap,o)](){return`__CHANNEL__:${this.id}`}toJSON(){returnthis[o]()}}asyncfunctionu(t,e={},s){returnwindow.__TAURI_INTERNALS__.invoke(t,e,s)}returnt.isRegistered=asyncfunction(t){returnawaitu("plugin:global-shortcut|is_registered",{shortcut:t})},t.register=asyncfunction(t,e){consts=newc;returns.onmessage=e,awaitu("plugin:global-shortcut|register",{shortcuts:Array.isArray(t)?t:[t],handler:s})},t.unregister=asyncfunction(t){returnawaitu("plugin:global-shortcut|unregister",{shortcuts:Array.isArray(t)?t:[t]})},t.unregisterAll=asyncfunction(){returnawaitu("plugin:global-shortcut|unregister_all",{})},t}({});Object.defineProperty(window.__TAURI__,"globalShortcut",{value:__TAURI_PLUGIN_GLOBAL_SHORTCUT__})}
if("__TAURI__"inwindow){var__TAURI_PLUGIN_GLOBAL_SHORTCUT__=function(t){"use strict";functione(t,e,s,i){if("function"==typeofe?t!==e||!i:!e.has(t))thrownewTypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?i:"a"===s?i.call(t):i?i.value:e.get(t)}functions(t,e,s,i,r){if("function"==typeofe||!e.has(t))thrownewTypeError("Cannot write private member to an object whose class did not declare it");returne.set(t,s),s}vari,r,n,a;"function"==typeofSuppressedError&&SuppressedError;consto="__TAURI_TO_IPC_KEY__";classc{constructor(t){i.set(this,void0),r.set(this,0),n.set(this,[]),a.set(this,void0),s(this,i,t||(()=>{})),this.id=function(t,e=!1){returnwindow.__TAURI_INTERNALS__.transformCallback(t,e)}((t=>{consto=t.index;if("end"int)returnvoid(o==e(this,r,"f")?this.cleanupCallback():s(this,a,o));constc=t.message;if(o==e(this,r,"f")){for(e(this,i,"f").call(this,c),s(this,r,e(this,r,"f")+1);e(this,r,"f")ine(this,n,"f");){constt=e(this,n,"f")[e(this,r,"f")];e(this,i,"f").call(this,t),deletee(this,n,"f")[e(this,r,"f")],s(this,r,e(this,r,"f")+1)}e(this,r,"f")===e(this,a,"f")&&this.cleanupCallback()}elsee(this,n,"f")[o]=c}))}cleanupCallback(){window.__TAURI_INTERNALS__.unregisterCallback(this.id)}setonmessage(t){s(this,i,t)}getonmessage(){returne(this,i,"f")}[(i=newWeakMap,r=newWeakMap,n=newWeakMap,a=newWeakMap,o)](){return`__CHANNEL__:${this.id}`}toJSON(){returnthis[o]()}}asyncfunctionu(t,e={},s){returnwindow.__TAURI_INTERNALS__.invoke(t,e,s)}returnt.isRegistered=asyncfunction(t){returnawaitu("plugin:global-shortcut|is_registered",{shortcut:t})},t.register=asyncfunction(t,e){consts=newc;returns.onmessage=e,awaitu("plugin:global-shortcut|register",{shortcuts:Array.isArray(t)?t:[t],handler:s})},t.unregister=asyncfunction(t){returnawaitu("plugin:global-shortcut|unregister",{shortcuts:Array.isArray(t)?t:[t]})},t.unregisterAll=asyncfunction(){returnawaitu("plugin:global-shortcut|unregister_all",{})},t}({});Object.defineProperty(window.__TAURI__,"globalShortcut",{value:__TAURI_PLUGIN_GLOBAL_SHORTCUT__})}
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
## \[2.2.5]
- [`f634e524`](https://github.com/tauri-apps/plugins-workspace/commit/f634e5248ebe428f8305a59f74c13fc15147fb8e) This is an "empty" release to update the plugins' source files on crates.io and docs.rs. This should fix docs.rs build failures for projects using tauri plugins as dependencies.
## \[2.2.4]
## \[2.2.4]
- [`a1b3fa27`](https://github.com/tauri-apps/plugins-workspace/commit/a1b3fa27f11022c9b6622b4fab12d93239eb05de) ([#2515](https://github.com/tauri-apps/plugins-workspace/pull/2515) by [@FabianLars](https://github.com/tauri-apps/plugins-workspace/../../FabianLars)) Re-exported the `Geolocation`, `Haptics`, `Notification`, and `Os` structs so that they show up on docs.rs.
- [`a1b3fa27`](https://github.com/tauri-apps/plugins-workspace/commit/a1b3fa27f11022c9b6622b4fab12d93239eb05de) ([#2515](https://github.com/tauri-apps/plugins-workspace/pull/2515) by [@FabianLars](https://github.com/tauri-apps/plugins-workspace/../../FabianLars)) Re-exported the `Geolocation`, `Haptics`, `Notification`, and `Os` structs so that they show up on docs.rs.
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
### Dependencies
- Upgraded to `fs-js@2.4.0`
## \[2.4.4]
## \[2.4.4]
- [`ff384cba`](https://github.com/tauri-apps/plugins-workspace/commit/ff384cbabe82ae715798a4ee49fd07ffcfbcdb5d) ([#2636](https://github.com/tauri-apps/plugins-workspace/pull/2636) by [@asomethings](https://github.com/tauri-apps/plugins-workspace/../../asomethings)) Properly handle responses with status code 204.
- [`ff384cba`](https://github.com/tauri-apps/plugins-workspace/commit/ff384cbabe82ae715798a4ee49fd07ffcfbcdb5d) ([#2636](https://github.com/tauri-apps/plugins-workspace/pull/2636) by [@asomethings](https://github.com/tauri-apps/plugins-workspace/../../asomethings)) Properly handle responses with status code 204.
if("__TAURI__"inwindow){var__TAURI_PLUGIN_HTTP__=function(e){"use strict";functiont(e,t,r,n){if("function"==typeoft||!t.has(e))thrownewTypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}functionr(e,t,r,n,s){if("function"==typeoft||!t.has(e))thrownewTypeError("Cannot write private member to an object whose class did not declare it");returnt.set(e,r),r}varn,s,i,a;"function"==typeofSuppressedError&&SuppressedError;consto="__TAURI_TO_IPC_KEY__";classc{constructor(e){n.set(this,void0),s.set(this,0),i.set(this,[]),a.set(this,void0),r(this,n,e||(()=>{})),this.id=function(e,t=!1){returnwindow.__TAURI_INTERNALS__.transformCallback(e,t)}((e=>{consto=e.index;if("end"ine)returnvoid(o==t(this,s,"f")?this.cleanupCallback():r(this,a,o));constc=e.message;if(o==t(this,s,"f")){for(t(this,n,"f").call(this,c),r(this,s,t(this,s,"f")+1);t(this,s,"f")int(this,i,"f");){conste=t(this,i,"f")[t(this,s,"f")];t(this,n,"f").call(this,e),deletet(this,i,"f")[t(this,s,"f")],r(this,s,t(this,s,"f")+1)}t(this,s,"f")===t(this,a,"f")&&this.cleanupCallback()}elset(this,i,"f")[o]=c}))}cleanupCallback(){Reflect.deleteProperty(window,`_${this.id}`)}setonmessage(e){r(this,n,e)}getonmessage(){returnt(this,n,"f")}[(n=newWeakMap,s=newWeakMap,i=newWeakMap,a=newWeakMap,o)](){return`__CHANNEL__:${this.id}`}toJSON(){returnthis[o]()}}asyncfunctiond(e,t={},r){returnwindow.__TAURI_INTERNALS__.invoke(e,t,r)}consth="Request cancelled";returne.fetch=asyncfunction(e,t){constr=t?.signal;if(r?.aborted)thrownewError(h);constn=t?.maxRedirections,s=t?.connectTimeout,i=t?.proxy,a=t?.danger;t&&(deletet.maxRedirections,deletet.connectTimeout,deletet.proxy,deletet.danger);consto=t?.headers?t.headersinstanceofHeaders?t.headers:newHeaders(t.headers):newHeaders,f=newRequest(e,t),l=awaitf.arrayBuffer(),u=0!==l.byteLength?Array.from(newUint8Array(l)):null;for(const[e,t]off.headers)o.get(e)||o.set(e,t);const_=(oinstanceofHeaders?Array.from(o.entries()):Array.isArray(o)?o:Object.entries(o)).map((([e,t])=>[e,"string"==typeoft?t:t.toString()]));if(r?.aborted)thrownewError(h);constw=awaitd("plugin:http|fetch",{clientConfig:{method:f.method,url:f.url,headers:_,data:u,maxRedirections:n,connectTimeout:s,proxy:i,danger:a}}),p=()=>d("plugin:http|fetch_cancel",{rid:w});if(r?.aborted)throwp(),newError(h);r?.addEventListener("abort",(()=>{p()}));const{status:y,statusText:m,url:b,headers:g,rid:T}=awaitd("plugin:http|fetch_send",{rid:w}),R=[101,103,204,205,304].includes(y)?null:newReadableStream({start:e=>{constt=newc;t.onmessage=t=>{if(r?.aborted)returnvoide.error(h);constn=newUint8Array(t),s=n[n.byteLength-1],i=n.slice(0,n.byteLength-1);1!=s?e.enqueue(i):e.close()},d("plugin:http|fetch_read_body",{rid:T,streamChannel:t}).catch((t=>{e.error(t)}))}}),A=newResponse(R,{status:y,statusText:m});returnObject.defineProperty(A,"url",{value:b}),Object.defineProperty(A,"headers",{value:newHeaders(g)}),A},e}({});Object.defineProperty(window.__TAURI__,"http",{value:__TAURI_PLUGIN_HTTP__})}
if("__TAURI__"inwindow){var__TAURI_PLUGIN_HTTP__=function(e){"use strict";functiont(e,t,r,n){if("function"==typeoft?e!==t||!n:!t.has(e))thrownewTypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}functionr(e,t,r,n,s){if("function"==typeoft||!t.has(e))thrownewTypeError("Cannot write private member to an object whose class did not declare it");returnt.set(e,r),r}varn,s,i,a;"function"==typeofSuppressedError&&SuppressedError;consto="__TAURI_TO_IPC_KEY__";classc{constructor(e){n.set(this,void0),s.set(this,0),i.set(this,[]),a.set(this,void0),r(this,n,e||(()=>{})),this.id=function(e,t=!1){returnwindow.__TAURI_INTERNALS__.transformCallback(e,t)}((e=>{consto=e.index;if("end"ine)returnvoid(o==t(this,s,"f")?this.cleanupCallback():r(this,a,o));constc=e.message;if(o==t(this,s,"f")){for(t(this,n,"f").call(this,c),r(this,s,t(this,s,"f")+1);t(this,s,"f")int(this,i,"f");){conste=t(this,i,"f")[t(this,s,"f")];t(this,n,"f").call(this,e),deletet(this,i,"f")[t(this,s,"f")],r(this,s,t(this,s,"f")+1)}t(this,s,"f")===t(this,a,"f")&&this.cleanupCallback()}elset(this,i,"f")[o]=c}))}cleanupCallback(){window.__TAURI_INTERNALS__.unregisterCallback(this.id)}setonmessage(e){r(this,n,e)}getonmessage(){returnt(this,n,"f")}[(n=newWeakMap,s=newWeakMap,i=newWeakMap,a=newWeakMap,o)](){return`__CHANNEL__:${this.id}`}toJSON(){returnthis[o]()}}asyncfunctiond(e,t={},r){returnwindow.__TAURI_INTERNALS__.invoke(e,t,r)}consth="Request cancelled";returne.fetch=asyncfunction(e,t){constr=t?.signal;if(r?.aborted)thrownewError(h);constn=t?.maxRedirections,s=t?.connectTimeout,i=t?.proxy,a=t?.danger;t&&(deletet.maxRedirections,deletet.connectTimeout,deletet.proxy,deletet.danger);consto=t?.headers?t.headersinstanceofHeaders?t.headers:newHeaders(t.headers):newHeaders,f=newRequest(e,t),l=awaitf.arrayBuffer(),u=0!==l.byteLength?Array.from(newUint8Array(l)):null;for(const[e,t]off.headers)o.get(e)||o.set(e,t);const_=(oinstanceofHeaders?Array.from(o.entries()):Array.isArray(o)?o:Object.entries(o)).map((([e,t])=>[e,"string"==typeoft?t:t.toString()]));if(r?.aborted)thrownewError(h);constw=awaitd("plugin:http|fetch",{clientConfig:{method:f.method,url:f.url,headers:_,data:u,maxRedirections:n,connectTimeout:s,proxy:i,danger:a}}),p=()=>d("plugin:http|fetch_cancel",{rid:w});if(r?.aborted)throwp(),newError(h);r?.addEventListener("abort",(()=>{p()}));const{status:y,statusText:m,url:b,headers:T,rid:g}=awaitd("plugin:http|fetch_send",{rid:w}),A=[101,103,204,205,304].includes(y)?null:newReadableStream({start:e=>{constt=newc;t.onmessage=t=>{if(r?.aborted)returnvoide.error(h);constn=newUint8Array(t),s=n[n.byteLength-1],i=n.slice(0,n.byteLength-1);1!=s?e.enqueue(i):e.close()},d("plugin:http|fetch_read_body",{rid:g,streamChannel:t}).catch((t=>{e.error(t)}))}}),R=newResponse(A,{status:y,statusText:m});returnObject.defineProperty(R,"url",{value:b}),Object.defineProperty(R,"headers",{value:newHeaders(T)}),R},e}({});Object.defineProperty(window.__TAURI__,"http",{value:__TAURI_PLUGIN_HTTP__})}
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
## \[2.2.1]
- [`f634e524`](https://github.com/tauri-apps/plugins-workspace/commit/f634e5248ebe428f8305a59f74c13fc15147fb8e) This is an "empty" release to update the plugins' source files on crates.io and docs.rs. This should fix docs.rs build failures for projects using tauri plugins as dependencies.
## \[2.2.0]
## \[2.2.0]
- [`3a79266b`](https://github.com/tauri-apps/plugins-workspace/commit/3a79266b8cf96a55b1ae6339d725567d45a44b1d) ([#2173](https://github.com/tauri-apps/plugins-workspace/pull/2173) by [@FabianLars](https://github.com/tauri-apps/plugins-workspace/../../FabianLars)) Bumped all plugins to `v2.2.0`. From now, the versions for the Rust and JavaScript packages of each plugin will be in sync with each other.
- [`3a79266b`](https://github.com/tauri-apps/plugins-workspace/commit/3a79266b8cf96a55b1ae6339d725567d45a44b1d) ([#2173](https://github.com/tauri-apps/plugins-workspace/pull/2173) by [@FabianLars](https://github.com/tauri-apps/plugins-workspace/../../FabianLars)) Bumped all plugins to `v2.2.0`. From now, the versions for the Rust and JavaScript packages of each plugin will be in sync with each other.
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
## \[2.5.1]
### bug
- [`9799f0db`](https://github.com/tauri-apps/plugins-workspace/commit/9799f0dbabea0b572a9b9111954fbf9aca63da71) ([#2802](https://github.com/tauri-apps/plugins-workspace/pull/2802) by [@lucasfernog](https://github.com/tauri-apps/plugins-workspace/../../lucasfernog)) Fixes iOS simulator still freezing sometimes due to early logging.
## \[2.5.0]
- [`106e46ed`](https://github.com/tauri-apps/plugins-workspace/commit/106e46ed5125be33d0427cab9c5c066802f68791) ([#677](https://github.com/tauri-apps/plugins-workspace/pull/677)) Added the `KeepSome` rotation strategy. Like `KeepAll` it will rename files when the max file size is exceeded but will keep only the specified amount of files around.
## \[2.4.0]
## \[2.4.0]
- [`c9b21f6f`](https://github.com/tauri-apps/plugins-workspace/commit/c9b21f6f4345806eff5f495885f20dea0082b7d7) ([#2625](https://github.com/tauri-apps/plugins-workspace/pull/2625) by [@lucasfernog](https://github.com/tauri-apps/plugins-workspace/../../lucasfernog)) Export the `LogLevel` type.
- [`c9b21f6f`](https://github.com/tauri-apps/plugins-workspace/commit/c9b21f6f4345806eff5f495885f20dea0082b7d7) ([#2625](https://github.com/tauri-apps/plugins-workspace/pull/2625) by [@lucasfernog](https://github.com/tauri-apps/plugins-workspace/../../lucasfernog)) Export the `LogLevel` type.
- [`f209b2f2`](https://github.com/tauri-apps/plugins-workspace/commit/f209b2f23cb29133c97ad5961fb46ef794dbe063) ([#2804](https://github.com/tauri-apps/plugins-workspace/pull/2804) by [@renovate](https://github.com/tauri-apps/plugins-workspace/../../renovate)) Updated tauri to 2.6
## \[2.2.1]
- [`f634e524`](https://github.com/tauri-apps/plugins-workspace/commit/f634e5248ebe428f8305a59f74c13fc15147fb8e) This is an "empty" release to update the plugins' source files on crates.io and docs.rs. This should fix docs.rs build failures for projects using tauri plugins as dependencies.
## \[2.2.0]
## \[2.2.0]
- [`3a79266b`](https://github.com/tauri-apps/plugins-workspace/commit/3a79266b8cf96a55b1ae6339d725567d45a44b1d) ([#2173](https://github.com/tauri-apps/plugins-workspace/pull/2173) by [@FabianLars](https://github.com/tauri-apps/plugins-workspace/../../FabianLars)) Bumped all plugins to `v2.2.0`. From now, the versions for the Rust and JavaScript packages of each plugin will be in sync with each other.
- [`3a79266b`](https://github.com/tauri-apps/plugins-workspace/commit/3a79266b8cf96a55b1ae6339d725567d45a44b1d) ([#2173](https://github.com/tauri-apps/plugins-workspace/pull/2173) by [@FabianLars](https://github.com/tauri-apps/plugins-workspace/../../FabianLars)) Bumped all plugins to `v2.2.0`. From now, the versions for the Rust and JavaScript packages of each plugin will be in sync with each other.