@djangocfg/centrifugo 2.1.426 → 2.1.428

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/README.md CHANGED
@@ -105,7 +105,7 @@ import { CentrifugoMonitorFAB } from '@djangocfg/centrifugo';
105
105
  ## Requirements
106
106
 
107
107
  - React 18+
108
- - `@djangocfg/ui-nextjs` — UI components (shadcn/ui)
108
+ - `@djangocfg/ui-core` — UI components (shadcn/ui)
109
109
  - `@djangocfg/layouts` — layout components
110
110
  - `centrifuge` — WebSocket client library
111
111
  - `moment` — date manipulation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/centrifugo",
3
- "version": "2.1.426",
3
+ "version": "2.1.428",
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",
@@ -63,10 +63,10 @@
63
63
  "centrifuge": "^5.2.2"
64
64
  },
65
65
  "peerDependencies": {
66
- "@djangocfg/api": "^2.1.426",
67
- "@djangocfg/i18n": "^2.1.426",
68
- "@djangocfg/ui-core": "^2.1.426",
69
- "@djangocfg/ui-tools": "^2.1.426",
66
+ "@djangocfg/api": "^2.1.428",
67
+ "@djangocfg/i18n": "^2.1.428",
68
+ "@djangocfg/ui-core": "^2.1.428",
69
+ "@djangocfg/ui-tools": "^2.1.428",
70
70
  "consola": "^3.4.2",
71
71
  "lucide-react": "^0.545.0",
72
72
  "moment": "^2.30.1",
@@ -74,11 +74,11 @@
74
74
  "react-dom": "^19.2.4"
75
75
  },
76
76
  "devDependencies": {
77
- "@djangocfg/api": "^2.1.426",
78
- "@djangocfg/i18n": "^2.1.426",
79
- "@djangocfg/typescript-config": "^2.1.426",
80
- "@djangocfg/ui-core": "^2.1.426",
81
- "@djangocfg/ui-tools": "^2.1.426",
77
+ "@djangocfg/api": "^2.1.428",
78
+ "@djangocfg/i18n": "^2.1.428",
79
+ "@djangocfg/typescript-config": "^2.1.428",
80
+ "@djangocfg/ui-core": "^2.1.428",
81
+ "@djangocfg/ui-tools": "^2.1.428",
82
82
  "@types/node": "^25.2.3",
83
83
  "@types/react": "^19.2.15",
84
84
  "@types/react-dom": "^19.2.3",
@@ -9,12 +9,15 @@ import { createConsola } from 'consola';
9
9
  import type { Logger } from './createLogger';
10
10
 
11
11
  import { isDev as isDevelopment } from '@djangocfg/ui-core/lib';
12
+ import { getLogLevel, onLogLevelChange } from '@djangocfg/api';
12
13
 
13
14
  /**
14
- * Shared consola logger for Centrifugo package
15
+ * Shared consola logger for Centrifugo package.
16
+ * Level is driven by the global runtime controller (@djangocfg/api) so admins
17
+ * get verbose logs and regular users keep a clean console.
15
18
  */
16
19
  export const consolaLogger = createConsola({
17
- level: isDevelopment ? 4 : 3,
20
+ level: getLogLevel(),
18
21
  formatOptions: {
19
22
  colors: true,
20
23
  date: false,
@@ -22,6 +25,10 @@ export const consolaLogger = createConsola({
22
25
  },
23
26
  }).withTag('[Centrifugo]');
24
27
 
28
+ onLogLevelChange((level) => {
29
+ consolaLogger.level = level;
30
+ });
31
+
25
32
  /**
26
33
  * Get a consola logger with custom tag wrapped to match Logger interface
27
34
  */