@capgo/capacitor-updater 7.51.15 → 7.51.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs.json CHANGED
@@ -4631,7 +4631,7 @@
4631
4631
  "name": "example"
4632
4632
  }
4633
4633
  ],
4634
- "docs": "Configure how the plugin checks for, downloads, and applies live updates.\n\nThe plugin checks for updates when the app moves to the foreground. When\n{@link periodCheckDelay} is greater than 0, it also checks on a repeating timer\nwhile the app stays open.\n\nBoolean values keep their existing behavior:\n- `true`: Same as `\"atBackground\"`.\n- `false`: Same as `\"off\"`.\n\nString values merge the previous Auto Update and Direct Update configuration:\n- `\"off\"`: Disable automatic update checks.\n- `\"atBackground\"`: Check and download automatically on each foreground check, then apply the update the next time the app moves to background.\n- `\"atInstall\"`: Apply immediately only after a fresh install or native app store update; otherwise use `\"atBackground\"` behavior.\n- `\"onLaunch\"`: Apply immediately only when the app is brought to the foreground from a killed state (cold start). After that first check, fall back to `\"atBackground\"` behavior.\n- `\"always\"`: Check on every foreground transition and apply immediately whenever an update is available.\n- `\"onlyDownload\"`: Check and download automatically, emit `updateAvailable`, and never set the next bundle or apply an update automatically.\n\nOnly available for Android and iOS.",
4634
+ "docs": "Configure how the plugin checks for, downloads, and applies live updates.\n\nThe plugin checks for updates when the app moves to the foreground. When\n{@link periodCheckDelay} is greater than 0, it also checks on a repeating timer\nwhile the app stays open.\n\nBoolean values keep their existing behavior:\n- `true`: Same as `\"atBackground\"`.\n- `false`: Same as `\"off\"`.\n\nString values merge the previous Auto Update and Direct Update configuration:\n- `\"off\"`: Disable automatic update checks.\n- `\"atBackground\"`: Check and download automatically on each foreground check, then apply the update the next time the app moves to background.\n- `\"atInstall\"`: Apply immediately only after a fresh install or native app store update; otherwise use `\"atBackground\"` behavior.\n- `\"onLaunch\"`: Apply immediately only when the app is brought to the foreground from a killed state (cold start). After that first check, fall back to `\"atBackground\"` behavior.\n- `\"always\"`: Check on every foreground transition and apply immediately whenever an update is available.\n- `\"onlyDownload\"`: Check and download automatically, emit `updateAvailable`, and never set the next bundle or apply an update automatically.\n\nInstant apply modes (`\"atInstall\"`, `\"onLaunch\"`, `\"always\"`) apply while the user is waiting.\nUpload with `npx @capgo/cli@latest bundle upload --delta` so only changed files download. A full zip upload slows the user experience.\nThese modes require `autoSplashscreen: true` and `@capacitor/splash-screen` installed with `launchAutoHide: false`.\n\nOnly available for Android and iOS.",
4635
4635
  "complexTypes": [],
4636
4636
  "type": "boolean | 'always' | 'off' | 'atBackground' | 'atInstall' | 'onLaunch' | 'onlyDownload' | undefined"
4637
4637
  },
@@ -4735,7 +4735,7 @@
4735
4735
  "name": "directUpdate",
4736
4736
  "tags": [
4737
4737
  {
4738
- "text": "Use {@link PluginsConfig.CapacitorUpdater.autoUpdate} string modes instead.\nWorks well for apps less than 10MB and with uploads done using --delta flag.\nZip or apps more than 10MB will be relatively slow for users to update.\n- false: Never do direct updates\n- atInstall: Same as `\"atInstall\"` for {@link autoUpdate}\n- onLaunch: Same as `\"onLaunch\"` for {@link autoUpdate}\n- always: Same as `\"always\"` for {@link autoUpdate}\n- true: (deprecated) Same as \"always\" for backward compatibility\n\nActivate this flag will automatically make the CLI upload delta in CICD envs and will ask for confirmation in local uploads.\nOnly available for Android and iOS.",
4738
+ "text": "Use {@link PluginsConfig.CapacitorUpdater.autoUpdate} string modes instead.\n\nOnly available for Android and iOS.",
4739
4739
  "name": "deprecated"
4740
4740
  },
4741
4741
  {
@@ -4747,7 +4747,7 @@
4747
4747
  "name": "since"
4748
4748
  }
4749
4749
  ],
4750
- "docs": "Configure when the plugin should direct install updates. Only for autoUpdate mode.",
4750
+ "docs": "Configure when the plugin should direct install updates. Only for autoUpdate mode.\nInstant apply (`atInstall`, `onLaunch`, `always`) should be uploaded with `--delta` so the update does not slow the user experience. A full zip, especially over 10MB, is relatively slow for users.\nThese modes require `autoSplashscreen: true` and `@capacitor/splash-screen` installed with `launchAutoHide: false`.\nThis flag makes the CLI upload delta in CI and ask for confirmation in local uploads.\n- false: Never do direct updates\n- atInstall: Same as `\"atInstall\"` for {@link autoUpdate}\n- onLaunch: Same as `\"onLaunch\"` for {@link autoUpdate}\n- always: Same as `\"always\"` for {@link autoUpdate}\n- true: (deprecated) Same as \"always\" for backward compatibility",
4751
4751
  "complexTypes": [],
