@capgo/capacitor-webview-version-checker 8.2.7 → 8.2.9

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.
@@ -4,9 +4,9 @@ import org.json.JSONObject;
4
4
 
5
5
  final class GeneratedVersionShareData {
6
6
 
7
- private static final String GENERATED_AT = "2026-07-01T13:47:38.843Z";
7
+ private static final String GENERATED_AT = "2026-07-11T09:48:57.348Z";
8
8
  private static final String DATA_SOURCE = "generatedVersionShareByMajor";
9
- private static final String JSON_DATA = "{\"4\":0.000031,\"39\":0.08685,\"40\":0.08685,\"41\":0.08685,\"42\":0.08685,\"43\":0.08685,\"44\":0.08685,\"45\":0.091675,\"46\":0.08685,\"47\":0.08685,\"48\":0.091675,\"49\":0.091675,\"50\":0.08685,\"51\":0.08685,\"52\":0.091675,\"53\":0.08685,\"54\":0.08685,\"55\":0.08685,\"56\":0.08685,\"57\":0.08685,\"58\":0.08685,\"59\":0.08685,\"60\":0.08685,\"66\":0.004825,\"69\":0.004825,\"70\":0.024125,\"79\":0.02895,\"86\":0.004825,\"87\":0.014475,\"91\":0.00965,\"93\":0.014475,\"96\":0.004825,\"97\":0.004825,\"98\":0.02895,\"99\":0.014475,\"100\":0.00965,\"101\":0.00965,\"102\":0.004825,\"103\":0.303975,\"104\":0.2509,\"105\":0.236425,\"106\":0.236425,\"107\":0.236425,\"108\":0.246075,\"109\":0.7334,\"110\":0.24125,\"111\":0.2895,\"112\":0.902275,\"114\":0.024125,\"115\":0.00965,\"116\":0.516275,\"117\":0.284675,\"118\":1.1773,\"119\":0.02895,\"120\":0.294325,\"121\":0.024125,\"122\":0.033775,\"123\":0.033775,\"124\":0.27985,\"125\":0.5211,\"126\":0.0386,\"127\":0.0193,\"128\":0.053075,\"129\":0.0193,\"130\":0.062725,\"131\":0.564525,\"132\":0.04825,\"133\":0.516275,\"134\":0.04825,\"135\":0.0386,\"136\":0.043425,\"137\":0.082025,\"138\":0.159225,\"139\":0.101325,\"140\":0.0772,\"141\":0.0579,\"142\":0.902275,\"143\":0.110975,\"144\":0.29915,\"145\":0.863675,\"146\":0.583825,\"147\":6.10362,\"148\":8.41963,\"149\":42.196,\"150\":0.00965}";
9
+ private static final String JSON_DATA = "{\"4\":0.000057,\"39\":0.084942,\"40\":0.084942,\"41\":0.084942,\"42\":0.084942,\"43\":0.084942,\"44\":0.084942,\"45\":0.084942,\"46\":0.084942,\"47\":0.084942,\"48\":0.084942,\"49\":0.089661,\"50\":0.084942,\"51\":0.084942,\"52\":0.084942,\"53\":0.084942,\"54\":0.084942,\"55\":0.084942,\"56\":0.084942,\"57\":0.084942,\"58\":0.084942,\"59\":0.084942,\"60\":0.084942,\"66\":0.004719,\"69\":0.009438,\"70\":0.042471,\"79\":0.028314,\"86\":0.004719,\"87\":0.018876,\"91\":0.009438,\"92\":0.009438,\"93\":0.014157,\"97\":0.004719,\"98\":0.023595,\"99\":0.014157,\"100\":0.004719,\"101\":0.009438,\"102\":0.009438,\"103\":0.202917,\"104\":0.155727,\"105\":0.132132,\"106\":0.132132,\"107\":0.132132,\"108\":0.136851,\"109\":0.632346,\"110\":0.132132,\"111\":0.165165,\"112\":0.132132,\"114\":0.023595,\"115\":0.014157,\"116\":0.302016,\"117\":0.160446,\"118\":1.00515,\"119\":0.278421,\"120\":0.453024,\"121\":0.014157,\"122\":0.037752,\"123\":0.018876,\"124\":0.198198,\"125\":0.405834,\"126\":0.051909,\"127\":0.033033,\"128\":0.070785,\"129\":0.033033,\"130\":0.061347,\"131\":0.353925,\"132\":0.075504,\"133\":0.311454,\"134\":0.061347,\"135\":0.042471,\"136\":0.037752,\"137\":0.075504,\"138\":0.146289,\"139\":0.179322,\"140\":0.04719,\"141\":0.04719,\"142\":0.462462,\"143\":0.09438,\"144\":0.278421,\"145\":0.42471,\"146\":0.495495,\"147\":0.4719,\"148\":5.50235,\"149\":44.7497,\"150\":0.042471,\"151\":0.009438}";
10
10
 
11
11
  private GeneratedVersionShareData() {}
12
12
 
@@ -69,8 +69,11 @@ export interface WebviewVersionCheckerConfig {
69
69
  */
70
70
  latestVersion?: string;
71
71
  /**
72
- * Fallback minimum allowed major version.
72
+ * Fallback minimum allowed major version for Android WebView checks.
73
73
  * Used when `latestVersion` cannot be resolved.
74
+ *
75
+ * Ignored on iOS because it refers to Chromium/WebView majors, not the installed iOS version.
76
+ * Use `latestVersion` on iOS when you need an explicit policy.
74
77
  */
75
78
  minimumMajorVersion?: number;
76
79
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PluginListenerHandle } from '@capacitor/core';\n\nexport type WebViewVersionState = 'latest' | 'outdated' | 'unknown';\n\nexport type WebViewPlatform = 'android' | 'ios' | 'web';\n\n/**\n * Capacitor config shape for `plugins.WebviewVersionChecker`.\n *\n * Main use case (default, no plugin config required):\n * Browserslist-style compatibility checks with a built-in version-share dataset\n * generated from caniuse at plugin build time.\n *\n * ```ts\n * plugins: {\n * WebviewVersionChecker: {}\n * }\n * ```\n *\n * Simple setup with automatic prompt:\n *\n * ```ts\n * plugins: {\n * WebviewVersionChecker: {\n * autoPromptOnOutdated: true,\n * }\n * }\n * ```\n *\n * Advanced setup with custom dataset and threshold:\n *\n * ```ts\n * plugins: {\n * WebviewVersionChecker: {\n * minimumDeviceSharePercent: 3,\n * versionShareByMajor: { '137': 58.2, '136': 21.3, '135': 4.6 },\n * }\n * }\n * ```\n */\nexport interface WebviewVersionCheckerConfig {\n /**\n * Automatically run a version check once when the plugin loads.\n *\n * @default true\n */\n autoCheckOnLoad?: boolean;\n\n /**\n * Automatically run a version check each time the app returns to foreground.\n *\n * @default true\n */\n autoCheckOnResume?: boolean;\n\n /**\n * Automatically show a native update prompt whenever an outdated WebView is detected.\n *\n * @default false\n */\n autoPromptOnOutdated?: boolean;\n\n /**\n * Controls whether the automatic modal can be dismissed.\n *\n * When set to false, users cannot dismiss the automatic modal manually.\n * They can only exit by opening the update action and reopening the app after updating.\n *\n * @default true\n */\n autoPromptDismissible?: boolean;\n\n /**\n * Explicit latest version to compare with.\n * If provided, this value is used before any API lookup.\n */\n latestVersion?: string;\n\n /**\n * Fallback minimum allowed major version.\n * Used when `latestVersion` cannot be resolved.\n */\n minimumMajorVersion?: number;\n\n /**\n * Browserslist-style compatibility threshold in percentage points.\n *\n * Example: `3` means the installed WebView major version must represent at least 3%\n * of devices in the selected version-share dataset.\n *\n * Data source priority:\n * - `versionShareByMajor` (inline dataset) if provided\n * - else `versionShareApiUrl` if provided\n * - else built-in generated dataset (`generatedVersionShareByMajor`)\n *\n * If the threshold cannot be evaluated (missing dataset or missing major entry),\n * the plugin falls back to normal version checks (`latestVersion` / `latestVersionApiUrl`,\n * then `minimumMajorVersion`).\n *\n * @default 3\n */\n minimumDeviceSharePercent?: number;\n\n /**\n * Optional inline dataset for major-version device share.\n *\n * Keys are major versions (string or number-like), values are percentages (`0..100`).\n *\n * Example:\n * `{ \"137\": 54.2, \"136\": 23.8, \"135\": 7.1, \"134\": 2.4 }`\n *\n * Used when `minimumDeviceSharePercent` is set.\n * If both `versionShareByMajor` and `versionShareApiUrl` are provided,\n * this inline map is used first.\n */\n versionShareByMajor?: Record<string, number>;\n\n /**\n * Optional endpoint returning a version-share dataset.\n *\n * Used when `minimumDeviceSharePercent` is set and no inline `versionShareByMajor`\n * is provided. If omitted, the plugin uses its built-in generated dataset.\n *\n * Supported response shapes:\n * - `{ \"versionShareByMajor\": { \"137\": 54.2, \"136\": 23.8 } }`\n * - `{ \"shareByMajor\": { \"137\": 54.2, \"136\": 23.8 } }`\n * - `{ \"versions\": [{ \"major\": 137, \"share\": 54.2 }, { \"version\": \"136.0.0.0\", \"percent\": 23.8 }] }`\n * - Caniuse full dataset shape (`agents.*.usage_global`)\n */\n versionShareApiUrl?: string;\n\n /**\n * Optional endpoint returning a JSON payload with the latest version.\n *\n * Supported response shapes:\n * - `{ \"version\": \"137.0.7151.44\" }`\n * - `{ \"latestVersion\": \"137.0.7151.44\" }`\n * - Google version history format: `{ \"versions\": [{ \"version\": \"137.0.7151.44\" }] }`\n */\n latestVersionApiUrl?: string;\n\n /**\n * Optional URL opened when users tap update in the native prompt.\n *\n * Android default: Play Store listing of the active WebView package.\n * iOS default: Apple iOS update help page.\n */\n updateUrl?: string;\n\n /**\n * Native prompt title.\n */\n promptTitle?: string;\n\n /**\n * Native prompt message.\n */\n promptMessage?: string;\n\n /**\n * Native prompt update button text.\n */\n promptUpdateButtonText?: string;\n\n /**\n * Native prompt cancel button text.\n */\n promptCancelButtonText?: string;\n}\n\n/**\n * Options for running a WebView version check.\n */\nexport interface CheckWebViewOptions extends WebviewVersionCheckerConfig {\n /**\n * Force showing a native prompt if an outdated WebView is detected.\n *\n * @default false\n */\n showPromptOnOutdated?: boolean;\n\n /**\n * Optional tag included in the status payload so you can identify the check origin.\n *\n * @default \"manual\"\n */\n source?: string;\n}\n\n/**\n * Options for starting monitor mode.\n */\nexport interface StartMonitoringOptions extends CheckWebViewOptions {\n /**\n * Run a check immediately when monitoring starts.\n *\n * @default true\n */\n checkOnStart?: boolean;\n\n /**\n * Whether foreground checks should run while monitoring is enabled.\n *\n * @default true\n */\n checkOnResume?: boolean;\n}\n\n/**\n * Options for showing the native update prompt.\n */\nexport interface ShowUpdatePromptOptions {\n /**\n * Prompt title.\n */\n title?: string;\n\n /**\n * Prompt message.\n */\n message?: string;\n\n /**\n * Update CTA label.\n */\n updateButtonText?: string;\n\n /**\n * Cancel CTA label.\n */\n cancelButtonText?: string;\n\n /**\n * Optional URL to open if the update action is selected.\n */\n updateUrl?: string;\n}\n\n/**\n * Options for opening the update page directly.\n */\nexport interface OpenUpdatePageOptions {\n /**\n * Optional URL override.\n */\n updateUrl?: string;\n}\n\n/**\n * Snapshot of the currently detected WebView status.\n */\nexport interface WebViewVersionStatus {\n /**\n * Native platform that generated the status.\n */\n platform: WebViewPlatform;\n\n /**\n * Resolved version state.\n */\n state: WebViewVersionState;\n\n /**\n * Convenience boolean equivalent to `state === 'latest'`.\n */\n isLatest: boolean;\n\n /**\n * ISO-8601 timestamp of the check.\n */\n checkedAt: string;\n\n /**\n * Human-readable explanation for the reported state.\n */\n reason: string;\n\n /**\n * Current WebView (or iOS system WebKit) version string.\n */\n currentVersion: string;\n\n /**\n * Current detected major version (if parseable).\n */\n currentMajorVersion?: number;\n\n /**\n * Resolved latest version used for comparison.\n */\n latestVersion?: string;\n\n /**\n * Resolved latest major version (if parseable).\n */\n latestMajorVersion?: number;\n\n /**\n * Device-share percentage for the installed WebView major version.\n *\n * Present only when a version-share dataset is available and includes the current major version.\n */\n currentVersionSharePercent?: number;\n\n /**\n * Configured threshold used by compatibility-threshold mode.\n *\n * Present only when `minimumDeviceSharePercent` was requested for that check.\n */\n minimumDeviceSharePercent?: number;\n\n /**\n * Source used for version-share data.\n *\n * Values:\n * - `versionShareByMajor` (inline dataset)\n * - `versionShareApiUrl` (remote dataset)\n * - `generatedVersionShareByMajor` (built-in dataset generated at build time)\n */\n versionShareSource?: string;\n\n /**\n * Diagnostic message for compatibility-threshold mode.\n *\n * Present when `minimumDeviceSharePercent` was requested but the threshold check\n * could not be fully evaluated.\n */\n deviceShareError?: string;\n\n /**\n * Android package name of the active WebView provider.\n */\n providerPackage?: string;\n\n /**\n * URL that should be opened to update when outdated.\n */\n updateUrl?: string;\n\n /**\n * Internal source identifier for the check implementation.\n */\n source: string;\n}\n\n/**\n * Result payload for monitor controls.\n */\nexport interface MonitoringStateResult {\n /**\n * Whether monitoring is currently active.\n */\n monitoring: boolean;\n\n /**\n * Whether checks run on app resume while monitoring is active.\n */\n checkOnResume: boolean;\n\n /**\n * Whether outdated checks auto-trigger the native prompt.\n */\n autoPromptOnOutdated: boolean;\n}\n\n/**\n * Last known check snapshot.\n */\nexport interface LastStatusResult {\n /**\n * Null until the first check completes.\n */\n status: WebViewVersionStatus | null;\n}\n\n/**\n * Result payload for `showUpdatePrompt()`.\n */\nexport interface ShowUpdatePromptResult {\n /**\n * Whether a native prompt was actually shown.\n */\n shown: boolean;\n\n /**\n * Whether the update page was opened from the prompt action.\n */\n openedUpdatePage: boolean;\n}\n\n/**\n * Result payload for `openUpdatePage()`.\n */\nexport interface OpenUpdatePageResult {\n /**\n * Whether opening the update URL succeeded.\n */\n opened: boolean;\n\n /**\n * URL that was attempted.\n */\n url: string;\n}\n\n/**\n * Public API for checking WebView freshness and guiding users to updates.\n */\nexport interface WebviewVersionCheckerPlugin {\n /**\n * Runs a version check and returns the latest known status.\n */\n check(options?: CheckWebViewOptions): Promise<WebViewVersionStatus>;\n\n /**\n * Enables background monitoring (typically on app resume).\n */\n startMonitoring(options?: StartMonitoringOptions): Promise<MonitoringStateResult>;\n\n /**\n * Disables monitoring.\n */\n stopMonitoring(): Promise<MonitoringStateResult>;\n\n /**\n * Returns the last resolved status, or `null` if no check was run yet.\n */\n getLastStatus(): Promise<LastStatusResult>;\n\n /**\n * Shows a native prompt asking the user to update the WebView.\n */\n showUpdatePrompt(options?: ShowUpdatePromptOptions): Promise<ShowUpdatePromptResult>;\n\n /**\n * Opens the configured update page directly.\n */\n openUpdatePage(options?: OpenUpdatePageOptions): Promise<OpenUpdatePageResult>;\n\n /**\n * Fired for every successful status evaluation.\n */\n addListener(\n eventName: 'statusChanged',\n listenerFunc: (status: WebViewVersionStatus) => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Fired when the state resolves to `latest`.\n */\n addListener(\n eventName: 'webViewLatest',\n listenerFunc: (status: WebViewVersionStatus) => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Fired when the state resolves to `outdated`.\n */\n addListener(\n eventName: 'webViewOutdated',\n listenerFunc: (status: WebViewVersionStatus) => void,\n ): Promise<PluginListenerHandle>;\n}\n"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PluginListenerHandle } from '@capacitor/core';\n\nexport type WebViewVersionState = 'latest' | 'outdated' | 'unknown';\n\nexport type WebViewPlatform = 'android' | 'ios' | 'web';\n\n/**\n * Capacitor config shape for `plugins.WebviewVersionChecker`.\n *\n * Main use case (default, no plugin config required):\n * Browserslist-style compatibility checks with a built-in version-share dataset\n * generated from caniuse at plugin build time.\n *\n * ```ts\n * plugins: {\n * WebviewVersionChecker: {}\n * }\n * ```\n *\n * Simple setup with automatic prompt:\n *\n * ```ts\n * plugins: {\n * WebviewVersionChecker: {\n * autoPromptOnOutdated: true,\n * }\n * }\n * ```\n *\n * Advanced setup with custom dataset and threshold:\n *\n * ```ts\n * plugins: {\n * WebviewVersionChecker: {\n * minimumDeviceSharePercent: 3,\n * versionShareByMajor: { '137': 58.2, '136': 21.3, '135': 4.6 },\n * }\n * }\n * ```\n */\nexport interface WebviewVersionCheckerConfig {\n /**\n * Automatically run a version check once when the plugin loads.\n *\n * @default true\n */\n autoCheckOnLoad?: boolean;\n\n /**\n * Automatically run a version check each time the app returns to foreground.\n *\n * @default true\n */\n autoCheckOnResume?: boolean;\n\n /**\n * Automatically show a native update prompt whenever an outdated WebView is detected.\n *\n * @default false\n */\n autoPromptOnOutdated?: boolean;\n\n /**\n * Controls whether the automatic modal can be dismissed.\n *\n * When set to false, users cannot dismiss the automatic modal manually.\n * They can only exit by opening the update action and reopening the app after updating.\n *\n * @default true\n */\n autoPromptDismissible?: boolean;\n\n /**\n * Explicit latest version to compare with.\n * If provided, this value is used before any API lookup.\n */\n latestVersion?: string;\n\n /**\n * Fallback minimum allowed major version for Android WebView checks.\n * Used when `latestVersion` cannot be resolved.\n *\n * Ignored on iOS because it refers to Chromium/WebView majors, not the installed iOS version.\n * Use `latestVersion` on iOS when you need an explicit policy.\n */\n minimumMajorVersion?: number;\n\n /**\n * Browserslist-style compatibility threshold in percentage points.\n *\n * Example: `3` means the installed WebView major version must represent at least 3%\n * of devices in the selected version-share dataset.\n *\n * Data source priority:\n * - `versionShareByMajor` (inline dataset) if provided\n * - else `versionShareApiUrl` if provided\n * - else built-in generated dataset (`generatedVersionShareByMajor`)\n *\n * If the threshold cannot be evaluated (missing dataset or missing major entry),\n * the plugin falls back to normal version checks (`latestVersion` / `latestVersionApiUrl`,\n * then `minimumMajorVersion`).\n *\n * @default 3\n */\n minimumDeviceSharePercent?: number;\n\n /**\n * Optional inline dataset for major-version device share.\n *\n * Keys are major versions (string or number-like), values are percentages (`0..100`).\n *\n * Example:\n * `{ \"137\": 54.2, \"136\": 23.8, \"135\": 7.1, \"134\": 2.4 }`\n *\n * Used when `minimumDeviceSharePercent` is set.\n * If both `versionShareByMajor` and `versionShareApiUrl` are provided,\n * this inline map is used first.\n */\n versionShareByMajor?: Record<string, number>;\n\n /**\n * Optional endpoint returning a version-share dataset.\n *\n * Used when `minimumDeviceSharePercent` is set and no inline `versionShareByMajor`\n * is provided. If omitted, the plugin uses its built-in generated dataset.\n *\n * Supported response shapes:\n * - `{ \"versionShareByMajor\": { \"137\": 54.2, \"136\": 23.8 } }`\n * - `{ \"shareByMajor\": { \"137\": 54.2, \"136\": 23.8 } }`\n * - `{ \"versions\": [{ \"major\": 137, \"share\": 54.2 }, { \"version\": \"136.0.0.0\", \"percent\": 23.8 }] }`\n * - Caniuse full dataset shape (`agents.*.usage_global`)\n */\n versionShareApiUrl?: string;\n\n /**\n * Optional endpoint returning a JSON payload with the latest version.\n *\n * Supported response shapes:\n * - `{ \"version\": \"137.0.7151.44\" }`\n * - `{ \"latestVersion\": \"137.0.7151.44\" }`\n * - Google version history format: `{ \"versions\": [{ \"version\": \"137.0.7151.44\" }] }`\n */\n latestVersionApiUrl?: string;\n\n /**\n * Optional URL opened when users tap update in the native prompt.\n *\n * Android default: Play Store listing of the active WebView package.\n * iOS default: Apple iOS update help page.\n */\n updateUrl?: string;\n\n /**\n * Native prompt title.\n */\n promptTitle?: string;\n\n /**\n * Native prompt message.\n */\n promptMessage?: string;\n\n /**\n * Native prompt update button text.\n */\n promptUpdateButtonText?: string;\n\n /**\n * Native prompt cancel button text.\n */\n promptCancelButtonText?: string;\n}\n\n/**\n * Options for running a WebView version check.\n */\nexport interface CheckWebViewOptions extends WebviewVersionCheckerConfig {\n /**\n * Force showing a native prompt if an outdated WebView is detected.\n *\n * @default false\n */\n showPromptOnOutdated?: boolean;\n\n /**\n * Optional tag included in the status payload so you can identify the check origin.\n *\n * @default \"manual\"\n */\n source?: string;\n}\n\n/**\n * Options for starting monitor mode.\n */\nexport interface StartMonitoringOptions extends CheckWebViewOptions {\n /**\n * Run a check immediately when monitoring starts.\n *\n * @default true\n */\n checkOnStart?: boolean;\n\n /**\n * Whether foreground checks should run while monitoring is enabled.\n *\n * @default true\n */\n checkOnResume?: boolean;\n}\n\n/**\n * Options for showing the native update prompt.\n */\nexport interface ShowUpdatePromptOptions {\n /**\n * Prompt title.\n */\n title?: string;\n\n /**\n * Prompt message.\n */\n message?: string;\n\n /**\n * Update CTA label.\n */\n updateButtonText?: string;\n\n /**\n * Cancel CTA label.\n */\n cancelButtonText?: string;\n\n /**\n * Optional URL to open if the update action is selected.\n */\n updateUrl?: string;\n}\n\n/**\n * Options for opening the update page directly.\n */\nexport interface OpenUpdatePageOptions {\n /**\n * Optional URL override.\n */\n updateUrl?: string;\n}\n\n/**\n * Snapshot of the currently detected WebView status.\n */\nexport interface WebViewVersionStatus {\n /**\n * Native platform that generated the status.\n */\n platform: WebViewPlatform;\n\n /**\n * Resolved version state.\n */\n state: WebViewVersionState;\n\n /**\n * Convenience boolean equivalent to `state === 'latest'`.\n */\n isLatest: boolean;\n\n /**\n * ISO-8601 timestamp of the check.\n */\n checkedAt: string;\n\n /**\n * Human-readable explanation for the reported state.\n */\n reason: string;\n\n /**\n * Current WebView (or iOS system WebKit) version string.\n */\n currentVersion: string;\n\n /**\n * Current detected major version (if parseable).\n */\n currentMajorVersion?: number;\n\n /**\n * Resolved latest version used for comparison.\n */\n latestVersion?: string;\n\n /**\n * Resolved latest major version (if parseable).\n */\n latestMajorVersion?: number;\n\n /**\n * Device-share percentage for the installed WebView major version.\n *\n * Present only when a version-share dataset is available and includes the current major version.\n */\n currentVersionSharePercent?: number;\n\n /**\n * Configured threshold used by compatibility-threshold mode.\n *\n * Present only when `minimumDeviceSharePercent` was requested for that check.\n */\n minimumDeviceSharePercent?: number;\n\n /**\n * Source used for version-share data.\n *\n * Values:\n * - `versionShareByMajor` (inline dataset)\n * - `versionShareApiUrl` (remote dataset)\n * - `generatedVersionShareByMajor` (built-in dataset generated at build time)\n */\n versionShareSource?: string;\n\n /**\n * Diagnostic message for compatibility-threshold mode.\n *\n * Present when `minimumDeviceSharePercent` was requested but the threshold check\n * could not be fully evaluated.\n */\n deviceShareError?: string;\n\n /**\n * Android package name of the active WebView provider.\n */\n providerPackage?: string;\n\n /**\n * URL that should be opened to update when outdated.\n */\n updateUrl?: string;\n\n /**\n * Internal source identifier for the check implementation.\n */\n source: string;\n}\n\n/**\n * Result payload for monitor controls.\n */\nexport interface MonitoringStateResult {\n /**\n * Whether monitoring is currently active.\n */\n monitoring: boolean;\n\n /**\n * Whether checks run on app resume while monitoring is active.\n */\n checkOnResume: boolean;\n\n /**\n * Whether outdated checks auto-trigger the native prompt.\n */\n autoPromptOnOutdated: boolean;\n}\n\n/**\n * Last known check snapshot.\n */\nexport interface LastStatusResult {\n /**\n * Null until the first check completes.\n */\n status: WebViewVersionStatus | null;\n}\n\n/**\n * Result payload for `showUpdatePrompt()`.\n */\nexport interface ShowUpdatePromptResult {\n /**\n * Whether a native prompt was actually shown.\n */\n shown: boolean;\n\n /**\n * Whether the update page was opened from the prompt action.\n */\n openedUpdatePage: boolean;\n}\n\n/**\n * Result payload for `openUpdatePage()`.\n */\nexport interface OpenUpdatePageResult {\n /**\n * Whether opening the update URL succeeded.\n */\n opened: boolean;\n\n /**\n * URL that was attempted.\n */\n url: string;\n}\n\n/**\n * Public API for checking WebView freshness and guiding users to updates.\n */\nexport interface WebviewVersionCheckerPlugin {\n /**\n * Runs a version check and returns the latest known status.\n */\n check(options?: CheckWebViewOptions): Promise<WebViewVersionStatus>;\n\n /**\n * Enables background monitoring (typically on app resume).\n */\n startMonitoring(options?: StartMonitoringOptions): Promise<MonitoringStateResult>;\n\n /**\n * Disables monitoring.\n */\n stopMonitoring(): Promise<MonitoringStateResult>;\n\n /**\n * Returns the last resolved status, or `null` if no check was run yet.\n */\n getLastStatus(): Promise<LastStatusResult>;\n\n /**\n * Shows a native prompt asking the user to update the WebView.\n */\n showUpdatePrompt(options?: ShowUpdatePromptOptions): Promise<ShowUpdatePromptResult>;\n\n /**\n * Opens the configured update page directly.\n */\n openUpdatePage(options?: OpenUpdatePageOptions): Promise<OpenUpdatePageResult>;\n\n /**\n * Fired for every successful status evaluation.\n */\n addListener(\n eventName: 'statusChanged',\n listenerFunc: (status: WebViewVersionStatus) => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Fired when the state resolves to `latest`.\n */\n addListener(\n eventName: 'webViewLatest',\n listenerFunc: (status: WebViewVersionStatus) => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Fired when the state resolves to `outdated`.\n */\n addListener(\n eventName: 'webViewOutdated',\n listenerFunc: (status: WebViewVersionStatus) => void,\n ): Promise<PluginListenerHandle>;\n}\n"]}
@@ -2,8 +2,8 @@
2
2
  * AUTO-GENERATED FILE. DO NOT EDIT.
3
3
  * Generated by: scripts/generate-version-share-data.mjs
4
4
  * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json
5
- * Generated at: 2026-07-01T13:47:38.843Z
5
+ * Generated at: 2026-07-11T09:48:57.348Z
6
6
  */
7
7
  export declare const DEFAULT_VERSION_SHARE_DATA_SOURCE = "generatedVersionShareByMajor";
8
- export declare const DEFAULT_VERSION_SHARE_GENERATED_AT = "2026-07-01T13:47:38.843Z";
8
+ export declare const DEFAULT_VERSION_SHARE_GENERATED_AT = "2026-07-11T09:48:57.348Z";
9
9
  export declare const DEFAULT_VERSION_SHARE_BY_MAJOR: Record<string, number>;
@@ -3,95 +3,96 @@
3
3
  * AUTO-GENERATED FILE. DO NOT EDIT.
4
4
  * Generated by: scripts/generate-version-share-data.mjs
5
5
  * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json
6
- * Generated at: 2026-07-01T13:47:38.843Z
6
+ * Generated at: 2026-07-11T09:48:57.348Z
7
7
  */
8
8
  export const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';
9
- export const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-07-01T13:47:38.843Z';
9
+ export const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-07-11T09:48:57.348Z';
10
10
  export const DEFAULT_VERSION_SHARE_BY_MAJOR = {
11
- "4": 0.000031,
12
- "39": 0.08685,
13
- "40": 0.08685,
14
- "41": 0.08685,
15
- "42": 0.08685,
16
- "43": 0.08685,
17
- "44": 0.08685,
18
- "45": 0.091675,
19
- "46": 0.08685,
20
- "47": 0.08685,
21
- "48": 0.091675,
22
- "49": 0.091675,
23
- "50": 0.08685,
24
- "51": 0.08685,
25
- "52": 0.091675,
26
- "53": 0.08685,
27
- "54": 0.08685,
28
- "55": 0.08685,
29
- "56": 0.08685,
30
- "57": 0.08685,
31
- "58": 0.08685,
32
- "59": 0.08685,
33
- "60": 0.08685,
34
- "66": 0.004825,
35
- "69": 0.004825,
36
- "70": 0.024125,
37
- "79": 0.02895,
38
- "86": 0.004825,
39
- "87": 0.014475,
40
- "91": 0.00965,
41
- "93": 0.014475,
42
- "96": 0.004825,
43
- "97": 0.004825,
44
- "98": 0.02895,
45
- "99": 0.014475,
46
- "100": 0.00965,
47
- "101": 0.00965,
48
- "102": 0.004825,
49
- "103": 0.303975,
50
- "104": 0.2509,
51
- "105": 0.236425,
52
- "106": 0.236425,
53
- "107": 0.236425,
54
- "108": 0.246075,
55
- "109": 0.7334,
56
- "110": 0.24125,
57
- "111": 0.2895,
58
- "112": 0.902275,
59
- "114": 0.024125,
60
- "115": 0.00965,
61
- "116": 0.516275,
62
- "117": 0.284675,
63
- "118": 1.1773,
64
- "119": 0.02895,
65
- "120": 0.294325,
66
- "121": 0.024125,
67
- "122": 0.033775,
68
- "123": 0.033775,
69
- "124": 0.27985,
70
- "125": 0.5211,
71
- "126": 0.0386,
72
- "127": 0.0193,
73
- "128": 0.053075,
74
- "129": 0.0193,
75
- "130": 0.062725,
76
- "131": 0.564525,
77
- "132": 0.04825,
78
- "133": 0.516275,
79
- "134": 0.04825,
80
- "135": 0.0386,
81
- "136": 0.043425,
82
- "137": 0.082025,
83
- "138": 0.159225,
84
- "139": 0.101325,
85
- "140": 0.0772,
86
- "141": 0.0579,
87
- "142": 0.902275,
88
- "143": 0.110975,
89
- "144": 0.29915,
90
- "145": 0.863675,
91
- "146": 0.583825,
92
- "147": 6.10362,
93
- "148": 8.41963,
94
- "149": 42.196,
95
- "150": 0.00965
11
+ "4": 0.000057,
12
+ "39": 0.084942,
13
+ "40": 0.084942,
14
+ "41": 0.084942,
15
+ "42": 0.084942,
16
+ "43": 0.084942,
17
+ "44": 0.084942,
18
+ "45": 0.084942,
19
+ "46": 0.084942,
20
+ "47": 0.084942,
21
+ "48": 0.084942,
22
+ "49": 0.089661,
23
+ "50": 0.084942,
24
+ "51": 0.084942,
25
+ "52": 0.084942,
26
+ "53": 0.084942,
27
+ "54": 0.084942,
28
+ "55": 0.084942,
29
+ "56": 0.084942,
30
+ "57": 0.084942,
31
+ "58": 0.084942,
32
+ "59": 0.084942,
33
+ "60": 0.084942,
34
+ "66": 0.004719,
35
+ "69": 0.009438,
36
+ "70": 0.042471,
37
+ "79": 0.028314,
38
+ "86": 0.004719,
39
+ "87": 0.018876,
40
+ "91": 0.009438,
41
+ "92": 0.009438,
42
+ "93": 0.014157,
43
+ "97": 0.004719,
44
+ "98": 0.023595,
45
+ "99": 0.014157,
46
+ "100": 0.004719,
47
+ "101": 0.009438,
48
+ "102": 0.009438,
49
+ "103": 0.202917,
50
+ "104": 0.155727,
51
+ "105": 0.132132,
52
+ "106": 0.132132,
53
+ "107": 0.132132,
54
+ "108": 0.136851,
55
+ "109": 0.632346,
56
+ "110": 0.132132,
57
+ "111": 0.165165,
58
+ "112": 0.132132,
59
+ "114": 0.023595,
60
+ "115": 0.014157,
61
+ "116": 0.302016,
62
+ "117": 0.160446,
63
+ "118": 1.00515,
64
+ "119": 0.278421,
65
+ "120": 0.453024,
66
+ "121": 0.014157,
67
+ "122": 0.037752,
68
+ "123": 0.018876,
69
+ "124": 0.198198,
70
+ "125": 0.405834,
71
+ "126": 0.051909,
72
+ "127": 0.033033,
73
+ "128": 0.070785,
74
+ "129": 0.033033,
75
+ "130": 0.061347,
76
+ "131": 0.353925,
77
+ "132": 0.075504,
78
+ "133": 0.311454,
79
+ "134": 0.061347,
80
+ "135": 0.042471,
81
+ "136": 0.037752,
82
+ "137": 0.075504,
83
+ "138": 0.146289,
84
+ "139": 0.179322,
85
+ "140": 0.04719,
86
+ "141": 0.04719,
87
+ "142": 0.462462,
88
+ "143": 0.09438,
89
+ "144": 0.278421,
90
+ "145": 0.42471,
91
+ "146": 0.495495,
92
+ "147": 0.4719,
93
+ "148": 5.50235,
94
+ "149": 44.7497,
95
+ "150": 0.042471,
96
+ "151": 0.009438
96
97
  };
97
98
  //# sourceMappingURL=generated-version-share.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generated-version-share.js","sourceRoot":"","sources":["../../src/generated-version-share.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG,8BAA8B,CAAC;AAChF,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,8BAA8B,GAA2B;IACpE,GAAG,EAAE,QAAQ;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,QAAQ;IACd,IAAI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;IACb,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,OAAO;CACf,CAAC","sourcesContent":["/* eslint-disable */\n/**\n * AUTO-GENERATED FILE. DO NOT EDIT.\n * Generated by: scripts/generate-version-share-data.mjs\n * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json\n * Generated at: 2026-07-01T13:47:38.843Z\n */\n\nexport const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';\nexport const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-07-01T13:47:38.843Z';\nexport const DEFAULT_VERSION_SHARE_BY_MAJOR: Record<string, number> = {\n \"4\": 0.000031,\n \"39\": 0.08685,\n \"40\": 0.08685,\n \"41\": 0.08685,\n \"42\": 0.08685,\n \"43\": 0.08685,\n \"44\": 0.08685,\n \"45\": 0.091675,\n \"46\": 0.08685,\n \"47\": 0.08685,\n \"48\": 0.091675,\n \"49\": 0.091675,\n \"50\": 0.08685,\n \"51\": 0.08685,\n \"52\": 0.091675,\n \"53\": 0.08685,\n \"54\": 0.08685,\n \"55\": 0.08685,\n \"56\": 0.08685,\n \"57\": 0.08685,\n \"58\": 0.08685,\n \"59\": 0.08685,\n \"60\": 0.08685,\n \"66\": 0.004825,\n \"69\": 0.004825,\n \"70\": 0.024125,\n \"79\": 0.02895,\n \"86\": 0.004825,\n \"87\": 0.014475,\n \"91\": 0.00965,\n \"93\": 0.014475,\n \"96\": 0.004825,\n \"97\": 0.004825,\n \"98\": 0.02895,\n \"99\": 0.014475,\n \"100\": 0.00965,\n \"101\": 0.00965,\n \"102\": 0.004825,\n \"103\": 0.303975,\n \"104\": 0.2509,\n \"105\": 0.236425,\n \"106\": 0.236425,\n \"107\": 0.236425,\n \"108\": 0.246075,\n \"109\": 0.7334,\n \"110\": 0.24125,\n \"111\": 0.2895,\n \"112\": 0.902275,\n \"114\": 0.024125,\n \"115\": 0.00965,\n \"116\": 0.516275,\n \"117\": 0.284675,\n \"118\": 1.1773,\n \"119\": 0.02895,\n \"120\": 0.294325,\n \"121\": 0.024125,\n \"122\": 0.033775,\n \"123\": 0.033775,\n \"124\": 0.27985,\n \"125\": 0.5211,\n \"126\": 0.0386,\n \"127\": 0.0193,\n \"128\": 0.053075,\n \"129\": 0.0193,\n \"130\": 0.062725,\n \"131\": 0.564525,\n \"132\": 0.04825,\n \"133\": 0.516275,\n \"134\": 0.04825,\n \"135\": 0.0386,\n \"136\": 0.043425,\n \"137\": 0.082025,\n \"138\": 0.159225,\n \"139\": 0.101325,\n \"140\": 0.0772,\n \"141\": 0.0579,\n \"142\": 0.902275,\n \"143\": 0.110975,\n \"144\": 0.29915,\n \"145\": 0.863675,\n \"146\": 0.583825,\n \"147\": 6.10362,\n \"148\": 8.41963,\n \"149\": 42.196,\n \"150\": 0.00965\n};\n"]}
1
+ {"version":3,"file":"generated-version-share.js","sourceRoot":"","sources":["../../src/generated-version-share.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG,8BAA8B,CAAC;AAChF,MAAM,CAAC,MAAM,kCAAkC,GAAG,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,8BAA8B,GAA2B;IACpE,GAAG,EAAE,QAAQ;IACb,IAAI,EA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AAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,QAAQ;CAChB,CAAC","sourcesContent":["/* eslint-disable */\n/**\n * AUTO-GENERATED FILE. DO NOT EDIT.\n * Generated by: scripts/generate-version-share-data.mjs\n * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json\n * Generated at: 2026-07-11T09:48:57.348Z\n */\n\nexport const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';\nexport const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-07-11T09:48:57.348Z';\nexport const DEFAULT_VERSION_SHARE_BY_MAJOR: Record<string, number> = {\n \"4\": 0.000057,\n \"39\": 0.084942,\n \"40\": 0.084942,\n \"41\": 0.084942,\n \"42\": 0.084942,\n \"43\": 0.084942,\n \"44\": 0.084942,\n \"45\": 0.084942,\n \"46\": 0.084942,\n \"47\": 0.084942,\n \"48\": 0.084942,\n \"49\": 0.089661,\n \"50\": 0.084942,\n \"51\": 0.084942,\n \"52\": 0.084942,\n \"53\": 0.084942,\n \"54\": 0.084942,\n \"55\": 0.084942,\n \"56\": 0.084942,\n \"57\": 0.084942,\n \"58\": 0.084942,\n \"59\": 0.084942,\n \"60\": 0.084942,\n \"66\": 0.004719,\n \"69\": 0.009438,\n \"70\": 0.042471,\n \"79\": 0.028314,\n \"86\": 0.004719,\n \"87\": 0.018876,\n \"91\": 0.009438,\n \"92\": 0.009438,\n \"93\": 0.014157,\n \"97\": 0.004719,\n \"98\": 0.023595,\n \"99\": 0.014157,\n \"100\": 0.004719,\n \"101\": 0.009438,\n \"102\": 0.009438,\n \"103\": 0.202917,\n \"104\": 0.155727,\n \"105\": 0.132132,\n \"106\": 0.132132,\n \"107\": 0.132132,\n \"108\": 0.136851,\n \"109\": 0.632346,\n \"110\": 0.132132,\n \"111\": 0.165165,\n \"112\": 0.132132,\n \"114\": 0.023595,\n \"115\": 0.014157,\n \"116\": 0.302016,\n \"117\": 0.160446,\n \"118\": 1.00515,\n \"119\": 0.278421,\n \"120\": 0.453024,\n \"121\": 0.014157,\n \"122\": 0.037752,\n \"123\": 0.018876,\n \"124\": 0.198198,\n \"125\": 0.405834,\n \"126\": 0.051909,\n \"127\": 0.033033,\n \"128\": 0.070785,\n \"129\": 0.033033,\n \"130\": 0.061347,\n \"131\": 0.353925,\n \"132\": 0.075504,\n \"133\": 0.311454,\n \"134\": 0.061347,\n \"135\": 0.042471,\n \"136\": 0.037752,\n \"137\": 0.075504,\n \"138\": 0.146289,\n \"139\": 0.179322,\n \"140\": 0.04719,\n \"141\": 0.04719,\n \"142\": 0.462462,\n \"143\": 0.09438,\n \"144\": 0.278421,\n \"145\": 0.42471,\n \"146\": 0.495495,\n \"147\": 0.4719,\n \"148\": 5.50235,\n \"149\": 44.7497,\n \"150\": 0.042471,\n \"151\": 0.009438\n};\n"]}
@@ -11,95 +11,96 @@ const WebviewVersionChecker = core.registerPlugin('WebviewVersionChecker', {
11
11
  * AUTO-GENERATED FILE. DO NOT EDIT.
12
12
  * Generated by: scripts/generate-version-share-data.mjs
13
13
  * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json
14
- * Generated at: 2026-07-01T13:47:38.843Z
14
+ * Generated at: 2026-07-11T09:48:57.348Z
15
15
  */
16
16
  const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';
17
17
  const DEFAULT_VERSION_SHARE_BY_MAJOR = {
18
- "4": 0.000031,
19
- "39": 0.08685,
20
- "40": 0.08685,
21
- "41": 0.08685,
22
- "42": 0.08685,
23
- "43": 0.08685,
24
- "44": 0.08685,
25
- "45": 0.091675,
26
- "46": 0.08685,
27
- "47": 0.08685,
28
- "48": 0.091675,
29
- "49": 0.091675,
30
- "50": 0.08685,
31
- "51": 0.08685,
32
- "52": 0.091675,
33
- "53": 0.08685,
34
- "54": 0.08685,
35
- "55": 0.08685,
36
- "56": 0.08685,
37
- "57": 0.08685,
38
- "58": 0.08685,
39
- "59": 0.08685,
40
- "60": 0.08685,
41
- "66": 0.004825,
42
- "69": 0.004825,
43
- "70": 0.024125,
44
- "79": 0.02895,
45
- "86": 0.004825,
46
- "87": 0.014475,
47
- "91": 0.00965,
48
- "93": 0.014475,
49
- "96": 0.004825,
50
- "97": 0.004825,
51
- "98": 0.02895,
52
- "99": 0.014475,
53
- "100": 0.00965,
54
- "101": 0.00965,
55
- "102": 0.004825,
56
- "103": 0.303975,
57
- "104": 0.2509,
58
- "105": 0.236425,
59
- "106": 0.236425,
60
- "107": 0.236425,
61
- "108": 0.246075,
62
- "109": 0.7334,
63
- "110": 0.24125,
64
- "111": 0.2895,
65
- "112": 0.902275,
66
- "114": 0.024125,
67
- "115": 0.00965,
68
- "116": 0.516275,
69
- "117": 0.284675,
70
- "118": 1.1773,
71
- "119": 0.02895,
72
- "120": 0.294325,
73
- "121": 0.024125,
74
- "122": 0.033775,
75
- "123": 0.033775,
76
- "124": 0.27985,
77
- "125": 0.5211,
78
- "126": 0.0386,
79
- "127": 0.0193,
80
- "128": 0.053075,
81
- "129": 0.0193,
82
- "130": 0.062725,
83
- "131": 0.564525,
84
- "132": 0.04825,
85
- "133": 0.516275,
86
- "134": 0.04825,
87
- "135": 0.0386,
88
- "136": 0.043425,
89
- "137": 0.082025,
90
- "138": 0.159225,
91
- "139": 0.101325,
92
- "140": 0.0772,
93
- "141": 0.0579,
94
- "142": 0.902275,
95
- "143": 0.110975,
96
- "144": 0.29915,
97
- "145": 0.863675,
98
- "146": 0.583825,
99
- "147": 6.10362,
100
- "148": 8.41963,
101
- "149": 42.196,
102
- "150": 0.00965
18
+ "4": 0.000057,
19
+ "39": 0.084942,
20
+ "40": 0.084942,
21
+ "41": 0.084942,
22
+ "42": 0.084942,
23
+ "43": 0.084942,
24
+ "44": 0.084942,
25
+ "45": 0.084942,
26
+ "46": 0.084942,
27
+ "47": 0.084942,
28
+ "48": 0.084942,
29
+ "49": 0.089661,
30
+ "50": 0.084942,
31
+ "51": 0.084942,
32
+ "52": 0.084942,
33
+ "53": 0.084942,
34
+ "54": 0.084942,
35
+ "55": 0.084942,
36
+ "56": 0.084942,
37
+ "57": 0.084942,
38
+ "58": 0.084942,
39
+ "59": 0.084942,
40
+ "60": 0.084942,
41
+ "66": 0.004719,
42
+ "69": 0.009438,
43
+ "70": 0.042471,
44
+ "79": 0.028314,
45
+ "86": 0.004719,
46
+ "87": 0.018876,
47
+ "91": 0.009438,
48
+ "92": 0.009438,
49
+ "93": 0.014157,
50
+ "97": 0.004719,
51
+ "98": 0.023595,
52
+ "99": 0.014157,
53
+ "100": 0.004719,
54
+ "101": 0.009438,
55
+ "102": 0.009438,
56
+ "103": 0.202917,
57
+ "104": 0.155727,
58
+ "105": 0.132132,
59
+ "106": 0.132132,
60
+ "107": 0.132132,
61
+ "108": 0.136851,
62
+ "109": 0.632346,
63
+ "110": 0.132132,
64
+ "111": 0.165165,
65
+ "112": 0.132132,
66
+ "114": 0.023595,
67
+ "115": 0.014157,
68
+ "116": 0.302016,
69
+ "117": 0.160446,
70
+ "118": 1.00515,
71
+ "119": 0.278421,
72
+ "120": 0.453024,
73
+ "121": 0.014157,
74
+ "122": 0.037752,
75
+ "123": 0.018876,
76
+ "124": 0.198198,
77
+ "125": 0.405834,
78
+ "126": 0.051909,
79
+ "127": 0.033033,
80
+ "128": 0.070785,
81
+ "129": 0.033033,
82
+ "130": 0.061347,
83
+ "131": 0.353925,
84
+ "132": 0.075504,
85
+ "133": 0.311454,
86
+ "134": 0.061347,
87
+ "135": 0.042471,
88
+ "136": 0.037752,
89
+ "137": 0.075504,
90
+ "138": 0.146289,
91
+ "139": 0.179322,
92
+ "140": 0.04719,
93
+ "141": 0.04719,
94
+ "142": 0.462462,
95
+ "143": 0.09438,
96
+ "144": 0.278421,
97
+ "145": 0.42471,
98
+ "146": 0.495495,
99
+ "147": 0.4719,
100
+ "148": 5.50235,
101
+ "149": 44.7497,
102
+ "150": 0.042471,
103
+ "151": 0.009438
103
104
  };
104
105
 
105
106
  const UNKNOWN_REASON = 'Web implementation is a compatibility shim. Native Android/iOS implementations provide full WebView checks.';
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/generated-version-share.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst WebviewVersionChecker = registerPlugin('WebviewVersionChecker', {\n web: () => import('./web').then((m) => new m.WebviewVersionCheckerWeb()),\n});\nexport * from './definitions';\nexport { WebviewVersionChecker };\n//# sourceMappingURL=index.js.map","/* eslint-disable */\n/**\n * AUTO-GENERATED FILE. DO NOT EDIT.\n * Generated by: scripts/generate-version-share-data.mjs\n * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json\n * Generated at: 2026-07-01T13:47:38.843Z\n */\nexport const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';\nexport const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-07-01T13:47:38.843Z';\nexport const DEFAULT_VERSION_SHARE_BY_MAJOR = {\n \"4\": 0.000031,\n \"39\": 0.08685,\n \"40\": 0.08685,\n \"41\": 0.08685,\n \"42\": 0.08685,\n \"43\": 0.08685,\n \"44\": 0.08685,\n \"45\": 0.091675,\n \"46\": 0.08685,\n \"47\": 0.08685,\n \"48\": 0.091675,\n \"49\": 0.091675,\n \"50\": 0.08685,\n \"51\": 0.08685,\n \"52\": 0.091675,\n \"53\": 0.08685,\n \"54\": 0.08685,\n \"55\": 0.08685,\n \"56\": 0.08685,\n \"57\": 0.08685,\n \"58\": 0.08685,\n \"59\": 0.08685,\n \"60\": 0.08685,\n \"66\": 0.004825,\n \"69\": 0.004825,\n \"70\": 0.024125,\n \"79\": 0.02895,\n \"86\": 0.004825,\n \"87\": 0.014475,\n \"91\": 0.00965,\n \"93\": 0.014475,\n \"96\": 0.004825,\n \"97\": 0.004825,\n \"98\": 0.02895,\n \"99\": 0.014475,\n \"100\": 0.00965,\n \"101\": 0.00965,\n \"102\": 0.004825,\n \"103\": 0.303975,\n \"104\": 0.2509,\n \"105\": 0.236425,\n \"106\": 0.236425,\n \"107\": 0.236425,\n \"108\": 0.246075,\n \"109\": 0.7334,\n \"110\": 0.24125,\n \"111\": 0.2895,\n \"112\": 0.902275,\n \"114\": 0.024125,\n \"115\": 0.00965,\n \"116\": 0.516275,\n \"117\": 0.284675,\n \"118\": 1.1773,\n \"119\": 0.02895,\n \"120\": 0.294325,\n \"121\": 0.024125,\n \"122\": 0.033775,\n \"123\": 0.033775,\n \"124\": 0.27985,\n \"125\": 0.5211,\n \"126\": 0.0386,\n \"127\": 0.0193,\n \"128\": 0.053075,\n \"129\": 0.0193,\n \"130\": 0.062725,\n \"131\": 0.564525,\n \"132\": 0.04825,\n \"133\": 0.516275,\n \"134\": 0.04825,\n \"135\": 0.0386,\n \"136\": 0.043425,\n \"137\": 0.082025,\n \"138\": 0.159225,\n \"139\": 0.101325,\n \"140\": 0.0772,\n \"141\": 0.0579,\n \"142\": 0.902275,\n \"143\": 0.110975,\n \"144\": 0.29915,\n \"145\": 0.863675,\n \"146\": 0.583825,\n \"147\": 6.10362,\n \"148\": 8.41963,\n \"149\": 42.196,\n \"150\": 0.00965\n};\n//# sourceMappingURL=generated-version-share.js.map","import { WebPlugin } from '@capacitor/core';\nimport { DEFAULT_VERSION_SHARE_BY_MAJOR, DEFAULT_VERSION_SHARE_DATA_SOURCE } from './generated-version-share';\nconst UNKNOWN_REASON = 'Web implementation is a compatibility shim. Native Android/iOS implementations provide full WebView checks.';\nexport class WebviewVersionCheckerWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.monitoring = false;\n this.checkOnResume = true;\n this.autoPromptOnOutdated = false;\n this.lastStatus = null;\n }\n async check(options = {}) {\n var _a, _b;\n const currentVersion = this.detectCurrentVersion();\n const currentMajorVersion = this.parseMajorVersion(currentVersion);\n const latestVersion = options.latestVersion;\n const latestMajorVersion = this.parseMajorVersion(latestVersion);\n const minimumDeviceSharePercent = this.normalizePercent((_a = options.minimumDeviceSharePercent) !== null && _a !== void 0 ? _a : 3);\n const normalizedInlineVersionShareByMajor = this.normalizeVersionShareByMajor(options.versionShareByMajor);\n const normalizedGeneratedVersionShareByMajor = this.normalizeVersionShareByMajor(DEFAULT_VERSION_SHARE_BY_MAJOR);\n const normalizedVersionShareByMajor = normalizedInlineVersionShareByMajor !== null && normalizedInlineVersionShareByMajor !== void 0 ? normalizedInlineVersionShareByMajor : normalizedGeneratedVersionShareByMajor;\n const versionShareSource = normalizedInlineVersionShareByMajor\n ? 'versionShareByMajor'\n : DEFAULT_VERSION_SHARE_DATA_SOURCE;\n const currentVersionSharePercent = this.resolveCurrentVersionSharePercent(currentMajorVersion, normalizedVersionShareByMajor);\n let deviceShareError;\n let state = 'unknown';\n let reason = UNKNOWN_REASON;\n if (typeof minimumDeviceSharePercent === 'number') {\n if (typeof currentVersionSharePercent === 'number') {\n state = currentVersionSharePercent >= minimumDeviceSharePercent ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the configured device-share threshold.'\n : 'Current browser engine major version is below the configured device-share threshold.';\n }\n else if (!normalizedVersionShareByMajor && options.versionShareApiUrl) {\n deviceShareError =\n 'Web shim does not fetch version-share API data. Provide versionShareByMajor to evaluate minimumDeviceSharePercent.';\n }\n else if (!normalizedVersionShareByMajor) {\n deviceShareError = 'minimumDeviceSharePercent is set, but no versionShareByMajor dataset was provided.';\n }\n else {\n deviceShareError = 'No device-share entry was found for the current browser engine major version.';\n }\n }\n if (state === 'unknown' && latestVersion && currentVersion) {\n const cmp = this.compareVersions(currentVersion, latestVersion);\n state = cmp >= 0 ? 'latest' : 'outdated';\n reason =\n cmp >= 0\n ? 'Current browser engine is at or above the requested latest version.'\n : 'Current browser engine is below the requested latest version.';\n }\n else if (state === 'unknown' &&\n typeof options.minimumMajorVersion === 'number' &&\n typeof currentMajorVersion === 'number') {\n state = currentMajorVersion >= options.minimumMajorVersion ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the minimum requirement.'\n : 'Current browser engine major version is below the minimum requirement.';\n }\n else if (state === 'unknown' && deviceShareError) {\n reason = deviceShareError;\n }\n const status = {\n platform: 'web',\n state,\n isLatest: state === 'latest',\n checkedAt: new Date().toISOString(),\n reason,\n currentVersion,\n currentMajorVersion,\n latestVersion,\n latestMajorVersion,\n currentVersionSharePercent,\n minimumDeviceSharePercent,\n versionShareSource: normalizedVersionShareByMajor ? versionShareSource : undefined,\n deviceShareError,\n updateUrl: options.updateUrl,\n source: (_b = options.source) !== null && _b !== void 0 ? _b : 'web-shim',\n };\n this.lastStatus = status;\n this.notifyListeners('statusChanged', status);\n if (state === 'latest') {\n this.notifyListeners('webViewLatest', status);\n }\n else if (state === 'outdated') {\n this.notifyListeners('webViewOutdated', status);\n if (options.showPromptOnOutdated || this.autoPromptOnOutdated) {\n await this.showUpdatePrompt({ updateUrl: status.updateUrl });\n }\n }\n return status;\n }\n async startMonitoring(options = {}) {\n var _a, _b, _c, _d;\n this.monitoring = true;\n this.checkOnResume = (_a = options.checkOnResume) !== null && _a !== void 0 ? _a : true;\n this.autoPromptOnOutdated = (_b = options.autoPromptOnOutdated) !== null && _b !== void 0 ? _b : false;\n if ((_c = options.checkOnStart) !== null && _c !== void 0 ? _c : true) {\n await this.check(Object.assign(Object.assign({}, options), { source: (_d = options.source) !== null && _d !== void 0 ? _d : 'startMonitoring' }));\n }\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async stopMonitoring() {\n this.monitoring = false;\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async getLastStatus() {\n return {\n status: this.lastStatus,\n };\n }\n async showUpdatePrompt(options = {}) {\n var _a, _b;\n const url = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl;\n if (!url) {\n return {\n shown: false,\n openedUpdatePage: false,\n };\n }\n const opened = this.openUrl(url);\n return {\n shown: true,\n openedUpdatePage: opened,\n };\n }\n async openUpdatePage(options = {}) {\n var _a, _b, _c;\n const url = (_c = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl) !== null && _c !== void 0 ? _c : '';\n if (!url) {\n return {\n opened: false,\n url,\n };\n }\n return {\n opened: this.openUrl(url),\n url,\n };\n }\n detectCurrentVersion() {\n const chromiumMatch = navigator.userAgent.match(/Chrome\\/([\\d.]+)/i);\n if (chromiumMatch === null || chromiumMatch === void 0 ? void 0 : chromiumMatch[1]) {\n return chromiumMatch[1];\n }\n const appleWebKitMatch = navigator.userAgent.match(/AppleWebKit\\/([\\d.]+)/i);\n if (appleWebKitMatch === null || appleWebKitMatch === void 0 ? void 0 : appleWebKitMatch[1]) {\n return appleWebKitMatch[1];\n }\n return navigator.userAgent;\n }\n openUrl(url) {\n try {\n window.open(url, '_blank', 'noopener,noreferrer');\n return true;\n }\n catch (_a) {\n return false;\n }\n }\n parseMajorVersion(version) {\n if (!version) {\n return undefined;\n }\n const match = version.match(/(\\d+)/);\n if (!match) {\n return undefined;\n }\n const major = Number.parseInt(match[1], 10);\n return Number.isFinite(major) ? major : undefined;\n }\n compareVersions(left, right) {\n var _a, _b;\n const leftParts = left\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const rightParts = right\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const maxLength = Math.max(leftParts.length, rightParts.length);\n for (let i = 0; i < maxLength; i += 1) {\n const a = (_a = leftParts[i]) !== null && _a !== void 0 ? _a : 0;\n const b = (_b = rightParts[i]) !== null && _b !== void 0 ? _b : 0;\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n }\n return 0;\n }\n normalizePercent(value) {\n if (typeof value !== 'number' || Number.isNaN(value) || !Number.isFinite(value)) {\n return undefined;\n }\n return Math.min(100, Math.max(0, value));\n }\n normalizeVersionShareByMajor(shareByMajor) {\n if (!shareByMajor) {\n return undefined;\n }\n const normalized = {};\n for (const [rawKey, rawShare] of Object.entries(shareByMajor)) {\n const major = this.parseMajorVersion(rawKey);\n const share = this.normalizePercent(rawShare);\n if (typeof major === 'number' && typeof share === 'number') {\n normalized[major] = share;\n }\n }\n return Object.keys(normalized).length > 0 ? normalized : undefined;\n }\n resolveCurrentVersionSharePercent(currentMajorVersion, normalizedShareByMajor) {\n if (typeof currentMajorVersion !== 'number' || !normalizedShareByMajor) {\n return undefined;\n }\n return normalizedShareByMajor[currentMajorVersion];\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,qBAAqB,GAAGA,mBAAc,CAAC,uBAAuB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AC,OAAO,CAAC,YAAY,CAAC,EAAE;AACvE,YAAY,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC;AACxD,YAAY,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC;AACzD,YAAY,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AACxE,gBAAgB,UAAU,CAAC,KAAK,CAAC,GAAG,KAAK;AACzC,YAAY;AACZ,QAAQ;AACR,QAAQ,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,GAAG,UAAU,GAAG,SAAS;AAC1E,IAAI;AACJ,IAAI,iCAAiC,CAAC,mBAAmB,EAAE,sBAAsB,EAAE;AACnF,QAAQ,IAAI,OAAO,mBAAmB,KAAK,QAAQ,IAAI,CAAC,sBAAsB,EAAE;AAChF,YAAY,OAAO,SAAS;AAC5B,QAAQ;AACR,QAAQ,OAAO,sBAAsB,CAAC,mBAAmB,CAAC;AAC1D,IAAI;AACJ;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/generated-version-share.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst WebviewVersionChecker = registerPlugin('WebviewVersionChecker', {\n web: () => import('./web').then((m) => new m.WebviewVersionCheckerWeb()),\n});\nexport * from './definitions';\nexport { WebviewVersionChecker };\n//# sourceMappingURL=index.js.map","/* eslint-disable */\n/**\n * AUTO-GENERATED FILE. DO NOT EDIT.\n * Generated by: scripts/generate-version-share-data.mjs\n * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json\n * Generated at: 2026-07-11T09:48:57.348Z\n */\nexport const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';\nexport const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-07-11T09:48:57.348Z';\nexport const DEFAULT_VERSION_SHARE_BY_MAJOR = {\n \"4\": 0.000057,\n \"39\": 0.084942,\n \"40\": 0.084942,\n \"41\": 0.084942,\n \"42\": 0.084942,\n \"43\": 0.084942,\n \"44\": 0.084942,\n \"45\": 0.084942,\n \"46\": 0.084942,\n \"47\": 0.084942,\n \"48\": 0.084942,\n \"49\": 0.089661,\n \"50\": 0.084942,\n \"51\": 0.084942,\n \"52\": 0.084942,\n \"53\": 0.084942,\n \"54\": 0.084942,\n \"55\": 0.084942,\n \"56\": 0.084942,\n \"57\": 0.084942,\n \"58\": 0.084942,\n \"59\": 0.084942,\n \"60\": 0.084942,\n \"66\": 0.004719,\n \"69\": 0.009438,\n \"70\": 0.042471,\n \"79\": 0.028314,\n \"86\": 0.004719,\n \"87\": 0.018876,\n \"91\": 0.009438,\n \"92\": 0.009438,\n \"93\": 0.014157,\n \"97\": 0.004719,\n \"98\": 0.023595,\n \"99\": 0.014157,\n \"100\": 0.004719,\n \"101\": 0.009438,\n \"102\": 0.009438,\n \"103\": 0.202917,\n \"104\": 0.155727,\n \"105\": 0.132132,\n \"106\": 0.132132,\n \"107\": 0.132132,\n \"108\": 0.136851,\n \"109\": 0.632346,\n \"110\": 0.132132,\n \"111\": 0.165165,\n \"112\": 0.132132,\n \"114\": 0.023595,\n \"115\": 0.014157,\n \"116\": 0.302016,\n \"117\": 0.160446,\n \"118\": 1.00515,\n \"119\": 0.278421,\n \"120\": 0.453024,\n \"121\": 0.014157,\n \"122\": 0.037752,\n \"123\": 0.018876,\n \"124\": 0.198198,\n \"125\": 0.405834,\n \"126\": 0.051909,\n \"127\": 0.033033,\n \"128\": 0.070785,\n \"129\": 0.033033,\n \"130\": 0.061347,\n \"131\": 0.353925,\n \"132\": 0.075504,\n \"133\": 0.311454,\n \"134\": 0.061347,\n \"135\": 0.042471,\n \"136\": 0.037752,\n \"137\": 0.075504,\n \"138\": 0.146289,\n \"139\": 0.179322,\n \"140\": 0.04719,\n \"141\": 0.04719,\n \"142\": 0.462462,\n \"143\": 0.09438,\n \"144\": 0.278421,\n \"145\": 0.42471,\n \"146\": 0.495495,\n \"147\": 0.4719,\n \"148\": 5.50235,\n \"149\": 44.7497,\n \"150\": 0.042471,\n \"151\": 0.009438\n};\n//# sourceMappingURL=generated-version-share.js.map","import { WebPlugin } from '@capacitor/core';\nimport { DEFAULT_VERSION_SHARE_BY_MAJOR, DEFAULT_VERSION_SHARE_DATA_SOURCE } from './generated-version-share';\nconst UNKNOWN_REASON = 'Web implementation is a compatibility shim. Native Android/iOS implementations provide full WebView checks.';\nexport class WebviewVersionCheckerWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.monitoring = false;\n this.checkOnResume = true;\n this.autoPromptOnOutdated = false;\n this.lastStatus = null;\n }\n async check(options = {}) {\n var _a, _b;\n const currentVersion = this.detectCurrentVersion();\n const currentMajorVersion = this.parseMajorVersion(currentVersion);\n const latestVersion = options.latestVersion;\n const latestMajorVersion = this.parseMajorVersion(latestVersion);\n const minimumDeviceSharePercent = this.normalizePercent((_a = options.minimumDeviceSharePercent) !== null && _a !== void 0 ? _a : 3);\n const normalizedInlineVersionShareByMajor = this.normalizeVersionShareByMajor(options.versionShareByMajor);\n const normalizedGeneratedVersionShareByMajor = this.normalizeVersionShareByMajor(DEFAULT_VERSION_SHARE_BY_MAJOR);\n const normalizedVersionShareByMajor = normalizedInlineVersionShareByMajor !== null && normalizedInlineVersionShareByMajor !== void 0 ? normalizedInlineVersionShareByMajor : normalizedGeneratedVersionShareByMajor;\n const versionShareSource = normalizedInlineVersionShareByMajor\n ? 'versionShareByMajor'\n : DEFAULT_VERSION_SHARE_DATA_SOURCE;\n const currentVersionSharePercent = this.resolveCurrentVersionSharePercent(currentMajorVersion, normalizedVersionShareByMajor);\n let deviceShareError;\n let state = 'unknown';\n let reason = UNKNOWN_REASON;\n if (typeof minimumDeviceSharePercent === 'number') {\n if (typeof currentVersionSharePercent === 'number') {\n state = currentVersionSharePercent >= minimumDeviceSharePercent ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the configured device-share threshold.'\n : 'Current browser engine major version is below the configured device-share threshold.';\n }\n else if (!normalizedVersionShareByMajor && options.versionShareApiUrl) {\n deviceShareError =\n 'Web shim does not fetch version-share API data. Provide versionShareByMajor to evaluate minimumDeviceSharePercent.';\n }\n else if (!normalizedVersionShareByMajor) {\n deviceShareError = 'minimumDeviceSharePercent is set, but no versionShareByMajor dataset was provided.';\n }\n else {\n deviceShareError = 'No device-share entry was found for the current browser engine major version.';\n }\n }\n if (state === 'unknown' && latestVersion && currentVersion) {\n const cmp = this.compareVersions(currentVersion, latestVersion);\n state = cmp >= 0 ? 'latest' : 'outdated';\n reason =\n cmp >= 0\n ? 'Current browser engine is at or above the requested latest version.'\n : 'Current browser engine is below the requested latest version.';\n }\n else if (state === 'unknown' &&\n typeof options.minimumMajorVersion === 'number' &&\n typeof currentMajorVersion === 'number') {\n state = currentMajorVersion >= options.minimumMajorVersion ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the minimum requirement.'\n : 'Current browser engine major version is below the minimum requirement.';\n }\n else if (state === 'unknown' && deviceShareError) {\n reason = deviceShareError;\n }\n const status = {\n platform: 'web',\n state,\n isLatest: state === 'latest',\n checkedAt: new Date().toISOString(),\n reason,\n currentVersion,\n currentMajorVersion,\n latestVersion,\n latestMajorVersion,\n currentVersionSharePercent,\n minimumDeviceSharePercent,\n versionShareSource: normalizedVersionShareByMajor ? versionShareSource : undefined,\n deviceShareError,\n updateUrl: options.updateUrl,\n source: (_b = options.source) !== null && _b !== void 0 ? _b : 'web-shim',\n };\n this.lastStatus = status;\n this.notifyListeners('statusChanged', status);\n if (state === 'latest') {\n this.notifyListeners('webViewLatest', status);\n }\n else if (state === 'outdated') {\n this.notifyListeners('webViewOutdated', status);\n if (options.showPromptOnOutdated || this.autoPromptOnOutdated) {\n await this.showUpdatePrompt({ updateUrl: status.updateUrl });\n }\n }\n return status;\n }\n async startMonitoring(options = {}) {\n var _a, _b, _c, _d;\n this.monitoring = true;\n this.checkOnResume = (_a = options.checkOnResume) !== null && _a !== void 0 ? _a : true;\n this.autoPromptOnOutdated = (_b = options.autoPromptOnOutdated) !== null && _b !== void 0 ? _b : false;\n if ((_c = options.checkOnStart) !== null && _c !== void 0 ? _c : true) {\n await this.check(Object.assign(Object.assign({}, options), { source: (_d = options.source) !== null && _d !== void 0 ? _d : 'startMonitoring' }));\n }\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async stopMonitoring() {\n this.monitoring = false;\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async getLastStatus() {\n return {\n status: this.lastStatus,\n };\n }\n async showUpdatePrompt(options = {}) {\n var _a, _b;\n const url = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl;\n if (!url) {\n return {\n shown: false,\n openedUpdatePage: false,\n };\n }\n const opened = this.openUrl(url);\n return {\n shown: true,\n openedUpdatePage: opened,\n };\n }\n async openUpdatePage(options = {}) {\n var _a, _b, _c;\n const url = (_c = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl) !== null && _c !== void 0 ? _c : '';\n if (!url) {\n return {\n opened: false,\n url,\n };\n }\n return {\n opened: this.openUrl(url),\n url,\n };\n }\n detectCurrentVersion() {\n const chromiumMatch = navigator.userAgent.match(/Chrome\\/([\\d.]+)/i);\n if (chromiumMatch === null || chromiumMatch === void 0 ? void 0 : chromiumMatch[1]) {\n return chromiumMatch[1];\n }\n const appleWebKitMatch = navigator.userAgent.match(/AppleWebKit\\/([\\d.]+)/i);\n if (appleWebKitMatch === null || appleWebKitMatch === void 0 ? void 0 : appleWebKitMatch[1]) {\n return appleWebKitMatch[1];\n }\n return navigator.userAgent;\n }\n openUrl(url) {\n try {\n window.open(url, '_blank', 'noopener,noreferrer');\n return true;\n }\n catch (_a) {\n return false;\n }\n }\n parseMajorVersion(version) {\n if (!version) {\n return undefined;\n }\n const match = version.match(/(\\d+)/);\n if (!match) {\n return undefined;\n }\n const major = Number.parseInt(match[1], 10);\n return Number.isFinite(major) ? major : undefined;\n }\n compareVersions(left, right) {\n var _a, _b;\n const leftParts = left\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const rightParts = right\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const maxLength = Math.max(leftParts.length, rightParts.length);\n for (let i = 0; i < maxLength; i += 1) {\n const a = (_a = leftParts[i]) !== null && _a !== void 0 ? _a : 0;\n const b = (_b = rightParts[i]) !== null && _b !== void 0 ? _b : 0;\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n }\n return 0;\n }\n normalizePercent(value) {\n if (typeof value !== 'number' || Number.isNaN(value) || !Number.isFinite(value)) {\n return undefined;\n }\n return Math.min(100, Math.max(0, value));\n }\n normalizeVersionShareByMajor(shareByMajor) {\n if (!shareByMajor) {\n return undefined;\n }\n const normalized = {};\n for (const [rawKey, rawShare] of Object.entries(shareByMajor)) {\n const major = this.parseMajorVersion(rawKey);\n const share = this.normalizePercent(rawShare);\n if (typeof major === 'number' && typeof share === 'number') {\n normalized[major] = share;\n }\n }\n return Object.keys(normalized).length > 0 ? normalized : undefined;\n }\n resolveCurrentVersionSharePercent(currentMajorVersion, normalizedShareByMajor) {\n if (typeof currentMajorVersion !== 'number' || !normalizedShareByMajor) {\n return undefined;\n }\n return normalizedShareByMajor[currentMajorVersion];\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,qBAAqB,GAAGA,mBAAc,CAAC,uBAAuB,EAAE;AACtE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,K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C,OAAO,CAAC,YAAY,CAAC,EAAE;AACvE,YAAY,MAAM,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC;AACxD,YAAY,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC;AACzD,YAAY,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AACxE,gBAAgB,UAAU,CAAC,KAAK,CAAC,GAAG,KAAK;AACzC,YAAY;AACZ,QAAQ;AACR,QAAQ,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,GAAG,UAAU,GAAG,SAAS;AAC1E,IAAI;AACJ,IAAI,iCAAiC,CAAC,mBAAmB,EAAE,sBAAsB,EAAE;AACnF,QAAQ,IAAI,OAAO,mBAAmB,KAAK,QAAQ,IAAI,CAAC,sBAAsB,EAAE;AAChF,YAAY,OAAO,SAAS;AAC5B,QAAQ;AACR,QAAQ,OAAO,sBAAsB,CAAC,mBAAmB,CAAC;AAC1D,IAAI;AACJ;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -10,95 +10,96 @@ var capacitorWebviewVersionChecker = (function (exports, core) {
10
10
  * AUTO-GENERATED FILE. DO NOT EDIT.
11
11
  * Generated by: scripts/generate-version-share-data.mjs
12
12
  * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json
13
- * Generated at: 2026-07-01T13:47:38.843Z
13
+ * Generated at: 2026-07-11T09:48:57.348Z
14
14
  */
15
15
  const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';
16
16
  const DEFAULT_VERSION_SHARE_BY_MAJOR = {
17
- "4": 0.000031,
18
- "39": 0.08685,
19
- "40": 0.08685,
20
- "41": 0.08685,
21
- "42": 0.08685,
22
- "43": 0.08685,
23
- "44": 0.08685,
24
- "45": 0.091675,
25
- "46": 0.08685,
26
- "47": 0.08685,
27
- "48": 0.091675,
28
- "49": 0.091675,
29
- "50": 0.08685,
30
- "51": 0.08685,
31
- "52": 0.091675,
32
- "53": 0.08685,
33
- "54": 0.08685,
34
- "55": 0.08685,
35
- "56": 0.08685,
36
- "57": 0.08685,
37
- "58": 0.08685,
38
- "59": 0.08685,
39
- "60": 0.08685,
40
- "66": 0.004825,
41
- "69": 0.004825,
42
- "70": 0.024125,
43
- "79": 0.02895,
44
- "86": 0.004825,
45
- "87": 0.014475,
46
- "91": 0.00965,
47
- "93": 0.014475,
48
- "96": 0.004825,
49
- "97": 0.004825,
50
- "98": 0.02895,
51
- "99": 0.014475,
52
- "100": 0.00965,
53
- "101": 0.00965,
54
- "102": 0.004825,
55
- "103": 0.303975,
56
- "104": 0.2509,
57
- "105": 0.236425,
58
- "106": 0.236425,
59
- "107": 0.236425,
60
- "108": 0.246075,
61
- "109": 0.7334,
62
- "110": 0.24125,
63
- "111": 0.2895,
64
- "112": 0.902275,
65
- "114": 0.024125,
66
- "115": 0.00965,
67
- "116": 0.516275,
68
- "117": 0.284675,
69
- "118": 1.1773,
70
- "119": 0.02895,
71
- "120": 0.294325,
72
- "121": 0.024125,
73
- "122": 0.033775,
74
- "123": 0.033775,
75
- "124": 0.27985,
76
- "125": 0.5211,
77
- "126": 0.0386,
78
- "127": 0.0193,
79
- "128": 0.053075,
80
- "129": 0.0193,
81
- "130": 0.062725,
82
- "131": 0.564525,
83
- "132": 0.04825,
84
- "133": 0.516275,
85
- "134": 0.04825,
86
- "135": 0.0386,
87
- "136": 0.043425,
88
- "137": 0.082025,
89
- "138": 0.159225,
90
- "139": 0.101325,
91
- "140": 0.0772,
92
- "141": 0.0579,
93
- "142": 0.902275,
94
- "143": 0.110975,
95
- "144": 0.29915,
96
- "145": 0.863675,
97
- "146": 0.583825,
98
- "147": 6.10362,
99
- "148": 8.41963,
100
- "149": 42.196,
101
- "150": 0.00965
17
+ "4": 0.000057,
18
+ "39": 0.084942,
19
+ "40": 0.084942,
20
+ "41": 0.084942,
21
+ "42": 0.084942,
22
+ "43": 0.084942,
23
+ "44": 0.084942,
24
+ "45": 0.084942,
25
+ "46": 0.084942,
26
+ "47": 0.084942,
27
+ "48": 0.084942,
28
+ "49": 0.089661,
29
+ "50": 0.084942,
30
+ "51": 0.084942,
31
+ "52": 0.084942,
32
+ "53": 0.084942,
33
+ "54": 0.084942,
34
+ "55": 0.084942,
35
+ "56": 0.084942,
36
+ "57": 0.084942,
37
+ "58": 0.084942,
38
+ "59": 0.084942,
39
+ "60": 0.084942,
40
+ "66": 0.004719,
41
+ "69": 0.009438,
42
+ "70": 0.042471,
43
+ "79": 0.028314,
44
+ "86": 0.004719,
45
+ "87": 0.018876,
46
+ "91": 0.009438,
47
+ "92": 0.009438,
48
+ "93": 0.014157,
49
+ "97": 0.004719,
50
+ "98": 0.023595,
51
+ "99": 0.014157,
52
+ "100": 0.004719,
53
+ "101": 0.009438,
54
+ "102": 0.009438,
55
+ "103": 0.202917,
56
+ "104": 0.155727,
57
+ "105": 0.132132,
58
+ "106": 0.132132,
59
+ "107": 0.132132,
60
+ "108": 0.136851,
61
+ "109": 0.632346,
62
+ "110": 0.132132,
63
+ "111": 0.165165,
64
+ "112": 0.132132,
65
+ "114": 0.023595,
66
+ "115": 0.014157,
67
+ "116": 0.302016,
68
+ "117": 0.160446,
69
+ "118": 1.00515,
70
+ "119": 0.278421,
71
+ "120": 0.453024,
72
+ "121": 0.014157,
73
+ "122": 0.037752,
74
+ "123": 0.018876,
75
+ "124": 0.198198,
76
+ "125": 0.405834,
77
+ "126": 0.051909,
78
+ "127": 0.033033,
79
+ "128": 0.070785,
80
+ "129": 0.033033,
81
+ "130": 0.061347,
82
+ "131": 0.353925,
83
+ "132": 0.075504,
84
+ "133": 0.311454,
85
+ "134": 0.061347,
86
+ "135": 0.042471,
87
+ "136": 0.037752,
88
+ "137": 0.075504,
89
+ "138": 0.146289,
90
+ "139": 0.179322,
91
+ "140": 0.04719,
92
+ "141": 0.04719,
93
+ "142": 0.462462,
94
+ "143": 0.09438,
95
+ "144": 0.278421,
96
+ "145": 0.42471,
97
+ "146": 0.495495,
98
+ "147": 0.4719,
99
+ "148": 5.50235,
100
+ "149": 44.7497,
101
+ "150": 0.042471,
102
+ "151": 0.009438
102
103
  };
103
104
 
104
105
  const UNKNOWN_REASON = 'Web implementation is a compatibility shim. Native Android/iOS implementations provide full WebView checks.';
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/generated-version-share.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst WebviewVersionChecker = registerPlugin('WebviewVersionChecker', {\n web: () => import('./web').then((m) => new m.WebviewVersionCheckerWeb()),\n});\nexport * from './definitions';\nexport { WebviewVersionChecker };\n//# sourceMappingURL=index.js.map","/* eslint-disable */\n/**\n * AUTO-GENERATED FILE. DO NOT EDIT.\n * Generated by: scripts/generate-version-share-data.mjs\n * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json\n * Generated at: 2026-07-01T13:47:38.843Z\n */\nexport const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';\nexport const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-07-01T13:47:38.843Z';\nexport const DEFAULT_VERSION_SHARE_BY_MAJOR = {\n \"4\": 0.000031,\n \"39\": 0.08685,\n \"40\": 0.08685,\n \"41\": 0.08685,\n \"42\": 0.08685,\n \"43\": 0.08685,\n \"44\": 0.08685,\n \"45\": 0.091675,\n \"46\": 0.08685,\n \"47\": 0.08685,\n \"48\": 0.091675,\n \"49\": 0.091675,\n \"50\": 0.08685,\n \"51\": 0.08685,\n \"52\": 0.091675,\n \"53\": 0.08685,\n \"54\": 0.08685,\n \"55\": 0.08685,\n \"56\": 0.08685,\n \"57\": 0.08685,\n \"58\": 0.08685,\n \"59\": 0.08685,\n \"60\": 0.08685,\n \"66\": 0.004825,\n \"69\": 0.004825,\n \"70\": 0.024125,\n \"79\": 0.02895,\n \"86\": 0.004825,\n \"87\": 0.014475,\n \"91\": 0.00965,\n \"93\": 0.014475,\n \"96\": 0.004825,\n \"97\": 0.004825,\n \"98\": 0.02895,\n \"99\": 0.014475,\n \"100\": 0.00965,\n \"101\": 0.00965,\n \"102\": 0.004825,\n \"103\": 0.303975,\n \"104\": 0.2509,\n \"105\": 0.236425,\n \"106\": 0.236425,\n \"107\": 0.236425,\n \"108\": 0.246075,\n \"109\": 0.7334,\n \"110\": 0.24125,\n \"111\": 0.2895,\n \"112\": 0.902275,\n \"114\": 0.024125,\n \"115\": 0.00965,\n \"116\": 0.516275,\n \"117\": 0.284675,\n \"118\": 1.1773,\n \"119\": 0.02895,\n \"120\": 0.294325,\n \"121\": 0.024125,\n \"122\": 0.033775,\n \"123\": 0.033775,\n \"124\": 0.27985,\n \"125\": 0.5211,\n \"126\": 0.0386,\n \"127\": 0.0193,\n \"128\": 0.053075,\n \"129\": 0.0193,\n \"130\": 0.062725,\n \"131\": 0.564525,\n \"132\": 0.04825,\n \"133\": 0.516275,\n \"134\": 0.04825,\n \"135\": 0.0386,\n \"136\": 0.043425,\n \"137\": 0.082025,\n \"138\": 0.159225,\n \"139\": 0.101325,\n \"140\": 0.0772,\n \"141\": 0.0579,\n \"142\": 0.902275,\n \"143\": 0.110975,\n \"144\": 0.29915,\n \"145\": 0.863675,\n \"146\": 0.583825,\n \"147\": 6.10362,\n \"148\": 8.41963,\n \"149\": 42.196,\n \"150\": 0.00965\n};\n//# sourceMappingURL=generated-version-share.js.map","import { WebPlugin } from '@capacitor/core';\nimport { DEFAULT_VERSION_SHARE_BY_MAJOR, DEFAULT_VERSION_SHARE_DATA_SOURCE } from './generated-version-share';\nconst UNKNOWN_REASON = 'Web implementation is a compatibility shim. Native Android/iOS implementations provide full WebView checks.';\nexport class WebviewVersionCheckerWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.monitoring = false;\n this.checkOnResume = true;\n this.autoPromptOnOutdated = false;\n this.lastStatus = null;\n }\n async check(options = {}) {\n var _a, _b;\n const currentVersion = this.detectCurrentVersion();\n const currentMajorVersion = this.parseMajorVersion(currentVersion);\n const latestVersion = options.latestVersion;\n const latestMajorVersion = this.parseMajorVersion(latestVersion);\n const minimumDeviceSharePercent = this.normalizePercent((_a = options.minimumDeviceSharePercent) !== null && _a !== void 0 ? _a : 3);\n const normalizedInlineVersionShareByMajor = this.normalizeVersionShareByMajor(options.versionShareByMajor);\n const normalizedGeneratedVersionShareByMajor = this.normalizeVersionShareByMajor(DEFAULT_VERSION_SHARE_BY_MAJOR);\n const normalizedVersionShareByMajor = normalizedInlineVersionShareByMajor !== null && normalizedInlineVersionShareByMajor !== void 0 ? normalizedInlineVersionShareByMajor : normalizedGeneratedVersionShareByMajor;\n const versionShareSource = normalizedInlineVersionShareByMajor\n ? 'versionShareByMajor'\n : DEFAULT_VERSION_SHARE_DATA_SOURCE;\n const currentVersionSharePercent = this.resolveCurrentVersionSharePercent(currentMajorVersion, normalizedVersionShareByMajor);\n let deviceShareError;\n let state = 'unknown';\n let reason = UNKNOWN_REASON;\n if (typeof minimumDeviceSharePercent === 'number') {\n if (typeof currentVersionSharePercent === 'number') {\n state = currentVersionSharePercent >= minimumDeviceSharePercent ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the configured device-share threshold.'\n : 'Current browser engine major version is below the configured device-share threshold.';\n }\n else if (!normalizedVersionShareByMajor && options.versionShareApiUrl) {\n deviceShareError =\n 'Web shim does not fetch version-share API data. Provide versionShareByMajor to evaluate minimumDeviceSharePercent.';\n }\n else if (!normalizedVersionShareByMajor) {\n deviceShareError = 'minimumDeviceSharePercent is set, but no versionShareByMajor dataset was provided.';\n }\n else {\n deviceShareError = 'No device-share entry was found for the current browser engine major version.';\n }\n }\n if (state === 'unknown' && latestVersion && currentVersion) {\n const cmp = this.compareVersions(currentVersion, latestVersion);\n state = cmp >= 0 ? 'latest' : 'outdated';\n reason =\n cmp >= 0\n ? 'Current browser engine is at or above the requested latest version.'\n : 'Current browser engine is below the requested latest version.';\n }\n else if (state === 'unknown' &&\n typeof options.minimumMajorVersion === 'number' &&\n typeof currentMajorVersion === 'number') {\n state = currentMajorVersion >= options.minimumMajorVersion ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the minimum requirement.'\n : 'Current browser engine major version is below the minimum requirement.';\n }\n else if (state === 'unknown' && deviceShareError) {\n reason = deviceShareError;\n }\n const status = {\n platform: 'web',\n state,\n isLatest: state === 'latest',\n checkedAt: new Date().toISOString(),\n reason,\n currentVersion,\n currentMajorVersion,\n latestVersion,\n latestMajorVersion,\n currentVersionSharePercent,\n minimumDeviceSharePercent,\n versionShareSource: normalizedVersionShareByMajor ? versionShareSource : undefined,\n deviceShareError,\n updateUrl: options.updateUrl,\n source: (_b = options.source) !== null && _b !== void 0 ? _b : 'web-shim',\n };\n this.lastStatus = status;\n this.notifyListeners('statusChanged', status);\n if (state === 'latest') {\n this.notifyListeners('webViewLatest', status);\n }\n else if (state === 'outdated') {\n this.notifyListeners('webViewOutdated', status);\n if (options.showPromptOnOutdated || this.autoPromptOnOutdated) {\n await this.showUpdatePrompt({ updateUrl: status.updateUrl });\n }\n }\n return status;\n }\n async startMonitoring(options = {}) {\n var _a, _b, _c, _d;\n this.monitoring = true;\n this.checkOnResume = (_a = options.checkOnResume) !== null && _a !== void 0 ? _a : true;\n this.autoPromptOnOutdated = (_b = options.autoPromptOnOutdated) !== null && _b !== void 0 ? _b : false;\n if ((_c = options.checkOnStart) !== null && _c !== void 0 ? _c : true) {\n await this.check(Object.assign(Object.assign({}, options), { source: (_d = options.source) !== null && _d !== void 0 ? _d : 'startMonitoring' }));\n }\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async stopMonitoring() {\n this.monitoring = false;\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async getLastStatus() {\n return {\n status: this.lastStatus,\n };\n }\n async showUpdatePrompt(options = {}) {\n var _a, _b;\n const url = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl;\n if (!url) {\n return {\n shown: false,\n openedUpdatePage: false,\n };\n }\n const opened = this.openUrl(url);\n return {\n shown: true,\n openedUpdatePage: opened,\n };\n }\n async openUpdatePage(options = {}) {\n var _a, _b, _c;\n const url = (_c = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl) !== null && _c !== void 0 ? _c : '';\n if (!url) {\n return {\n opened: false,\n url,\n };\n }\n return {\n opened: this.openUrl(url),\n url,\n };\n }\n detectCurrentVersion() {\n const chromiumMatch = navigator.userAgent.match(/Chrome\\/([\\d.]+)/i);\n if (chromiumMatch === null || chromiumMatch === void 0 ? void 0 : chromiumMatch[1]) {\n return chromiumMatch[1];\n }\n const appleWebKitMatch = navigator.userAgent.match(/AppleWebKit\\/([\\d.]+)/i);\n if (appleWebKitMatch === null || appleWebKitMatch === void 0 ? void 0 : appleWebKitMatch[1]) {\n return appleWebKitMatch[1];\n }\n return navigator.userAgent;\n }\n openUrl(url) {\n try {\n window.open(url, '_blank', 'noopener,noreferrer');\n return true;\n }\n catch (_a) {\n return false;\n }\n }\n parseMajorVersion(version) {\n if (!version) {\n return undefined;\n }\n const match = version.match(/(\\d+)/);\n if (!match) {\n return undefined;\n }\n const major = Number.parseInt(match[1], 10);\n return Number.isFinite(major) ? major : undefined;\n }\n compareVersions(left, right) {\n var _a, _b;\n const leftParts = left\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const rightParts = right\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const maxLength = Math.max(leftParts.length, rightParts.length);\n for (let i = 0; i < maxLength; i += 1) {\n const a = (_a = leftParts[i]) !== null && _a !== void 0 ? _a : 0;\n const b = (_b = rightParts[i]) !== null && _b !== void 0 ? _b : 0;\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n }\n return 0;\n }\n normalizePercent(value) {\n if (typeof value !== 'number' || Number.isNaN(value) || !Number.isFinite(value)) {\n return undefined;\n }\n return Math.min(100, Math.max(0, value));\n }\n normalizeVersionShareByMajor(shareByMajor) {\n if (!shareByMajor) {\n return undefined;\n }\n const normalized = {};\n for (const [rawKey, rawShare] of Object.entries(shareByMajor)) {\n const major = this.parseMajorVersion(rawKey);\n const share = this.normalizePercent(rawShare);\n if (typeof major === 'number' && typeof share === 'number') {\n normalized[major] = share;\n }\n }\n return Object.keys(normalized).length > 0 ? normalized : undefined;\n }\n resolveCurrentVersionSharePercent(currentMajorVersion, normalizedShareByMajor) {\n if (typeof currentMajorVersion !== 'number' || !normalizedShareByMajor) {\n return undefined;\n }\n return normalizedShareByMajor[currentMajorVersion];\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,qBAAqB,GAAGA,mBAAc,CAAC,uBAAuB,EAAE;IACtE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,wBAAwB,EAAE,CAAC;IAC5E,CAAC;;ICHD;IACA;IACA;IACA;IACA;IACA;IACA;IACO,MAAM,iCAAiC,GAAG,8BAA8B;IAExE,MAAM,8BAA8B,GAAG;IAC9C,IAAI,GAAG,EAAE,QAAQ;IACjB,IAAI,IAAI,EAAE,OAAO;IACjB,IAAI,IAAI,EAAE,OAAO;IACjB,IAAI,IAAI,EAAE,OAAO;IACjB,IAAI,IAAI,EAAE,OAAO;IACjB,IAAI,IAAI,EAAE,OAAO;IACjB,IAAI,IAAI,EAAE,OAAO;IACjB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,OAAO;IACjB,IAAI,IAAI,EAAE,OAAO;IACjB,IAAI,IAAI,EAAE,QAAQ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AsB,EAAE;IAChF,YAAY,OAAO,SAAS;IAC5B,QAAQ;IACR,QAAQ,OAAO,sBAAsB,CAAC,mBAAmB,CAAC;IAC1D,IAAI;IACJ;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/generated-version-share.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst WebviewVersionChecker = registerPlugin('WebviewVersionChecker', {\n web: () => import('./web').then((m) => new m.WebviewVersionCheckerWeb()),\n});\nexport * from './definitions';\nexport { WebviewVersionChecker };\n//# sourceMappingURL=index.js.map","/* eslint-disable */\n/**\n * AUTO-GENERATED FILE. DO NOT EDIT.\n * Generated by: scripts/generate-version-share-data.mjs\n * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json\n * Generated at: 2026-07-11T09:48:57.348Z\n */\nexport const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';\nexport const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-07-11T09:48:57.348Z';\nexport const DEFAULT_VERSION_SHARE_BY_MAJOR = {\n \"4\": 0.000057,\n \"39\": 0.084942,\n \"40\": 0.084942,\n \"41\": 0.084942,\n \"42\": 0.084942,\n \"43\": 0.084942,\n \"44\": 0.084942,\n \"45\": 0.084942,\n \"46\": 0.084942,\n \"47\": 0.084942,\n \"48\": 0.084942,\n \"49\": 0.089661,\n \"50\": 0.084942,\n \"51\": 0.084942,\n \"52\": 0.084942,\n \"53\": 0.084942,\n \"54\": 0.084942,\n \"55\": 0.084942,\n \"56\": 0.084942,\n \"57\": 0.084942,\n \"58\": 0.084942,\n \"59\": 0.084942,\n \"60\": 0.084942,\n \"66\": 0.004719,\n \"69\": 0.009438,\n \"70\": 0.042471,\n \"79\": 0.028314,\n \"86\": 0.004719,\n \"87\": 0.018876,\n \"91\": 0.009438,\n \"92\": 0.009438,\n \"93\": 0.014157,\n \"97\": 0.004719,\n \"98\": 0.023595,\n \"99\": 0.014157,\n \"100\": 0.004719,\n \"101\": 0.009438,\n \"102\": 0.009438,\n \"103\": 0.202917,\n \"104\": 0.155727,\n \"105\": 0.132132,\n \"106\": 0.132132,\n \"107\": 0.132132,\n \"108\": 0.136851,\n \"109\": 0.632346,\n \"110\": 0.132132,\n \"111\": 0.165165,\n \"112\": 0.132132,\n \"114\": 0.023595,\n \"115\": 0.014157,\n \"116\": 0.302016,\n \"117\": 0.160446,\n \"118\": 1.00515,\n \"119\": 0.278421,\n \"120\": 0.453024,\n \"121\": 0.014157,\n \"122\": 0.037752,\n \"123\": 0.018876,\n \"124\": 0.198198,\n \"125\": 0.405834,\n \"126\": 0.051909,\n \"127\": 0.033033,\n \"128\": 0.070785,\n \"129\": 0.033033,\n \"130\": 0.061347,\n \"131\": 0.353925,\n \"132\": 0.075504,\n \"133\": 0.311454,\n \"134\": 0.061347,\n \"135\": 0.042471,\n \"136\": 0.037752,\n \"137\": 0.075504,\n \"138\": 0.146289,\n \"139\": 0.179322,\n \"140\": 0.04719,\n \"141\": 0.04719,\n \"142\": 0.462462,\n \"143\": 0.09438,\n \"144\": 0.278421,\n \"145\": 0.42471,\n \"146\": 0.495495,\n \"147\": 0.4719,\n \"148\": 5.50235,\n \"149\": 44.7497,\n \"150\": 0.042471,\n \"151\": 0.009438\n};\n//# sourceMappingURL=generated-version-share.js.map","import { WebPlugin } from '@capacitor/core';\nimport { DEFAULT_VERSION_SHARE_BY_MAJOR, DEFAULT_VERSION_SHARE_DATA_SOURCE } from './generated-version-share';\nconst UNKNOWN_REASON = 'Web implementation is a compatibility shim. Native Android/iOS implementations provide full WebView checks.';\nexport class WebviewVersionCheckerWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.monitoring = false;\n this.checkOnResume = true;\n this.autoPromptOnOutdated = false;\n this.lastStatus = null;\n }\n async check(options = {}) {\n var _a, _b;\n const currentVersion = this.detectCurrentVersion();\n const currentMajorVersion = this.parseMajorVersion(currentVersion);\n const latestVersion = options.latestVersion;\n const latestMajorVersion = this.parseMajorVersion(latestVersion);\n const minimumDeviceSharePercent = this.normalizePercent((_a = options.minimumDeviceSharePercent) !== null && _a !== void 0 ? _a : 3);\n const normalizedInlineVersionShareByMajor = this.normalizeVersionShareByMajor(options.versionShareByMajor);\n const normalizedGeneratedVersionShareByMajor = this.normalizeVersionShareByMajor(DEFAULT_VERSION_SHARE_BY_MAJOR);\n const normalizedVersionShareByMajor = normalizedInlineVersionShareByMajor !== null && normalizedInlineVersionShareByMajor !== void 0 ? normalizedInlineVersionShareByMajor : normalizedGeneratedVersionShareByMajor;\n const versionShareSource = normalizedInlineVersionShareByMajor\n ? 'versionShareByMajor'\n : DEFAULT_VERSION_SHARE_DATA_SOURCE;\n const currentVersionSharePercent = this.resolveCurrentVersionSharePercent(currentMajorVersion, normalizedVersionShareByMajor);\n let deviceShareError;\n let state = 'unknown';\n let reason = UNKNOWN_REASON;\n if (typeof minimumDeviceSharePercent === 'number') {\n if (typeof currentVersionSharePercent === 'number') {\n state = currentVersionSharePercent >= minimumDeviceSharePercent ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the configured device-share threshold.'\n : 'Current browser engine major version is below the configured device-share threshold.';\n }\n else if (!normalizedVersionShareByMajor && options.versionShareApiUrl) {\n deviceShareError =\n 'Web shim does not fetch version-share API data. Provide versionShareByMajor to evaluate minimumDeviceSharePercent.';\n }\n else if (!normalizedVersionShareByMajor) {\n deviceShareError = 'minimumDeviceSharePercent is set, but no versionShareByMajor dataset was provided.';\n }\n else {\n deviceShareError = 'No device-share entry was found for the current browser engine major version.';\n }\n }\n if (state === 'unknown' && latestVersion && currentVersion) {\n const cmp = this.compareVersions(currentVersion, latestVersion);\n state = cmp >= 0 ? 'latest' : 'outdated';\n reason =\n cmp >= 0\n ? 'Current browser engine is at or above the requested latest version.'\n : 'Current browser engine is below the requested latest version.';\n }\n else if (state === 'unknown' &&\n typeof options.minimumMajorVersion === 'number' &&\n typeof currentMajorVersion === 'number') {\n state = currentMajorVersion >= options.minimumMajorVersion ? 'latest' : 'outdated';\n reason =\n state === 'latest'\n ? 'Current browser engine major version meets the minimum requirement.'\n : 'Current browser engine major version is below the minimum requirement.';\n }\n else if (state === 'unknown' && deviceShareError) {\n reason = deviceShareError;\n }\n const status = {\n platform: 'web',\n state,\n isLatest: state === 'latest',\n checkedAt: new Date().toISOString(),\n reason,\n currentVersion,\n currentMajorVersion,\n latestVersion,\n latestMajorVersion,\n currentVersionSharePercent,\n minimumDeviceSharePercent,\n versionShareSource: normalizedVersionShareByMajor ? versionShareSource : undefined,\n deviceShareError,\n updateUrl: options.updateUrl,\n source: (_b = options.source) !== null && _b !== void 0 ? _b : 'web-shim',\n };\n this.lastStatus = status;\n this.notifyListeners('statusChanged', status);\n if (state === 'latest') {\n this.notifyListeners('webViewLatest', status);\n }\n else if (state === 'outdated') {\n this.notifyListeners('webViewOutdated', status);\n if (options.showPromptOnOutdated || this.autoPromptOnOutdated) {\n await this.showUpdatePrompt({ updateUrl: status.updateUrl });\n }\n }\n return status;\n }\n async startMonitoring(options = {}) {\n var _a, _b, _c, _d;\n this.monitoring = true;\n this.checkOnResume = (_a = options.checkOnResume) !== null && _a !== void 0 ? _a : true;\n this.autoPromptOnOutdated = (_b = options.autoPromptOnOutdated) !== null && _b !== void 0 ? _b : false;\n if ((_c = options.checkOnStart) !== null && _c !== void 0 ? _c : true) {\n await this.check(Object.assign(Object.assign({}, options), { source: (_d = options.source) !== null && _d !== void 0 ? _d : 'startMonitoring' }));\n }\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async stopMonitoring() {\n this.monitoring = false;\n return {\n monitoring: this.monitoring,\n checkOnResume: this.checkOnResume,\n autoPromptOnOutdated: this.autoPromptOnOutdated,\n };\n }\n async getLastStatus() {\n return {\n status: this.lastStatus,\n };\n }\n async showUpdatePrompt(options = {}) {\n var _a, _b;\n const url = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl;\n if (!url) {\n return {\n shown: false,\n openedUpdatePage: false,\n };\n }\n const opened = this.openUrl(url);\n return {\n shown: true,\n openedUpdatePage: opened,\n };\n }\n async openUpdatePage(options = {}) {\n var _a, _b, _c;\n const url = (_c = (_a = options.updateUrl) !== null && _a !== void 0 ? _a : (_b = this.lastStatus) === null || _b === void 0 ? void 0 : _b.updateUrl) !== null && _c !== void 0 ? _c : '';\n if (!url) {\n return {\n opened: false,\n url,\n };\n }\n return {\n opened: this.openUrl(url),\n url,\n };\n }\n detectCurrentVersion() {\n const chromiumMatch = navigator.userAgent.match(/Chrome\\/([\\d.]+)/i);\n if (chromiumMatch === null || chromiumMatch === void 0 ? void 0 : chromiumMatch[1]) {\n return chromiumMatch[1];\n }\n const appleWebKitMatch = navigator.userAgent.match(/AppleWebKit\\/([\\d.]+)/i);\n if (appleWebKitMatch === null || appleWebKitMatch === void 0 ? void 0 : appleWebKitMatch[1]) {\n return appleWebKitMatch[1];\n }\n return navigator.userAgent;\n }\n openUrl(url) {\n try {\n window.open(url, '_blank', 'noopener,noreferrer');\n return true;\n }\n catch (_a) {\n return false;\n }\n }\n parseMajorVersion(version) {\n if (!version) {\n return undefined;\n }\n const match = version.match(/(\\d+)/);\n if (!match) {\n return undefined;\n }\n const major = Number.parseInt(match[1], 10);\n return Number.isFinite(major) ? major : undefined;\n }\n compareVersions(left, right) {\n var _a, _b;\n const leftParts = left\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const rightParts = right\n .split(/[^0-9]+/)\n .filter(Boolean)\n .map((part) => Number.parseInt(part, 10));\n const maxLength = Math.max(leftParts.length, rightParts.length);\n for (let i = 0; i < maxLength; i += 1) {\n const a = (_a = leftParts[i]) !== null && _a !== void 0 ? _a : 0;\n const b = (_b = rightParts[i]) !== null && _b !== void 0 ? _b : 0;\n if (a > b) {\n return 1;\n }\n if (a < b) {\n return -1;\n }\n }\n return 0;\n }\n normalizePercent(value) {\n if (typeof value !== 'number' || Number.isNaN(value) || !Number.isFinite(value)) {\n return undefined;\n }\n return Math.min(100, Math.max(0, value));\n }\n normalizeVersionShareByMajor(shareByMajor) {\n if (!shareByMajor) {\n return undefined;\n }\n const normalized = {};\n for (const [rawKey, rawShare] of Object.entries(shareByMajor)) {\n const major = this.parseMajorVersion(rawKey);\n const share = this.normalizePercent(rawShare);\n if (typeof major === 'number' && typeof share === 'number') {\n normalized[major] = share;\n }\n }\n return Object.keys(normalized).length > 0 ? normalized : undefined;\n }\n resolveCurrentVersionSharePercent(currentMajorVersion, normalizedShareByMajor) {\n if (typeof currentMajorVersion !== 'number' || !normalizedShareByMajor) {\n return undefined;\n }\n return normalizedShareByMajor[currentMajorVersion];\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,qBAAqB,GAAGA,mBAAc,CAAC,uBAAuB,EAAE;IACtE,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,wBAAwB,EAAE,CAAC;IAC5E,CAAC;;ICHD;IACA;IACA;IACA;IACA;IACA;IACA;IACO,MAAM,iCAAiC,GAAG,8BAA8B;IAExE,MAAM,8BAA8B,GAAG;IAC9C,IAAI,GAAG,EAAE,QAAQ;IACjB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;IAClB,IAAI,IAAI,EAAE,QAAQ;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AsB,EAAE;IAChF,YAAY,OAAO,SAAS;IAC5B,QAAQ;IACR,QAAQ,OAAO,sBAAsB,CAAC,mBAAmB,CAAC;IAC1D,IAAI;IACJ;;;;;;;;;;;;;;;"}
@@ -47,19 +47,16 @@ private let defaultIOSUpdateUrl = "https://support.apple.com/guide/iphone/update
47
47
  return status
48
48
  }
49
49
 
50
- if let minimumMajorVersion, let currentMajorVersion {
51
- let isLatest = currentMajorVersion >= minimumMajorVersion
52
- status["state"] = isLatest ? "latest" : "outdated"
53
- status["isLatest"] = isLatest
54
- status["reason"] = isLatest
55
- ? "Installed iOS major version satisfies the configured minimum major version."
56
- : "Installed iOS major version is below the configured minimum major version."
50
+ if minimumMajorVersion != nil {
51
+ status["state"] = "unknown"
52
+ status["isLatest"] = false
53
+ status["reason"] = "minimumMajorVersion applies to Android WebView only. Configure latestVersion on iOS to enforce a policy."
57
54
  return status
58
55
  }
59
56
 
60
57
  status["state"] = "unknown"
61
58
  status["isLatest"] = false
62
- status["reason"] = "iOS WebKit updates are tied to iOS updates. Configure latestVersion or minimumMajorVersion to enforce a policy."
59
+ status["reason"] = "iOS WebKit updates are tied to iOS updates. Configure latestVersion to enforce a policy."
63
60
  return status
64
61
  }
65
62
 
@@ -2,14 +2,22 @@ import XCTest
2
2
  @testable import WebviewVersionCheckerPlugin
3
3
 
4
4
  class WebviewVersionCheckerPluginTests: XCTestCase {
5
- func testBuildStatusWithMinimumMajorVersion() {
5
+ func testBuildStatusIgnoresMinimumMajorVersionOnIOS() {
6
6
  let implementation = WebviewVersionChecker()
7
- let status = implementation.buildStatus(source: "unit-test", latestVersion: nil, minimumMajorVersion: 1, updateUrl: nil)
7
+ let status = implementation.buildStatus(source: "unit-test", latestVersion: nil, minimumMajorVersion: 140, updateUrl: nil)
8
8
 
9
9
  XCTAssertEqual(status["platform"] as? String, "ios")
10
+ XCTAssertEqual(status["state"] as? String, "unknown")
11
+ XCTAssertEqual(status["isLatest"] as? Bool, false)
12
+ XCTAssertNotNil(status["currentVersion"] as? String)
13
+ }
14
+
15
+ func testBuildStatusWithLatestVersion() {
16
+ let implementation = WebviewVersionChecker()
17
+ let status = implementation.buildStatus(source: "unit-test", latestVersion: "1.0", minimumMajorVersion: nil, updateUrl: nil)
18
+
10
19
  XCTAssertEqual(status["state"] as? String, "latest")
11
20
  XCTAssertEqual(status["isLatest"] as? Bool, true)
12
- XCTAssertNotNil(status["currentVersion"] as? String)
13
21
  }
14
22
 
15
23
  func testBuildStatusWithoutPolicyIsUnknown() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-webview-version-checker",
3
- "version": "8.2.7",
3
+ "version": "8.2.9",
4
4
  "description": "Capacitor plugin for checking outdated Android WebView engines, emitting status events, and presenting native update prompts.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -54,7 +54,8 @@
54
54
  "capacitor:update:before": "node scripts/generate-version-share-data.mjs",
55
55
  "check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
56
56
  "example:install": "bun run build && bun scripts/install-packed-example.mjs",
57
- "example:build": "bun run example:install && cd example-app && bun run build"
57
+ "example:build": "bun run example:install && cd example-app && bun run build",
58
+ "changelog:ai": "node scripts/generate-ai-changelog.mjs"
58
59
  },
59
60
  "devDependencies": {
60
61
  "@capacitor/android": "^8.0.0",
@@ -3,95 +3,96 @@
3
3
  * AUTO-GENERATED FILE. DO NOT EDIT.
4
4
  * Generated by: scripts/generate-version-share-data.mjs
5
5
  * Source: https://raw.githubusercontent.com/Fyrd/caniuse/main/data.json
6
- * Generated at: 2026-07-01T13:47:38.843Z
6
+ * Generated at: 2026-07-11T09:48:57.348Z
7
7
  */
8
8
 
9
9
  export const DEFAULT_VERSION_SHARE_DATA_SOURCE = 'generatedVersionShareByMajor';
10
- export const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-07-01T13:47:38.843Z';
10
+ export const DEFAULT_VERSION_SHARE_GENERATED_AT = '2026-07-11T09:48:57.348Z';
11
11
  export const DEFAULT_VERSION_SHARE_BY_MAJOR: Record<string, number> = {
12
- "4": 0.000031,
13
- "39": 0.08685,
14
- "40": 0.08685,
15
- "41": 0.08685,
16
- "42": 0.08685,
17
- "43": 0.08685,
18
- "44": 0.08685,
19
- "45": 0.091675,
20
- "46": 0.08685,
21
- "47": 0.08685,
22
- "48": 0.091675,
23
- "49": 0.091675,
24
- "50": 0.08685,
25
- "51": 0.08685,
26
- "52": 0.091675,
27
- "53": 0.08685,
28
- "54": 0.08685,
29
- "55": 0.08685,
30
- "56": 0.08685,
31
- "57": 0.08685,
32
- "58": 0.08685,
33
- "59": 0.08685,
34
- "60": 0.08685,
35
- "66": 0.004825,
36
- "69": 0.004825,
37
- "70": 0.024125,
38
- "79": 0.02895,
39
- "86": 0.004825,
40
- "87": 0.014475,
41
- "91": 0.00965,
42
- "93": 0.014475,
43
- "96": 0.004825,
44
- "97": 0.004825,
45
- "98": 0.02895,
46
- "99": 0.014475,
47
- "100": 0.00965,
48
- "101": 0.00965,
49
- "102": 0.004825,
50
- "103": 0.303975,
51
- "104": 0.2509,
52
- "105": 0.236425,
53
- "106": 0.236425,
54
- "107": 0.236425,
55
- "108": 0.246075,
56
- "109": 0.7334,
57
- "110": 0.24125,
58
- "111": 0.2895,
59
- "112": 0.902275,
60
- "114": 0.024125,
61
- "115": 0.00965,
62
- "116": 0.516275,
63
- "117": 0.284675,
64
- "118": 1.1773,
65
- "119": 0.02895,
66
- "120": 0.294325,
67
- "121": 0.024125,
68
- "122": 0.033775,
69
- "123": 0.033775,
70
- "124": 0.27985,
71
- "125": 0.5211,
72
- "126": 0.0386,
73
- "127": 0.0193,
74
- "128": 0.053075,
75
- "129": 0.0193,
76
- "130": 0.062725,
77
- "131": 0.564525,
78
- "132": 0.04825,
79
- "133": 0.516275,
80
- "134": 0.04825,
81
- "135": 0.0386,
82
- "136": 0.043425,
83
- "137": 0.082025,
84
- "138": 0.159225,
85
- "139": 0.101325,
86
- "140": 0.0772,
87
- "141": 0.0579,
88
- "142": 0.902275,
89
- "143": 0.110975,
90
- "144": 0.29915,
91
- "145": 0.863675,
92
- "146": 0.583825,
93
- "147": 6.10362,
94
- "148": 8.41963,
95
- "149": 42.196,
96
- "150": 0.00965
12
+ "4": 0.000057,
13
+ "39": 0.084942,
14
+ "40": 0.084942,
15
+ "41": 0.084942,
16
+ "42": 0.084942,
17
+ "43": 0.084942,
18
+ "44": 0.084942,
19
+ "45": 0.084942,
20
+ "46": 0.084942,
21
+ "47": 0.084942,
22
+ "48": 0.084942,
23
+ "49": 0.089661,
24
+ "50": 0.084942,
25
+ "51": 0.084942,
26
+ "52": 0.084942,
27
+ "53": 0.084942,
28
+ "54": 0.084942,
29
+ "55": 0.084942,
30
+ "56": 0.084942,
31
+ "57": 0.084942,
32
+ "58": 0.084942,
33
+ "59": 0.084942,
34
+ "60": 0.084942,
35
+ "66": 0.004719,
36
+ "69": 0.009438,
37
+ "70": 0.042471,
38
+ "79": 0.028314,
39
+ "86": 0.004719,
40
+ "87": 0.018876,
41
+ "91": 0.009438,
42
+ "92": 0.009438,
43
+ "93": 0.014157,
44
+ "97": 0.004719,
45
+ "98": 0.023595,
46
+ "99": 0.014157,
47
+ "100": 0.004719,
48
+ "101": 0.009438,
49
+ "102": 0.009438,
50
+ "103": 0.202917,
51
+ "104": 0.155727,
52
+ "105": 0.132132,
53
+ "106": 0.132132,
54
+ "107": 0.132132,
55
+ "108": 0.136851,
56
+ "109": 0.632346,
57
+ "110": 0.132132,
58
+ "111": 0.165165,
59
+ "112": 0.132132,
60
+ "114": 0.023595,
61
+ "115": 0.014157,
62
+ "116": 0.302016,
63
+ "117": 0.160446,
64
+ "118": 1.00515,
65
+ "119": 0.278421,
66
+ "120": 0.453024,
67
+ "121": 0.014157,
68
+ "122": 0.037752,
69
+ "123": 0.018876,
70
+ "124": 0.198198,
71
+ "125": 0.405834,
72
+ "126": 0.051909,
73
+ "127": 0.033033,
74
+ "128": 0.070785,
75
+ "129": 0.033033,
76
+ "130": 0.061347,
77
+ "131": 0.353925,
78
+ "132": 0.075504,
79
+ "133": 0.311454,
80
+ "134": 0.061347,
81
+ "135": 0.042471,
82
+ "136": 0.037752,
83
+ "137": 0.075504,
84
+ "138": 0.146289,
85
+ "139": 0.179322,
86
+ "140": 0.04719,
87
+ "141": 0.04719,
88
+ "142": 0.462462,
89
+ "143": 0.09438,
90
+ "144": 0.278421,
91
+ "145": 0.42471,
92
+ "146": 0.495495,
93
+ "147": 0.4719,
94
+ "148": 5.50235,
95
+ "149": 44.7497,
96
+ "150": 0.042471,
97
+ "151": 0.009438
97
98
  };