@mastra/elysia 0.1.24-alpha.1 → 0.1.24-alpha.3

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.
@@ -9,4 +9,16 @@ export declare function startElysiaServer(app: Elysia): Promise<{
9
9
  cleanup: () => Promise<void>;
10
10
  server: Server;
11
11
  }>;
12
+ /**
13
+ * Serves an app through Elysia's official Node adapter, the way production does.
14
+ *
15
+ * `listen` calls back before the socket accepts connections and reports port 0
16
+ * back for an ephemeral port, so wait for srvx's `ready()` and read the bound
17
+ * port from the socket. Binds 127.0.0.1 (not `localhost`, which can resolve to
18
+ * `::1`) and without `reusePort`, so no other process can share the port.
19
+ */
20
+ export declare function listenWithNodeAdapter(app: Elysia): Promise<{
21
+ baseUrl: string;
22
+ close: () => Promise<void>;
23
+ }>;
12
24
  //# sourceMappingURL=helpers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/__tests__/helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAuB,MAAM,EAAE,MAAM,WAAW,CAAC;AAE7D,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5D,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAwFD"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/__tests__/helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAuB,MAAM,EAAE,MAAM,WAAW,CAAC;AAE7D,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5D,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAwFD;AASD;;;;;;;GAOG;AACH,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAChE,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B,CAAC,CAaD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/elysia",
3
- "version": "0.1.24-alpha.1",
3
+ "version": "0.1.24-alpha.3",
4
4
  "description": "Mastra Elysia adapter for the server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -21,7 +21,7 @@
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
23
  "fetch-to-node": "^2.1.0",
24
- "@mastra/server": "1.84.0-alpha.1"
24
+ "@mastra/server": "1.84.0-alpha.3"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@ai-sdk/openai": "^2.0.139",
@@ -41,9 +41,9 @@
41
41
  "@internal/lint": "0.0.149",
42
42
  "@internal/storage-test-utils": "0.0.145",
43
43
  "@internal/types-builder": "0.0.124",
44
- "@mastra/core": "1.84.0-alpha.1",
45
- "@mastra/libsql": "1.30.1-alpha.0",
46
- "@mastra/memory": "1.41.2-alpha.0",
44
+ "@mastra/core": "1.84.0-alpha.3",
45
+ "@mastra/libsql": "1.31.0-alpha.1",
46
+ "@mastra/memory": "1.41.2-alpha.2",
47
47
  "@mastra/observability": "1.24.1-alpha.0",
48
48
  "@mastra/server-adapters-test-suite": "0.3.0"
49
49
  },