chore: promote to v2 stable (#11198)

* chore: promote to v2 stable

- deletes all RC change files
- adds a new change file to promote all packages to v2 stable
- manually fix the tauri-driver, tauri-macos-sign, tauri-bundler versions so the next covector bump will move them to 2.0.0
- manually patch the metadata-v2.json file so the next covector update will mark all packages as 2.0.0

* ignore audit vuln without fixes

* bump msrv to 1.78

* run covector version

* fix sync lockfile covector

* #[allow(clippy::manual_inspect)]
This commit is contained in:
Lucas Fernandes Nogueira 2024-10-02 09:42:45 -03:00 committed by GitHub
parent 11b5e9c525
commit c7b9a53525
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
235 changed files with 634 additions and 1742 deletions

9
.cargo/audit.toml Normal file
View File

@ -0,0 +1,9 @@
[advisories]
ignore = [
# rsa Marvin Attack
"RUSTSEC-2023-0071",
# difference is unmaintained
"RUSTSEC-2020-0095",
# proc-macro-error is unmaintained
"RUSTSEC-2024-0370",
]

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Include notarization error output in the error message if it fails.

View File

@ -1,5 +0,0 @@
---
"tauri-build": patch:feat
---
Added `InlinedPlugin::default_permission` to autogenerate the default permission of an inlined plugin.

View File

@ -1,7 +0,0 @@
---
"tauri": patch:breaking
"tauri-runtime-wry": patch:breaking
---
The `linux-ipc-protocol` feature is now always enabled, so the Cargo feature flag was removed.
This increases the minimum webkit2gtk version to a release that does not affect the minimum target Linux distros for Tauri apps.

View File

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

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Update gradle to 8.9 and the gradle android plugin to 8.5.1 in the android templates (requires latest Android Studio). This should add support for Java 21 but Java 17 keeps being the recommended version.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fixes `android dev` port forward failing under some conditions, add better logging and error handling.

View File

@ -1,5 +0,0 @@
---
"@tauri-apps/api": patch:enhance
---
Added `PermissionState`, `checkPermissions` and `requestPermissions` base APIs to the core module, designed for plugin authors to extend.

View File

@ -1,6 +0,0 @@
---
"@tauri-apps/api": "patch:feat"
---
Add `toPhysical` method on `LogicalPositon` and `LogicalSize` classes.

View File

@ -1,7 +0,0 @@
---
"tauri": "patch:breaking"
"@tauri-apps/api": "patch:breaking"
---
Simplified emitted tray event JS value and updated `TrayIconEvent` type definition to match it.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:enhance
---
Added `Builder::append_invoke_initialization_script`.

View File

@ -1,6 +0,0 @@
---
"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,6 +0,0 @@
---
"tauri-utils": patch:breaking
"tauri": patch:breaking
---
The `Assets::iter` function now must return a iterator with `Item = (Cow<'_, str>, Cow<'_, [u8]>)` to be more flexible on contexts where the assets are not `'static`.

View File

@ -1,7 +0,0 @@
---
"tauri": patch:bug
"tauri-build": patch:bug
"tauri-utils": patch:bug
---
Prevent build script from rerunning unnecessarily by only writing files when the content changes.

View File

@ -1,6 +0,0 @@
---
"tauri-codegen": patch:deps
"tauri-utils": patch:deps
---
Updated brotli to v6.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch:bug
---
Use appimage files instead of debian files when building appimage

View File

@ -1,6 +0,0 @@
---
"tauri-bundler": patch:feat
"tauri-cli": patch:feat
---
Add `TAURI_BUNDLER_TOOLS_GITHUB_MIRROR` environment variable to specify a GitHub mirror to download files and tools used by tauri bundler. This is designed for areas like Mainland China where GitHub access can be unreliable.

View File

@ -1,6 +0,0 @@
---
"tauri-bundler": patch:feat
"tauri-cli": patch:feat
---
Add the `TAURI_BUNDLER_TOOLS_GITHUB_MIRROR_TEMPLATE` environment variable to specify a more accessible mirror template, facilitating companies, organizations, or individuals who cannot access GitHub to download the necessary files through their own mirror servers.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch:bug
---
Detect ARM gnueabi as soft-float (armel) instead of hard-float (armhf). Also change the signature of `tauri_bundler::bundle::Settings::binary_arch` to return an enum instead of a `&str`.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": "patch:bug"
---
Fix NSIS installer failing to determine whether webview installer downloaded correctly or not.

View File

@ -1,8 +0,0 @@
---
"tauri-bundler": patch:feat
"tauri-utils": patch:feat
"@tauri-apps/cli": patch:feat
"tauri-cli": patch:feat
---
Custom sign command with object notation for whitespaces in the command path and arguments.

View File

@ -1,6 +0,0 @@
---
"@tauri-apps/api": patch:breaking
"tauri": patch:bug
---
Change the `button_state` tray event field to camelCase `buttonState`.

View File

@ -1,5 +0,0 @@
---
"tauri-utils": patch:enhance
---
Validate duplicate capability identifier.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:changes
"@tauri-apps/cli": patch:changes
---
Change iOS template default export method from deprecated `development` to `debugging`.

View File

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

View File

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

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": "patch:bug"
---
Fixed an issue that caused the bundler to not be able to download the AppImage tooling when building for ARM 32bit.

View File

@ -1,6 +0,0 @@
---
"@tauri-apps/cli": 'patch:bug'
"tauri-cli": 'patch:bug'
---
Change plugin template call to `register_ios_plugin` params to snake case

View File

@ -1,6 +0,0 @@
---
"tauri": 'patch:bug'
"tauri-utils": 'patch:bug'
---
Update swift-rs fixing a plugin build when native dependencies are used.

View File

@ -1,8 +0,0 @@
---
"tauri": patch:feat
"tauri-runtime-wry": patch:feat
"tauri-runtime": patch:feat
"tauri-utils": patch:feat
---
Expose the ability to enabled browser extensions in WebView2 on Windows.

View File

@ -1,6 +0,0 @@
---
"tauri": patch:breaking
"tauri-runtime-wry": patch:breaking
---
Change the pointer type of `PlatformWebview`'s `inner`, `controller`, `ns_window` and `view_controller` to `c_void`, to avoid publically depending on `objc`.

View File

@ -1,5 +0,0 @@
---
'tauri-bundler': 'major:breaking'
---
Changed changelog file location in `deb` to `usr/share/doc/<product_name>/changelog.gz` instead of `usr/share/doc/<main_binary_name>/changelog.gz`. For tauri v1 users, the path is unchanged as `product_name` and `main_binary_name` used the same value.

View File

@ -1,6 +0,0 @@
---
"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,6 +0,0 @@
---
"@tauri-apps/api": "patch:feat"
---
Add `WebviewWindow.clearAllBrowsingData` and `Webview.clearAllBrowsingData` to clear the webview browsing data.

View File

@ -1,8 +0,0 @@
---
"tauri": "patch:feat"
"tauri-runtime": "patch:feat"
"tauri-runtime-wry": "patch:feat"
---
Add `WebviewWindow::clear_all_browsing_data` and `Webview::clear_all_browsing_data` to clear the webview browsing data.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": "patch:enhance"
"@tauri-apps/cli": "patch:enhance"
---
Added `--no-fmt` option to the `add` command to skip formatting the code after applying changes.

View File

@ -1,7 +0,0 @@
---
"tauri-cli": "patch:bug"
"@tauri-apps/cli": "patch:bug"
---
Fix `tauri add` failing to add NPM depenency with `npm` package manager.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": "patch:feat"
"@tauri-apps/cli": "patch:feat"
---
Add necessary options to `AndroidManifest.xml` in android template to support AndroidTV.

View File

@ -1,6 +0,0 @@
---
"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
---
Automatically discover the `src-tauri/src/main.rs` binary when it is not explicitly defined in the Cargo manifest bin array.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:enhance
"@tauri-apps/cli": patch:enhance
---
Include architecture in the `tauri info` output.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": "patch:feat"
"@tauri-apps/cli": "patch:feat"
---
Add plugins information in `tauri info` output

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
CLI commands will now consistently search for the `app_dir` (the directory containing `package.json`) from the current working directory of the command invocation.

View File

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

View File

@ -1,7 +0,0 @@
---
"tauri-cli": "patch:breaking"
"@tauri-apps/cli": "patch:breaking"
---
`tauri plugin init/new` will no longer generate a `.github` directory with workflows by default, instead use the new `--github-workflows` flag.

View File

@ -1,7 +0,0 @@
---
"tauri-cli": "patch:feat"
"@tauri-apps/cli": "patch:feat"
---
Add `--github-workflows` flag for `tauri plugin new/init`.

View File

@ -1,7 +0,0 @@
---
"tauri-cli": "patch:feat"
"@tauri-apps/cli": "patch:feat"
---
Add `--no-example` flag for `tauri plugin new` and `tauri plugin init` to disable creation of an example project.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch:feat
---
`TAURI_WINDOWS_SIGNTOOL_PATH` environment variable for specifying the path to signtool.exe.

View File

@ -1,6 +0,0 @@
---
"@tauri-apps/cli": patch:enhance
"tauri-cli": patch:enhance
---
Added the `log` plugin to the app template, which is required to visualize logs on Android and iOS.

View File

@ -220,13 +220,11 @@
"tauri-cli": {
"path": "./crates/tauri-cli",
"manager": "rust",
"dependencies": ["tauri-bundler", "tauri-utils", "tauri-macos-sign"],
"postversion": "cargo check"
"dependencies": ["tauri-bundler", "tauri-utils", "tauri-macos-sign"]
},
"tauri-driver": {
"path": "./crates/tauri-driver",
"manager": "rust",
"postversion": "cargo check"
"manager": "rust"
}
}
}

