Merge branch 'dev' into prevent-window-overflow

This commit is contained in:
Tony 2024-08-08 10:57:34 +08:00
commit d7fd244b25
No known key found for this signature in database
GPG Key ID: 34BDD3EA27824956
548 changed files with 8611 additions and 5607 deletions

View File

@ -1,5 +0,0 @@
---
"tauri": "patch:bug"
---
Export `tauri::UriSchemeResponder`.

View File

@ -1,6 +0,0 @@
---
"tauri-build": patch:enhance
"tauri-utils": patch:enhance
---
Fallback to an empty permission set if the plugin did not define its `default` permissions.

View File

@ -1,8 +0,0 @@
---
"tauri-utils": patch:enhance
"tauri": patch:enhance
"tauri-cli": patch:enhance
"@tauri-apps/cli": patch:enhance
---
Changed the permission and capability platforms to be optional.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:breaking
---
Removed the lifetime parameter from `ipc::GlobalScope` and `ipc::CommandScope`.

View File

@ -1,6 +0,0 @@
---
"tauri": patch:breaking
"tauri-utils": patch:breaking
---
The ACL configuration for remote URLs now uses the URLPattern standard instead of glob patterns.

View File

@ -1,5 +0,0 @@
---
"tauri": 'patch:enhance'
---
A file-drop now allows sub-directories recursively when the path is a directory.

View File

@ -1,6 +1,6 @@
---
"@tauri-apps/cli": patch:bug
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fixes dev watcher on mobile dev.
Fixes running `android dev --open`.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:changes
"@tauri-apps/cli": patch:changes
---
Migrate to new Android buildFeatures.buildConfig format.

View File

@ -1,7 +0,0 @@
---
"tauri": "patch:feat"
"@tauri-apps/api": "patch:feat"
---
Add `defaultWindowIcon` to the JS `app` module to retrieve the default window icon in JS.

View File

@ -1,5 +0,0 @@
---
"@tauri-apps/api": "patch:bug"
---
Fix `isTauri` incorrect return type.

View File

@ -1,6 +0,0 @@
---
"@tauri-apps/api": "patch:feat"
---
Add `isTauri` function in `core` module to check whether running inside tauri or not.

View File

@ -1,5 +0,0 @@
---
"@tauri-apps/api": "patch:bug"
---
Fix `Window/Webview/WebviewWindow.setSize`, `Window/Webview/WebviewWindow.setPostion`, `Window/WebviewWindow.setMinSize`, `Window/WebviewWindow.setMaxSize`, `Window/WebviewWindow.setCursorPosition` and `Menu/Submenu.popup` methods failing with invalid args.

View File

@ -1,5 +0,0 @@
---
'@tauri-apps/api': 'patch:bug'
---
Re-added the `TauriEvent.WINDOW_CREATED` (`tauri://window-created`) event.

View File

@ -1,5 +0,0 @@
---
tauri: patch:enhance
---
Tauri's built-in commands for the JS api will now return simplified paths on Windows, removing the `\\?\` prefix.

View File

@ -1,9 +0,0 @@
---
'@tauri-apps/api': 'patch:breaking'
---
Renamed the following enum variants of `TauriEvent` enum:
- `TauriEvent.WEBVIEW_FILE_DROP` -> `TauriEvent.FILE_DROP`
- `TauriEvent.WEBVIEW_FILE_DROP_HOVER` -> `TauriEvent.FILE_DROP_HOVER`
- `TauriEvent.WEBVIEW_FILE_DROP_CANCELLED` -> `TauriEvent.FILE_DROP_CANCELLED`

View File

@ -1,5 +0,0 @@
---
'@tauri-apps/api': 'patch:feat'
---
Add `TrayIcon.getById` and `TrayIcon.removeById` static methods.

View File

@ -1,5 +0,0 @@
---
"@tauri-apps/api": patch:bug
---
Set the `exports > types` package.json field.

View File

