@pylonsync/react 0.10.1 → 0.11.0

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/ssr.d.ts CHANGED
@@ -13,6 +13,13 @@ export interface PageAuth {
13
13
  tenant_id: string | null;
14
14
  /** Role slugs granted to the session. */
15
15
  roles: string[];
16
+ /**
17
+ * True for an anonymous guest session. `user_id` is set for these — a
18
+ * stable id, not an account — so `user_id != null` alone does not mean
19
+ * the visitor is signed in. Absent on a render served by an older
20
+ * runtime, which is why it reads as optional.
21
+ */
22
+ is_guest?: boolean;
16
23
  }
17
24
  /** Options for `response.setCookie`. Defaults: HttpOnly + SameSite=Lax. */
18
25
  export interface SsrCookieOptions {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.10.1",
6
+ "version": "0.11.0",
7
7
  "type": "module",
8
8
  "main": "./src/index.ts",
9
9
  "types": "./dist/index.d.ts",
@@ -14,8 +14,8 @@
14
14
  "prepack": "bun run build"
15
15
  },
16
16
  "dependencies": {
17
- "@pylonsync/sdk": "0.10.1",
18
- "@pylonsync/sync": "0.10.1"
17
+ "@pylonsync/sdk": "0.11.0",
18
+ "@pylonsync/sync": "0.11.0"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "react": ">=19.0.0"
package/src/ssr.ts CHANGED
@@ -29,6 +29,13 @@ export interface PageAuth {
29
29
  tenant_id: string | null;
30
30
  /** Role slugs granted to the session. */
31
31
  roles: string[];
32
+ /**
33
+ * True for an anonymous guest session. `user_id` is set for these — a
34
+ * stable id, not an account — so `user_id != null` alone does not mean
35
+ * the visitor is signed in. Absent on a render served by an older
36
+ * runtime, which is why it reads as optional.
37
+ */
38
+ is_guest?: boolean;
32
39
  }
33
40
 
34
41
  /** Options for `response.setCookie`. Defaults: HttpOnly + SameSite=Lax. */