Skip to content

Commit

Permalink
Merge branch '1.x' into fix/shell/retry-emits
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed May 9, 2024
2 parents d4a6bc9 + 6bb721c commit e6df15a
Show file tree
Hide file tree
Showing 21 changed files with 294 additions and 194 deletions.
6 changes: 6 additions & 0 deletions .changes/shell-execute-extra-newline.md
@@ -0,0 +1,6 @@
---
"@tauri-apps/api": "patch:bug"
---

Fix The JS `Command.execute` API from `shell` module including extra new lines.

7 changes: 7 additions & 0 deletions .changes/shell-execute-performance.md
@@ -0,0 +1,7 @@
---
"tauri": "patch:enhance"
"@tauri-apps/api": "patch:enhance"
---

Enhance the speed of The JS `Command.execute` API from `shell` module.

4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions core/tauri-runtime-wry/CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog

## \[0.14.7]

### Bug Fixes

- [`2eb21378a`](https://www.github.com/tauri-apps/tauri/commit/2eb21378a65107da0d4a1ab425767e99580966c2)([#9718](https://www.github.com/tauri-apps/tauri/pull/9718)) Fixes redraw tracing span not closing.

## \[0.14.6]

### Dependencies
Expand Down
2 changes: 1 addition & 1 deletion core/tauri-runtime-wry/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "tauri-runtime-wry"
version = "0.14.6"
version = "0.14.7"
authors = [ "Tauri Programme within The Commons Conservancy" ]
categories = [ "gui", "web-programming" ]
license = "Apache-2.0 OR MIT"
Expand Down
17 changes: 7 additions & 10 deletions core/tauri-runtime-wry/src/lib.rs
Expand Up @@ -248,14 +248,11 @@ pub struct ActiveTraceSpanStore(Rc<RefCell<Vec<ActiveTracingSpan>>>);

#[cfg(feature = "tracing")]
impl ActiveTraceSpanStore {
pub fn remove_window_draw(&self, window_id: WindowId) {
let mut store = self.0.borrow_mut();
if let Some(index) = store
.iter()
.position(|t| matches!(t, ActiveTracingSpan::WindowDraw { id, span: _ } if id == &window_id))
{
store.remove(index);
}
pub fn remove_window_draw(&self) {
self
.0
.borrow_mut()
.retain(|t| !matches!(t, ActiveTracingSpan::WindowDraw { id: _, span: _ }));
}
}

Expand Down Expand Up @@ -2839,8 +2836,8 @@ fn handle_event_loop<T: UserEvent>(
}

#[cfg(feature = "tracing")]
Event::RedrawRequested(id) => {
active_tracing_spans.remove_window_draw(id);
Event::RedrawEventsCleared => {
active_tracing_spans.remove_window_draw();
}

#[cfg(all(desktop, feature = "global-shortcut"))]
Expand Down
6 changes: 6 additions & 0 deletions core/tauri/CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog

## \[1.6.4]

### Dependencies

- Upgraded to `tauri-runtime-wry@0.14.7`

## \[1.6.3]

### Enhancements
Expand Down
4 changes: 2 additions & 2 deletions core/tauri/Cargo.toml
Expand Up @@ -10,7 +10,7 @@ license = "Apache-2.0 OR MIT"
name = "tauri"
readme = "README.md"
repository = "https://github.com/tauri-apps/tauri"
version = "1.6.3"
version = "1.6.4"

[package.metadata.docs.rs]
no-default-features = true
Expand Down Expand Up @@ -61,7 +61,7 @@ once_cell = "1"
tauri-runtime = { version = "0.14.3", path = "../tauri-runtime" }
tauri-macros = { version = "1.4.4", path = "../tauri-macros" }
tauri-utils = { version = "1.5.4", features = [ "resources" ], path = "../tauri-utils" }
tauri-runtime-wry = { version = "0.14.6", path = "../tauri-runtime-wry", optional = true }
tauri-runtime-wry = { version = "0.14.7", path = "../tauri-runtime-wry", optional = true }
rand = "0.8"
semver = { version = "1.0", features = [ "serde" ] }
serde_repr = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion core/tauri/scripts/bundle.global.js

Large diffs are not rendered by default.

0 comments on commit e6df15a

Please sign in to comment.