@ -1,5 +0,0 @@
---
'@tauri-apps/api': 'patch:feat'
---
Add a new `webviewWindow` module that exports `WebviewWindow` class and related methods such as `getCurrent` and `getAll`.

View File

@ -1,5 +0,0 @@
---
'@tauri-apps/api': 'patch:breaking'
---
Move `WebviewWindow` class from `webview` module to a new `webviewWindow` module.

View File

@ -1,5 +0,0 @@
---
'@tauri-apps/api': 'patch:feat'
---
Add `Window.onFileDropEvent` method.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:enhance
---
Added `AppHandle::set_activation_policy` for macOS.

View File

@ -1,9 +0,0 @@
---
"tauri": patch:enhance
"tauri-build": patch:breaking
"tauri-utils": patch:breaking
"tauri-plugin": patch:breaking
"tauri-codegen": patch:breaking
---
Allow defining permissions for the application commands via `tauri_build::Attributes::app_manifest`.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:feat
---
Add `app-region: drag` to HTML elements with `data-tauri-drag-region` on Windows, only WebView2 123+, which should fix dragging using touch.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": "patch:bug"
---
Fixed an issue that caused the AppImage to segfault on start due to an incorrect .desktop file.

View File

@ -0,0 +1,6 @@
---
"tauri": patch:enhance
"tauri-codegen": patch:enhance
---
Enhance `AssetResolver::get` in development mode by reading distDir directly as a fallback to the embedded assets.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:feat
---
The `Assets` trait now include a `setup` method that lets you run initialization code for your custom asset provider.

View File

@ -1,15 +0,0 @@
---
"tauri": major:feat
"tauri-plugin": major:feat
"tauri-build": major:feat
"tauri-utils": major:feat
"tauri-codegen": major:feat
"tauri-macros": major:feat
"tauri-runtime": major:feat
"tauri-runtime-wry": major:feat
"tauri-cli": major:feat
"@tauri-apps/api": major:feat
"@tauri-apps/cli": major:feat
---
Move to beta!

View File

@ -1,5 +0,0 @@
---
'tauri': patch:enhance
---
Improve the error message that is shown when deserializing the Tauri plugin config.

View File

@ -1,5 +0,0 @@
---
"tauri-build": patch:enhance
---
Check for Android version code before building the package in release mode.

View File

@ -1,6 +0,0 @@
---
"tauri-build": "patch:bug"
---
Avoid copying resources if the target path is the same as source.

View File

@ -1,5 +0,0 @@
---
"tauri-build": patch:bug
---
Fixed generation of capability schema for permissions field which previously disallowed mixed (strings and objects) permission definition.

View File

@ -1,6 +0,0 @@
---
"tauri-bundler": "patch:feat"
---
Add support for NSIS installer hooks providing a path to a `.nsh` file in `bundle > windows > nsis > installer_hooks` key in `tauri.conf.json`.

View File

@ -1,5 +0,0 @@
---
"tauri-utils": patch:breaking
---
Changed `NsisSettings::compression` field from `Option<NsisCompression>` to just `NsisCompression`

View File

@ -1,5 +0,0 @@
---
'tauri-bundler': 'patch:bug'
---
Fixed an issue that caused the msi bundler to crash when deep link schemes were configured.

View File

@ -1,7 +0,0 @@
---
"tauri-utils": "minor:feat"
"tauri-bundler": "minor:feat"
---
Add `bundle > homepage` option, if unset, it will fallback to `homepage` defined in `Cargo.toml`.

View File

@ -1,5 +0,0 @@
---
'tauri-bundler': 'patch:bug'
---
Fix NSIS installer always containing a license page even though `licenseFile` option is not set in the config.

View File

@ -1,6 +0,0 @@
---
"tauri-bundler": "patch:feat"
---
Expose `{{long_description}}` variable for custom templates.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": "patch:bug"
---
Fix NSIS installer deep links registration.

View File

@ -1,5 +0,0 @@
---
'tauri-bundler': 'patch:bug'
---
Fix encoding of NSIS license page when using a license file without a BOM.

