Skip to main content

Upgrading to Napacitor 0.1

Napacitor is in the 0.1 stage. There is a single version line shared by all packages (core, maui, cli, and every plugin) — 0.1.x, released as beta tags on npm. This page covers upgrading within 0.1 and the conventions that will guide future majors.

Upgrading within 0.1​

  1. Check available versions — the latest dist-tag may lag behind the newest beta:
npm view @napacitor/maui versions --json
npm view @napacitor/cli version
  1. Install the new version (use --legacy-peer-deps when beta prereleases are involved):
npm install @napacitor/maui@0.1.x-beta.y --legacy-peer-deps
  1. Re-sync the host — this regenerates napacitor.build.props so the host references the updated C# sources:
npx nap sync
  1. Rebuild and run (npx nap build --target <platform> first on Windows).

Upgrading the .NET SDK / MAUI workloads is independent of the npm packages — see Setting Target Frameworks.

Version conventions​

  • All @napacitor/* packages are versioned in lockstep (one version number for the whole monorepo);
  • Pre-release validation uses the next dist-tag; the latest tag is only promoted once a release is verified;
  • The C# runtime targets .NET 10 / MAUI 10; npm package bumps never require a .NET upgrade by themselves.

What "future major versions" will mean​

Because the native layer is a .NET MAUI class library (not per-platform native projects), a Napacitor major release is much lighter than a Capacitor major: it primarily bumps the npm package contract (JS API, CLI flags). Native platform compatibility (Android target SDK, iOS/Xcode) is owned by the .NET workload and follows the TFM, not a Napacitor release — so the Capacitor-style "target SDK matrix" does not apply.

Each future major will ship an upgrade guide in this section, replacing this page.