Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into build/api/simpify-outp…
Browse files Browse the repository at this point in the history
…ut-js
  • Loading branch information
lucasfernog committed Oct 23, 2023
2 parents 7eecdc9 + 198abe3 commit ece2adb
Show file tree
Hide file tree
Showing 179 changed files with 6,040 additions and 3,654 deletions.
5 changes: 5 additions & 0 deletions .changes/always-on-bottom-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tauri-apps/api": patch:feat
---

Added `setAlwaysOnBottom` function on `Window` and the `alwaysOnBottom` option when creating a window.
5 changes: 5 additions & 0 deletions .changes/always-on-bottom-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri-utils': 'minor:feat'
---

Added the `always_on_bottom` option to the window configuration.
7 changes: 7 additions & 0 deletions .changes/always-on-bottom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'tauri': 'minor:feat'
'tauri-runtime': 'minor:feat'
'tauri-runtime-wry': 'minor:feat'
---

Added `Window::set_always_on_bottom` and the `always_on_bottom` option when creating a window.
5 changes: 5 additions & 0 deletions .changes/android-plugin-get-config-typed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:breaking
---

The Android `PluginManager.loadConfig` now takes a third parameter to define the class type of the config object.
5 changes: 5 additions & 0 deletions .changes/api-min-node-18.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tauri-apps/api": patch:changes
---

Updated minimum Node.js version to 18.
2 changes: 1 addition & 1 deletion .changes/api-primitives.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
'@tauri-apps/api': 'major:breaking'
'@tauri-apps/api': 'patch:breaking'
---

Changed `tauri` module to `primitives` and removed the undocumented `invoke` export from the root module.
15 changes: 15 additions & 0 deletions .changes/bump-1.5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"tauri": 'patch:enhance'
"tauri-bundler": 'patch:enhance'
"tauri-build": 'patch:enhance'
"tauri-codegen": 'patch:enhance'
"tauri-macros": 'patch:enhance'
"tauri-utils": 'patch:enhance'
"tauri-runtime": 'patch:enhance'
"tauri-runtime-wry": 'patch:enhance'
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
"@tauri-apps/api": 'patch:enhance'
---

Pull changes from Tauri 1.5 release.
4 changes: 2 additions & 2 deletions .changes/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"gitSiteUrl": "https://www.github.com/tauri-apps/tauri/",
"timeout": 3600000,
"changeTags": {
"feat": "New Features",
"enhance": "Enhancements",
Expand Down Expand Up @@ -271,7 +270,8 @@
},
"tauri-driver": {
"path": "./tooling/webdriver",
"manager": "rust"
"manager": "rust",
"postversion": "cargo check"
}
}
}
5 changes: 5 additions & 0 deletions .changes/fix-clearmocks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tauri-apps/api": 'patch:bug'
---

No longer crashing in tests without mocks when `clearMocks` is defined in `afterEach` hook.
5 changes: 5 additions & 0 deletions .changes/mobile-plugin-resolve-object.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:enhance
---

Mobile plugins can now resolve using an arbitrary object instead of using the `JSObject` class via `Invoke.resolve` on iOS and `Invoke.resolveObject` on Android.
5 changes: 5 additions & 0 deletions .changes/mobile-plugin-typed-invoke-args.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:breaking
---

Mobile plugins now have access to a parser for the invoke arguments instead of relying on the `Invoke#get${TYPE}` methods.
5 changes: 5 additions & 0 deletions .changes/nsis-german.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri-bundler': 'patch:enhance'
---

