From a14901bd6c745b15f0236a1370e6726e7144dc6e Mon Sep 17 00:00:00 2001 From: Cap-go Date: Fri, 3 Jan 2025 18:21:53 +0000 Subject: [PATCH] Update from https://github.com/Cap-go/capacitor-updater/commit/5e1cf1656f66cbc2c854198e07808f3316a2073c --- src/content/docs/docs/plugin/api.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/content/docs/docs/plugin/api.md b/src/content/docs/docs/plugin/api.md index df61d6d0..c76c91a1 100644 --- a/src/content/docs/docs/plugin/api.md +++ b/src/content/docs/docs/plugin/api.md @@ -140,7 +140,7 @@ export default config; * [`reload()`](#reload) * [`setMultiDelay(...)`](#setmultidelay) * [`cancelDelay()`](#canceldelay) -* [`getLatest()`](#getlatest) +* [`getLatest(...)`](#getlatest) * [`setChannel(...)`](#setchannel) * [`unsetChannel(...)`](#unsetchannel) * [`getChannel()`](#getchannel) @@ -389,14 +389,18 @@ Cancels a {@link DelayCondition} to process an upd -------------------- -## getLatest() +## getLatest(...) ```typescript -getLatest() => Promise +getLatest(options?: GetLatestOptions | undefined) => Promise ``` Get Latest bundle available from update Url +| Param | Type | +| ------------- | ------------------------------------------------------------- | +| **`options`** | GetLatestOptions | + **Returns:** Promise<LatestVersion> **Since:** 4.0.0 @@ -871,6 +875,13 @@ Returns null if no next bundle is set. | **`download_url`** | string \| null | +### GetLatestOptions + +| Prop | Type | Description | Default | Since | +| ------------- | ------------------- | ----------------------------------------------------------------------------------------------- | ---------------------- | ----- | +| **`channel`** | string | The channel to get the latest version for The channel must allow 'self_assign' for this to work | undefined | 6.8.0 | + + ### ChannelRes | Prop | Type | Description | Since |