@ricsam/isolate-daemon 0.1.15 → 0.1.16

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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/isolate-daemon",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "type": "module"
5
5
  }
@@ -67,6 +67,10 @@ export interface IsolateInstance {
67
67
  disposedAt?: number;
68
68
  /** Mutable context for callbacks - allows updating callback IDs/connection on reuse */
69
69
  callbackContext?: CallbackContext;
70
+ /** In-flight test run (for result forwarding across reconnections) */
71
+ pendingTestRun?: {
72
+ promise: Promise<unknown>;
73
+ };
70
74
  }
71
75
  /**
72
76
  * Mutable context for callbacks that can be updated on runtime reuse.
@@ -102,6 +106,13 @@ export interface CallbackContext {
102
106
  };
103
107
  /** Custom function callback IDs by name */
104
108
  custom: Map<string, number>;
109
+ /** Reconnection promise — set when connection drops, resolved when a new connection arrives */
110
+ reconnectionPromise?: {
111
+ promise: Promise<ConnectionState>;
112
+ resolve: (conn: ConnectionState) => void;
113
+ reject: (err: Error) => void;
114
+ timeoutId: ReturnType<typeof setTimeout>;
115
+ };
105
116
  }
106
117
  /**
107
118
  * Pending request waiting for response.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricsam/isolate-daemon",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "main": "./dist/cjs/index.cjs",
5
5
  "types": "./dist/types/index.d.ts",
6
6
  "exports": {