Skip to content

Conversation

Legend-Master
Copy link
Contributor

Migrate restart to use tauri's new AppHandle::request_restart method

Reference: tauri-apps/tauri#12874

@Legend-Master Legend-Master requested a review from a team as a code owner March 31, 2025 02:10
Copy link
Contributor

Package Changes Through f7d2131

There are 12 changes which include autostart with minor, autostart-js with minor, http with patch, http-js with patch, deep-link with patch, deep-link-js with patch, fs with patch, fs-js with patch, process with patch, process-js with patch, updater with minor, updater-js with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
api-example 2.0.23 2.0.24
api-example-js 2.0.19 2.0.20
deep-link-example-js 2.2.0 2.2.1
autostart 2.2.0 2.3.0
autostart-js 2.2.0 2.3.0
deep-link 2.2.0 2.2.1
deep-link-js 2.2.0 2.2.1
fs 2.2.0 2.2.1
fs-js 2.2.0 2.2.1
dialog 2.2.0 2.2.1
dialog-js 2.2.0 2.2.1
http 2.4.2 2.4.3
http-js 2.4.2 2.4.3
persisted-scope 2.2.0 2.2.1
process 2.2.0 2.2.1
process-js 2.2.0 2.2.1
single-instance 2.2.2 2.2.3
updater 2.6.1 2.7.0
updater-js 2.6.1 2.7.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@FabianLars
Copy link
Member

shouldn't this be a second command?

@Legend-Master
Copy link
Contributor Author

Legend-Master commented Apr 1, 2025

The JavaScript API doesn't care about the diverging signature and the new request_restart actually does what we have documented previously on restart so I think it's fine to just replace it (currently restart is just request_restart but with a diverging return type and doesn't trigger the events if run on main thread)

@Legend-Master Legend-Master merged commit d2aef2f into tauri-apps:v2 Apr 1, 2025
16 checks passed
@Legend-Master Legend-Master deleted the migrate-request-restart branch April 1, 2025 14:17
gezihuzi pushed a commit to Hypobenthos/plugins-workspace that referenced this pull request Jun 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants