Merge pull request #3389 from tauri-apps/next

This commit is contained in:
Lucas Fernandes Nogueira 2022-02-10 17:30:34 -03:00 committed by GitHub
commit 45d427e44c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1143 changed files with 45966 additions and 38455 deletions

View File

@ -1,7 +0,0 @@
---
"tauri": patch
"tauri-runtime": patch
"tauri-runtime-wry": patch
---
Allow preventing window close when the user requests it.

View File

@ -0,0 +1,5 @@
---
"tauri-utils": patch
---
The `allowlist` configuration now includes a `clipboard` object, controlling the exposure of the `writeText` and `readText` APIs.

View File

@ -0,0 +1,6 @@
---
"tauri-utils": patch
"tauri": patch
---
The dialog allowlist now includes flags for the `message`, `ask` and `confirm` APIs.

View File

@ -0,0 +1,5 @@
---
"tauri-utils": patch
---
The `allowlist` configuration now includes a `process` object, controlling the exposure of the `relaunch` and `exit` APIs.

View File

@ -0,0 +1,5 @@
---
tauri-utils: patch
---
The `window` allowlist now includes options to enable all window modification APIs: `center`, `close`, `create`, `hide`, `maximize`, `minimize`, `print`, `requestUserAttention`, `setAlwaysOnTop`, `setDecorations`, `setFocus`, `setFullscreen`, `setIcon`, `setMaxSize`, `setMinSize`, `setPosition`, `setResizable`, `setSize`, `setSkipTaskbar`, `setTitle`, `show`, `startDragging`, `unmaximize` and `unminimize`.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Remove anonymous lifetimes on examples.

View File

@ -0,0 +1,5 @@
---
"api": patch
---
Add `fileDropEnabled` property to `WindowOptions` so you can now disable it when creating windows from js.

View File

@ -0,0 +1,6 @@
---
"api": patch
---
Add `logDir` function to the `path` module to access the sugested log directory.
Add `BaseDirectory.Log` to the `fs` module.

View File

@ -0,0 +1,6 @@
---
"tauri": patch
---
* **Breaking change**: Renamed `tauri::Event` to `tauri::RunEvent`
* Exported `tauri::Event` and `tauri::EventHandler` so you can define a function and pass it to `Window::listen`

View File

@ -1,5 +0,0 @@
---
"api": patch
---
CommonJS chunks are now properly exported with `.cjs` extension

View File

@ -1,6 +0,0 @@
---
"api": patch
---
`bundle` now exports `clipboard` module so you can `import { clipboard } from "@tauri-apps/api"`.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Adds `convertFileSrc` helper to the `tauri` module, simplifying the process of using file paths as webview source (`img`, `video`, etc).

View File

@ -0,0 +1,5 @@
---
"api": patch
---
Expose `ask`, `message` and `confirm` APIs on the dialog module.

View File

@ -0,0 +1,5 @@
---
"api": patch
---
Event `emit` now automatically serialize non-string types.

View File

@ -1,6 +0,0 @@
---
"api": patch
---
Export `BaseDirectory` in `path` module

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Adds `package.json` to the `exports` object.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Export `Response` and `ResponseType` as value instead of type.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Use `export type` to export TS types, enums and interfaces.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Moves `shell`, `dialog::FileDialogBuilder` and `process::Command` APIs behind their allowlist feature flags.

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

@ -0,0 +1,5 @@
---
"tauri": patch
---
The `tauri::api` modules `http`, `notification`, `dialog`, and `process::Command` APIs are now hidden behind a feature flag, `http-api`, `notification`, `dialog` and `command`, respectively.

View File

@ -0,0 +1,5 @@
---
"api": patch
---
Fix `http.fetch` throwing error if the response is successful but the body is empty.

View File

@ -0,0 +1,6 @@
---
"api": patch
"tauri": patch
---
Add `title` option to file open/save dialogs.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Fix double window creation

View File

@ -0,0 +1,5 @@
---
"api": patch
---
Fix `os.platform` returning `macos` and `windows` instead of `darwin` and `win32`.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Adds `focus?: boolean` to the WindowOptions interface.

View File

@ -0,0 +1,5 @@
---
"api": patch
---
The `formatCallback` helper function now returns a number instead of a string.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Adds `isDecorated` getter on the window API.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Adds `isResizable` getter on the window API.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Adds `isVisible` getter on the window API.

View File

@ -1,4 +0,0 @@
---
"api": patch
---
Add `os` module which exports `EOL`, `platform()`, `version()`, `type()`, `arch()`, `tempdir()`

View File