View File

@ -1,5 +0,0 @@
---
"tauri": "patch:bug"
---
Fix schema generation for `core:default` set.

View File

@ -1,9 +0,0 @@
---
"tauri": patch:breaking
"tauri-plugin": patch:breaking
"@tauri-apps/cli": patch:breaking
"tauri-cli": patch:breaking
---
Core plugin permissions are now prefixed with `core:`, the `core:default` permission set can now be used and the `core` plugin name is reserved.
The `tauri migrate` tool will automate the migration process, which involves prefixing all `app`, `event`, `image`, `menu`, `path`, `resources`, `tray`, `webview` and `window` permissions with `core:`.

View File

@ -1,6 +0,0 @@
---
"tauri": "patch:feat"
---
Add `Manager::unmanage` to remove previously managed state.

View File

@ -1,5 +0,0 @@
---
"tauri": "patch:bug"
---
Fix internal crash when trying to close the same window multiple times.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:enhance
---
Inject `__INVOKE_KEY__` into custom invoke systems so their implementations can properly construct `tauri::webview::InvokeRequest`.

View File

@ -1,9 +0,0 @@
---
"tauri": "patch:breaking"
---
Changed uri scheme protocol handler to take `UriSchemeContext` as first argument instead of `AppHandle`. `UriSchemeContext` can be used to access an app handle or the webview label that made the request. The following methods are affected:
- `tauri::Builder::register_uri_scheme_protocol`
- `tauri::Builder::register_asynchronous_uri_scheme_protocol`
- `tauri::plugin::Builder::register_uri_scheme_protocol`
- `tauri::plugin::Builder::register_asynchronous_uri_scheme_protocol`

