Merge remote-tracking branch 'origin/dev' into next

This commit is contained in:
Lucas Nogueira 2022-10-31 09:49:22 -03:00
commit d0ad0d2f48
No known key found for this signature in database
GPG Key ID: FFEA6C72E73482F1
309 changed files with 9869 additions and 5770 deletions

View File

@ -0,0 +1,5 @@
---
"api": minor
---
Added the `acceptFirstMouse` window option.

View File

@ -0,0 +1,6 @@
---
"tauri": minor
"tauri-runtime-wry": minor
---
Add `accept_first_mouse` option for macOS windows.

View File

@ -0,0 +1,5 @@
---
"api": patch
---
Fix incorrect return type on `fs/exists`

View File

@ -0,0 +1,5 @@
---
"api": "patch"
---
Initialize `Monitor` instances with the correct classes for `position` and `size` fields instead of plain object.

5
.changes/api-node14.md Normal file
View File

@ -0,0 +1,5 @@
---
"api": minor
---
**Breaking change:** Node.js v12 is no longer supported.

6
.changes/app-dirs-api.md Normal file
View File

@ -0,0 +1,6 @@
---
"tauri": minor
"api": minor
---
Add new app-specific `BaseDirectory` enum variants `AppConfig`, `AppData`, `AppLocalData`, `AppCache` and `AppLog` along with equivalent functions in `path` module and deprecated ambiguous variants `Log` and `App` along with their equivalent functions in `path` module.

View File

@ -0,0 +1,5 @@
---
"tauri": "patch"
---
Set the correct mimetype when streaming files through `asset:` protocol

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Implement `api::http::ClientBuilder::max_redirections` for the default attohttpc client.

View File

@ -0,0 +1,6 @@
---
"tauri": minor
"tauri-runtime-wry": minor
---
Disable automatic window tabbing on macOS when the `tabbing_identifier` option is not defined, the window is transparent or does not have decorations.

View File

@ -1,7 +0,0 @@
---
"tauri-utils": minor
"cli.rs": minor
"cli.js": minor
---
Allow adding `build > beforeBundleCommand` in tauri.conf.json to run a shell command before the bundling phase.

View File

@ -1,7 +0,0 @@
---
"tauri-utils": minor
"cli.rs": minor
"cli.js": minor
---
Change `before_dev_command` and `before_build_command` config value to allow configuring the current working directory.

View File

@ -1,7 +0,0 @@
---
"tauri-utils": minor
"cli.rs": minor
"cli.js": minor
---
Allow configuring the `before_dev_command` to force the CLI to wait for the command to finish before proceeding.

View File

@ -1,5 +0,0 @@
---
"tauri-build": patch
---
Rerun codegen if assets or icons change.

View File

@ -1,5 +0,0 @@
---
"tauri-build": patch
---
Create the `desktop` and `mobile` cfg aliases.

View File

@ -0,0 +1,5 @@
---
"tauri-bundler": "patch"
---
Use correct code `ja-JP` for japanese instead of `jp-JP`.

View File

@ -1,6 +0,0 @@
---
"tauri-bundler": patch
---
Avoid re-downloading AppImage build tools on every build.

View File

@ -1,6 +0,0 @@
---
"cli.rs": patch
"cli.js": patch
---
Check if the default build target is set in the Cargo configuration.

View File

@ -1,5 +0,0 @@
---
"cli.rs": patch
---
Add support to cargo-binstall.

View File

@ -1,6 +0,0 @@
---
"cli.rs": "patch"
"cli.js": "patch"
---
Use `cargo metadata` to detect the workspace root and target directory.

View File

@ -0,0 +1,5 @@
---
"cli.rs": "patch"
---
Keep `tauri dev` watcher alive when the configuration is invalid.

View File

@ -0,0 +1,5 @@
---
"cli.rs": patch
---
Ignore workspace members in dev watcher if they are ignored by `.taurignore`

View File

@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Detect JSON5 and TOML configuration files in the dev watcher.

View File

@ -1,7 +0,0 @@
---
"cli.rs": "minor"
"cli.js": "minor"
---
Prompt for `beforeDevCommand` and `beforeBuildCommand` in `tauri init`.

View File

@ -0,0 +1,5 @@
---
"cli.rs": "patch"
---
Fix cli passing `--no-default-features` to the app instead of the runner (Cargo).

View File

@ -0,0 +1,7 @@
---
"cli.rs": "patch"
"tauri-utils": "patch"
---
Validate `pacakge > productName` in the tauri config and produce errors if it contains one of the following characters `/\:*?\"<>|`

View File

@ -0,0 +1,5 @@
---
"cli.rs": "minor"
---
Hot-reload the frontend when `tauri.conf.json > build > devPath` points to a directory.

View File

@ -0,0 +1,5 @@
---
"cli.rs": "patch"
---
Expose `TAURI_TARGET_TRIPLE` to `beforeDevCommand`, `beforeBuildCommand` and `beforeBundleCommand`

View File

@ -1,5 +0,0 @@
---
"cli.rs": minor
---
Add `icon` command to generate icons.

View File

@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Log dev watcher file change detection.

View File

@ -0,0 +1,5 @@
---
"cli.js": patch
---
Fix crash when nodejs binary has the version in its name, for example `node18` or when running through deno.

View File

@ -1,5 +0,0 @@
---
"tauri-codegen": patch
---
Use `TARGET` environment variable for code generation inside build scripts.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Implement `From<api::process::Command> for std::process::Command`.

View File

@ -207,7 +207,13 @@
"path": "./core/tauri-build",
"manager": "rust",
"dependencies": ["tauri-codegen", "tauri-utils"],
"postversion": "node ../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }"
"postversion": "node ../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }",
"assets": [
{
"path": "./tooling/cli/schema.json",
"name": "schema.json"
}
]
},
"tauri": {
"path": "./core/tauri",
@ -224,7 +230,10 @@
"path": "./tooling/cli/node",
"manager": "javascript",
"dependencies": ["cli.rs"],
"postversion": "node ../../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }",
"postversion": [
"node ../../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }",
"cargo build --manifest-path ../../core/config-schema/Cargo.toml"
],
"prepublish": [],
"publish": [],
"postpublish": []
@ -238,10 +247,6 @@
{
"path": "${ pkg.path }/target/package/tauri-cli-${ pkgFile.version }.crate",
"name": "${ pkg.pkg }-${ pkgFile.version }.crate"
},
{
"path": "${ pkg.path }/schema.json",
"name": "schema.json"
}
]
},

View File

@ -0,0 +1,5 @@
---
"tauri": minor
---
The custom protocol now validates the request URI. This has implications when using the `asset` protocol without the `convertFileSrc` helper, the URL must now use the `asset://localhost/$filePath` format.

View File

@ -1,6 +0,0 @@
---
"cli.rs": patch
"cli.js": patch
---
Automatically use any `.taurignore` file as ignore rules for dev watcher and app path finder.

View File

@ -0,0 +1,5 @@
---
"api": patch
---
Fix `dialog.save` return type

View File

@ -0,0 +1,5 @@
---
"tauri-runtime-wry": patch
---
Drop the WebContext when the WebView is dropped.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Enhance `SystemTray::with_icon` to accept `tauri::Icon`.

View File

@ -1,5 +0,0 @@
---
"tauri-build": patch
---
Enhance the dialog style on Windows via the manifest dependency `Microsoft.Windows.Common-Controls v6.0.0.0`.

View File

@ -0,0 +1,5 @@
---
"tauri": "patch"
---
Escape glob special characters in files/directories when dropping files or using the open/save dialogs.

View File

@ -1,6 +0,0 @@
---
"cli.rs": patch
"cli.js": patch
---
Enable WiX FIPS compliance when the `TAURI_FIPS_COMPLIANT` environment variable is set to `true`.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch
---
Add `fips_compliant` configuration option for WiX.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Update `mockIPC()` handler signature to allow async handler functions.

View File

@ -1,5 +0,0 @@
---
"tauri-build": patch
---
Fix root of codegen output when using the `CodegenContext` API.

5
.changes/fix-cli-envs.md Normal file
View File

@ -0,0 +1,5 @@
---
"cli.rs": "patch"
---
Set `TAURI_PLATFORM_TYPE`, `TAURI_FAMILY`, `TAURI_ARCH` and `TAURI_PLATFORM` env vars for hook commands to based on the app not the cli.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Fixes CLI parser ignoring inner subcommands.

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Properly emit events with object payload.

View File

@ -0,0 +1,6 @@
---
"tauri-utils": patch
"tauri-codegen": patch
---
Properly serialize HTML template tags.

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Fixes access to the `WebviewWindow.getByLabel` function in a `tauri://window-created` event listener.

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Fixes resource reading being always rejected by the scope.

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Fixes `__TAURI_PATTERN__` object freeze.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Fix typo in invalid state access panic message.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Fixes updater breaking the app icon in Finder.

View File

@ -1,6 +0,0 @@
---
"cli.rs": patch
"cli.js": patch
---
Fixes dev watcher incorrectly exiting the CLI when sequential file updates are detected.

View File

@ -1,5 +0,0 @@
---
"tauri-runtime-wry": patch
---
Ignore window events with unknown IDs.

7
.changes/focused.md Normal file
View File

@ -0,0 +1,7 @@
---
"tauri": minor
"tauri-runtime": minor
"tauri-runtime-wry": minor
---
Readd the option to create an unfocused window via the `focused` method. The `focus` function has been deprecated.

View File

@ -0,0 +1,6 @@
---
'tauri': minor
"tauri-runtime-wry": minor
---
Add `hidden_title` option for macOS windows.

View File

@ -1,5 +0,0 @@
---
"api": minor
---
Improve shell's `Command`, `Command.stdout` and `Command.stderr` events with new `once`, `off`, `listenerCount`, `prependListener`, `prependOnceListener` and `removeAllListeners` functions.

View File

@ -1,5 +0,0 @@
---
"tauri-codegen": patch
---
Improve tray icon read error message.

View File

@ -0,0 +1,5 @@
---
"tauri-utils": minor
---
`PatternKind::Isolation` is now defined even without the `isolation` feature.

View File

@ -1,5 +0,0 @@
---
"tauri-codegen": patch
---
Fix relative paths in `version` field of `tauri.config.json` not being correctly parsed by `generate_context!()`.

View File

@ -1,5 +0,0 @@
---
"cli.js": patch
---
Add `libc` field to Node packages.

View File

@ -0,0 +1,6 @@
---
"tauri": minor
"tauri-runtime-wry": minor
---
Custom protocol headers are now implemented on Linux when running on webkit2gtk 2.36 or above.

View File

@ -1,6 +0,0 @@
---
"tauri-runtime-wry": patch
"tauri": patch
---
Implement theme APIs for Linux.

View File

@ -0,0 +1,5 @@
---
"tauri-utils": minor
---
Added the `app` allowlist module.

View File

@ -0,0 +1,5 @@
---
"api": minor
---
Added `show` and `hide` methods on the `app` module.

View File

@ -0,0 +1,6 @@
---
"tauri-runtime-wry": minor
"tauri-runtime": minor
---
Added `Runtime::show()`, `RuntimeHandle::show()`, `Runtime::hide()`, `RuntimeHandle::hide()` for hiding/showing the entire application on macOS.

5
.changes/mac-app-hide.md Normal file
View File

@ -0,0 +1,5 @@
---
"tauri": minor
---
Add `App::show()`, `AppHandle::show()`, `App::hide()` and `AppHandle::hide()` for hiding/showing the entire application on macOS.

View File

@ -1,6 +0,0 @@
---
"cli.rs": patch
"cli.js": patch
---
Set the `MACOSX_DEPLOYMENT_TARGET` environment variable with the configuration `minimum_system_version` value.

View File

@ -0,0 +1,5 @@
---
"tauri": "patch"
---
Fix a deadlock when modifying the menu in the `on_menu_event` closure.

View File

@ -0,0 +1,6 @@
---
"tauri-runtime-wry": "patch"
---
Fix regression in `SystemTray::with_menu_on_left_click`

View File

@ -1,11 +1,12 @@
---
"tauri": minor
"tauri-utils": minor
"tauri-macros": minor
"tauri-codegen": minor
"tauri-build": minor
"cli.rs": minor
"cli.js": minor
"tauri-bundler": minor
"tauri": minor
"tauri-build": minor
"tauri-codegen": minor
"tauri-macros": minor
"tauri-utils": minor
"tauri-runtime": minor
"tauri-runtime-wry": minor
---
Added support to configuration files in TOML format (Tauri.toml file).

