@capgo/capacitor-updater 8.53.1 → 8.54.1

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.
@@ -120,7 +120,14 @@ declare module '@capacitor/cli' {
120
120
  */
121
121
  statsUrl?: string;
122
122
  /**
123
- * Configure the public key for end to end live update encryption Version 2
123
+ * Configure the public key for end to end live update encryption Version 2.
124
+ *
125
+ * What it guarantees: a bundle can only be installed when its checksum and session key were produced with
126
+ * the matching private key. Capgo never holds that key, so Capgo cannot create, modify or decrypt an update
127
+ * for your app. It does NOT make the bundle unreadable to someone who has your app binary: the public key
128
+ * ships inside the app, and anyone holding the app can recover the session key and read the bundle. If you
129
+ * also need Capgo to be unable to find your app (and so its public key), use a Capgo app id that is not your
130
+ * store bundle id (`appId` in this plugin config) so the app is not identifiable from the dashboard.
124
131
  *
125
132
  * Only available for Android and iOS.
126
133
  *
@@ -275,7 +282,9 @@ declare module '@capacitor/cli' {
275
282
  *
276
283
  * Blocked by default so a redirect can never downgrade updater traffic to an unencrypted connection.
277
284
  * Only enable this if your self-hosted update server or CDN must redirect to an HTTP URL.
278
- * Direct HTTP URLs (for example `localApi` during development) are not affected.
285
+ * `httpsOnly` (default `true`) rejects every non-https URL and redirect hop regardless of this setting, so an
286
+ * HTTP redirect also needs `httpsOnly: false`. Direct HTTP URLs (for example `localApi` during development) are
287
+ * only allowed with `httpsOnly: false` as well.
279
288
  *
280
289
  * Only available for Android and iOS.
281
290
  *
@@ -283,6 +292,41 @@ declare module '@capacitor/cli' {
283
292
  * @since 8.52.0
284
293
  */
285
294
  allowHttpsToHttpRedirect?: boolean;
295
+ /**
296
+ * Require https for every URL the plugin talks to: `updateUrl`, `statsUrl`, `channelUrl` (from config,
297
+ * persisted values and `setUpdateUrl` / `setStatsUrl` / `setChannelUrl`), bundle zip URLs, every manifest
298
+ * `download_url`, preview payload URLs and every redirect hop. When enabled it overrides
299
+ * `allowHttpsToHttpRedirect`. A non-https URL fails the call or download with
300
+ * `httpsOnly is enabled and <url> is not https`.
301
+ *
302
+ * Set to `false` only for local development servers (for example a plain-http `localApi` on loopback) or a
303
+ * self-hosted plain-http update server you control. Upgrading with a plain-http `updateUrl`, `statsUrl`,
304
+ * `channelUrl` or `allowHttpsToHttpRedirect: true` requires setting this to `false` explicitly.
305
+ *
306
+ * Only available for Android and iOS.
307
+ *
308
+ * @default true
309
+ * @since 8.54.0
310
+ */
311
+ httpsOnly?: boolean;
312
+ /**
313
+ * Refuse to download or install a bundle whose version is lower than the native app version
314
+ * (`version` config override, else `CFBundleShortVersionString` / `versionName`). This is the on-device
315
+ * counterpart of the Capgo channel setting "disable auto update under native" and protects against a
316
+ * replayed old update response rolling the app back below its store version. Only the numeric
317
+ * `major.minor.patch` part is compared (a `1.2.3-beta.1` bundle is accepted on native `1.2.3`), and
318
+ * versions that do not parse as semver skip the check. Rejections are reported as the
319
+ * `version_below_native` stat. Keep it off if you version web bundles independently of the native app
320
+ * (for example native `2.0.0` with bundle `1.4.7`).
321
+ *
322
+ * Future-major default candidate: `true`.
323
+ *
324
+ * Only available for Android and iOS.
325
+ *
326
+ * @default false
327
+ * @since 8.54.0
328
+ */
329
+ builtinMinimum?: boolean;
286
330
  /**
287
331
  * Allow the plugin to modify the appId dynamically from the JavaScript side.
288
332
  *