@rstreamlabs/react 1.10.5 → 1.10.7

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.
@@ -30,7 +30,7 @@ interface UseRstreamOptions extends Partial<WatchConfig> {
30
30
  * @returns An object with the current error (if any), and arrays of tunnels and clients.
31
31
  */
32
32
  declare function useRstream(options?: UseRstreamOptions): {
33
- state: "connecting" | "connected" | "disconnected";
33
+ state: "disconnected" | "connecting" | "connected";
34
34
  error: {
35
35
  message: string;
36
36
  type: "warning" | "danger";
@@ -30,7 +30,7 @@ interface UseRstreamOptions extends Partial<WatchConfig> {
30
30
  * @returns An object with the current error (if any), and arrays of tunnels and clients.
31
31
  */
32
32
  declare function useRstream(options?: UseRstreamOptions): {
33
- state: "connecting" | "connected" | "disconnected";
33
+ state: "disconnected" | "connecting" | "connected";
34
34
  error: {
35
35
  message: string;
36
36
  type: "warning" | "danger";
@@ -4,7 +4,7 @@ import '@rstreamlabs/tunnels';
4
4
 
5
5
  type RstreamContextValue = ReturnType<typeof useRstream>;
6
6
  declare function useRstreamContext(): {
7
- state: "connecting" | "connected" | "disconnected";
7
+ state: "disconnected" | "connecting" | "connected";
8
8
  error: {
9
9
  message: string;
10
10
  type: "warning" | "danger";
@@ -4,7 +4,7 @@ import '@rstreamlabs/tunnels';
4
4
 
5
5
  type RstreamContextValue = ReturnType<typeof useRstream>;
6
6
  declare function useRstreamContext(): {
7
- state: "connecting" | "connected" | "disconnected";
7
+ state: "disconnected" | "connecting" | "connected";
8
8
  error: {
9
9
  message: string;
10
10
  type: "warning" | "danger";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rstreamlabs/react",
3
- "version": "1.10.5",
3
+ "version": "1.10.7",
4
4
  "description": "React hooks and components for building rstream-enabled UIs.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,26 +45,26 @@
45
45
  "type-check": "tsc --noEmit"
46
46
  },
47
47
  "devDependencies": {
48
- "@turbo/gen": "^2.10.0",
49
- "@types/node": "^26.0.1",
50
- "@types/react-dom": "19.2.3",
48
+ "@turbo/gen": "^2.10.6",
49
+ "@types/node": "^26.1.1",
51
50
  "@types/react": "19.2.17",
51
+ "@types/react-dom": "19.2.3",
52
52
  "eslint-config": "*",
53
53
  "tsup": "^8.5.1",
54
- "typescript-config": "*",
55
- "typescript": "5.9.3"
54
+ "typescript": "6.0.3",
55
+ "typescript-config": "*"
56
56
  },
57
57
  "dependencies": {
58
- "@rstreamlabs/rstream": "3.7.0",
59
- "@rstreamlabs/tunnels": "3.7.0",
60
- "@rstreamlabs/webtty": "1.9.0",
58
+ "@rstreamlabs/rstream": "3.8.0",
59
+ "@rstreamlabs/tunnels": "3.8.1",
60
+ "@rstreamlabs/webtty": "1.9.1",
61
61
  "@xterm/addon-fit": "^0.11.0",
62
62
  "@xterm/addon-unicode11": "^0.9.0",
63
63
  "@xterm/addon-web-links": "^0.12.0",
64
64
  "@xterm/addon-webgl": "^0.19.0",
65
65
  "@xterm/xterm": "^6.0.0",
66
- "react-dom": "^19.2.7",
67
- "react": "^19.2.7"
66
+ "react": "^18.0 || ^19.0",
67
+ "react-dom": "^19.2.8"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "@types/react": "*",