View File

@ -1,9 +0,0 @@
---
"tauri-cli": patch:breaking
"@tauri-apps/cli": patch:breaking
---
`ios dev` and `android dev` now uses localhost for the development server unless running on an iOS device,
which still requires connecting to the public network address. To conditionally check this on your frontend
framework's configuration you can check for the existence of the `TAURI_DEV_HOST`
environment variable instead of checking if the target is iOS or Android (previous recommendation).

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Do not quit `ios dev` and `android dev` process when we fail to attach the logger.

View File

@ -1,6 +0,0 @@
---
"tauri-codegen": patch:changes
"tauri": patch:changes
---
Changes how the Info.plist is embedded on macOS development to avoid a clippy warning.

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Enhance port forwarding on `android dev` to be more resilient and tolerate delays when booting up devices.

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:enhance'
'@tauri-apps/cli': 'patch:enhance'
---
Enhance iOS library validation, checking libs built with link time optimization.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:enhance
---
Include more information in the IPC permission error message.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Ensure gradlew is executable and does not use CRLF so it can be used on UNIX systems.

View File

@ -1,7 +0,0 @@
---
"tauri": patch:changes
"@tauri-apps/cli": patch:changes
"tauri-cli": patch:changes
---
Remove targetSdk from gradle files

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fixes running `adb reverse` in Node.js context.

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Fix the `add` command NPM version specifier for known plugins from `2.0.0-rc` (unknown version requirement) to `^2.0.0-rc`.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:bug
---
Add a Proguard rule to prevent custom JSON deserializer and serializer classes from being optimized away.