4752
4752
  "type": "boolean | 'always' | 'atInstall' | 'onLaunch' | undefined"
4753
4753
  },
@@ -4763,7 +4763,7 @@
4763
4763
  "name": "since"
4764
4764
  }
4765
4765
  ],
4766
- "docs": "Automatically handle splashscreen hiding when using directUpdate. When enabled, the plugin will automatically hide the splashscreen after updates are applied or when no update is needed.\nThis removes the need to manually listen for appReady events and call SplashScreen.hide().\nOnly works when autoUpdate is set to \"atInstall\", \"always\", or \"onLaunch\", or when the deprecated directUpdate option is set to \"atInstall\", \"always\", \"onLaunch\", or true.\nRequires the @capacitor/splash-screen plugin to be installed and configured with launchAutoHide: false.\nRequires Auto Update and Direct Update behavior to be enabled.\n\nOnly available for Android and iOS.",
4766
+ "docs": "Automatically hide the splashscreen after instant apply updates finish, or when no update is needed.\nRequired when using instant apply modes (`\"atInstall\"`, `\"onLaunch\"`, `\"always\"`), including the deprecated `directUpdate` values `\"atInstall\"`, `\"onLaunch\"`, `\"always\"`, and `true`.\n`@capacitor/splash-screen` must be installed and configured with `launchAutoHide: false`.\nThis removes the need to manually listen for appReady events and call SplashScreen.hide().\n\nOnly available for Android and iOS.",
4767
4767
  "complexTypes": [],
4768
4768
  "type": "boolean | undefined"
4769
4769
  },
@@ -63,6 +63,10 @@ declare module '@capacitor/cli' {
63
63
  * - `"always"`: Check on every foreground transition and apply immediately whenever an update is available.
64
64
  * - `"onlyDownload"`: Check and download automatically, emit `updateAvailable`, and never set the next bundle or apply an update automatically.
65
65
  *
66
+ * Instant apply modes (`"atInstall"`, `"onLaunch"`, `"always"`) apply while the user is waiting.
67
+ * Upload with `npx @capgo/cli@latest bundle upload --delta` so only changed files download. A full zip upload slows the user experience.
68
+ * These modes require `autoSplashscreen: true` and `@capacitor/splash-screen` installed with `launchAutoHide: false`.
69
+ *
66
70
  * Only available for Android and iOS.
67
71
  *
68
72
  * @default true
@@ -131,17 +135,17 @@ declare module '@capacitor/cli' {
131
135
  version?: string;
132
136
  /**
133
137
  * Configure when the plugin should direct install updates. Only for autoUpdate mode.
134
- *
135
- * @deprecated Use {@link PluginsConfig.CapacitorUpdater.autoUpdate} string modes instead.
136
- * Works well for apps less than 10MB and with uploads done using --delta flag.
137
- * Zip or apps more than 10MB will be relatively slow for users to update.
138
+ * Instant apply (`atInstall`, `onLaunch`, `always`) should be uploaded with `--delta` so the update does not slow the user experience. A full zip, especially over 10MB, is relatively slow for users.
139
+ * These modes require `autoSplashscreen: true` and `@capacitor/splash-screen` installed with `launchAutoHide: false`.
140
+ * This flag makes the CLI upload delta in CI and ask for confirmation in local uploads.
138
141
  * - false: Never do direct updates
139
142
  * - atInstall: Same as `"atInstall"` for {@link autoUpdate}
140
143
  * - onLaunch: Same as `"onLaunch"` for {@link autoUpdate}
141
144
  * - always: Same as `"always"` for {@link autoUpdate}
142
145
  * - true: (deprecated) Same as "always" for backward compatibility
143
146
  *
144
- * Activate this flag will automatically make the CLI upload delta in CICD envs and will ask for confirmation in local uploads.
147
+ * @deprecated Use {@link PluginsConfig.CapacitorUpdater.autoUpdate} string modes instead.
148
+ *
145
149
  * Only available for Android and iOS.
146
150
  *
147
151
  * @default false
@@ -149,11 +153,10 @@ declare module '@capacitor/cli' {
149
153
  */
150
154
  directUpdate?: boolean | 'atInstall' | 'always' | 'onLaunch';
151
155
  /**
152
- * Automatically handle splashscreen hiding when using directUpdate. When enabled, the plugin will automatically hide the splashscreen after updates are applied or when no update is needed.
156
+ * Automatically hide the splashscreen after instant apply updates finish, or when no update is needed.
157
+ * Required when using instant apply modes (`"atInstall"`, `"onLaunch"`, `"always"`), including the deprecated `directUpdate` values `"atInstall"`, `"onLaunch"`, `"always"`, and `true`.
158
+ * `@capacitor/splash-screen` must be installed and configured with `launchAutoHide: false`.
153
159
  * This removes the need to manually listen for appReady events and call SplashScreen.hide().
154
- * Only works when autoUpdate is set to "atInstall", "always", or "onLaunch", or when the deprecated directUpdate option is set to "atInstall", "always", "onLaunch", or true.
155
- * Requires the @capacitor/splash-screen plugin to be installed and configured with launchAutoHide: false.
156
- * Requires Auto Update and Direct Update behavior to be enabled.
157
160
  *
158
161
  * Only available for Android and iOS.
159
162
  *