@djangocfg/centrifugo 2.1.74 → 2.1.76
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 +5 -5
- package/src/index.ts +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@djangocfg/centrifugo",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.76",
|
|
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,9 +51,9 @@
|
|
|
51
51
|
"centrifuge": "^5.2.2"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@djangocfg/api": "^2.1.
|
|
55
|
-
"@djangocfg/ui-nextjs": "^2.1.
|
|
56
|
-
"@djangocfg/layouts": "^2.1.
|
|
54
|
+
"@djangocfg/api": "^2.1.76",
|
|
55
|
+
"@djangocfg/ui-nextjs": "^2.1.76",
|
|
56
|
+
"@djangocfg/layouts": "^2.1.76",
|
|
57
57
|
"consola": "^3.4.2",
|
|
58
58
|
"lucide-react": "^0.545.0",
|
|
59
59
|
"moment": "^2.30.1",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"react-dom": "^19.1.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
64
|
+
"@djangocfg/typescript-config": "^2.1.76",
|
|
65
65
|
"@types/react": "^19.1.0",
|
|
66
66
|
"@types/react-dom": "^19.1.0",
|
|
67
67
|
"moment": "^2.30.1",
|
package/src/index.ts
CHANGED
|
@@ -114,6 +114,21 @@ export { useCodegenTip } from './hooks/useCodegenTip';
|
|
|
114
114
|
export { centrifugoConfig, isDevelopment, isProduction, isStaticBuild } from './config';
|
|
115
115
|
export type { CentrifugoConfig } from './config';
|
|
116
116
|
|
|
117
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
118
|
+
// Errors
|
|
119
|
+
// ─────────────────────────────────────────────────────────────────────────
|
|
120
|
+
|
|
121
|
+
export { RPCError, type RPCErrorCode } from './core/errors/RPCError';
|
|
122
|
+
export {
|
|
123
|
+
withRetry,
|
|
124
|
+
createRetryHandler,
|
|
125
|
+
calculateDelay,
|
|
126
|
+
sleep,
|
|
127
|
+
DEFAULT_RETRY_CONFIG,
|
|
128
|
+
type RetryConfig,
|
|
129
|
+
type RetryState,
|
|
130
|
+
} from './core/errors/RPCRetryHandler';
|
|
131
|
+
|
|
117
132
|
// ─────────────────────────────────────────────────────────────────────────
|
|
118
133
|
// Events
|
|
119
134
|
// ─────────────────────────────────────────────────────────────────────────
|