Added German language support to the NSIS bundler.
28 changes: 28 additions & 0 deletions .changes/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,25 @@
"changes": [
".changes/add-command.md",
".changes/add-mobile-to-plugin.md",
".changes/add-progress-bar.md",
".changes/add-visible-on-all-workspaces.md",
".changes/always-on-bottom-api.md",
".changes/always-on-bottom-config.md",
".changes/always-on-bottom.md",
".changes/android-apis-runtime.md",
".changes/android-buildsrc-gitignore.md",
".changes/android-enhance-method-parse.md",
".changes/android-load-config.md",
".changes/android-on-new-intent.md",
".changes/android-plugin-command-exception.md",
".changes/api-app.md",
".changes/api-ipc-refactor.md",
".changes/api-min-node-18.md",
".changes/api-primitives.md",
".changes/api-tabbed.md",
".changes/api-window.md",
".changes/app-builder-send.md",
".changes/app-plugin-core.md",
".changes/build-android-env-vars.md",
".changes/bump-1.3.md",
".changes/bundler-remove-dialog-option.md",
Expand All @@ -25,6 +35,7 @@
".changes/cli-apple-dev-team.md",
".changes/cli-built-in-dev-server-mobile.md",
".changes/cli-config-target-mobile.md",
".changes/cli-env-vars.md",
".changes/cli-expose-plugin-config.md",
".changes/cli-ios-build.md",
".changes/cli-ios-metadata-env-var.md",
Expand All @@ -35,10 +46,13 @@
".changes/cli-mobile-cwd-config.md",
".changes/cli-mobile-dev.md",
".changes/cli-mobile-plugin.md",
".changes/cli-no-dev-server-wait.md",
".changes/cli-nodejs-detection.md",
".changes/cli-npx-mobile.md",
".changes/cli-plugin-init.md",
".changes/cli-pnpm.md",
".changes/cli-refactor-ipc-mobile.md",
".changes/cli-removed-new-version-check.md",
".changes/cli-skip-targets-install.md",
".changes/cli-wry-0-28.md",
".changes/codegen-mobile-devurl.md",
Expand Down Expand Up @@ -109,6 +123,7 @@
".changes/invoke-handler-attributes.md",
".changes/invoke-return-bool.md",
".changes/invoke-system-args.md",
".changes/invoke-system-refactor.md",
".changes/ios-create-asset-dir.md",
".changes/ios-deployment-target.md",
".changes/ios-entitlements.md",
Expand All @@ -134,6 +149,7 @@
".changes/mobile-config-naming-conventions.md",
".changes/mobile-config.md",
".changes/mobile-dev-watcher-ignore-gen.md",
".changes/mobile-docs.md",
".changes/mobile-entry-point-macro.md",
".changes/mobile-env-vars-rename.md",
".changes/mobile-init.md",
Expand All @@ -158,6 +174,7 @@
".changes/move-updater.md",
".changes/msrv-1.64.md",
".changes/msrv-1.65.md",
".changes/msrv-1.70.md",
".changes/napi-rs.md",
".changes/npm-pass-args.md",
".changes/nsis-bulgarian.md",
Expand Down Expand Up @@ -195,6 +212,7 @@
".changes/remove-updater-dialog.md",
".changes/remove-updater-event.md",
".changes/remove-window.md",
".changes/rename-hook-env-vars.md",
".changes/rewrite-android-manifest.md",
".changes/rfd101.md",
".changes/run-event-opened.md",
Expand All @@ -209,6 +227,7 @@
".changes/runtime-new-args.md",
".changes/runtime-opened-event.md",
".changes/safepathbuf-refactor.md",
".changes/set-progress-bar-api.md",
".changes/set_native_icon_signature.md",
".changes/shadow-api.md",
".changes/shadow-config.md",
Expand All @@ -227,17 +246,25 @@
".changes/tauri-cleanup-before-exit.md",
".changes/tauri-defaultvbox.md",
".changes/tauri-env-args.md",
".changes/tauri-env-vars.md",
".changes/tauri-extranous-result-types-removal.md",
".changes/tauri-libxdo-feat.md",
".changes/tauri-menu-tray-refactor.md",
".changes/tauri-mobile-entry-point.md",
".changes/tauri-nsview.md",
".changes/tauri-run_on_main_thread.md",
".changes/tauri-runtime-uuid.md",
".changes/tauri-runtime-wry-env-vars.md",
".changes/tauri-runtime-wry-uuid.md",
".changes/tauri-runtime-wry-wry-0-28.md",
".changes/tauri-scopes.md",
".changes/tauri-tabbed.md",
".changes/tauri-tray-icon-feat-flag.md",
".changes/tauri-tray-icon-id.md",
".changes/tauri-tray-on-tray-event.md",
".changes/tauri-utils-tabbed.md",
".changes/tauri-utils-tray-icon-id copy.md",
".changes/tauri-uuid-rand.md",
".changes/tempdir-api.md",
".changes/tempdir-core.md",
".changes/tls-features-automatically-enabled.md",
Expand All @@ -251,6 +278,7 @@
".changes/window-effects.md",
".changes/window-on-message-refactor.md",
".changes/window-on-navigation-arg.md",
".changes/window-plugin-core.md",
".changes/with-webview.md",
".changes/wry-0.32.md",
".changes/wry-navigate-method.md",
Expand Down
5 changes: 5 additions & 0 deletions .changes/prevent-ios-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:bug
---

Prevent crash on iOS when the Swift plugin data is not a valid JSON string.
10 changes: 10 additions & 0 deletions .changes/rename-hook-env-vars.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@tauri-apps/cli": patch:breaking
"tauri-cli": patch:breaking
"tauri-build": patch:breaking
"tauri-utils": patch:breaking
"tauri-codegen": patch:breaking
"tauri-macros": patch:breaking
---

Renamed the beforeDevCommand, beforeBuildCommand and beforeBundleCommand hooks environment variables from `TAURI_PLATFORM, TAURI_ARCH, TAURI_FAMILY, TAURI_PLATFORM_VERSION, TAURI_PLATFORM_TYPE and TAURI_DEBUG` to `TAURI_ENV_PLATFORM, TAURI_ENV_ARCH, TAURI_ENV_FAMILY, TAURI_ENV_PLATFORM_VERSION, TAURI_ENV_PLATFORM_TYPE and TAURI_ENV_DEBUG` to differentiate the prefix with other CLI environment variables.
6 changes: 6 additions & 0 deletions .changes/update-mobile-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": patch:breaking
"@tauri-apps/cli": patch:breaking
---

Updated the mobile plugin templates following the tauri v2.0.0-alpha.17 changes.
8 changes: 7 additions & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- cron: '0 0 * * *'
push:
paths:
- '.github/workflows/audit.yml'
- '**/Cargo.lock'
- '**/Cargo.toml'
- '**/package.json'
Expand All @@ -33,6 +34,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: yarn audit
- name: audit workspace
run: yarn audit
- name: audit @tauri-apps/api
working-directory: tooling/api
run: yarn audit
- name: audit @tauri-apps/cli
working-directory: tooling/cli/node
run: yarn audit
18 changes: 12 additions & 6 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ on:
- dev
- 1.x
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/bench.yml'

env:
RUST_BACKTRACE: 1
CARGO_PROFILE_DEV_DEBUG: 0 # This would add unnecessary bloat to the target folder, decreasing cache efficiency.
LC_ALL: en_US.UTF-8 # This prevents strace from changing it's number format to use commas.
LC_ALL: en_US.UTF-8 # This prevents strace from changing its number format to use commas.

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -27,7 +30,7 @@ jobs:
matrix:
rust: [nightly]
platform:
- { target: x86_64-unknown-linux-gnu, os: ubuntu-20.04 }
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest }

runs-on: ${{ matrix.platform.os }}

Expand All @@ -43,7 +46,7 @@ jobs:
target: ${{ matrix.platform.target }}

- name: setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: x64
Expand All @@ -52,9 +55,12 @@ jobs:
run: |
python -m pip install --upgrade pip
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev xvfb
wget https://github.com/sharkdp/hyperfine/releases/download/v1.11.0/hyperfine_1.11.0_amd64.deb
sudo dpkg -i hyperfine_1.11.0_amd64.deb
sudo apt-get install -y --no-install-recommends \
libwebkit2gtk-4.1-dev libayatana-appindicator3-dev \
xvfb \
at-spi2-core
wget https://github.com/sharkdp/hyperfine/releases/download/v1.18.0/hyperfine_1.18.0_amd64.deb
sudo dpkg -i hyperfine_1.18.0_amd64.deb
pip install memory_profiler
- uses: Swatinem/rust-cache@v2
Expand Down
Loading

0 comments on commit ece2adb

Please sign in to comment.