feat: promote v2 to RC (#10434)

* feat: promote v2 to RC

* update changelog
This commit is contained in:
Lucas Fernandes Nogueira 2024-08-02 10:28:06 -03:00 committed by GitHub
parent 786f188923
commit 88619e8914
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
362 changed files with 236 additions and 2344 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 +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-apps/api': 'patch:bug'
---
Fix `Webview.reparent` pointing to `set_webview_focus` instead of `reparent` Rust API

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

@ -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

@ -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

@ -1,6 +0,0 @@
---
"tauri-cli": "patch:bug"
"@tauri-apps/cli": "patch:bug"
---
Fix `migrate` command, migrating incorrect permissions for `clipboard`.

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,14 +0,0 @@
---
"tauri-cli": "patch:enhance"
"@tauri-apps/cli": "patch:enhance"
---
Enhance `tauri migrate` to also migrate variables like `appWindow`:
```ts
import { appWindow } from '@tauri-apps/api/window'
```
will become:
```ts
import { getCurrentWebviewWindow } from '@tauri-apps/api/webviewWindow'
const appWindow = getCurrentWebviewWindow()
```

View File

@ -1,6 +0,0 @@
---
"tauri-cli": "patch:bug"
"@tauri-apps/cli": "patch:bug"
---
Fix `tauri migrate` incorrectly migrating `@tauri-apps/api/tauri` module to just `core` and `@tauri-apps/api/window` to just `webviewWindow`.

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

@ -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,6 +0,0 @@
---
"tauri-cli": "patch:bug"
"@tauri-apps/cli": "patch:bug"
---
Fix cli failing to detect the correct cargo target directory when using cargo `--target-dir` flag with `tauri build` or `tauri dev`

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

@ -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,15 +0,0 @@
---
"tauri": "patch:breaking"
---
Added `Emitter` and `Listener` traits that defines what an emitter or a listener can do, this however comes with a few breaking changes:
- Removed `Manager::listen_any`, use `Listener::listen_any` instead.
- Removed `Manager::once_any`, use `Listener::once_any` instead.
- Removed `Manager::unlisten`, use `Listener::unlisten` instead.
- Removed `Manager::emit`, use `Emitter::emit` instead.
- Removed `Manager::emit_to`, use `Emitter::emit_to` instead.
- Removed `Manager::emit_filter`, use `Emitter::emit_filter` instead.
- Removed `App/AppHandle::listen`, `WebviewWindow::listen`, `Window::listen` and `Webview::listen`, use `Listener::listen` instead.
- Removed `App/AppHandle::once`, `WebviewWindow::once`, `Window::once` and `Webview::once`, use `Listener::once` instead.
- Removed `App/AppHandle::unlisten`, `WebviewWindow::unlisten`, `Window::unlisten` and `Webview::unlisten`, use `Listener::unlisten` instead.

View File

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

View File

@ -1,5 +0,0 @@
---
'tauri': 'patch:enhance'
---
Return an id when using from `Manager::once_any`, `App::once`, `Window::once`, `Webview::once`, `WebviewWindow::once` and `fs::Scope::once`.

View File

@ -1,6 +0,0 @@
---
'tauri': 'patch:bug'
'@tauri-apps/api': patch:bug
---
Fix `basename(path, 'ext')` JS API when removing all occurances of `ext` where it should only remove the last one.

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