@djangocfg/centrifugo 2.1.74 → 2.1.75

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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. 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.74",
3
+ "version": "2.1.75",
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.74",
55
- "@djangocfg/ui-nextjs": "^2.1.74",
56
- "@djangocfg/layouts": "^2.1.74",
54
+ "@djangocfg/api": "^2.1.75",
55
+ "@djangocfg/ui-nextjs": "^2.1.75",
56
+ "@djangocfg/layouts": "^2.1.75",
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.74",
64
+ "@djangocfg/typescript-config": "^2.1.75",
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
  // ─────────────────────────────────────────────────────────────────────────