View File

@ -1,5 +0,0 @@
---
"tauri-utils": patch:bug
---
Properly remove isolation script on Android.

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Fix iOS xcode-script usage with `bun`.

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Changed the `add` command to use a version requirement that matches the CLI's stable and prerelease numbers.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fixes `android dev` not working when using the builtin dev server.

View File

@ -1,5 +0,0 @@
---
"@tauri-apps/cli": patch:bug
---
Exit with code 1 if a panic occurs when running the CLI with `bun`.

View File

@ -1,5 +0,0 @@
---
"tauri-utils": "patch:bug"
---
Fixed an issue where permission files will be generated with ':' in the file path.

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
The cli now only sets the iOS deployment target environment variable when building for iOS.

View File

@ -1,7 +0,0 @@
---
"tauri-utils": "patch:bug"
---
Fixed an issue where configuration parsing errors always displayed 'tauri.conf.json' as the file path, even when using 'Tauri.toml' or 'tauri.conf.json5'.
The error messages now correctly shows the actual config file being used.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fixes `[android|ios] build --config <config>` failing to resolve.

View File

@ -1,5 +0,0 @@
---
"tauri-codegen": patch:bug
---
Generate context in a separate thread to prevent a stack overflow.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:bug
---
Fixes mobile dev server proxy request URL with trailing slashes.

View File

@ -1,5 +0,0 @@
---
"tauri-build": patch:bug
---
Correctly export `DefaultPermissionsRule`

View File

@ -1,5 +0,0 @@
---
'tauri-utils': 'patch:bug'
---
Fixed an issue that made the `identifier` in `tauri.conf.json` optional while it was actually required.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fix iOS application not including the provided capabilities (entitlements).

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fixes iOS code signing failing on CI due to a missing development certificate.

View File

@ -1,6 +0,0 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Fix Swift plugin compilation on older versions.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fixes `ios build --target [aarch64-sim | x86_64]` failing to generate the app bundle for the iOS simulator.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fixes running `ios dev` and `ios build` using `bun`.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Only modify the iOS Xcode project "sign style" if we need to enforce manual signing.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fixes `ios build` failing to build iOS app in CI when using an API key for automatic signing.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:bug
---
Fix IPC fallback (postMessage implementation when custom protocol fails) hanging when sending responses.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:bug
---
Fixes IPC postMessage raw body processing when using the isolation pattern.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fixes v1 migration of Cargo.toml dependencies and features.

View File

@ -1,5 +0,0 @@
---
"tauri-macos-sign": patch:bug
---
Fixes output not visible when running on Node.js via NAPI.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fixes Xcode pbxproj file parsing not expecting `_` in build configuration IDs.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:breaking
---
Rename `PermissionState::Unknown` to `PermissionState::Prompt`.

View File

@ -1,5 +0,0 @@
---
"tauri": patch:bug
---
Fix `requestPermissions` not resolving on Android.

View File

@ -1,6 +0,0 @@
---
tauri-build: 'patch:bug'
tauri-bundler: 'patch:bug'
---
The executable and NSIS installer on Windows will now use the `productName` config for the `FileDescription` property instead of `shortDescription`.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fix `tauri plugin ios init` not generating the iOS folder.

View File

@ -1,5 +0,0 @@
---
"@tauri-apps/api": patch:bug
---
Fix tslib path in dist.

View File

@ -1,6 +0,0 @@
---
"tauri": patch:bug
"tauri-codegen": patch:bug
---
Fixes asset resolving when not using the `compression` feature.

View File

@ -1,6 +0,0 @@
---
"tauri-cli": patch:bug
"@tauri-apps/cli": patch:bug
---
Fixes v1 frontend code migration when using plugin default imports.

View File

@ -1,7 +0,0 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---
Do not include the target arch when building and archiving the iOS application,
which makes Xcode project modifications more flexible.

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