@capgo/capacitor-persistent-uuid 8.1.3 → 8.1.6

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.
Files changed (2) hide show
  1. package/README.md +18 -4
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -1,13 +1,27 @@
1
1
  # @capgo/capacitor-persistent-uuid
2
2
 
3
- <a href="https://capgo.app/"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-persistent-uuid" alt="Capgo - Instant updates for Capacitor" /></a>
3
+ Get a stable app-scoped UUID in your Capacitor app, without device identifiers or extra permissions. Native persistence is designed to survive store updates on iOS and Android and reinstalls on iOS. On Android, a full uninstall can reset it.
4
+
5
+ <a href="https://capgo.app/?ref=plugin_persistent_uuid"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-persistent-uuid" alt="Capgo - Instant updates for Capacitor" /></a>
4
6
 
5
7
  <div align="center">
6
- <h2><a href="https://capgo.app/?ref=plugin_persistent_uuid">Get Instant updates for your App with Capgo</a></h2>
7
- <h2><a href="https://capgo.app/consulting/?ref=plugin_persistent_uuid">Missing a feature? We will build the plugin for you</a></h2>
8
+ <p><b>Capgo</b>: open-source live updates for Ionic and Capacitor apps. Ship OTA fixes and features instantly, without waiting for app store review.</p>
9
+ <h2><a href="https://capgo.app/register/?ref=plugin_persistent_uuid">➡️ Get started for free</a></h2>
10
+ <p>14-day unlimited free trial. No credit card required</p>
11
+ <p><a href="https://capgo.app/consulting/?ref=plugin_persistent_uuid">Missing a feature? We'll build the plugin for you 💪</a></p>
8
12
  </div>
9
13
 
10
- Persistent app UUID for Capacitor. The plugin generates one random UUID per app scope and stores it with native persistence designed to survive app reinstalls, Android Studio reinstalls, Play/App Store updates, and OS updates.
14
+ <p align="center">
15
+ <img src="https://raw.githubusercontent.com/Cap-go/capacitor-persistent-uuid/main/assets/github-social-preview.png" alt="@capgo/capacitor-persistent-uuid for Capacitor apps" width="300" />
16
+ </p>
17
+
18
+ ## Key features
19
+
20
+ - **Stable ID**: `getId()` returns the UUID, creating one on first use.
21
+ - **Reset**: `resetId()` replaces the stored UUID.
22
+ - **Scopes**: pass a custom `scope` to keep one ID across debug and production builds.
23
+ - **Native persistence**: Keychain on iOS and `AccountManager` on Android.
24
+ - **Platforms**: iOS, Android and Web. Web stores the ID in `localStorage`, so clearing site data can reset it.
11
25
 
12
26
  ## Documentation
13
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-persistent-uuid",
3
- "version": "8.1.3",
3
+ "version": "8.1.6",
4
4
  "description": "Capacitor plugin for a persistent app UUID that survives reinstalls and updates.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -48,6 +48,7 @@
48
48
  "watch": "tsc --watch",
49
49
  "prepublishOnly": "bun run build",
50
50
  "check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
51
+ "check:cap9-deprecated": "node scripts/check-cap9-deprecated.mjs",
51
52
  "changelog:ai": "node scripts/generate-ai-changelog.mjs"
52
53
  },
53
54
  "devDependencies": {