@0xmonaco/react 1.1.18 → 1.1.19

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
@@ -114,7 +114,7 @@ Authentication and session management.
114
114
  ```tsx
115
115
  const { login, logout, isAuthenticated, authState } = useAuth();
116
116
 
117
- // Login with auto-connect WebSocket
117
+ // Login and open the WebSocket now
118
118
  await login(clientId, { connectWebSocket: true });
119
119
 
120
120
  // Check authentication status
@@ -9,7 +9,7 @@ export interface UseAuthReturn extends UseAuthState {
9
9
  * Complete authentication flow. Generates a session keypair, has the wallet
10
10
  * authorize it, and returns the AuthState (including the session keypair).
11
11
  * @param options - Optional configuration
12
- * @param options.connectWebSocket - Auto-connect all authenticated WebSocket channels after login (currently Orders) (default: false)
12
+ * @param options.connectWebSocket - Open the WebSocket during login and wait for it (default: false; otherwise the first subscribing hook opens it)
13
13
  */
14
14
  login: (options?: {
15
15
  connectWebSocket?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xmonaco/react",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "type": "module",
5
5
  "homepage": "https://docs.0xmonaco.com/sdk/typescript",
6
6
  "main": "./dist/index.js",
@@ -16,8 +16,8 @@
16
16
  "lint": "biome lint ."
17
17
  },
18
18
  "dependencies": {
19
- "@0xmonaco/core": "1.1.18",
20
- "@0xmonaco/types": "1.1.18"
19
+ "@0xmonaco/core": "1.1.19",
20
+ "@0xmonaco/types": "1.1.19"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/react": "^19.3.0",