@hyperix/hooks 0.2.4 → 0.2.5

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/README.md +4 -1
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -46,7 +46,10 @@ When you need imperative websocket access outside React hooks, reuse the
46
46
  package singleton instead of creating a second socket connection.
47
47
 
48
48
  ```ts
49
- import { wsClient, wsTransport } from "@hyperix/hooks";
49
+ import { infoClient, wsClient, wsTransport } from "@hyperix/hooks";
50
+
51
+ const meta = await infoClient.meta();
52
+ console.log(meta.universe.length);
50
53
 
51
54
  const subscription = await wsClient.allMids((event) => {
52
55
  console.log(event);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperix/hooks",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -14,9 +14,9 @@
14
14
  "typecheck": "tsc -p tsconfig.json --noEmit"
15
15
  },
16
16
  "dependencies": {
17
- "@tanstack/react-query": "^5.90.2",
18
17
  "@nktkas/hyperliquid": "^0.32.1",
19
- "@outofgas/react-stream": "^0.1.4",
18
+ "@outofgas/react-stream": "^0.1.5",
19
+ "@tanstack/react-query": "^5.90.2",
20
20
  "decimal.js": "^10.6.0",
21
21
  "react": "^19.1.1"
22
22
  },