@ -1,7 +0,0 @@
---
"api": patch
---
- Add new nodejs-inspired functions which are `join`, `resolve`, `normalize`, `dirname`, `basename` and `extname`.
- Add `sep` and `delimiter` constants.
- Removed `resolvePath` API, use `resolve` instead.

View File

@ -0,0 +1,5 @@
---
"api": patch
---
Added `rawHeaders` to `http > Response`.

View File

@ -0,0 +1,5 @@
---
"api": "patch"
---
Removed the `currentDir` API from the `path` module.

View File

@ -0,0 +1,5 @@
---
"api": patch
---
Remove `.ts` files on the published package.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Adds `requestUserAttention` API to the `window` module.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Adds `setFocus` to the window API.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Adds `setSkipTaskbar` to the window API.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Adds `skipTaskbar?: boolean` to the WindowOptions interface.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Change target to ES2021.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Add `toggleMaximize()` function to the `WebviewWindow` class.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Adds `transparent?: boolean` to the `WindowOptions` interface.

View File

@ -1,4 +0,0 @@
---
"api": patch
---
Fix `@ts-expect` error usage

View File

@ -0,0 +1,5 @@
---
"api": patch
---
**Breaking change:** Replaces all usages of `number[]` with `Uint8Array` to be closer aligned with the wider JS ecosystem.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Adds `center?: boolean` to `WindowOptions` and `center()` API to the `appWindow`.

View File

@ -0,0 +1,6 @@
---
"api": patch
---
`WindowManager` methods `innerPosition` `outerPosition` now correctly return instance of `PhysicalPosition`.
`WindowManager` methods `innerSize` `outerSize` now correctly return instance of `PhysicalSize`.

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Added `any_thread()` to the `tauri::Builder` to run applications on any thread (only exposed on Linux and Windows).

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Add `App#run` method with callback argument (event loop event handler).

View File

@ -1,6 +0,0 @@
---
"tauri": patch
---
**Breaking:** `api::path::resolve_path()` and `api::path::app_dir()` now takes the config as first argument and the `PackageInfo` as second argument.
**Breaking:** `api::path::app_dir()` now resolves to `${configDir}/${config.tauri.bundle.identifier}`.

View File

@ -0,0 +1,6 @@
---
"cli.js": patch
"cli.rs": patch
---
Do not force Tauri application code on `src-tauri` folder and use a glob pattern to look for a subfolder with a `tauri.conf.json` file.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Adds `create_window` API to the `AppHandle` struct.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Cleanup application on `AppHandle#exit`.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Adds a `handle` function to the `App` struct, which returns a `Send` handle to the app instance.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Adds `set_activation_policy` API to the `tauri::App` struct (macOS only).

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Adds `manage` API to the `Builder` struct, which manages app state.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
You can now use `emit`, `listen` and `once` using the `appWindow` exported by the window module.

View File

@ -0,0 +1,5 @@
---
"tauri-utils": patch
---
Added `asset` allowlist configuration, which enables the `asset` protocol and defines it access scope.

5
.changes/asset-cors.md Normal file
View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Enable CORS on the `asset` protocol.

View File

@ -1,7 +0,0 @@
---
"api": patch
"tauri": patch
---
Fix missing asset protocol path.Now the protocol is `https://asset.localhost/path/to/file` on Windows. Lunix and macOS
is still `asset://path/to/file`.

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
The `asset://` custom protocol is only defined when either the `api-all`, `protocol-all` or `protocol-asset` feature flags are enabled. These feature flags are accessible with the `tauri.conf.json` allowlist.

View File

@ -1,5 +0,0 @@
---
"api": patch
---
Add asset custom protocol to access local file system.

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Expose the `asset_resolver` API on the `App` and `AppHandle` structs.

View File

@ -1,7 +0,0 @@
---
"tauri-codegen": patch
"tauri-utils": patch
"tauri": patch
---
**Breaking:** The `assets` field on the `tauri::Context` struct is now a `Arc<impl Assets>`.

View File

@ -1,6 +0,0 @@
---
"tauri": patch
"tauri-macros": patch
---
Only commands with a `async fn` are executed on a separate task. `#[command] fn command_name` runs on the main thread.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Add `handle` API to `tauri::async_runtime`.

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
**Breaking change:** Refactored the types returned from the `async_runtime` module.

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Added `tauri::async_runtime::set` method, allowing to share your tokio runtime with Tauri.

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Added `tauri::async_runtime::spawn_blocking` API.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
**Breaking change:** The `tauri::async_runtime::spawn` function now returns `tauri::async_runtime::JoinHandle<T>`.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Use `attohttpc` on the HTTP API by default for bundle size optimization. `reqwest` is implemented behind the `reqwest-client` feature flag.

