diff --git a/.changes/add-is-always-on-top.md b/.changes/add-is-always-on-top.md deleted file mode 100644 index 9bacd2e723a3..000000000000 --- a/.changes/add-is-always-on-top.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -tauri: 'minor:feat' -tauri-runtime: 'minor:feat' -tauri-runtime-wry: 'minor:feat' ---- - -add `Window.is_always_on_top()` and `WebviewWindow.is_always_on_top()` diff --git a/.changes/change-pr-12884.md b/.changes/change-pr-12884.md deleted file mode 100644 index 0a4ae2e8c5d7..000000000000 --- a/.changes/change-pr-12884.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tauri-utils": "patch:bug" ---- - -fix: allow double `--` in permissions as command can have double `__` diff --git a/.changes/channel-clone.md b/.changes/channel-clone.md deleted file mode 100644 index 7a2a07afafad..000000000000 --- a/.changes/channel-clone.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tauri": "patch:bug" ---- - -Removed `TSend: Clone` requirement for `Channel` by implementing `Clone` manually instead of driving it. diff --git a/.changes/cli-bundles-updater.md b/.changes/cli-bundles-updater.md deleted file mode 100644 index 3cbf8e73098b..000000000000 --- a/.changes/cli-bundles-updater.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -tauri-cli: "patch:bug" -"@tauri-apps/cli": "patch:bug" ---- - -The cli will now accept `--bundles updater` again. It's still no-op as it has been for all v2 versions. If you want to build updater artifacts, enable `createUpdaterArtifacts` in `tauri.conf.json`. diff --git a/.changes/cli-multiple-config.md b/.changes/cli-multiple-config.md deleted file mode 100644 index 6f08825290ef..000000000000 --- a/.changes/cli-multiple-config.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@tauri-apps/cli": minor:feat -"tauri-cli": minor:feat ---- - -Allow merging multiple configuration values on `tauri dev`, `tauri build`, `tauri bundle`, `tauri android dev`, `tauri android build`, `tauri ios dev` and `tauri ios build`. diff --git a/.changes/clone-ExitRequestApi.md b/.changes/clone-ExitRequestApi.md deleted file mode 100644 index e20e767d5bd7..000000000000 --- a/.changes/clone-ExitRequestApi.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -tauri: 'minor:feat' ---- - -derive `Clone` for `tauri::ExitRequestApi`. diff --git a/.changes/cookies-for-url.md b/.changes/cookies-for-url.md deleted file mode 100644 index 498cbc34d083..000000000000 --- a/.changes/cookies-for-url.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tauri": minor:feat ---- - -Added `Webview::cookies()`, `Webview::cookies_for_url()`, `WebviewWindow::cookies()` and `Webview::cookies_for_url()`. diff --git a/.changes/datastore_api.md b/.changes/datastore_api.md deleted file mode 100644 index 32edd73159dc..000000000000 --- a/.changes/datastore_api.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@tauri-apps/api": minor:feat ---- - -add `AppHandle.fetch_data_store_identifiers` and `AppHandle.remove_data_store` (macOS and iOS only) diff --git a/.changes/disable-javascript-api.md b/.changes/disable-javascript-api.md deleted file mode 100644 index 414d851c7e9c..000000000000 --- a/.changes/disable-javascript-api.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@tauri-apps/api": minor:feat ---- - -Added `WindowOptions::javascriptDisabled` and `WebviewOptions::javascriptDisabled`. - diff --git a/.changes/disable-javascript.md b/.changes/disable-javascript.md deleted file mode 100644 index 2bb3e27ec0a4..000000000000 --- a/.changes/disable-javascript.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -tauri: 'minor:feat' -tauri-runtime-wry: 'minor:feat' ---- - -Add `WebviewBuilder.disable_javascript` and `WebviewWindowBuilder.disable_javascript` api to disable JavaScript. diff --git a/.changes/dont-ship-global-bundle-if-no-global-tauri.md b/.changes/dont-ship-global-bundle-if-no-global-tauri.md deleted file mode 100644 index 89b030112c41..000000000000 --- a/.changes/dont-ship-global-bundle-if-no-global-tauri.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -tauri: 'patch:perf' -tauri-build: 'patch:perf' -tauri-plugin: 'patch:perf' -tauri-utils: 'patch:perf' ---- - -Don't ship global `bundle.global.js` if `app > withGlobalTauri` is set to false diff --git a/.changes/fix-android-min-sdk.md b/.changes/fix-android-min-sdk.md deleted file mode 100644 index 91d8d8bd5146..000000000000 --- a/.changes/fix-android-min-sdk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tauri": patch:bug ---- - -Update path plugin to use older dataDir API on SDK < 24. diff --git a/.changes/fix-bun-lockfile.md b/.changes/fix-bun-lockfile.md deleted file mode 100644 index 2532e9621e15..000000000000 --- a/.changes/fix-bun-lockfile.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'tauri-cli': 'patch:bug' ---- - -For bun's lockfile, check both `bun.lock` and `bun.lockb`. \ No newline at end of file diff --git a/.changes/fix-docs-rs-build.md b/.changes/fix-docs-rs-build.md deleted file mode 100644 index 802d626c9de2..000000000000 --- a/.changes/fix-docs-rs-build.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tauri": patch:enhance ---- - -Fix docs.rs build for mobile targets. diff --git a/.changes/fix-get-asset-no-leading-slash.md b/.changes/fix-get-asset-no-leading-slash.md deleted file mode 100644 index 90257c524a7d..000000000000 --- a/.changes/fix-get-asset-no-leading-slash.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'tauri': 'patch:bug' ---- - -Fix `tauri::AssetResolver::get` and `tauri::AssetResolver::get_for_scheme` -skipping the first character of the `path` even if it's not a slash (/). diff --git a/.changes/fix-incorrect-rpm-resource-paths.md b/.changes/fix-incorrect-rpm-resource-paths.md deleted file mode 100644 index 6b75972e80bf..000000000000 --- a/.changes/fix-incorrect-rpm-resource-paths.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'tauri-bundler': 'patch:bug' ---- - -Fix resources being bundled to the wrong path during RPM bundling when resources are specified as a map. diff --git a/.changes/fix-ios-bun-1.2.md b/.changes/fix-ios-bun-1.2.md deleted file mode 100644 index ce69c5a81e0f..000000000000 --- a/.changes/fix-ios-bun-1.2.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"tauri-cli": patch:bug -"@tauri-apps/cli": patch:bug ---- - -Fix `tauri ios` commands using the wrong working directory with `bun@>1.2`. diff --git a/.changes/fix-webview-close.md b/.changes/fix-webview-close.md deleted file mode 100644 index 185ed033efc7..000000000000 --- a/.changes/fix-webview-close.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@tauri-apps/api": patch:bug ---- - -Fix `Webview.close` always fail with command not found \ No newline at end of file diff --git a/.changes/fix-zoom.md b/.changes/fix-zoom.md deleted file mode 100644 index d423bc8d6eb3..000000000000 --- a/.changes/fix-zoom.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tauri": patch:bug ---- - -Listen for `Ctrl +` or `Cmd +` to support zoom functionality in swedish keyboard layouts. diff --git a/.changes/get-identifier.md b/.changes/get-identifier.md deleted file mode 100644 index 9ba0e029a0ef..000000000000 --- a/.changes/get-identifier.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"tauri": "minor:feat" -"@tauri-apps/api": "minor:feat" ---- - -Added `getIdentifier()` function to get the application identifier configured in tauri.conf.json \ No newline at end of file diff --git a/.changes/ignore-parent-gitignore.md b/.changes/ignore-parent-gitignore.md deleted file mode 100644 index 356b465a8e8a..000000000000 --- a/.changes/ignore-parent-gitignore.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"tauri-cli": patch:bug -"@tauri-apps/cli": patch:bug ---- - -Ignore parent .gitignore files on the Tauri project path detection. diff --git a/.changes/introduce-run-return.md b/.changes/introduce-run-return.md deleted file mode 100644 index c241275f6b67..000000000000 --- a/.changes/introduce-run-return.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -tauri: 'minor:feat' -tauri-runtime: 'minor:feat' -tauri-runtime-wry: 'minor:feat' ---- - -Add `App::run_return` function. Contrary to `App::run`, this will **not** exit the process but instead return the requested exit-code. This allows the host app to perform further cleanup after Tauri has exited. `App::run_return` is not available on iOS and fallbacks to the regular `App::run` functionality. - -The `App::run_iteration` function is deprecated as part of this because calling it in a loop - as suggested by the name - will cause a busy-loop. diff --git a/.changes/is-always-on-top-api.md b/.changes/is-always-on-top-api.md deleted file mode 100644 index bc719c9f5847..000000000000 --- a/.changes/is-always-on-top-api.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@tauri-apps/api": minor:feat ---- - -Added `Window#isAlwaysOnTop` and `WebviewWindow#isAlwaysOnTop` methods. diff --git a/.changes/mousewheel-zoom.md b/.changes/mousewheel-zoom.md deleted file mode 100644 index f96c8767ebd7..000000000000 --- a/.changes/mousewheel-zoom.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tauri": patch:feat ---- - -Change webview zoom on mousewheel when the `zoom_hotkeys_enabled` configuration is set to `true`. diff --git a/.changes/path-file-name-android-api.md b/.changes/path-file-name-android-api.md deleted file mode 100644 index a27ab989e206..000000000000 --- a/.changes/path-file-name-android-api.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"tauri": minor:feat -"@tauri-apps/api": minor:feat ---- - -The `path` basename and extname APIs now accept Android content URIs, such as the paths returned by the dialog plugin. diff --git a/.changes/path-file-name-android.md b/.changes/path-file-name-android.md deleted file mode 100644 index 64aa03b9b755..000000000000 --- a/.changes/path-file-name-android.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tauri": minor:feat ---- - -Added `PathResolver::file_name` to resolve file names from content URIs on Android (leverating `std::path::Path::file_name` on other platforms). diff --git a/.changes/reload.md b/.changes/reload.md deleted file mode 100644 index e094f4eb36b3..000000000000 --- a/.changes/reload.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'tauri': 'minor:feat' -'tauri-runtime-wry': 'minor:feat' ---- - -feat: add `Webview.reload` and `WebviewWindow.reload` diff --git a/.changes/remove-autostart-nsis-uninstall.md b/.changes/remove-autostart-nsis-uninstall.md deleted file mode 100644 index c79dc83c480d..000000000000 --- a/.changes/remove-autostart-nsis-uninstall.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tauri-bundler": patch:bug ---- - -Remove the autostart plugin registry entry when the app is uninstalled (NSIS only). diff --git a/.changes/remove-unused-commands-cli.md b/.changes/remove-unused-commands-cli.md deleted file mode 100644 index c5e498208e7b..000000000000 --- a/.changes/remove-unused-commands-cli.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -tauri-cli: 'minor:feat' ---- - -Reads `build > removeUnusedCommands` from the config file and pass in the environment variables on the build command to trigger the build scripts and macros to remove unused commands based on the capabilities you defined. For this to work on inlined plugins you must add a `#![plugin()]` inside the `tauri::generate_handler![]` usage and the app manifest must be set. diff --git a/.changes/remove-unused-commands.md b/.changes/remove-unused-commands.md deleted file mode 100644 index 847ca8b0d747..000000000000 --- a/.changes/remove-unused-commands.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -tauri: 'minor:feat' -tauri-build: 'minor:feat' -tauri-codegen: 'minor:feat' -tauri-macros: 'minor:feat' -tauri-plugin: 'minor:feat' -tauri-utils: 'minor:feat' ---- - -Added `build > removeUnusedCommands` to trigger the build scripts and macros to remove unused commands based on the capabilities you defined. Note this won't be accounting for dynamically added ACLs so make sure to check it when using this. diff --git a/.changes/request-restart.md b/.changes/request-restart.md deleted file mode 100644 index 46fcbeea9b09..000000000000 --- a/.changes/request-restart.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tauri": minor:feat ---- - -Introduce `AppHandle::request_restart()` as an alternative to `AppHandle::restart()` to trigger exit event reliably diff --git a/.changes/restart-may-not-publish-exit-event.md b/.changes/restart-may-not-publish-exit-event.md deleted file mode 100644 index da23ac7fe807..000000000000 --- a/.changes/restart-may-not-publish-exit-event.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tauri": patch:bug ---- - -`AppHandle::restart()` now waits for `RunEvent::Exit` to be delivered before restarting the application. diff --git a/.changes/riscv-support.md b/.changes/riscv-support.md deleted file mode 100644 index a0f1b1906855..000000000000 --- a/.changes/riscv-support.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'tauri-cli': 'minor:enhance' -'tauri-utils': 'minor:enhance' -'tauri-bundler': 'minor:enhance' -'@tauri-apps/cli': 'minor:enhance' ---- - -Add basic support for linux riscv64 platform. diff --git a/.changes/startIntentSenderForResult.md b/.changes/startIntentSenderForResult.md deleted file mode 100644 index fa9cc36fa7ef..000000000000 --- a/.changes/startIntentSenderForResult.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tauri": patch:enhance ---- - -Add `Plugin#startIntentSenderForResult` Android API for mobile plugins. diff --git a/.changes/traffic-light-builder.md b/.changes/traffic-light-builder.md deleted file mode 100644 index 47c303628a19..000000000000 --- a/.changes/traffic-light-builder.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"tauri": "minor:feat" ---- - -Added `WebviewWindowBuilder::traffic_light_position` to set the traffic light buttons position on macOS. diff --git a/.changes/traffic-light-config.md b/.changes/traffic-light-config.md deleted file mode 100644 index f28b883f83ac..000000000000 --- a/.changes/traffic-light-config.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"tauri-utils": "minor:feat" -"tauri-runtime": "minor:feat" -"tauri-runtime-wry": "minor:feat" -"tauri": "minor:feat" -"@tauri-apps/cli": "minor:feat" -"tauri-cli": "minor:feat" ---- - -Added `trafficLightPosition` window configuration to set the traffic light buttons position on macOS. diff --git a/.changes/traffic-light-runtime.md b/.changes/traffic-light-runtime.md deleted file mode 100644 index 418fb22b53d4..000000000000 --- a/.changes/traffic-light-runtime.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"tauri-runtime": "minor:feat" -"tauri-runtime-wry": "minor:feat" ---- - -Added `traffic_light_position` window builder method to set the traffic light buttons position on macOS. diff --git a/.changes/webview-cookies-runtime.md b/.changes/webview-cookies-runtime.md deleted file mode 100644 index 8beadfbb90fa..000000000000 --- a/.changes/webview-cookies-runtime.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"tauri-runtime": minor:feat -"tauri-runtime-wry": minor:feat ---- - -Added `WebviewDispatch::cookies()` and `WebviewDispatch::cookies_for_url()`. diff --git a/Cargo.lock b/Cargo.lock index 9639ab8c9c2e..b9f60920bbe8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,7 +14,7 @@ version = "0.1.0" dependencies = [ "insta", "serde_json", - "tauri-utils 2.2.0", + "tauri-utils 2.3.0", ] [[package]] @@ -8383,7 +8383,7 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" [[package]] name = "tauri" -version = "2.3.1" +version = "2.4.0" dependencies = [ "anyhow", "bytes", @@ -8427,7 +8427,7 @@ dependencies = [ "tauri-macros", "tauri-runtime", "tauri-runtime-wry", - "tauri-utils 2.2.0", + "tauri-utils 2.3.0", "thiserror 2.0.10", "tokio", "tracing", @@ -8443,7 +8443,7 @@ dependencies = [ [[package]] name = "tauri-build" -version = "2.0.6" +version = "2.1.0" dependencies = [ "anyhow", "cargo_toml", @@ -8457,7 +8457,7 @@ dependencies = [ "serde", "serde_json", "tauri-codegen", - "tauri-utils 2.2.0", + "tauri-utils 2.3.0", "tauri-winres", "toml 0.8.19", "walkdir", @@ -8465,7 +8465,7 @@ dependencies = [ [[package]] name = "tauri-bundler" -version = "2.2.4" +version = "2.3.0" dependencies = [ "anyhow", "ar", @@ -8494,7 +8494,7 @@ dependencies = [ "tar", "tauri-icns", "tauri-macos-sign", - "tauri-utils 2.2.0", + "tauri-utils 2.3.0", "tempfile", "thiserror 2.0.10", "time", @@ -8509,7 +8509,7 @@ dependencies = [ [[package]] name = "tauri-cli" -version = "2.3.1" +version = "2.4.0" dependencies = [ "anyhow", "ar", @@ -8574,7 +8574,7 @@ dependencies = [ "tauri-icns", "tauri-macos-sign", "tauri-utils 1.6.0", - "tauri-utils 2.2.0", + "tauri-utils 2.3.0", "tempfile", "tokio", "toml 0.8.19", @@ -8599,7 +8599,7 @@ dependencies = [ [[package]] name = "tauri-codegen" -version = "2.0.5" +version = "2.1.0" dependencies = [ "base64 0.22.1", "brotli", @@ -8615,7 +8615,7 @@ dependencies = [ "serde_json", "sha2", "syn 2.0.95", - "tauri-utils 2.2.0", + "tauri-utils 2.3.0", "thiserror 2.0.10", "time", "url", @@ -8685,19 +8685,19 @@ dependencies = [ [[package]] name = "tauri-macros" -version = "2.0.5" +version = "2.1.0" dependencies = [ "heck 0.5.0", "proc-macro2", "quote", "syn 2.0.95", "tauri-codegen", - "tauri-utils 2.2.0", + "tauri-utils 2.3.0", ] [[package]] name = "tauri-plugin" -version = "2.0.5" +version = "2.1.0" dependencies = [ "anyhow", "glob", @@ -8705,7 +8705,7 @@ dependencies = [ "schemars", "serde", "serde_json", - "tauri-utils 2.2.0", + "tauri-utils 2.3.0", "toml 0.8.19", "walkdir", ] @@ -8745,7 +8745,7 @@ dependencies = [ [[package]] name = "tauri-runtime" -version = "2.4.0" +version = "2.5.0" dependencies = [ "cookie", "dpi", @@ -8755,7 +8755,7 @@ dependencies = [ "raw-window-handle", "serde", "serde_json", - "tauri-utils 2.2.0", + "tauri-utils 2.3.0", "thiserror 2.0.10", "url", "windows 0.60.0", @@ -8763,7 +8763,7 @@ dependencies = [ [[package]] name = "tauri-runtime-wry" -version = "2.4.1" +version = "2.5.0" dependencies = [ "gtk", "http 1.2.0", @@ -8778,7 +8778,7 @@ dependencies = [ "softbuffer", "tao", "tauri-runtime", - "tauri-utils 2.2.0", + "tauri-utils 2.3.0", "tracing", "url", "webkit2gtk", @@ -8794,7 +8794,7 @@ dependencies = [ "schemars", "serde", "serde_json", - "tauri-utils 2.2.0", + "tauri-utils 2.3.0", "url", ] @@ -8845,7 +8845,7 @@ dependencies = [ [[package]] name = "tauri-utils" -version = "2.2.0" +version = "2.3.0" dependencies = [ "aes-gcm", "anyhow", diff --git a/crates/tauri-build/CHANGELOG.md b/crates/tauri-build/CHANGELOG.md index 810689be147b..cb04a2a3cb4e 100644 --- a/crates/tauri-build/CHANGELOG.md +++ b/crates/tauri-build/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## \[2.1.0] + +### New Features + +- [`013f8f652`](https://www.github.com/tauri-apps/tauri/commit/013f8f652302f2d49c5ec0a075582033d8b074fb) ([#12890](https://www.github.com/tauri-apps/tauri/pull/12890) by [@Legend-Master](https://www.github.com/tauri-apps/tauri/../../Legend-Master)) Added `build > removeUnusedCommands` to trigger the build scripts and macros to remove unused commands based on the capabilities you defined. Note this won't be accounting for dynamically added ACLs so make sure to check it when using this. + +### Performance Improvements + +- [`1cd8f55ee`](https://www.github.com/tauri-apps/tauri/commit/1cd8f55eed326d61860fee62ba2d2f4464bdcfcc) ([#13033](https://www.github.com/tauri-apps/tauri/pull/13033) by [@Legend-Master](https://www.github.com/tauri-apps/tauri/../../Legend-Master)) Don't ship global `bundle.global.js` if `app > withGlobalTauri` is set to false + +### Dependencies + +- Upgraded to `tauri-utils@2.3.0` +- Upgraded to `tauri-codegen@2.1.0` + ## \[2.0.6] ### Dependencies diff --git a/crates/tauri-build/Cargo.toml b/crates/tauri-build/Cargo.toml index f68e7ebc7ae5..159ccea8d1f2 100644 --- a/crates/tauri-build/Cargo.toml +++ b/crates/tauri-build/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-build" -version = "2.0.6" +version = "2.1.0" description = "build time code to pair with https://crates.io/crates/tauri" exclude = ["CHANGELOG.md", "/target"] readme = "README.md" @@ -28,8 +28,8 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] anyhow = "1" quote = { version = "1", optional = true } -tauri-codegen = { version = "2.0.5", path = "../tauri-codegen", optional = true } -tauri-utils = { version = "2.2.0", path = "../tauri-utils", features = [ +tauri-codegen = { version = "2.1.0", path = "../tauri-codegen", optional = true } +tauri-utils = { version = "2.3.0", path = "../tauri-utils", features = [ "build", "resources", ] } diff --git a/crates/tauri-bundler/CHANGELOG.md b/crates/tauri-bundler/CHANGELOG.md index 7d64a2e739e7..93ada358e6c9 100644 --- a/crates/tauri-bundler/CHANGELOG.md +++ b/crates/tauri-bundler/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## \[2.3.0] + +### Enhancements + +- [`f981a5ee8`](https://www.github.com/tauri-apps/tauri/commit/f981a5ee8b292b9ea09329f60cecc7f688dda734) ([#12602](https://www.github.com/tauri-apps/tauri/pull/12602) by [@kxxt](https://www.github.com/tauri-apps/tauri/../../kxxt)) Add basic support for linux riscv64 platform. + +### Bug Fixes + +- [`3626b7a92`](https://www.github.com/tauri-apps/tauri/commit/3626b7a92be2890a82e8d5bd00d13887e199ea4a) ([#12759](https://www.github.com/tauri-apps/tauri/pull/12759) by [@ninjadev64](https://www.github.com/tauri-apps/tauri/../../ninjadev64)) Fix resources being bundled to the wrong path during RPM bundling when resources are specified as a map. +- [`2b960dfd9`](https://www.github.com/tauri-apps/tauri/commit/2b960dfd9fdc995bd6474958c05783ff53b64b7e) ([#12643](https://www.github.com/tauri-apps/tauri/pull/12643) by [@animeshchaudhri](https://www.github.com/tauri-apps/tauri/../../animeshchaudhri)) Remove the autostart plugin registry entry when the app is uninstalled (NSIS only). + +### Dependencies + +- Upgraded to `tauri-utils@2.3.0` + ## \[2.2.4] ### Enhancements diff --git a/crates/tauri-bundler/Cargo.toml b/crates/tauri-bundler/Cargo.toml index fa7ad5dc8c1d..f633aafcc66d 100644 --- a/crates/tauri-bundler/Cargo.toml +++ b/crates/tauri-bundler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-bundler" -version = "2.2.4" +version = "2.3.0" authors = [ "George Burton ", "Tauri Programme within The Commons Conservancy", @@ -15,7 +15,7 @@ rust-version = "1.77.2" exclude = ["CHANGELOG.md", "/target", "rustfmt.toml"] [dependencies] -tauri-utils = { version = "2.2.0", path = "../tauri-utils", features = [ +tauri-utils = { version = "2.3.0", path = "../tauri-utils", features = [ "resources", ] } image = "0.25" diff --git a/crates/tauri-cli/CHANGELOG.md b/crates/tauri-cli/CHANGELOG.md index 9851e9ddb847..5643bbb84372 100644 --- a/crates/tauri-cli/CHANGELOG.md +++ b/crates/tauri-cli/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## \[2.4.0] + +### New Features + +- [`d91bfa5cb`](https://www.github.com/tauri-apps/tauri/commit/d91bfa5cb921a078758edd45ef3eaff71358d1eb) ([#12970](https://www.github.com/tauri-apps/tauri/pull/12970) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Allow merging multiple configuration values on `tauri dev`, `tauri build`, `tauri bundle`, `tauri android dev`, `tauri android build`, `tauri ios dev` and `tauri ios build`. +- [`013f8f652`](https://www.github.com/tauri-apps/tauri/commit/013f8f652302f2d49c5ec0a075582033d8b074fb) ([#12890](https://www.github.com/tauri-apps/tauri/pull/12890) by [@Legend-Master](https://www.github.com/tauri-apps/tauri/../../Legend-Master)) Reads `build > removeUnusedCommands` from the config file and pass in the environment variables on the build command to trigger the build scripts and macros to remove unused commands based on the capabilities you defined. For this to work on inlined plugins you must add a `#![plugin()]` inside the `tauri::generate_handler![]` usage and the app manifest must be set. +- [`30f5a1553`](https://www.github.com/tauri-apps/tauri/commit/30f5a1553d3c0ce460c9006764200a9210915a44) ([#12366](https://www.github.com/tauri-apps/tauri/pull/12366) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) Added `trafficLightPosition` window configuration to set the traffic light buttons position on macOS. + +### Enhancements + +- [`f981a5ee8`](https://www.github.com/tauri-apps/tauri/commit/f981a5ee8b292b9ea09329f60cecc7f688dda734) ([#12602](https://www.github.com/tauri-apps/tauri/pull/12602) by [@kxxt](https://www.github.com/tauri-apps/tauri/../../kxxt)) Add basic support for linux riscv64 platform. + +### Bug Fixes + +- [`0c4700e99`](https://www.github.com/tauri-apps/tauri/commit/0c4700e9907f242eabe579eb6149a1d75174185c) ([#12985](https://www.github.com/tauri-apps/tauri/pull/12985) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) The cli will now accept `--bundles updater` again. It's still no-op as it has been for all v2 versions. If you want to build updater artifacts, enable `createUpdaterArtifacts` in `tauri.conf.json`. +- [`eec08a18b`](https://www.github.com/tauri-apps/tauri/commit/eec08a18b66525f5544cd30144d0553260ee3a70) ([#12998](https://www.github.com/tauri-apps/tauri/pull/12998) by [@jason89521](https://www.github.com/tauri-apps/tauri/../../jason89521)) For bun's lockfile, check both `bun.lock` and `bun.lockb`. +- [`b83921226`](https://www.github.com/tauri-apps/tauri/commit/b83921226cb3084992bb5357e7e39a09ea97843e) ([#12977](https://www.github.com/tauri-apps/tauri/pull/12977) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fix `tauri ios` commands using the wrong working directory with `bun@>1.2`. +- [`f268b3dbd`](https://www.github.com/tauri-apps/tauri/commit/f268b3dbdf313484c85b4a1f69cd7cec63049f35) ([#12871](https://www.github.com/tauri-apps/tauri/pull/12871) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Ignore parent .gitignore files on the Tauri project path detection. + +### Dependencies + +- Upgraded to `tauri-utils@2.3.0` +- Upgraded to `tauri-bundler@2.3.0` + ## \[2.3.1] ### Bug Fixes diff --git a/crates/tauri-cli/Cargo.toml b/crates/tauri-cli/Cargo.toml index d47dd5cc84dd..84ba33f4be25 100644 --- a/crates/tauri-cli/Cargo.toml +++ b/crates/tauri-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-cli" -version = "2.3.1" +version = "2.4.0" authors = ["Tauri Programme within The Commons Conservancy"] edition = "2021" rust-version = "1.77.2" @@ -47,7 +47,7 @@ sublime_fuzzy = "0.7" clap_complete = "4" clap = { version = "4", features = ["derive", "env"] } anyhow = "1" -tauri-bundler = { version = "2.2.4", default-features = false, path = "../tauri-bundler" } +tauri-bundler = { version = "2.3.0", default-features = false, path = "../tauri-bundler" } colored = "2" serde = { version = "1", features = ["derive"] } serde_json = { version = "1", features = ["preserve_order"] } @@ -57,7 +57,7 @@ shared_child = "1" duct = "0.13" toml_edit = { version = "0.22", features = ["serde"] } json-patch = "3" -tauri-utils = { version = "2.2.0", path = "../tauri-utils", features = [ +tauri-utils = { version = "2.3.0", path = "../tauri-utils", features = [ "isolation", "schema", "config-json5", diff --git a/crates/tauri-cli/config.schema.json b/crates/tauri-cli/config.schema.json index 2c8557060501..8c370572a642 100644 --- a/crates/tauri-cli/config.schema.json +++ b/crates/tauri-cli/config.schema.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://schema.tauri.app/config/2.3.1", + "$id": "https://schema.tauri.app/config/2.4.0", "title": "Config", "description": "The Tauri configuration object.\n It is read from a file where you can define your frontend assets,\n configure the bundler and define a tray icon.\n\n The configuration file is generated by the\n [`tauri init`](https://v2.tauri.app/reference/cli/#init) command that lives in\n your Tauri application source directory (src-tauri).\n\n Once generated, you may modify it at will to customize your Tauri application.\n\n ## File Formats\n\n By default, the configuration is defined as a JSON file named `tauri.conf.json`.\n\n Tauri also supports JSON5 and TOML files via the `config-json5` and `config-toml` Cargo features, respectively.\n The JSON5 file name must be either `tauri.conf.json` or `tauri.conf.json5`.\n The TOML file name is `Tauri.toml`.\n\n ## Platform-Specific Configuration\n\n In addition to the default configuration file, Tauri can\n read a platform-specific configuration from `tauri.linux.conf.json`,\n `tauri.windows.conf.json`, `tauri.macos.conf.json`, `tauri.android.conf.json` and `tauri.ios.conf.json`\n (or `Tauri.linux.toml`, `Tauri.windows.toml`, `Tauri.macos.toml`, `Tauri.android.toml` and `Tauri.ios.toml` if the `Tauri.toml` format is used),\n which gets merged with the main configuration object.\n\n ## Configuration Structure\n\n The configuration is composed of the following objects:\n\n - [`app`](#appconfig): The Tauri configuration\n - [`build`](#buildconfig): The build configuration\n - [`bundle`](#bundleconfig): The bundle configurations\n - [`plugins`](#pluginconfig): The plugins configuration\n\n Example tauri.config.json file:\n\n ```json\n {\n \"productName\": \"tauri-app\",\n \"version\": \"0.1.0\",\n \"build\": {\n \"beforeBuildCommand\": \"\",\n \"beforeDevCommand\": \"\",\n \"devUrl\": \"http://localhost:3000\",\n \"frontendDist\": \"../dist\"\n },\n \"app\": {\n \"security\": {\n \"csp\": null\n },\n \"windows\": [\n {\n \"fullscreen\": false,\n \"height\": 600,\n \"resizable\": true,\n \"title\": \"Tauri App\",\n \"width\": 800\n }\n ]\n },\n \"bundle\": {},\n \"plugins\": {}\n }\n ```", "type": "object", diff --git a/crates/tauri-cli/metadata-v2.json b/crates/tauri-cli/metadata-v2.json index 516a528a35e5..dc9a4504f5c6 100644 --- a/crates/tauri-cli/metadata-v2.json +++ b/crates/tauri-cli/metadata-v2.json @@ -1,9 +1,9 @@ { "cli.js": { - "version": "2.3.1", + "version": "2.4.0", "node": ">= 10.0.0" }, - "tauri": "2.3.1", - "tauri-build": "2.0.5", - "tauri-plugin": "2.0.4" + "tauri": "2.4.0", + "tauri-build": "2.1.0", + "tauri-plugin": "2.1.0" } diff --git a/crates/tauri-codegen/CHANGELOG.md b/crates/tauri-codegen/CHANGELOG.md index 456969e4b632..cd8de91b8732 100644 --- a/crates/tauri-codegen/CHANGELOG.md +++ b/crates/tauri-codegen/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## \[2.1.0] + +### New Features + +- [`013f8f652`](https://www.github.com/tauri-apps/tauri/commit/013f8f652302f2d49c5ec0a075582033d8b074fb) ([#12890](https://www.github.com/tauri-apps/tauri/pull/12890) by [@Legend-Master](https://www.github.com/tauri-apps/tauri/../../Legend-Master)) Added `build > removeUnusedCommands` to trigger the build scripts and macros to remove unused commands based on the capabilities you defined. Note this won't be accounting for dynamically added ACLs so make sure to check it when using this. + +### Dependencies + +- Upgraded to `tauri-utils@2.3.0` + ## \[2.0.5] ### Dependencies diff --git a/crates/tauri-codegen/Cargo.toml b/crates/tauri-codegen/Cargo.toml index 5e3a2385c666..9be1d7538009 100644 --- a/crates/tauri-codegen/Cargo.toml +++ b/crates/tauri-codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-codegen" -version = "2.0.5" +version = "2.1.0" description = "code generation meant to be consumed inside of `tauri` through `tauri-build` or `tauri-macros`" exclude = ["CHANGELOG.md", "/target"] readme = "README.md" @@ -20,7 +20,7 @@ quote = "1" syn = "2" serde = { version = "1", features = ["derive"] } serde_json = "1" -tauri-utils = { version = "2.2.0", path = "../tauri-utils", features = [ +tauri-utils = { version = "2.3.0", path = "../tauri-utils", features = [ "build", ] } thiserror = "2" diff --git a/crates/tauri-macros/CHANGELOG.md b/crates/tauri-macros/CHANGELOG.md index 014033ae366b..cc1ef8a089d2 100644 --- a/crates/tauri-macros/CHANGELOG.md +++ b/crates/tauri-macros/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## \[2.1.0] + +### New Features + +- [`013f8f652`](https://www.github.com/tauri-apps/tauri/commit/013f8f652302f2d49c5ec0a075582033d8b074fb) ([#12890](https://www.github.com/tauri-apps/tauri/pull/12890) by [@Legend-Master](https://www.github.com/tauri-apps/tauri/../../Legend-Master)) Added `build > removeUnusedCommands` to trigger the build scripts and macros to remove unused commands based on the capabilities you defined. Note this won't be accounting for dynamically added ACLs so make sure to check it when using this. + +### Dependencies + +- Upgraded to `tauri-utils@2.3.0` +- Upgraded to `tauri-codegen@2.1.0` + ## \[2.0.5] ### Dependencies diff --git a/crates/tauri-macros/Cargo.toml b/crates/tauri-macros/Cargo.toml index 19e0ef36b733..e1aea48177fa 100644 --- a/crates/tauri-macros/Cargo.toml +++ b/crates/tauri-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-macros" -version = "2.0.5" +version = "2.1.0" description = "Macros for the tauri crate." exclude = ["CHANGELOG.md", "/target"] readme = "README.md" @@ -20,8 +20,8 @@ proc-macro2 = { version = "1", features = ["span-locations"] } quote = "1" syn = { version = "2", features = ["full"] } heck = "0.5" -tauri-codegen = { version = "2.0.5", default-features = false, path = "../tauri-codegen" } -tauri-utils = { version = "2.2.0", path = "../tauri-utils" } +tauri-codegen = { version = "2.1.0", default-features = false, path = "../tauri-codegen" } +tauri-utils = { version = "2.3.0", path = "../tauri-utils" } [features] custom-protocol = [] diff --git a/crates/tauri-plugin/CHANGELOG.md b/crates/tauri-plugin/CHANGELOG.md index df2e295f53d6..121e5cd9b8b0 100644 --- a/crates/tauri-plugin/CHANGELOG.md +++ b/crates/tauri-plugin/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## \[2.1.0] + +### New Features + +- [`013f8f652`](https://www.github.com/tauri-apps/tauri/commit/013f8f652302f2d49c5ec0a075582033d8b074fb) ([#12890](https://www.github.com/tauri-apps/tauri/pull/12890) by [@Legend-Master](https://www.github.com/tauri-apps/tauri/../../Legend-Master)) Added `build > removeUnusedCommands` to trigger the build scripts and macros to remove unused commands based on the capabilities you defined. Note this won't be accounting for dynamically added ACLs so make sure to check it when using this. + +### Performance Improvements + +- [`1cd8f55ee`](https://www.github.com/tauri-apps/tauri/commit/1cd8f55eed326d61860fee62ba2d2f4464bdcfcc) ([#13033](https://www.github.com/tauri-apps/tauri/pull/13033) by [@Legend-Master](https://www.github.com/tauri-apps/tauri/../../Legend-Master)) Don't ship global `bundle.global.js` if `app > withGlobalTauri` is set to false + +### Dependencies + +- Upgraded to `tauri-utils@2.3.0` + ## \[2.0.5] ### Dependencies diff --git a/crates/tauri-plugin/Cargo.toml b/crates/tauri-plugin/Cargo.toml index 945a64f3954c..ee7dab711d48 100644 --- a/crates/tauri-plugin/Cargo.toml +++ b/crates/tauri-plugin/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin" -version = "2.0.5" +version = "2.1.0" description = "Build script and runtime Tauri plugin definitions" authors.workspace = true homepage.workspace = true @@ -30,7 +30,7 @@ runtime = [] [dependencies] anyhow = { version = "1", optional = true } serde = { version = "1", optional = true } -tauri-utils = { version = "2.2.0", default-features = false, features = [ +tauri-utils = { version = "2.3.0", default-features = false, features = [ "build", ], path = "../tauri-utils" } serde_json = { version = "1", optional = true } diff --git a/crates/tauri-runtime-wry/CHANGELOG.md b/crates/tauri-runtime-wry/CHANGELOG.md index 9f1d2a6c1b89..8048d5a12139 100644 --- a/crates/tauri-runtime-wry/CHANGELOG.md +++ b/crates/tauri-runtime-wry/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## \[2.5.0] + +### New Features + +- [`be2e6b85f`](https://www.github.com/tauri-apps/tauri/commit/be2e6b85fed226732b4a98f68cc5d72b4f8f5a13) ([#12944](https://www.github.com/tauri-apps/tauri/pull/12944) by [@Simon-Laux](https://www.github.com/tauri-apps/tauri/../../Simon-Laux)) add `Window.is_always_on_top()` and `WebviewWindow.is_always_on_top()` +- [`20c190691`](https://www.github.com/tauri-apps/tauri/commit/20c19069125c89b2d45a2127278c9ffc2df35fc2) ([#12821](https://www.github.com/tauri-apps/tauri/pull/12821) by [@Simon-Laux](https://www.github.com/tauri-apps/tauri/../../Simon-Laux)) Add `WebviewBuilder.disable_javascript` and `WebviewWindowBuilder.disable_javascript` api to disable JavaScript. +- [`658e5f5d1`](https://www.github.com/tauri-apps/tauri/commit/658e5f5d1dc1bd970ae572a42447448d064a7fee) ([#12668](https://www.github.com/tauri-apps/tauri/pull/12668) by [@thomaseizinger](https://www.github.com/tauri-apps/tauri/../../thomaseizinger)) Add `App::run_return` function. Contrary to `App::run`, this will **not** exit the process but instead return the requested exit-code. This allows the host app to perform further cleanup after Tauri has exited. `App::run_return` is not available on iOS and fallbacks to the regular `App::run` functionality. + + The `App::run_iteration` function is deprecated as part of this because calling it in a loop - as suggested by the name - will cause a busy-loop. +- [`c698a6d6f`](https://www.github.com/tauri-apps/tauri/commit/c698a6d6f3e02548444a4aa0e5220bbc6fc05c74) ([#12818](https://www.github.com/tauri-apps/tauri/pull/12818) by [@Simon-Laux](https://www.github.com/tauri-apps/tauri/../../Simon-Laux)) feat: add `Webview.reload` and `WebviewWindow.reload` +- [`30f5a1553`](https://www.github.com/tauri-apps/tauri/commit/30f5a1553d3c0ce460c9006764200a9210915a44) ([#12366](https://www.github.com/tauri-apps/tauri/pull/12366) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) Added `trafficLightPosition` window configuration to set the traffic light buttons position on macOS. +- [`30f5a1553`](https://www.github.com/tauri-apps/tauri/commit/30f5a1553d3c0ce460c9006764200a9210915a44) ([#12366](https://www.github.com/tauri-apps/tauri/pull/12366) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) Added `traffic_light_position` window builder method to set the traffic light buttons position on macOS. +- [`cedb24d49`](https://www.github.com/tauri-apps/tauri/commit/cedb24d494b84111daa3206c05196c8b89f1e994) ([#12665](https://www.github.com/tauri-apps/tauri/pull/12665) by [@charrondev](https://www.github.com/tauri-apps/tauri/../../charrondev)) Added `WebviewDispatch::cookies()` and `WebviewDispatch::cookies_for_url()`. + +### Dependencies + +- Upgraded to `tauri-runtime@2.5.0` +- Upgraded to `tauri-utils@2.3.0` + ## \[2.4.1] ### Bug Fixes diff --git a/crates/tauri-runtime-wry/Cargo.toml b/crates/tauri-runtime-wry/Cargo.toml index 7086f4da80ce..9b1ccc2e8521 100644 --- a/crates/tauri-runtime-wry/Cargo.toml +++ b/crates/tauri-runtime-wry/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-runtime-wry" -version = "2.4.1" +version = "2.5.0" description = "Wry bindings to the Tauri runtime" exclude = ["CHANGELOG.md", "/target"] readme = "README.md" @@ -24,8 +24,8 @@ wry = { version = "0.50.5", default-features = false, features = [ "linux-body", ] } tao = { version = "0.32.8", default-features = false, features = ["rwh_06"] } -tauri-runtime = { version = "2.4.0", path = "../tauri-runtime" } -tauri-utils = { version = "2.2.0", path = "../tauri-utils" } +tauri-runtime = { version = "2.5.0", path = "../tauri-runtime" } +tauri-utils = { version = "2.3.0", path = "../tauri-utils" } raw-window-handle = "0.6" http = "1" url = "2" diff --git a/crates/tauri-runtime/CHANGELOG.md b/crates/tauri-runtime/CHANGELOG.md index 52eb2b39a34e..c82b141e1185 100644 --- a/crates/tauri-runtime/CHANGELOG.md +++ b/crates/tauri-runtime/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## \[2.5.0] + +### New Features + +- [`be2e6b85f`](https://www.github.com/tauri-apps/tauri/commit/be2e6b85fed226732b4a98f68cc5d72b4f8f5a13) ([#12944](https://www.github.com/tauri-apps/tauri/pull/12944) by [@Simon-Laux](https://www.github.com/tauri-apps/tauri/../../Simon-Laux)) add `Window.is_always_on_top()` and `WebviewWindow.is_always_on_top()` +- [`658e5f5d1`](https://www.github.com/tauri-apps/tauri/commit/658e5f5d1dc1bd970ae572a42447448d064a7fee) ([#12668](https://www.github.com/tauri-apps/tauri/pull/12668) by [@thomaseizinger](https://www.github.com/tauri-apps/tauri/../../thomaseizinger)) Add `App::run_return` function. Contrary to `App::run`, this will **not** exit the process but instead return the requested exit-code. This allows the host app to perform further cleanup after Tauri has exited. `App::run_return` is not available on iOS and fallbacks to the regular `App::run` functionality. + + The `App::run_iteration` function is deprecated as part of this because calling it in a loop - as suggested by the name - will cause a busy-loop. +- [`30f5a1553`](https://www.github.com/tauri-apps/tauri/commit/30f5a1553d3c0ce460c9006764200a9210915a44) ([#12366](https://www.github.com/tauri-apps/tauri/pull/12366) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) Added `trafficLightPosition` window configuration to set the traffic light buttons position on macOS. +- [`30f5a1553`](https://www.github.com/tauri-apps/tauri/commit/30f5a1553d3c0ce460c9006764200a9210915a44) ([#12366](https://www.github.com/tauri-apps/tauri/pull/12366) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) Added `traffic_light_position` window builder method to set the traffic light buttons position on macOS. +- [`cedb24d49`](https://www.github.com/tauri-apps/tauri/commit/cedb24d494b84111daa3206c05196c8b89f1e994) ([#12665](https://www.github.com/tauri-apps/tauri/pull/12665) by [@charrondev](https://www.github.com/tauri-apps/tauri/../../charrondev)) Added `WebviewDispatch::cookies()` and `WebviewDispatch::cookies_for_url()`. + +### Dependencies + +- Upgraded to `tauri-utils@2.3.0` + ## \[2.4.0] ### Enhancements diff --git a/crates/tauri-runtime/Cargo.toml b/crates/tauri-runtime/Cargo.toml index 8871e6c02f58..94149e4f4be1 100644 --- a/crates/tauri-runtime/Cargo.toml +++ b/crates/tauri-runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-runtime" -version = "2.4.0" +version = "2.5.0" description = "Runtime for Tauri applications" exclude = ["CHANGELOG.md", "/target"] readme = "README.md" @@ -29,7 +29,7 @@ targets = [ serde = { version = "1", features = ["derive"] } serde_json = "1" thiserror = "2" -tauri-utils = { version = "2.2.0", path = "../tauri-utils" } +tauri-utils = { version = "2.3.0", path = "../tauri-utils" } http = "1" raw-window-handle = "0.6" url = { version = "2" } diff --git a/crates/tauri-schema-generator/schemas/config.schema.json b/crates/tauri-schema-generator/schemas/config.schema.json index 2c8557060501..8c370572a642 100644 --- a/crates/tauri-schema-generator/schemas/config.schema.json +++ b/crates/tauri-schema-generator/schemas/config.schema.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://schema.tauri.app/config/2.3.1", + "$id": "https://schema.tauri.app/config/2.4.0", "title": "Config", "description": "The Tauri configuration object.\n It is read from a file where you can define your frontend assets,\n configure the bundler and define a tray icon.\n\n The configuration file is generated by the\n [`tauri init`](https://v2.tauri.app/reference/cli/#init) command that lives in\n your Tauri application source directory (src-tauri).\n\n Once generated, you may modify it at will to customize your Tauri application.\n\n ## File Formats\n\n By default, the configuration is defined as a JSON file named `tauri.conf.json`.\n\n Tauri also supports JSON5 and TOML files via the `config-json5` and `config-toml` Cargo features, respectively.\n The JSON5 file name must be either `tauri.conf.json` or `tauri.conf.json5`.\n The TOML file name is `Tauri.toml`.\n\n ## Platform-Specific Configuration\n\n In addition to the default configuration file, Tauri can\n read a platform-specific configuration from `tauri.linux.conf.json`,\n `tauri.windows.conf.json`, `tauri.macos.conf.json`, `tauri.android.conf.json` and `tauri.ios.conf.json`\n (or `Tauri.linux.toml`, `Tauri.windows.toml`, `Tauri.macos.toml`, `Tauri.android.toml` and `Tauri.ios.toml` if the `Tauri.toml` format is used),\n which gets merged with the main configuration object.\n\n ## Configuration Structure\n\n The configuration is composed of the following objects:\n\n - [`app`](#appconfig): The Tauri configuration\n - [`build`](#buildconfig): The build configuration\n - [`bundle`](#bundleconfig): The bundle configurations\n - [`plugins`](#pluginconfig): The plugins configuration\n\n Example tauri.config.json file:\n\n ```json\n {\n \"productName\": \"tauri-app\",\n \"version\": \"0.1.0\",\n \"build\": {\n \"beforeBuildCommand\": \"\",\n \"beforeDevCommand\": \"\",\n \"devUrl\": \"http://localhost:3000\",\n \"frontendDist\": \"../dist\"\n },\n \"app\": {\n \"security\": {\n \"csp\": null\n },\n \"windows\": [\n {\n \"fullscreen\": false,\n \"height\": 600,\n \"resizable\": true,\n \"title\": \"Tauri App\",\n \"width\": 800\n }\n ]\n },\n \"bundle\": {},\n \"plugins\": {}\n }\n ```", "type": "object", diff --git a/crates/tauri-utils/CHANGELOG.md b/crates/tauri-utils/CHANGELOG.md index f89dd35ddac8..024aa1b5c4c0 100644 --- a/crates/tauri-utils/CHANGELOG.md +++ b/crates/tauri-utils/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## \[2.3.0] + +### New Features + +- [`013f8f652`](https://www.github.com/tauri-apps/tauri/commit/013f8f652302f2d49c5ec0a075582033d8b074fb) ([#12890](https://www.github.com/tauri-apps/tauri/pull/12890) by [@Legend-Master](https://www.github.com/tauri-apps/tauri/../../Legend-Master)) Added `build > removeUnusedCommands` to trigger the build scripts and macros to remove unused commands based on the capabilities you defined. Note this won't be accounting for dynamically added ACLs so make sure to check it when using this. +- [`30f5a1553`](https://www.github.com/tauri-apps/tauri/commit/30f5a1553d3c0ce460c9006764200a9210915a44) ([#12366](https://www.github.com/tauri-apps/tauri/pull/12366) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) Added `trafficLightPosition` window configuration to set the traffic light buttons position on macOS. + +### Enhancements + +- [`f981a5ee8`](https://www.github.com/tauri-apps/tauri/commit/f981a5ee8b292b9ea09329f60cecc7f688dda734) ([#12602](https://www.github.com/tauri-apps/tauri/pull/12602) by [@kxxt](https://www.github.com/tauri-apps/tauri/../../kxxt)) Add basic support for linux riscv64 platform. + +### Bug Fixes + +- [`3cc4ad3c3`](https://www.github.com/tauri-apps/tauri/commit/3cc4ad3c381ee081cfcf0df28ea51507ad5c9b95) ([#12884](https://www.github.com/tauri-apps/tauri/pull/12884) by [@oscartbeaumont](https://www.github.com/tauri-apps/tauri/../../oscartbeaumont)) fix: allow double `--` in permissions as command can have double `__` + +### Performance Improvements + +- [`1cd8f55ee`](https://www.github.com/tauri-apps/tauri/commit/1cd8f55eed326d61860fee62ba2d2f4464bdcfcc) ([#13033](https://www.github.com/tauri-apps/tauri/pull/13033) by [@Legend-Master](https://www.github.com/tauri-apps/tauri/../../Legend-Master)) Don't ship global `bundle.global.js` if `app > withGlobalTauri` is set to false + ## \[2.2.0] ### Enhancements diff --git a/crates/tauri-utils/Cargo.toml b/crates/tauri-utils/Cargo.toml index af56827bbbaa..cd414d1abb14 100644 --- a/crates/tauri-utils/Cargo.toml +++ b/crates/tauri-utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-utils" -version = "2.2.0" +version = "2.3.0" description = "Utilities for Tauri" exclude = ["CHANGELOG.md", "/target"] readme = "README.md" diff --git a/crates/tauri/CHANGELOG.md b/crates/tauri/CHANGELOG.md index 685e65d43169..7710e3c25958 100644 --- a/crates/tauri/CHANGELOG.md +++ b/crates/tauri/CHANGELOG.md @@ -1,5 +1,52 @@ # Changelog +## \[2.4.0] + +### New Features + +- [`be2e6b85f`](https://www.github.com/tauri-apps/tauri/commit/be2e6b85fed226732b4a98f68cc5d72b4f8f5a13) ([#12944](https://www.github.com/tauri-apps/tauri/pull/12944) by [@Simon-Laux](https://www.github.com/tauri-apps/tauri/../../Simon-Laux)) add `Window.is_always_on_top()` and `WebviewWindow.is_always_on_top()` +- [`c10802425`](https://www.github.com/tauri-apps/tauri/commit/c10802425781d6ce7aac0a8beeddf2b51120f69c) ([#12710](https://www.github.com/tauri-apps/tauri/pull/12710) by [@WSH032](https://www.github.com/tauri-apps/tauri/../../WSH032)) derive `Clone` for `tauri::ExitRequestApi`. +- [`cedb24d49`](https://www.github.com/tauri-apps/tauri/commit/cedb24d494b84111daa3206c05196c8b89f1e994) ([#12665](https://www.github.com/tauri-apps/tauri/pull/12665) by [@charrondev](https://www.github.com/tauri-apps/tauri/../../charrondev)) Added `Webview::cookies()`, `Webview::cookies_for_url()`, `WebviewWindow::cookies()` and `Webview::cookies_for_url()`. +- [`20c190691`](https://www.github.com/tauri-apps/tauri/commit/20c19069125c89b2d45a2127278c9ffc2df35fc2) ([#12821](https://www.github.com/tauri-apps/tauri/pull/12821) by [@Simon-Laux](https://www.github.com/tauri-apps/tauri/../../Simon-Laux)) Add `WebviewBuilder.disable_javascript` and `WebviewWindowBuilder.disable_javascript` api to disable JavaScript. +- [`060de5bbd`](https://www.github.com/tauri-apps/tauri/commit/060de5bbdddca384e3965a8938d89840f27c581d) ([#12837](https://www.github.com/tauri-apps/tauri/pull/12837) by [@niladrix719](https://www.github.com/tauri-apps/tauri/../../niladrix719)) Added `getIdentifier()` function to get the application identifier configured in tauri.conf.json +- [`658e5f5d1`](https://www.github.com/tauri-apps/tauri/commit/658e5f5d1dc1bd970ae572a42447448d064a7fee) ([#12668](https://www.github.com/tauri-apps/tauri/pull/12668) by [@thomaseizinger](https://www.github.com/tauri-apps/tauri/../../thomaseizinger)) Add `App::run_return` function. Contrary to `App::run`, this will **not** exit the process but instead return the requested exit-code. This allows the host app to perform further cleanup after Tauri has exited. `App::run_return` is not available on iOS and fallbacks to the regular `App::run` functionality. + + The `App::run_iteration` function is deprecated as part of this because calling it in a loop - as suggested by the name - will cause a busy-loop. +- [`5591a4f0b`](https://www.github.com/tauri-apps/tauri/commit/5591a4f0b41afb175acf188a30e86b7c09e51328) ([#12912](https://www.github.com/tauri-apps/tauri/pull/12912) by [@Daedaluz](https://www.github.com/tauri-apps/tauri/../../Daedaluz)) Change webview zoom on mousewheel when the `zoom_hotkeys_enabled` configuration is set to `true`. +- [`bcdd51025`](https://www.github.com/tauri-apps/tauri/commit/bcdd510254ebe37827e22a5ffeb944321361e97c) ([#13012](https://www.github.com/tauri-apps/tauri/pull/13012) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) The `path` basename and extname APIs now accept Android content URIs, such as the paths returned by the dialog plugin. +- [`bcdd51025`](https://www.github.com/tauri-apps/tauri/commit/bcdd510254ebe37827e22a5ffeb944321361e97c) ([#13012](https://www.github.com/tauri-apps/tauri/pull/13012) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Added `PathResolver::file_name` to resolve file names from content URIs on Android (leverating `std::path::Path::file_name` on other platforms). +- [`c698a6d6f`](https://www.github.com/tauri-apps/tauri/commit/c698a6d6f3e02548444a4aa0e5220bbc6fc05c74) ([#12818](https://www.github.com/tauri-apps/tauri/pull/12818) by [@Simon-Laux](https://www.github.com/tauri-apps/tauri/../../Simon-Laux)) feat: add `Webview.reload` and `WebviewWindow.reload` +- [`013f8f652`](https://www.github.com/tauri-apps/tauri/commit/013f8f652302f2d49c5ec0a075582033d8b074fb) ([#12890](https://www.github.com/tauri-apps/tauri/pull/12890) by [@Legend-Master](https://www.github.com/tauri-apps/tauri/../../Legend-Master)) Added `build > removeUnusedCommands` to trigger the build scripts and macros to remove unused commands based on the capabilities you defined. Note this won't be accounting for dynamically added ACLs so make sure to check it when using this. +- [`35018eed0`](https://www.github.com/tauri-apps/tauri/commit/35018eed026d101273d758fca049ba91bfc891fa) ([#12996](https://www.github.com/tauri-apps/tauri/pull/12996) by [@Legend-Master](https://www.github.com/tauri-apps/tauri/../../Legend-Master)) Introduce `AppHandle::request_restart()` as an alternative to `AppHandle::restart()` to trigger exit event reliably +- [`30f5a1553`](https://www.github.com/tauri-apps/tauri/commit/30f5a1553d3c0ce460c9006764200a9210915a44) ([#12366](https://www.github.com/tauri-apps/tauri/pull/12366) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) Added `WebviewWindowBuilder::traffic_light_position` to set the traffic light buttons position on macOS. +- [`30f5a1553`](https://www.github.com/tauri-apps/tauri/commit/30f5a1553d3c0ce460c9006764200a9210915a44) ([#12366](https://www.github.com/tauri-apps/tauri/pull/12366) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) Added `trafficLightPosition` window configuration to set the traffic light buttons position on macOS. + +### Enhancements + +- [`55ffa23c9`](https://www.github.com/tauri-apps/tauri/commit/55ffa23c9e4075ec3b3e64f808398b323db79e6a) ([#12855](https://www.github.com/tauri-apps/tauri/pull/12855) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fix docs.rs build for mobile targets. +- [`f2c94aaca`](https://www.github.com/tauri-apps/tauri/commit/f2c94aaca074bf15164d08e959b67f67f4c934ed) ([#12682](https://www.github.com/tauri-apps/tauri/pull/12682) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Add `Plugin#startIntentSenderForResult` Android API for mobile plugins. + +### Bug Fixes + +- [`755533c51`](https://www.github.com/tauri-apps/tauri/commit/755533c518391824c7393a16577d10db3aa91d19) ([#12876](https://www.github.com/tauri-apps/tauri/pull/12876) by [@amrbashir](https://www.github.com/tauri-apps/tauri/../../amrbashir)) Removed `TSend: Clone` requirement for `Channel` by implementing `Clone` manually instead of driving it. +- [`f98598817`](https://www.github.com/tauri-apps/tauri/commit/f98598817ca5b481d9de7a661ad00d14fd6b3b72) ([#12870](https://www.github.com/tauri-apps/tauri/pull/12870) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Update path plugin to use older dataDir API on SDK < 24. +- [`f67a4a6bf`](https://www.github.com/tauri-apps/tauri/commit/f67a4a6bfec8ba21ae75f58c6fc74f12a07d4abf) ([#12971](https://www.github.com/tauri-apps/tauri/pull/12971) by [@WofWca](https://www.github.com/tauri-apps/tauri/../../WofWca)) Fix `tauri::AssetResolver::get` and `tauri::AssetResolver::get_for_scheme` + skipping the first character of the `path` even if it's not a slash (/). +- [`dc90cd391`](https://www.github.com/tauri-apps/tauri/commit/dc90cd3919e6760ab28c8b781e5c864bf836240e) ([#12911](https://www.github.com/tauri-apps/tauri/pull/12911) by [@Daedaluz](https://www.github.com/tauri-apps/tauri/../../Daedaluz)) Listen for `Ctrl +` or `Cmd +` to support zoom functionality in swedish keyboard layouts. +- [`b05f82d35`](https://www.github.com/tauri-apps/tauri/commit/b05f82d35ba068bfeb44193b204fbfe365415a25) ([#12313](https://www.github.com/tauri-apps/tauri/pull/12313) by [@anatawa12](https://www.github.com/tauri-apps/tauri/../../anatawa12)) `AppHandle::restart()` now waits for `RunEvent::Exit` to be delivered before restarting the application. + +### Performance Improvements + +- [`1cd8f55ee`](https://www.github.com/tauri-apps/tauri/commit/1cd8f55eed326d61860fee62ba2d2f4464bdcfcc) ([#13033](https://www.github.com/tauri-apps/tauri/pull/13033) by [@Legend-Master](https://www.github.com/tauri-apps/tauri/../../Legend-Master)) Don't ship global `bundle.global.js` if `app > withGlobalTauri` is set to false + +### Dependencies + +- Upgraded to `tauri-runtime@2.5.0` +- Upgraded to `tauri-runtime-wry@2.5.0` +- Upgraded to `tauri-utils@2.3.0` +- Upgraded to `tauri-build@2.1.0` +- Upgraded to `tauri-macros@2.1.0` + ## \[2.3.1] ### Bug Fixes diff --git a/crates/tauri/Cargo.toml b/crates/tauri/Cargo.toml index d6f92c109d09..210087b2a850 100644 --- a/crates/tauri/Cargo.toml +++ b/crates/tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri" -version = "2.3.1" +version = "2.4.0" description = "Make tiny, secure apps for all desktop platforms with Tauri" exclude = ["/test", "/.scripts", "CHANGELOG.md", "/target"] readme = "README.md" @@ -57,12 +57,12 @@ uuid = { version = "1", features = ["v4"], optional = true } url = "2" anyhow = "1" thiserror = "2" -tauri-runtime = { version = "2.4.0", path = "../tauri-runtime" } -tauri-macros = { version = "2.0.5", path = "../tauri-macros" } -tauri-utils = { version = "2.2.0", features = [ +tauri-runtime = { version = "2.5.0", path = "../tauri-runtime" } +tauri-macros = { version = "2.1.0", path = "../tauri-macros" } +tauri-utils = { version = "2.3.0", features = [ "resources", ], path = "../tauri-utils" } -tauri-runtime-wry = { version = "2.4.1", path = "../tauri-runtime-wry", optional = true } +tauri-runtime-wry = { version = "2.5.0", path = "../tauri-runtime-wry", optional = true } getrandom = "0.2" serde_repr = "0.1" http = "1" @@ -149,8 +149,8 @@ swift-rs = "1" [build-dependencies] glob = "0.3" heck = "0.5" -tauri-build = { path = "../tauri-build/", default-features = false, version = "2.0.6" } -tauri-utils = { path = "../tauri-utils/", version = "2.2.0", features = [ +tauri-build = { path = "../tauri-build/", default-features = false, version = "2.1.0" } +tauri-utils = { path = "../tauri-utils/", version = "2.3.0", features = [ "build", ] } diff --git a/packages/api/CHANGELOG.md b/packages/api/CHANGELOG.md index 773d222ead15..739cdcfdd792 100644 --- a/packages/api/CHANGELOG.md +++ b/packages/api/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## \[2.4.0] + +### New Features + +- [`d8059bad3`](https://www.github.com/tauri-apps/tauri/commit/d8059bad3cc922dc369c39ca1cfa49aaec31322e) ([#12900](https://www.github.com/tauri-apps/tauri/pull/12900) by [@Simon-Laux](https://www.github.com/tauri-apps/tauri/../../Simon-Laux)) add `AppHandle.fetch_data_store_identifiers` and `AppHandle.remove_data_store` (macOS and iOS only) +- [`20c190691`](https://www.github.com/tauri-apps/tauri/commit/20c19069125c89b2d45a2127278c9ffc2df35fc2) ([#12821](https://www.github.com/tauri-apps/tauri/pull/12821) by [@Simon-Laux](https://www.github.com/tauri-apps/tauri/../../Simon-Laux)) Added `WindowOptions::javascriptDisabled` and `WebviewOptions::javascriptDisabled`. +- [`060de5bbd`](https://www.github.com/tauri-apps/tauri/commit/060de5bbdddca384e3965a8938d89840f27c581d) ([#12837](https://www.github.com/tauri-apps/tauri/pull/12837) by [@niladrix719](https://www.github.com/tauri-apps/tauri/../../niladrix719)) Added `getIdentifier()` function to get the application identifier configured in tauri.conf.json +- [`be2e6b85f`](https://www.github.com/tauri-apps/tauri/commit/be2e6b85fed226732b4a98f68cc5d72b4f8f5a13) ([#12944](https://www.github.com/tauri-apps/tauri/pull/12944) by [@Simon-Laux](https://www.github.com/tauri-apps/tauri/../../Simon-Laux)) Added `Window#isAlwaysOnTop` and `WebviewWindow#isAlwaysOnTop` methods. +- [`bcdd51025`](https://www.github.com/tauri-apps/tauri/commit/bcdd510254ebe37827e22a5ffeb944321361e97c) ([#13012](https://www.github.com/tauri-apps/tauri/pull/13012) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) The `path` basename and extname APIs now accept Android content URIs, such as the paths returned by the dialog plugin. + +### Bug Fixes + +- [`3a74dc8f3`](https://www.github.com/tauri-apps/tauri/commit/3a74dc8f3421112b1d0a32b6a432606b1f33cc25) ([#12935](https://www.github.com/tauri-apps/tauri/pull/12935) by [@tk103331](https://www.github.com/tauri-apps/tauri/../../tk103331)) Fix `Webview.close` always fail with command not found + ## \[2.3.0] ### Enhancements diff --git a/packages/api/package.json b/packages/api/package.json index 4d34116b52b8..bc767f803a5e 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/api", - "version": "2.3.0", + "version": "2.4.0", "description": "Tauri API definitions", "funding": { "type": "opencollective", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 6c5e40f54391..cea3c7bbe6b2 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog +## \[2.4.0] + +### New Features + +- [`d91bfa5cb`](https://www.github.com/tauri-apps/tauri/commit/d91bfa5cb921a078758edd45ef3eaff71358d1eb) ([#12970](https://www.github.com/tauri-apps/tauri/pull/12970) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Allow merging multiple configuration values on `tauri dev`, `tauri build`, `tauri bundle`, `tauri android dev`, `tauri android build`, `tauri ios dev` and `tauri ios build`. +- [`30f5a1553`](https://www.github.com/tauri-apps/tauri/commit/30f5a1553d3c0ce460c9006764200a9210915a44) ([#12366](https://www.github.com/tauri-apps/tauri/pull/12366) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) Added `trafficLightPosition` window configuration to set the traffic light buttons position on macOS. + +### Enhancements + +- [`f981a5ee8`](https://www.github.com/tauri-apps/tauri/commit/f981a5ee8b292b9ea09329f60cecc7f688dda734) ([#12602](https://www.github.com/tauri-apps/tauri/pull/12602) by [@kxxt](https://www.github.com/tauri-apps/tauri/../../kxxt)) Add basic support for linux riscv64 platform. + +### Bug Fixes + +- [`0c4700e99`](https://www.github.com/tauri-apps/tauri/commit/0c4700e9907f242eabe579eb6149a1d75174185c) ([#12985](https://www.github.com/tauri-apps/tauri/pull/12985) by [@FabianLars](https://www.github.com/tauri-apps/tauri/../../FabianLars)) The cli will now accept `--bundles updater` again. It's still no-op as it has been for all v2 versions. If you want to build updater artifacts, enable `createUpdaterArtifacts` in `tauri.conf.json`. +- [`b83921226`](https://www.github.com/tauri-apps/tauri/commit/b83921226cb3084992bb5357e7e39a09ea97843e) ([#12977](https://www.github.com/tauri-apps/tauri/pull/12977) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Fix `tauri ios` commands using the wrong working directory with `bun@>1.2`. +- [`f268b3dbd`](https://www.github.com/tauri-apps/tauri/commit/f268b3dbdf313484c85b4a1f69cd7cec63049f35) ([#12871](https://www.github.com/tauri-apps/tauri/pull/12871) by [@lucasfernog](https://www.github.com/tauri-apps/tauri/../../lucasfernog)) Ignore parent .gitignore files on the Tauri project path detection. + +### Dependencies + +- Upgraded to `tauri-cli@2.4.0` + ## \[2.3.1] ### Dependencies diff --git a/packages/cli/package.json b/packages/cli/package.json index 2ab37a8e418c..fa9771af1045 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/cli", - "version": "2.3.1", + "version": "2.4.0", "description": "Command line interface for building Tauri apps", "funding": { "type": "opencollective",