View File

@ -1,5 +0,0 @@
---
'tauri-bundler': 'patch:enhance'
---
Update `nsis_tauri_utils` plugin to `0.3` and use the built-in NSIS download plugin, which reduces the NSIS installer size by 775kb.

View File

@ -1,5 +0,0 @@
---
'tauri-bundler': 'patch:bug'
---
The NSIS uninstaller now won't mindlessly try to remove the whole installation folder when the "Remove application data" checkbox was ticked. This prevents data loss when the app was installed in a folder which contained other files.

View File

@ -1,5 +0,0 @@
---
'tauri-bundler': 'patch:bug'
---
Fixed an issue causing the NSIS bundler to install resources incorrectly when the installer was built on a non-Windows system.

View File

@ -1,6 +0,0 @@
---
"tauri-bundler": "patch:bug"
---
Use the `productName` for `rpm` package name instead of main binary name, to be consistent with other bundle types.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch:bug
---
Don't fallback to `licenseFile` and use only `license` field when building RPM.

View File

@ -1,6 +0,0 @@
---
"tauri-bundler": "patch:enhance"
---
Added `/UPDATE` flag for NSIS installer which will make the installer avoid deleting app data and re-creating shortcuts.

View File

@ -1,6 +0,0 @@
---
"tauri": patch:enhance
"tauri-utils": patch:enhance
---
Add `webviews` array on the capability for usage on multiwebview contexts.

View File

@ -1,7 +0,0 @@
---
"tauri-build": patch:breaking
"tauri-utils": patch:enhance
"tauri-codegen": patch:enhance
---
Added a new configuration option `tauri.conf.json > app > security > capabilities` to reference existing capabilities and inline new ones. If it is empty, all capabilities are still included preserving the current behavior.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:feat
---
Added `CapabilityBuilder::platform` to link the runtime capability with a specific platform.

View File

@ -1,7 +0,0 @@
---
"tauri-utils": patch:breaking
"tauri-cli": patch:breaking
"@tauri-apps/cli": patch:breaking
---
Changed the capability format to allow configuring both `remote: { urls: Vec<String> }` and `local: bool (default: true)` instead of choosing one on the `context` field.

View File

@ -0,0 +1,5 @@
---
"tauri": patch:bug
---
Fix Specta remote implementation target for `Channel`.

View File

@ -0,0 +1,5 @@
---
"tauri-bundler": patch:bug
---
Correct nsis pre-uninstall hook to post-uninstall

View File

@ -0,0 +1,6 @@
---
"tauri-cli": patch:enhance
"@tauri-apps/cli": patch:enhance
---
Check if the Rust library contains the symbols required at runtime for Android and iOS apps.

View File

@ -1,5 +0,0 @@
---
tauri: patch:bug
---
Fix resource tables not cleaned up on exit which causes tray icon inside resource tables not cleaned up on exit

View File

@ -1,12 +0,0 @@
---
'tauri-cli': 'patch:feat'
'@tauri-apps/cli': 'patch:feat'
---
Add new subcommands for managing permissions and cababilities:
- `tauri permission new`
- `tauri permission add`
- `tauri permission rm`
- `tauri permission ls`
- `tauri capability new`

View File

@ -1,6 +0,0 @@
---
"tauri-cli": "minor:feat"
"@tauri-apps/cli": "minor:feat"
---
Support specifying a version for `tauri add` subcommand, for example: `tauri add window-state@2.0.0-beta.2`

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Add a blank LaunchScreen.storyboard to the iOS project init template to pass the App Store validation.

View File

@ -1,5 +0,0 @@
---
"tauri-cli": "patch:enhance"
---
On Android, allow using Kotlin keywords as identifiers and escape them in templates.

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Add `--no-bundle` flag for `tauri build` command to skip bundling. Previously `none` was used to skip bundling, it will now be treated as invalid format and a warning will be emitted instead.

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Upgrade `heck` to v0.5 to better support Chinese and Japanese product name, because Chinese do not have word separation.

