@ricsam/isolate-client 0.1.25 → 0.1.26

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.
@@ -2,7 +2,7 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
4
  "sourcesContent": [
5
- "/**\n * @ricsam/isolate-client\n *\n * Client library for connecting to the isolate daemon.\n * Works with Bun, Node.js, and other JavaScript runtimes.\n */\n\nexport { connect, isBenignDisposeError } from \"./connection.mjs\";\nexport type {\n ConnectOptions,\n DaemonConnection,\n Namespace,\n RuntimeOptions,\n RemoteRuntime,\n RemoteFetchHandle,\n RemoteTimersHandle,\n RemoteConsoleHandle,\n RemoteTestEnvironmentHandle,\n RemotePlaywrightHandle,\n DispatchOptions,\n ConsoleCallbacks,\n FetchCallback,\n FileSystemCallbacks,\n PlaywrightOptions,\n PlaywrightEvent,\n TestEnvironmentOptions,\n RunResults,\n TestResult,\n TestInfo,\n TestError,\n TestEvent,\n SuiteInfo,\n SuiteResult,\n CollectedData,\n ConsoleEntry,\n CustomFunctions,\n UpgradeRequest,\n WebSocketCommand,\n} from \"./types.mjs\";\n"
5
+ "/**\n * @ricsam/isolate-client\n *\n * Client library for connecting to the isolate daemon.\n * Works with Bun, Node.js, and other JavaScript runtimes.\n */\n\nexport { connect, isBenignDisposeError } from \"./connection.mjs\";\nexport type {\n ConnectOptions,\n DaemonConnection,\n Namespace,\n RuntimeOptions,\n RemoteRuntime,\n RemoteFetchHandle,\n RemoteTimersHandle,\n RemoteConsoleHandle,\n RemoteTestEnvironmentHandle,\n RemotePlaywrightHandle,\n DisposeRuntimeOptions,\n DispatchOptions,\n ConsoleCallbacks,\n FetchCallback,\n FileSystemCallbacks,\n PlaywrightOptions,\n PlaywrightEvent,\n TestEnvironmentOptions,\n RunResults,\n TestResult,\n TestInfo,\n TestError,\n TestEvent,\n SuiteInfo,\n SuiteResult,\n CollectedData,\n ConsoleEntry,\n CustomFunctions,\n UpgradeRequest,\n WebSocketCommand,\n} from \"./types.mjs\";\n"
6
6
  ],
7
7
  "mappings": ";AAOA;",
8
8
  "debugId": "CD4E420B3A40C13E64756E2164756E21",
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@ricsam/isolate-client",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "type": "module"
5
5
  }
@@ -5,4 +5,4 @@
5
5
  * Works with Bun, Node.js, and other JavaScript runtimes.
6
6
  */
7
7
  export { connect, isBenignDisposeError } from "./connection.ts";
8
- export type { ConnectOptions, DaemonConnection, Namespace, RuntimeOptions, RemoteRuntime, RemoteFetchHandle, RemoteTimersHandle, RemoteConsoleHandle, RemoteTestEnvironmentHandle, RemotePlaywrightHandle, DispatchOptions, ConsoleCallbacks, FetchCallback, FileSystemCallbacks, PlaywrightOptions, PlaywrightEvent, TestEnvironmentOptions, RunResults, TestResult, TestInfo, TestError, TestEvent, SuiteInfo, SuiteResult, CollectedData, ConsoleEntry, CustomFunctions, UpgradeRequest, WebSocketCommand, } from "./types.ts";
8
+ export type { ConnectOptions, DaemonConnection, Namespace, RuntimeOptions, RemoteRuntime, RemoteFetchHandle, RemoteTimersHandle, RemoteConsoleHandle, RemoteTestEnvironmentHandle, RemotePlaywrightHandle, DisposeRuntimeOptions, DispatchOptions, ConsoleCallbacks, FetchCallback, FileSystemCallbacks, PlaywrightOptions, PlaywrightEvent, TestEnvironmentOptions, RunResults, TestResult, TestInfo, TestError, TestEvent, SuiteInfo, SuiteResult, CollectedData, ConsoleEntry, CustomFunctions, UpgradeRequest, WebSocketCommand, } from "./types.ts";
@@ -126,6 +126,12 @@ export interface RemoteConsoleHandle {
126
126
  /** Get current console.group() nesting depth */
127
127
  getGroupDepth(): Promise<number>;
128
128
  }
129
+ export interface DisposeRuntimeOptions {
130
+ /** Permanently delete the runtime instead of allowing namespaced reuse. */
131
+ hard?: boolean;
132
+ /** Optional caller-supplied reason for disposal, used for diagnostics/logging. */
133
+ reason?: string;
134
+ }
129
135
  /**
130
136
  * Remote runtime handle.
131
137
  */
@@ -165,7 +171,7 @@ export interface RemoteRuntime {
165
171
  */
166
172
  emit(event: string, payload: unknown): void;
167
173
  /** Dispose the runtime */
168
- dispose(): Promise<void>;
174
+ dispose(options?: DisposeRuntimeOptions): Promise<void>;
169
175
  }
170
176
  /**
171
177
  * Remote test environment handle.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricsam/isolate-client",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "main": "./dist/cjs/index.cjs",
5
5
  "types": "./dist/types/index.d.ts",
6
6
  "exports": {
@@ -16,8 +16,8 @@
16
16
  "typecheck": "tsc --noEmit"
17
17
  },
18
18
  "dependencies": {
19
- "@ricsam/isolate-playwright": "0.1.21",
20
- "@ricsam/isolate-protocol": "0.1.21"
19
+ "@ricsam/isolate-playwright": "0.1.22",
20
+ "@ricsam/isolate-protocol": "0.1.22"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "playwright": ">=1.40.0"