@lunora/react-native 1.0.0-alpha.53 → 1.0.0-alpha.54

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.
package/dist/index.d.mts CHANGED
@@ -47,9 +47,15 @@ interface CreateLunoraClientOptions extends LunoraClientOptions {
47
47
  /**
48
48
  * React Native `AsyncStorage` (or any async key/value store with the same
49
49
  * `getItem`/`setItem`/`removeItem` surface — Expo `SecureStore`, an in-memory
50
- * map in tests). When supplied, the offline mutation queue is persisted here
51
- * via `createAsyncStoragePersistence`, so writes made offline survive an app
52
- * restart. Ignored when an explicit `persistence` is passed.
50
+ * map in tests). When supplied it backs two independent caches: the offline
51
+ * mutation queue (via `createAsyncStoragePersistence`, so writes made offline
52
+ * survive an app restart) and the durable query cache (via
53
+ * `createAsyncStorageQueryCache`, so reads repaint before the socket
54
+ * reconnects).
55
+ *
56
+ * Each is opted out of by its own option, not by the other: `persistence`
57
+ * overrides the queue and `queryCache` overrides the read cache, so
58
+ * `{ persistence: false, storage }` still writes query results to storage.
53
59
  */
54
60
  storage?: AsyncStorageLike;
55
61
  }
@@ -74,8 +80,10 @@ interface CreateLunoraClientOptions extends LunoraClientOptions {
74
80
  * no cookie jar to attach a session implicitly.
75
81
  *
76
82
  * Everything on `LunoraClientOptions` is still accepted and passed through; an
77
- * explicit `persistence`, `fetch`, or `WebSocket` takes precedence over the
78
- * convenience derived from `storage` / `getAuthHeaders`. See the package README
83
+ * explicit `persistence`, `queryCache`, `fetch`, or `WebSocket` takes precedence
84
+ * over the convenience derived from `storage` / `getAuthHeaders`. `persistence`
85
+ * and `queryCache` override independently — `storage` backs both, so opting out
86
+ * of one leaves the other wired. See the package README
79
87
  * for a full setup example.
80
88
  * @experimental
81
89
  */
package/dist/index.d.ts CHANGED
@@ -47,9 +47,15 @@ interface CreateLunoraClientOptions extends LunoraClientOptions {
47
47
  /**
48
48
  * React Native `AsyncStorage` (or any async key/value store with the same
49
49
  * `getItem`/`setItem`/`removeItem` surface — Expo `SecureStore`, an in-memory
50
- * map in tests). When supplied, the offline mutation queue is persisted here
51
- * via `createAsyncStoragePersistence`, so writes made offline survive an app
52
- * restart. Ignored when an explicit `persistence` is passed.
50
+ * map in tests). When supplied it backs two independent caches: the offline
51
+ * mutation queue (via `createAsyncStoragePersistence`, so writes made offline
52
+ * survive an app restart) and the durable query cache (via
53
+ * `createAsyncStorageQueryCache`, so reads repaint before the socket
54
+ * reconnects).
55
+ *
56
+ * Each is opted out of by its own option, not by the other: `persistence`
57
+ * overrides the queue and `queryCache` overrides the read cache, so
58
+ * `{ persistence: false, storage }` still writes query results to storage.
53
59
  */
54
60
  storage?: AsyncStorageLike;
55
61
  }
@@ -74,8 +80,10 @@ interface CreateLunoraClientOptions extends LunoraClientOptions {
74
80
  * no cookie jar to attach a session implicitly.
75
81
  *
76
82
  * Everything on `LunoraClientOptions` is still accepted and passed through; an
77
- * explicit `persistence`, `fetch`, or `WebSocket` takes precedence over the
78
- * convenience derived from `storage` / `getAuthHeaders`. See the package README
83
+ * explicit `persistence`, `queryCache`, `fetch`, or `WebSocket` takes precedence
84
+ * over the convenience derived from `storage` / `getAuthHeaders`. `persistence`
85
+ * and `queryCache` override independently — `storage` backs both, so opting out
86
+ * of one leaves the other wired. See the package README
79
87
  * for a full setup example.
80
88
  * @experimental
81
89
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/react-native",
3
- "version": "1.0.0-alpha.53",
3
+ "version": "1.0.0-alpha.54",
4
4
  "description": "React Native / Expo integration for Lunora: an AsyncStorage-backed client factory, the useQuery/useMutation/useSubscription hooks, and a one-call better-auth Expo client",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -50,8 +50,8 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@lunora/client": "1.0.0-alpha.73",
54
- "@lunora/react": "1.0.0-alpha.78"
53
+ "@lunora/client": "1.0.0-alpha.74",
54
+ "@lunora/react": "1.0.0-alpha.79"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@better-auth/expo": "^1.7.1",