@pylonsync/react 0.3.13 → 0.3.14

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.3.13",
6
+ "version": "0.3.14",
7
7
  "type": "module",
8
8
  "main": "src/index.ts",
9
9
  "types": "src/index.ts",
@@ -16,7 +16,7 @@
16
16
  "@pylonsync/sync": "0.3.10"
17
17
  },
18
18
  "peerDependencies": {
19
- "react": ">=18.0.0"
19
+ "react": ">=19.0.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/react": "^19.0.0"
package/src/db.ts CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import { SyncEngine, createSyncEngine, type Row, type SyncEngineConfig } from "@pylonsync/sync";
2
4
  import {
3
5
  useQuery as useQueryHook,
package/src/hooks.ts CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import { SyncEngine, type Row } from "@pylonsync/sync";
2
4
  import { useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
3
5
  import { callFn, getBaseUrl, getReactStorage, storageKey } from "./index";
package/src/useRoom.ts CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import { useState, useEffect, useCallback, useRef } from 'react';
2
4
  import { getBaseUrl, getReactStorage, storageKey } from './index';
3
5
 
package/src/useSession.ts CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  import { SyncEngine, type ResolvedSession } from "@pylonsync/sync";
2
4
  import { useEffect, useSyncExternalStore } from "react";
3
5
 
package/src/useShard.ts CHANGED
@@ -1,3 +1,5 @@
1
+ "use client";
2
+
1
3
  /**
2
4
  * useShard — React hook for real-time sharded simulations (games, MMO zones, etc.).
3
5
  *