@tauri-apps/plugin-updater
Classes
Section titled “Classes”Update
Section titled “Update”Defined in: plugins/updater/guest-js/index.ts:58
Extends
Section titled “Extends”Resource
Constructors
Section titled “Constructors”new Update()
Section titled “new Update()”new Update(metadata): Update;Defined in: plugins/updater/guest-js/index.ts:69
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
metadata |
UpdateMetadata |
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Resource.constructorProperties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
available |
boolean |
Deprecated This is always true, check if the return value is null instead when using check |
plugins/updater/guest-js/index.ts:61 |
body? |
string |
- | plugins/updater/guest-js/index.ts:65 |
currentVersion |
string |
- | plugins/updater/guest-js/index.ts:62 |
date? |
string |
- | plugins/updater/guest-js/index.ts:64 |
rawJson |
Record<string, unknown> |
- | plugins/updater/guest-js/index.ts:66 |
version |
string |
- | plugins/updater/guest-js/index.ts:63 |
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get rid(): number;Defined in: @tauri-apps/api/core.d.ts:183
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”Resource.ridMethods
Section titled “Methods”close()
Section titled “close()”close(): Promise<void>;Defined in: plugins/updater/guest-js/index.ts:129
Destroys and cleans up this resource from memory. You should not call any method on this object anymore and should drop any reference to it.
Returns
Section titled “Returns”Overrides
Section titled “Overrides”Resource.closedownload()
Section titled “download()”download(onEvent?, options?): Promise<void>;Defined in: plugins/updater/guest-js/index.ts:80
Download the updater package
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
onEvent? |
(progress) => void |
options? |
DownloadOptions |
Returns
Section titled “Returns”downloadAndInstall()
Section titled “downloadAndInstall()”downloadAndInstall(onEvent?, options?): Promise<void>;Defined in: plugins/updater/guest-js/index.ts:113
Downloads the updater package and installs it
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
onEvent? |
(progress) => void |
options? |
DownloadOptions |
Returns
Section titled “Returns”install()
Section titled “install()”install(): Promise<void>;Defined in: plugins/updater/guest-js/index.ts:98
Install downloaded updater package
Returns
Section titled “Returns”Interfaces
Section titled “Interfaces”CheckOptions
Section titled “CheckOptions”Defined in: plugins/updater/guest-js/index.ts:8
Options used when checking for updates
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
allowDowngrades? |
boolean |
Allow downgrades to previous versions by not checking if the current version is greater than the available version. | plugins/updater/guest-js/index.ts:28 |
headers? |
HeadersInit |
Request headers | plugins/updater/guest-js/index.ts:12 |
proxy? |
string |
A proxy url to be used when checking and downloading updates. | plugins/updater/guest-js/index.ts:20 |
target? |
string |
Target identifier for the running application. This is sent to the backend. | plugins/updater/guest-js/index.ts:24 |
timeout? |
number |
Timeout in milliseconds | plugins/updater/guest-js/index.ts:16 |
DownloadOptions
Section titled “DownloadOptions”Defined in: plugins/updater/guest-js/index.ts:32
Options used when downloading an update
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
headers? |
HeadersInit |
Request headers | plugins/updater/guest-js/index.ts:36 |
timeout? |
number |
Timeout in milliseconds | plugins/updater/guest-js/index.ts:40 |
Type Aliases
Section titled “Type Aliases”DownloadEvent
Section titled “DownloadEvent”type DownloadEvent = | { data: { contentLength?: number; }; event: "Started";} | { data: { chunkLength: number; }; event: "Progress";} | { event: "Finished";};Defined in: plugins/updater/guest-js/index.ts:53
Updater download event
Functions
Section titled “Functions”check()
Section titled “check()”function check(options?): Promise<Update | null>;Defined in: plugins/updater/guest-js/index.ts:136
Check for updates, resolves to null if no updates are available
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
CheckOptions |
Returns
Section titled “Returns”© 2026 Tauri Contributors. CC-BY / MIT