View File

@ -0,0 +1,6 @@
---
"tauri-cli": "patch:enhance"
"@tauri-apps/cli": "patch:enhance"
---
Changes the default behavior of the `dev` command to only expose to localhost (`127.0.0.1`) instead of the default system interface.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": "patch:enhance"
"@tauri-apps/cli": "patch:enhance"
---
Ignore `.DS_Store` by default for `tauri dev` hot reloads.

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Allow empty responses for `devUrl`, `beforeDevCommand` and `beforeBuildCommands` questions in `tauri init`.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch
"@tauri-apps/cli": patch
---
Show full expected path of `frontendDist` when if can't be found.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": "patch:bug"
"@tauri-apps/cli": "patch:bug"
---
Exit `tauri icon` with non-zero code when it fails.

View File

@ -1,5 +0,0 @@
---
"tauri-cli": patch:enhance
---
Use `$CARGO_MANIFEST_DIR` when including templates at build-time.

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Fix wrong migration of `clipboard` and `globalShortcut` modules

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Gracefully handle Non-UTF8 files when using `tauri migrate`

View File

@ -1,7 +0,0 @@
---
"tauri-cli": "patch:bug"
"@tauri-apps/cli": "patch:bug"
---
Fix `tauri migrate` trying to migrate to a non-existing plugin.

View File

@ -0,0 +1,6 @@
---
"tauri-cli": patch:enhance
"@tauri-apps/cli": patch:enhance
---
Check if identifier or lib name changed when running mobile commands.

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Fixes Android and iOS project initialization when the Tauri CLI is on a different disk partition.

View File

@ -1,6 +0,0 @@
---
"@tauri-apps/cli": patch:enhance
"tauri-cli": patch:enhance
---
`openssl` is no longer a required dependency on macOS.

View File

@ -1,7 +0,0 @@
---
"tauri-cli": "patch:breaking"
"@tauri-apps/cli": "patch:breaking"
---
Avoid renaming main binary to product name and perserve the name generated by cargo.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fix `tauri plugin android init` printing invalid code that has a missing closing `"`.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": "patch:enhance"
"@tauri-apps/cli": "patch:enhance"
---
Enhance the plugin template to include `permissions/default.toml` and default capabilities file for the example application.

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Add plugins to `Cargo.toml` when using `tauri migrate`

View File

@ -1,6 +0,0 @@
---
"tauri-cli": "patch:bug"
"@tauri-apps/cli": "patch:bug"
---
Fix parsing of cargo profile when using `--profile=<profile>` syntax.

View File

@ -1,5 +0,0 @@
---
"tauri-cli": patch:deps
---
Update dependencies, fix `log` compilation issue.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fix bundling when `plugins > updater > windows > installerArgs` are set in `tauri.conf.json`

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
On Windows, fixed `tauri info` fails to detect the build tool when the system language is CJK.

View File

@ -1,5 +0,0 @@
---
"tauri-cli": "patch:bug"
---
Use `windows-sys` crate instead of `winapi` which fixes installing the published cli from crates.io using `cargo install tauri-cli --version "^2.0.0-beta"`.

View File

@ -1,6 +0,0 @@
---
"tauri": "patch:bug"
"tauri-runtime-wry": "patch"
---
Fix `closable`, `maximizable` and `minimizable` options not taking effect when used in tauri.conf.json or from JS APIs.

View File

@ -1,6 +0,0 @@
---
"tauri-macros": patch:enhance
"tauri-codegen": patch:enhance
---
The `generate_context` proc macro now accepts a `capabilities` attribute where the value is an array of file paths that can be [conditionally compiled](https://doc.rust-lang.org/reference/conditional-compilation.html). These capabilities are added to the application along the capabilities defined in the Tauri configuration file.

View File

@ -1,6 +0,0 @@
---
"tauri-macros": patch:feat
"tauri-codegen": patch:feat
---
The `Context` codegen now accepts a `assets` input to define a custom `tauri::Assets` implementation.

View File

@ -1,6 +0,0 @@
---
'tauri-utils': 'patch:bug'
'tauri': 'patch:bug'
---
Fix compile time error in context generation when using `app.windows.windowEffects.color`

View File

@ -188,10 +188,14 @@
"path": "./core/tauri-utils",
"manager": "rust"
},
"tauri-macos-sign": {
"path": "./tooling/macos-sign",
"manager": "rust"
},
"tauri-bundler": {
"path": "./tooling/bundler",
"manager": "rust",
"dependencies": ["tauri-utils"]
"dependencies": ["tauri-utils", "tauri-macos-sign"]
},
"tauri-runtime": {
"path": "./core/tauri-runtime",
@ -262,7 +266,7 @@
"tauri-cli": {
"path": "./tooling/cli",
"manager": "rust",
"dependencies": ["tauri-bundler", "tauri-utils"],
"dependencies": ["tauri-bundler", "tauri-utils", "tauri-macos-sign"],
"postversion": [
"cargo check",
"cargo build --manifest-path ../../core/tauri-config-schema/Cargo.toml"

View File

@ -1,5 +0,0 @@
---
"tauri": patch:breaking
---
The `Context` struct and the `Assets` trait now takes a `R: Runtime` generic.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:breaking
---
`Context::assets` now returns `&dyn Assets` instead of `&A` generic.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:breaking
---
The `Context` type no longer uses the `<A: Assets>` generic so the assets implementation can be swapped with `Context::assets_mut`.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:breaking
---
Removed `Context::assets_mut` and added `Context::set_assets`.

View File

@ -1,5 +0,0 @@
---
"tauri-utils": patch:enhance
---
The `Context` struct now includes the runtime authority instead of the resolved ACL. This does not impact most applications.

View File

@ -1,6 +0,0 @@
---
"tauri-build": "patch:bug"
---
Fix tauri always rebuilding even if source code didn't change.

View File

@ -1,5 +0,0 @@
---
'tauri': 'patch:breaking'
---
Removed `App/AppHandle::tray` and `App/AppHandle::remove_tray`, use `App/AppHandle::tray_by_id` and `App/AppHandle::remove_tray_by_id` instead. If these APIs were used to access tray icon configured in `tauri.conf.json`, you can use `App/AppHandle::tray_by_id` with ID `main` or the configured value.

View File

@ -1,6 +0,0 @@
---
'tauri': 'patch:enhance'
'tauri-runtime-wry': 'patch'
---
Enhance centering a newly created window, it will no longer jump to center after being visible.

View File

@ -1,5 +0,0 @@
---
tauri: 'patch:bug'
---
Fixed an issue preventing webview/window creation events to not be emitted. This also fixed the `getByLabel` and `getAll` JavaScript functions.

View File

@ -1,5 +0,0 @@
---
'tauri': 'patch:bug'
---
Fix `emit` and `emit_to` (when used with `EventTarget::Any`) always skipping the webview listeners.

View File

@ -1,6 +0,0 @@
---
"tauri": "patch:breaking"
---
Include binary path in `Env.args_os`, previously it was skipped.

View File

@ -1,6 +0,0 @@
---
"tauri": "patch:feat"
---
Add `window.isTauri` to check whether running inside tauri or not.

View File

@ -1,5 +0,0 @@
---
'tauri': 'patch:bug'
---
Fix JS event listeners registered using JS `listen` api with `EventTarget::Any` never fired.

View File

@ -1,5 +0,0 @@
---
"tauri": "patch:breaking"
---
Changed `JsImage::into_img` to take a reference to a `ResourceTable` instead of a `Manager`.

View File

@ -1,5 +0,0 @@
---
"tauri": "patch:bug"
---
Fix deadlock when using the menu/tray/image JS APIs.

Some files were not shown because too many files have changed in this diff Show More