@tauri-apps/plugin-updater
- Resource
new Update(metadata): Update| Parameter | Type | 
|---|---|
| metadata | UpdateMetadata | 
Resource.constructor
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L69
| Property | Type | Description | Defined in | 
|---|---|---|---|
| available | boolean | Deprecated This is always true, check if the return value is nullinstead when usingcheck | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L61 | 
| body? | string | - | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L65 | 
| currentVersion | string | - | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L62 | 
| date? | string | - | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L64 | 
| rawJson | Record<string,unknown> | - | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L66 | 
| version | string | - | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L63 | 
get rid(): numbernumber
Resource.rid
Source: undefined
close(): Promise<void>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.
Promise<void>
Resource.close
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L129
download(onEvent?, options?): Promise<void>Download the updater package
| Parameter | Type | 
|---|---|
| onEvent? | ( progress) =>void | 
| options? | DownloadOptions | 
Promise<void>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L80
downloadAndInstall(onEvent?, options?): Promise<void>Downloads the updater package and installs it
| Parameter | Type | 
|---|---|
| onEvent? | ( progress) =>void | 
| options? | DownloadOptions | 
Promise<void>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L113
install(): Promise<void>Install downloaded updater package
Promise<void>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L98
Options used when checking for updates
| 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. | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L28 | 
| headers? | HeadersInit | Request headers | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L12 | 
| proxy? | string | A proxy url to be used when checking and downloading updates. | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L20 | 
| target? | string | Target identifier for the running application. This is sent to the backend. | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L24 | 
| timeout? | number | Timeout in milliseconds | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L16 | 
Options used when downloading an update
| Property | Type | Description | Defined in | 
|---|---|---|---|
| headers? | HeadersInit | Request headers | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L36 | 
| timeout? | number | Timeout in milliseconds | Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L40 | 
type DownloadEvent: object | object | object;Updater download event
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L53
function check(options?): Promise<Update | null>Check for updates, resolves to null if no updates are available
| Parameter | Type | 
|---|---|
| options? | CheckOptions | 
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/updater/guest-js/index.ts#L136
© 2025 Tauri Contributors. CC-BY / MIT