View File

@ -1,6 +0,0 @@
---
"cli.rs": minor
"cli.js": minor
---
Added `--no-watch` argument to the `dev` command to disable the file watcher.

View File

@ -0,0 +1,8 @@
---
"tauri-utils": "minor"
"tauri-bundler": "minor"
"cli.rs": "minor"
---
Add `tauri.conf.json > bundle > publisher` field to specify the app publisher.

View File

@ -1,5 +0,0 @@
---
"tauri": "patch"
---
Implement `raw_window_handle::HasRawDisplayHandle` for `App` and `AppHandle`

31
.changes/readme.md Normal file
View File

@ -0,0 +1,31 @@
# Changes
##### via https://github.com/jbolda/covector
As you create PRs and make changes that require a version bump, please add a new markdown file in this folder. You do not note the version _number_, but rather the type of bump that you expect: major, minor, or patch. The filename is not important, as long as it is a `.md`, but we recommend that it represents the overall change for organizational purposes.
When you select the version bump required, you do _not_ need to consider dependencies. Only note the package with the actual change, and any packages that depend on that package will be bumped automatically in the process.
Use the following format:
```md
---
"package-a": patch
"package-b": patch
---
Change summary goes here
```
Summaries do not have a specific character limit, but are text only. These summaries are used within the (future implementation of) changelogs. They will give context to the change and also point back to the original PR if more details and context are needed.
Changes will be designated as a `major`, `minor` or `patch` as further described in [semver](https://semver.org/).
Given a version number MAJOR.MINOR.PATCH, increment the:
- MAJOR version when you make incompatible API changes,
- MINOR version when you add functionality in a backwards compatible manner, and
- PATCH version when you make backwards compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format, but will be discussed prior to usage (as extra steps will be necessary in consideration of merging and publishing).

View File

@ -1,5 +0,0 @@
---
"tauri-runtime-wry": minor
---
Changed `windows` map to be stored in a `RefCell` instead of a `Mutex`.

View File

@ -0,0 +1,5 @@
---
"tauri-utils": patch
---
Canonicalize the return value of `platform::resource_dir`.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Retain command line arguments in `api::process::restart`.

View File

@ -1,5 +0,0 @@
---
"api": minor
---
Added the `encoding` option to the `Command` options.

View File

@ -1,5 +0,0 @@
---
"tauri": minor
---
Add `api::Command::encoding` method to set the stdout/stderr encoding.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Do not follow redirects when `api::http::ClientBuilder::max_redirections` is `0`.

View File

@ -0,0 +1,5 @@
---
"api": minor
---
Added `tabbingIdentifier` window option for macOS.

View File

@ -1,8 +1,8 @@
---
"tauri-runtime-wry": minor
"tauri-runtime": minor
"tauri-utils": minor
"tauri": minor
"tauri-runtime": minor
"tauri-runtime-wry": minor
"api": minor
---
Update windows to 0.39.0 and webview2-com to 0.19.1.
Added `tabbing_identifier` to the window builder on macOS.

View File

@ -0,0 +1,6 @@
---
'tauri': minor
"tauri-runtime-wry": minor
---
Add `title_bar_style` option for macOS windows.

5
.changes/tray-cleanup.md Normal file
View File

@ -0,0 +1,5 @@
---
"tauri-runtime-wry": "patch"
---
Fix regression introduce in tauri@1.1 which prevented removing tray icon when the app exits on Windows.

View File

@ -1,5 +0,0 @@
---
"tauri": minor
---
Added the `SystemTrayHandle::destroy` method.

View File

@ -0,0 +1,5 @@
---
"tauri-utils": minor
---
Added `title` option on the system tray configuration (macOS only).

View File

@ -4,4 +4,4 @@
"tauri-runtime-wry": minor
---
Added APIs to create a system tray at runtime.
Added methods to set the system tray title on macOS.

View File

@ -0,0 +1,5 @@
---
"tauri-utils": minor
---
Added the `user_agent` option to the window configuration.

8
.changes/user-agent.md Normal file
View File

@ -0,0 +1,8 @@
---
"api": minor
"tauri": minor
"tauri-runtime-wry": minor
"tauri-runtime": minor
---
Added the `user_agent` option when creating a window.

View File

@ -0,0 +1,5 @@
---
"tauri-utils": "patch"
---
Add `mime_type` module.

View File

@ -1,5 +0,0 @@
---
"tauri-utils": minor
---
Refactored the `config::parse` module.

View File

@ -1,5 +0,0 @@
---
"tauri-build": patch
---
Return an error if a sidecar is configured with the same file name as the application.

View File

@ -1,6 +0,0 @@
---
"cli.rs": patch
"cli.js": patch
---
Validate updater signature matches configured public key.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Added `native-tls-vendored` and `reqwest-native-tls-vendored` Cargo features to compile and statically link to a vendored copy of OpenSSL on Linux.

View File

@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---
Clear environment variables on the WiX light.exe and candle.exe commands to avoid "Windows Installer Service could not be accessed" error. Variables prefixed with `TAURI` are propagated.

View File

@ -1,6 +0,0 @@
---
"tauri-codegen": patch
"tauri-build": patch
---
Only rewrite temporary icon files when the content change, avoid needless rebuilds.

View File

@ -72,7 +72,7 @@ jobs:
- name: Cache core cargo target
uses: actions/cache@v2
env:
cache-name: cargo_core
cache-name: cargo-core
with:
path: target
# Add date to the cache to keep it up to date
@ -114,7 +114,7 @@ jobs:
working-directory: ./examples/updater
run: |
yarn install
cargo tauri build
cargo tauri build --verbose
env:
# Notarization (disabled)
# FIXME: enable only on `dev` push maybe? as it take some times...
@ -128,15 +128,17 @@ jobs:
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
# Updater signature is exposed here to make sure it works in PR's
TAURI_PRIVATE_KEY: dW50cnVzdGVkIGNvbW1lbnQ6IHJzaWduIGVuY3J5cHRlZCBzZWNyZXQga2V5ClJXUlRZMEl5YTBGV3JiTy9lRDZVd3NkL0RoQ1htZmExNDd3RmJaNmRMT1ZGVjczWTBKZ0FBQkFBQUFBQUFBQUFBQUlBQUFBQWdMekUzVkE4K0tWQ1hjeGt1Vkx2QnRUR3pzQjVuV0ZpM2czWXNkRm9hVUxrVnB6TUN3K1NheHJMREhQbUVWVFZRK3NIL1VsMDBHNW5ET1EzQno0UStSb21nRW4vZlpTaXIwZFh5ZmRlL1lSN0dKcHdyOUVPclVvdzFhVkxDVnZrbHM2T1o4Tk1NWEU9Cg==
TAURI_KEY_PASSWORD:
# run on PRs and forks
- name: build sample artifacts (updater)
if: steps.enablecodesigning.outputs.enabled != 'true'
working-directory: ./examples/updater
run: |
yarn install
cargo tauri build
cargo tauri build --verbose
env:
TAURI_PRIVATE_KEY: dW50cnVzdGVkIGNvbW1lbnQ6IHJzaWduIGVuY3J5cHRlZCBzZWNyZXQga2V5ClJXUlRZMEl5YTBGV3JiTy9lRDZVd3NkL0RoQ1htZmExNDd3RmJaNmRMT1ZGVjczWTBKZ0FBQkFBQUFBQUFBQUFBQUlBQUFBQWdMekUzVkE4K0tWQ1hjeGt1Vkx2QnRUR3pzQjVuV0ZpM2czWXNkRm9hVUxrVnB6TUN3K1NheHJMREhQbUVWVFZRK3NIL1VsMDBHNW5ET1EzQno0UStSb21nRW4vZlpTaXIwZFh5ZmRlL1lSN0dKcHdyOUVPclVvdzFhVkxDVnZrbHM2T1o4Tk1NWEU9Cg==
TAURI_KEY_PASSWORD:
# upload assets
- uses: actions/upload-artifact@v2
if: matrix.platform == 'ubuntu-latest'

View File

@ -74,7 +74,7 @@ jobs:
- name: Cache core cargo target
uses: actions/cache@v2
env:
cache-name: cargo_core
cache-name: cargo-core
with:
path: target
# Add date to the cache to keep it up to date

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