@specific.dev/spectest 0.56.0 → 0.56.2

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.
@@ -36,9 +36,12 @@ export interface SupabaseOptions {
36
36
  /**
37
37
  * Also serve the gateway over **HTTPS** at `https://<hostname>` via the
38
38
  * daemon's CA-trusted TLS reverse proxy (in addition to the plain
39
- * `http://<name>:8000`). Set this only when the app under test hardcodes a
40
- * specific Supabase URL it can't be told to override — otherwise leave it and
41
- * point the app at `sb.url`.
39
+ * `http://<name>:8000`). `sb.url` and `sb.appEnv` then point at the HTTPS
40
+ * address. Use TLS wherever you can: set this when a browser reaches the
41
+ * gateway, because a page that is open over `https://` cannot call an
42
+ * `http://` origin (Chromium blocks the request before it leaves the
43
+ * browser, and the server logs show nothing). Also set it when the app under
44
+ * test hardcodes a Supabase URL it cannot be told to override.
42
45
  */
43
46
  hostname?: string;
44
47
  /**
@@ -26,6 +26,13 @@
26
26
  // at a time and its VM is snapshotted, not disconnected. Add them when a
27
27
  // project needs them, not before.
28
28
  //
29
+ // It also does not implement the DEPRECATED HTTP+SSE transport
30
+ // (2024-11-05): a long-lived `GET` stream plus a separate POST endpoint
31
+ // named by its first `endpoint` event. A server that speaks only that one
32
+ // answers our `initialize` POST with a `4xx` and this client gives up
33
+ // there. Adding it is a self-contained change — the fallback trigger is
34
+ // that same `4xx` — but nothing needs it yet.
35
+ //
29
36
  // Recording lives one layer up. This file is transport only, so `mcp.ts`
30
37
  // can record one step per logical operation instead of one per HTTP call.
31
38
  import { rawFetch } from "./harness/raw-fetch.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@specific.dev/spectest",
3
- "version": "0.56.0",
3
+ "version": "0.56.2",
4
4
  "description": "Spectest SDK for defining test environments in TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -239,9 +239,12 @@ export interface SupabaseOptions {
239
239
  /**
240
240
  * Also serve the gateway over **HTTPS** at `https://<hostname>` via the
241
241
  * daemon's CA-trusted TLS reverse proxy (in addition to the plain
242
- * `http://<name>:8000`). Set this only when the app under test hardcodes a
243
- * specific Supabase URL it can't be told to override — otherwise leave it and
244
- * point the app at `sb.url`.
242
+ * `http://<name>:8000`). `sb.url` and `sb.appEnv` then point at the HTTPS
243
+ * address. Use TLS wherever you can: set this when a browser reaches the
244
+ * gateway, because a page that is open over `https://` cannot call an
245
+ * `http://` origin (Chromium blocks the request before it leaves the
246
+ * browser, and the server logs show nothing). Also set it when the app under
247
+ * test hardcodes a Supabase URL it cannot be told to override.
245
248
  */
246
249
  hostname?: string;
247
250
 
@@ -26,6 +26,13 @@
26
26
  // at a time and its VM is snapshotted, not disconnected. Add them when a
27
27
  // project needs them, not before.
28
28
  //
29
+ // It also does not implement the DEPRECATED HTTP+SSE transport
30
+ // (2024-11-05): a long-lived `GET` stream plus a separate POST endpoint
31
+ // named by its first `endpoint` event. A server that speaks only that one
32
+ // answers our `initialize` POST with a `4xx` and this client gives up
33
+ // there. Adding it is a self-contained change — the fallback trigger is
34
+ // that same `4xx` — but nothing needs it yet.
35
+ //
29
36
  // Recording lives one layer up. This file is transport only, so `mcp.ts`
30
37
  // can record one step per logical operation instead of one per HTTP call.
31
38