@djangocfg/centrifugo 2.1.95 → 2.1.97
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/centrifugo",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.97",
|
|
4
4
|
"description": "Production-ready Centrifugo WebSocket client for React with real-time subscriptions, RPC patterns, and connection state management",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"centrifugo",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"centrifuge": "^5.2.2"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@djangocfg/api": "^2.1.
|
|
55
|
-
"@djangocfg/ui-nextjs": "^2.1.
|
|
56
|
-
"@djangocfg/ui-tools": "^2.1.
|
|
57
|
-
"@djangocfg/layouts": "^2.1.
|
|
54
|
+
"@djangocfg/api": "^2.1.97",
|
|
55
|
+
"@djangocfg/ui-nextjs": "^2.1.97",
|
|
56
|
+
"@djangocfg/ui-tools": "^2.1.97",
|
|
57
|
+
"@djangocfg/layouts": "^2.1.97",
|
|
58
58
|
"consola": "^3.4.2",
|
|
59
59
|
"lucide-react": "^0.545.0",
|
|
60
60
|
"moment": "^2.30.1",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"react-dom": "^19.1.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
65
|
+
"@djangocfg/typescript-config": "^2.1.97",
|
|
66
66
|
"@types/react": "^19.1.0",
|
|
67
67
|
"@types/react-dom": "^19.1.0",
|
|
68
68
|
"moment": "^2.30.1",
|
|
@@ -89,6 +89,7 @@ function CentrifugoProviderInner({
|
|
|
89
89
|
autoConnect: autoConnectProp = true,
|
|
90
90
|
onTokenRefresh,
|
|
91
91
|
}: CentrifugoProviderProps) {
|
|
92
|
+
// useAuth is SSR-safe - returns default state when outside AuthProvider
|
|
92
93
|
const { isAuthenticated, isLoading, user } = useAuth();
|
|
93
94
|
|
|
94
95
|
const [client, setClient] = useState<CentrifugoRPCClient | null>(null);
|