Capacitor Plugin Upgrade Upgrade a Capacitor plugin to a newer major version (4→5, 5→6, 6→7, or 7→8). Prerequisites | Target Version | Node.js | | -------------- | ------- | | 5 | 16+ | | 6 | 18+ | | 7 | 20+ | | 8 | 22+ | The project must be a Capacitor plugin (not an app project). Procedures Step 1: Detect Current Version Read version from ( or ). Determine the current major version. Ask the user for the target version. Default to the latest (8) if not specified. Step 2: Execute Upgrade For each major version jump between the current and target version, apply the corresponding upgrade guide…