View File

@ -0,0 +1,5 @@
---
"cli.rs": patch
---
Define `TAURI_PLATFORM`, `TAURI_ARCH`, `TAURI_FAMILY`, `TAURI_PLATFORM_TYPE`, `TAURI_PLATFORM_VERSION` and `TAURI_DEBUG` environment variables for the `beforeDevCommand` and `beforeBuildCommand` scripts.

View File

@ -1,16 +0,0 @@
---
"api": major
"tauri-bundler": major
"cli.rs": major
"cli.js": major
"tauri-utils": major
"tauri-codegen": major
"tauri-macros": major
"tauri-build": major
"tauri-runtime": minor
"tauri-runtime-wry": minor
"tauri": major
"create-tauri-app": major
---
Upgrade to beta!

View File

@ -1,5 +0,0 @@
---
"cli.rs": patch
---
Support `cargo tauri build` on Apple M1 chip.

View File

@ -0,0 +1,5 @@
---
"tauri-build": patch
---
Allow user to specify windows sdk path in build.rs.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch
---
Fixes the `Installed-Size` value on the debian package.

View File

@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---
Provide a provider short name for macOS app notarization if your Apple developer account is connected to more than one team.

View File

@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---
Allow building AppImages on systems without FUSE setup.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch
---
Use `armhf` as Debian package architecture on `arm` CPUs.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch
---
Adds basic library documentation.

View File

@ -0,0 +1,5 @@
---
'tauri-bundler': patch
---
Fixes AppImage crashes caused by missing WebKit runtime files.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch
---
Merge Tauri-generated Info.plist with the contents of `src-tauri/Info.plist` if it exists.

View File

@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---
Initialize the preselected installation path with the location of the previous installation.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch
---
Change the WiX config to allow upgrading installation with same version instead of duplicating the application.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch
---
The process of copying binaries and resources to `project_out_directory` was moved to the Tauri CLI.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch
---
The `PackageTypes` enum now includes all options, including Windows packages.

View File

@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---
Replaces usage of the nightly command `RUSTC_BOOTSTRAP=1 rustc -Z unstable-options --print target-spec-json` with the stable command `rustc --print cfg`, improving target triple detection.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch
---
Check target architecture at runtime running `$ RUSTC_BOOTSTRAP=1 rustc -Z unstable-options --print target-spec-json` and parsing the `llvm-target` field, fixing macOS M1 sidecar check until we can compile the CLI with M1 target on GitHub Actions.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch
---
Adds `icon_path` field to the `WindowsSettings` struct (defaults to `icons/icon.ico`).

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch
---
Fix WIX uninstaller by using unique `GUID` shortcut.

View File

@ -1,6 +0,0 @@
---
"tauri-bundler": patch
---
Added `banner_path` field to the `WixSettings` struct.

View File

@ -1,5 +0,0 @@
---
"tauri-bundler": patch
---
Added `dialog_image_path` field to the `WixSettings` struct.

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
The `callback` and `error` invoke fields, along with other `transformCallback` usages, are now validated to be numeric.

View File

@ -1,5 +0,0 @@
---
"cli.rs": patch
---
Fixes a cargo `target/` cache issue.

View File

@ -1,5 +0,0 @@
---
"tauri": patch
---
Kill child processes spawned with `tauri::api::process::Command` on `tauri::App` drop. Can be skipped with `tauri::Builder#skip_cleanup_on_drop`.

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Change `Error::ParseCliArguments(clap::Error)` to `Error::ParseCliArguments(String)` because `clap::Error` is not `Send`.

5
.changes/clap-beta.4.md Normal file
View File

@ -0,0 +1,5 @@
---
"tauri-utils": patch
---
Change `CliArg` numeric types from `u64` to `usize`.

View File

@ -0,0 +1,5 @@
---
"cli.rs": patch
---
Allow `config` arg to be a path to a JSON file on the `dev` and `build` commands.

View File

@ -1,5 +0,0 @@
---
"cli.rs": patch
---
Improve error logging.

View File

@ -1,5 +0,0 @@
---
"cli.rs": patch
---
Improve error message when the product name is invalid.

View File

@ -1,6 +0,0 @@
---
"cli.rs": patch
---
Infer `app name` and `window title` from `package.json > productName` or `package.json > name`.
Infer `distDir` and `devPath` by reading the package.json and trying to determine the UI framework (Vue.js, Angular, React, Svelte and some UI frameworks).

View File

@ -1,5 +0,0 @@
---
"cli.rs": patch
---
Adds Webview2 version on `info` command.

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