Skip to content

Commit

Permalink
merge from v2
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed May 9, 2024
2 parents c47d9d6 + eb1679b commit 0882c36
Show file tree
Hide file tree
Showing 236 changed files with 2,927 additions and 2,375 deletions.
11 changes: 11 additions & 0 deletions .changes/clipboard-refactor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"clipboard-manager": "patch"
---

Refactored the clipboard Rust APIs for more clarity and consistency:

- Changed `Clipboard::write_text` to take a string type instead of an enum.
- Changed `Clipboard::read_text` to return a string type instead of an enum.
- Changed `Clipboard::write_html` to take 2 string arguments instead of an enum.
- Changed `Clipboard::write_image` to take a reference to a `tauri::Image` instead of an enum.
- Removed `ClipKind` and `ClipboardContents` enums.
6 changes: 6 additions & 0 deletions .changes/enhance-shell-raw-out.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"shell": patch
---

When the "raw" encoding option is specified for a shell process, all bytes from the child's output streams are passed to the data handlers.
This makes it possible to read output from programs that write unencoded byte streams to stdout (like ffmpeg)
7 changes: 7 additions & 0 deletions .changes/fix-default-arg-value.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"notification": patch
"barcode-scanner": patch
"dialog": patch
---

Fixes command argument parsing on iOS.
5 changes: 5 additions & 0 deletions .changes/fix-fs-scope-deadlock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fs": patch
---

Fixes an issue that caused the app to freeze when the `dialog`, `fs`, and `persisted-scope` plugins were used together.
File renamed without changes.
5 changes: 5 additions & 0 deletions .changes/fix-updater-default-features.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"updater": patch
---

**Breaking change:** The `rustls-tls` feature flag is now enabled by default.
11 changes: 11 additions & 0 deletions .changes/global-hotkey-event.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"global-shortcut": "patch"
"global-shortcut-js": "patch"
---

Refactored APIs to introduce new pressed and released events:

- Added `ShortcutEvent` and `ShortcutState` types in Rust.
- Changed the handler function passed to `GlobalShortcut::on_shortcut`, `GlobalShortcut::on_all_shortcuts` and `Builder::with_handler` to take a 3rd argument of type `ShortcutEvent`.
- Added `ShortcutEvent` interface in JS.
- Changed `ShortcutHandler` type alias (which affects the JS `register` and `registerAll` APIs) to take `ShortcutEvent` instead of a string.
6 changes: 6 additions & 0 deletions .changes/impl-ext-for-webview-windows.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"positioner": "patch"
"window-state": "patch"
---

Implement `WindowExt` for `WebviewWindow`.
24 changes: 24 additions & 0 deletions .changes/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,62 @@
"tag": "beta",
"changes": [
".changes/beta.md",
".changes/clipboard-expose-struct.md",
".changes/clipboard-html.md",
".changes/clipboard-manager-image.md",
".changes/clipboard-refactor.md",
".changes/clipboard-text-command-rename.md",
".changes/dialog-can-create-directories.md",
".changes/dialog-linux-freeze.md",
".changes/dialog-main-thread.md",
".changes/dialog-path-return-mismatch.md",
".changes/enhance-fs-scope-type.md",
".changes/enhance-http-scope.md",
".changes/feat-log-attachlogger.md",
".changes/feat-single-instance-semver.md",
".changes/feat-websocket-tls-connector.md",
".changes/file-autogen-fix.md",
".changes/fix-autolaunch-macos.md",
".changes/fix-default-arg-value.md",
".changes/fix-fs-scope-deadlock.md",
".changes/fix-fs-watcher-basedir.md",
".changes/fix-http-default-features.md",
".changes/fix-http-scope-url-match.md",
".changes/fix-shutdown-timing.md",
".changes/fix-updater-cleanup.md",
".changes/fix-updater-default-features.md",
".changes/fix-updater-installer-args-deserialization.md",
".changes/fix-updater-installmode.md",
".changes/fix-updater-powershell-flashing.md",
".changes/fix-zbus-import.md",
".changes/global-api-script-refactor.md",
".changes/global-hotkey-event.md",
".changes/global-shortcut-refactor.md",
".changes/http-unsafe-headers.md",
".changes/http-user-agent.md",
".changes/msrv-1.75.md",
".changes/notification-fix-dev-check.md",
".changes/public-with-store.md",
".changes/remove-unc-path-prefix.md",
".changes/reqwest-0.12.md",
".changes/restore-default-window-state.md",
".changes/scoped-resources-table.md",
".changes/shell-fix-schema-command-property-name.md",
".changes/shell-shellexcute.md",
".changes/single-instance.macos.md",
".changes/tauri-beta-14-dependencies.md",
".changes/tauri-beta-14.md",
".changes/tauri-beta-15.md",
".changes/tauri-beta-17.md",
".changes/tauri-beta-4.md",
".changes/tauri-beta-8.md",
".changes/tauri-beta-9.md",
".changes/updater-non-zip.md",
".changes/upload-returnval.md",
".changes/watcher-debouncer-rename.md",
".changes/window-state-custom-filename.md",
".changes/window-state-default-filename.md",
".changes/window-state-js-binding.md",
".changes/window-state-json.md"
]
}
7 changes: 7 additions & 0 deletions .changes/remove-unc-path-prefix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
dialog: patch
fs: patch
store: patch
---

**Breaking Change:** All apis that return paths to the frontend will now remove the `\\?\` UNC prefix on Windows.
5 changes: 5 additions & 0 deletions .changes/restore-default-window-state.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"window-state": patch
---

Fix `restore_window` doesn't work with `skip_initial_state` when no previous cache was found
8 changes: 8 additions & 0 deletions .changes/scoped-resources-table.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"fs": "patch"
"http": "patch"
"updater": "patch"
"clipboard-manager": "patch"
---

Internally use the webview scoped resources table instead of the app one, so other webviews can't access other webviews resources.
5 changes: 5 additions & 0 deletions .changes/shell-command-execute-extra-new-lines.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shell-js": "patch"
---

Fix `Command.execute` API including extra new lines.
6 changes: 6 additions & 0 deletions .changes/shell-command-execute-speed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"shell": "patch"
"shell-js": "patch"
---

Improve the speed of the JS `Command.execute` API
5 changes: 5 additions & 0 deletions .changes/shell-command-lost-events.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"shell": "patch"
---

Fix the JS `Command` API losing events for `stdout`.
8 changes: 8 additions & 0 deletions .changes/tauri-beta-15.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"fs": patch
"http": patch
"updater": patch
"clipboard-manager": patch
---

Update for tauri 2.0.0-beta.15.
57 changes: 57 additions & 0 deletions .changes/tauri-beta-17.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
"authenticator": patch
"autostart": patch
"barcode-scanner": patch
"biometric": patch
"cli": patch
"clipboard-manager": patch
"deep-link": patch
"dialog": patch
"fs": patch
"global-shortcut": patch
"http": patch
"localhost": patch
"log-plugin": patch
"nfc": patch
"notification": patch
"os": patch
"persisted-scope": patch
"positioner": patch
"process": patch
"shell": patch
"single-instance": patch
"sql": patch
"store": patch
"stronghold": patch
"updater": patch
"upload": patch
"websocket": patch
"window-state": patch
"authenticator-js": patch
"autostart-js": patch
"barcode-scanner-js": patch
"biometric-js": patch
"cli-js": patch
"clipboard-manager-js": patch
"deep-link-js": patch
"dialog-js": patch
"fs-js": patch
"global-shortcut-js": patch
"http-js": patch
"log-js": patch
"nfc-js": patch
"notification-js": patch
"os-js": patch
"positioner-js": patch
"process-js": patch
"shell-js": patch
"sql-js": patch
"store-js": patch
"stronghold-js": patch
"updater-js": patch
"upload-js": patch
"websocket-js": patch
"window-state-js": patch
---

Update to tauri beta.17.
5 changes: 5 additions & 0 deletions .changes/updater-non-zip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"updater": "patch"
---

Add support for updating using non-zipped files on Windows and Linux.
5 changes: 5 additions & 0 deletions .changes/watcher-debouncer-rename.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fs": patch
---

Fixes `RenameMode::From` and `RenameMode::To` never getting converted to `RenameMode::Both` when using `watch` with a debounce on Windows
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ build/
dist-js
api-iife.js
init-iife.js
init.js
init.js
rollup.config.js
examples/
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"es2021": true
},
"extends": [
"love",
"prettier",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
Expand All @@ -13,7 +14,8 @@
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
"sourceType": "module",
"project": ["**/tsconfig.json"]
},
"plugins": ["@typescript-eslint"],
"rules": {}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ jobs:
command: "test",
}
- {
target: x86_64-apple-darwin,
target: aarch64-apple-darwin,
os: macos-latest,
runner: "cargo",
command: "test",
Expand Down
Loading

0 comments on commit 0882c36

Please sign in to comment.