@effect/platform-bun 4.0.0-beta.65 → 4.0.0-beta.67
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.
- package/dist/BunChildProcessSpawner.d.ts +1 -1
- package/dist/BunChildProcessSpawner.js +1 -1
- package/dist/BunClusterHttp.d.ts +41 -4
- package/dist/BunClusterHttp.d.ts.map +1 -1
- package/dist/BunClusterHttp.js +7 -3
- package/dist/BunClusterHttp.js.map +1 -1
- package/dist/BunClusterSocket.d.ts +44 -5
- package/dist/BunClusterSocket.d.ts.map +1 -1
- package/dist/BunClusterSocket.js +44 -5
- package/dist/BunClusterSocket.js.map +1 -1
- package/dist/BunFileSystem.d.ts +3 -1
- package/dist/BunFileSystem.d.ts.map +1 -1
- package/dist/BunFileSystem.js +26 -2
- package/dist/BunFileSystem.js.map +1 -1
- package/dist/BunHttpClient.d.ts +2 -2
- package/dist/BunHttpClient.js +2 -2
- package/dist/BunHttpPlatform.d.ts +3 -1
- package/dist/BunHttpPlatform.d.ts.map +1 -1
- package/dist/BunHttpPlatform.js +4 -2
- package/dist/BunHttpPlatform.js.map +1 -1
- package/dist/BunHttpServer.d.ts +53 -8
- package/dist/BunHttpServer.d.ts.map +1 -1
- package/dist/BunHttpServer.js +19 -7
- package/dist/BunHttpServer.js.map +1 -1
- package/dist/BunHttpServerRequest.d.ts +26 -2
- package/dist/BunHttpServerRequest.d.ts.map +1 -1
- package/dist/BunHttpServerRequest.js +3 -1
- package/dist/BunHttpServerRequest.js.map +1 -1
- package/dist/BunMultipart.d.ts +26 -3
- package/dist/BunMultipart.d.ts.map +1 -1
- package/dist/BunMultipart.js +6 -2
- package/dist/BunMultipart.js.map +1 -1
- package/dist/BunPath.d.ts +9 -3
- package/dist/BunPath.d.ts.map +1 -1
- package/dist/BunPath.js +27 -4
- package/dist/BunPath.js.map +1 -1
- package/dist/BunRedis.d.ts +34 -4
- package/dist/BunRedis.d.ts.map +1 -1
- package/dist/BunRedis.js +35 -5
- package/dist/BunRedis.js.map +1 -1
- package/dist/BunRuntime.d.ts +3 -3
- package/dist/BunRuntime.d.ts.map +1 -1
- package/dist/BunRuntime.js +18 -2
- package/dist/BunRuntime.js.map +1 -1
- package/dist/BunServices.d.ts +29 -3
- package/dist/BunServices.d.ts.map +1 -1
- package/dist/BunServices.js +4 -1
- package/dist/BunServices.js.map +1 -1
- package/dist/BunSink.d.ts +2 -2
- package/dist/BunSink.js +2 -2
- package/dist/BunSocket.d.ts +30 -4
- package/dist/BunSocket.d.ts.map +1 -1
- package/dist/BunSocket.js +10 -3
- package/dist/BunSocket.js.map +1 -1
- package/dist/BunSocketServer.d.ts +2 -2
- package/dist/BunSocketServer.js +2 -2
- package/dist/BunStdio.d.ts +4 -1
- package/dist/BunStdio.d.ts.map +1 -1
- package/dist/BunStdio.js +23 -2
- package/dist/BunStdio.js.map +1 -1
- package/dist/BunStream.d.ts +2 -2
- package/dist/BunStream.d.ts.map +1 -1
- package/dist/BunStream.js +24 -3
- package/dist/BunStream.js.map +1 -1
- package/dist/BunTerminal.d.ts +8 -2
- package/dist/BunTerminal.d.ts.map +1 -1
- package/dist/BunTerminal.js +23 -3
- package/dist/BunTerminal.js.map +1 -1
- package/dist/BunWorker.d.ts +9 -2
- package/dist/BunWorker.d.ts.map +1 -1
- package/dist/BunWorker.js +29 -4
- package/dist/BunWorker.js.map +1 -1
- package/dist/BunWorkerRunner.d.ts +5 -1
- package/dist/BunWorkerRunner.d.ts.map +1 -1
- package/dist/BunWorkerRunner.js +26 -4
- package/dist/BunWorkerRunner.js.map +1 -1
- package/dist/index.d.ts +22 -22
- package/dist/index.js +22 -22
- package/package.json +5 -5
- package/src/BunChildProcessSpawner.ts +1 -1
- package/src/BunClusterHttp.ts +41 -4
- package/src/BunClusterSocket.ts +44 -5
- package/src/BunFileSystem.ts +26 -2
- package/src/BunHttpClient.ts +2 -2
- package/src/BunHttpPlatform.ts +27 -3
- package/src/BunHttpServer.ts +54 -9
- package/src/BunHttpServerRequest.ts +26 -2
- package/src/BunMultipart.ts +26 -3
- package/src/BunPath.ts +27 -4
- package/src/BunRedis.ts +35 -5
- package/src/BunRuntime.ts +20 -4
- package/src/BunServices.ts +29 -3
- package/src/BunSink.ts +2 -2
- package/src/BunSocket.ts +30 -4
- package/src/BunSocketServer.ts +2 -2
- package/src/BunStdio.ts +23 -2
- package/src/BunStream.ts +24 -3
- package/src/BunTerminal.ts +23 -3
- package/src/BunWorker.ts +29 -4
- package/src/BunWorkerRunner.ts +26 -4
- package/src/index.ts +22 -22
package/dist/BunClusterHttp.d.ts
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The `BunClusterHttp` module provides the Bun HTTP and WebSocket transports
|
|
3
|
+
* for Effect Cluster runners. It wires `HttpRunner` to the Bun HTTP server,
|
|
4
|
+
* supplies Fetch and Bun WebSocket client protocols, and builds a complete
|
|
5
|
+
* sharding layer with serialization, runner health, runner storage, and message
|
|
6
|
+
* storage.
|
|
7
|
+
*
|
|
8
|
+
* **Common tasks**
|
|
9
|
+
*
|
|
10
|
+
* - Run a Bun process as a cluster runner over HTTP or WebSocket with
|
|
11
|
+
* {@link layer}
|
|
12
|
+
* - Connect a client-only process to an existing HTTP cluster without starting
|
|
13
|
+
* a runner server
|
|
14
|
+
* - Use SQL-backed storage for durable multi-process clusters, `local` storage
|
|
15
|
+
* for short-lived development, or `byo` storage when the deployment owns the
|
|
16
|
+
* persistence boundary
|
|
17
|
+
* - Check runner health with protocol pings or Kubernetes pod readiness through
|
|
18
|
+
* {@link layerK8sHttpClient}
|
|
19
|
+
*
|
|
20
|
+
* **Gotchas**
|
|
21
|
+
*
|
|
22
|
+
* - `runnerAddress` is the host and port advertised to other runners; set
|
|
23
|
+
* `runnerListenAddress` when the local bind address differs from the
|
|
24
|
+
* externally reachable address
|
|
25
|
+
* - The HTTP and WebSocket transports serve runner RPCs at the default
|
|
26
|
+
* `HttpRunner` route, so proxies and load balancers must preserve the path
|
|
27
|
+
* and allow WebSocket upgrades when `transport` is `"websocket"`
|
|
28
|
+
* - `clientOnly` does not start an HTTP server or receive shard assignments
|
|
29
|
+
* - SQL storage is the default; `local` storage is in-memory/noop and `byo`
|
|
30
|
+
* requires the surrounding application to provide both runner and message
|
|
31
|
+
* storage services
|
|
32
|
+
* - Ping health checks use the selected transport and serialization, so route,
|
|
33
|
+
* port, proxy, or codec mismatches can make a runner appear unhealthy
|
|
34
|
+
*
|
|
35
|
+
* @since 4.0.0
|
|
3
36
|
*/
|
|
4
37
|
import type * as Config from "effect/Config";
|
|
5
38
|
import * as Layer from "effect/Layer";
|
|
@@ -17,18 +50,22 @@ import { layerK8sHttpClient } from "./BunClusterSocket.ts";
|
|
|
17
50
|
import type { BunServices } from "./BunServices.ts";
|
|
18
51
|
export {
|
|
19
52
|
/**
|
|
20
|
-
* @since 1.0.0
|
|
21
53
|
* @category Re-exports
|
|
54
|
+
* @since 4.0.0
|
|
22
55
|
*/
|
|
23
56
|
layerK8sHttpClient };
|
|
24
57
|
/**
|
|
25
|
-
*
|
|
58
|
+
* Bun HTTP server layer for cluster runners, using `ShardingConfig.runnerListenAddress` or `runnerAddress` as the listen address.
|
|
59
|
+
*
|
|
26
60
|
* @category Layers
|
|
61
|
+
* @since 4.0.0
|
|
27
62
|
*/
|
|
28
63
|
export declare const layerHttpServer: Layer.Layer<HttpPlatform | Etag.Generator | BunServices | HttpServer, ServeError, ShardingConfig.ShardingConfig>;
|
|
29
64
|
/**
|
|
30
|
-
*
|
|
65
|
+
* Creates Bun cluster layers for HTTP or WebSocket transport, configuring serialization, storage, runner health, and optional client-only mode.
|
|
66
|
+
*
|
|
31
67
|
* @category Layers
|
|
68
|
+
* @since 4.0.0
|
|
32
69
|
*/
|
|
33
70
|
export declare const layer: <const ClientOnly extends boolean = false, const Storage extends "local" | "sql" | "byo" = never>(options: {
|
|
34
71
|
readonly transport: "http" | "websocket";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunClusterHttp.d.ts","sourceRoot":"","sources":["../src/BunClusterHttp.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"BunClusterHttp.d.ts","sourceRoot":"","sources":["../src/BunClusterHttp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAE5C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAGrC,OAAO,KAAK,cAAc,MAAM,wCAAwC,CAAA;AAExE,OAAO,KAAK,OAAO,MAAM,iCAAiC,CAAA;AAC1D,OAAO,KAAK,aAAa,MAAM,uCAAuC,CAAA;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,cAAc,MAAM,wCAAwC,CAAA;AAGxE,OAAO,KAAK,KAAK,IAAI,MAAM,2BAA2B,CAAA;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAA;AAEtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAG1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAGnD,OAAO;AACL;;;GAGG;AACH,kBAAkB,EACnB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,KAAK,CACrC,YAAY,GACZ,IAAI,CAAC,SAAS,GACd,WAAW,GACX,UAAU,EACZ,UAAU,EACV,cAAc,CAAC,cAAc,CAQV,CAAA;AAErB;;;;;GAKG;AACH,eAAO,MAAM,KAAK,GAChB,KAAK,CAAC,UAAU,SA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AO,GAAG,CAAC,cAAc,CAAC,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,GACrF,SAAS,CAiDhB,CAAA"}
|
package/dist/BunClusterHttp.js
CHANGED
|
@@ -17,13 +17,15 @@ import * as BunHttpServer from "./BunHttpServer.js";
|
|
|
17
17
|
import * as BunSocket from "./BunSocket.js";
|
|
18
18
|
export {
|
|
19
19
|
/**
|
|
20
|
-
* @since 1.0.0
|
|
21
20
|
* @category Re-exports
|
|
21
|
+
* @since 4.0.0
|
|
22
22
|
*/
|
|
23
23
|
layerK8sHttpClient };
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Bun HTTP server layer for cluster runners, using `ShardingConfig.runnerListenAddress` or `runnerAddress` as the listen address.
|
|
26
|
+
*
|
|
26
27
|
* @category Layers
|
|
28
|
+
* @since 4.0.0
|
|
27
29
|
*/
|
|
28
30
|
export const layerHttpServer = /*#__PURE__*/Effect.gen(function* () {
|
|
29
31
|
const config = yield* ShardingConfig.ShardingConfig;
|
|
@@ -34,8 +36,10 @@ export const layerHttpServer = /*#__PURE__*/Effect.gen(function* () {
|
|
|
34
36
|
return BunHttpServer.layer(listenAddress.value);
|
|
35
37
|
}).pipe(Layer.unwrap);
|
|
36
38
|
/**
|
|
37
|
-
*
|
|
39
|
+
* Creates Bun cluster layers for HTTP or WebSocket transport, configuring serialization, storage, runner health, and optional client-only mode.
|
|
40
|
+
*
|
|
38
41
|
* @category Layers
|
|
42
|
+
* @since 4.0.0
|
|
39
43
|
*/
|
|
40
44
|
export const layer = options => {
|
|
41
45
|
const layer = options.clientOnly
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunClusterHttp.js","names":["Effect","Layer","Option","HttpRunner","MessageStorage","RunnerHealth","Runners","RunnerStorage","ShardingConfig","SqlMessageStorage","SqlRunnerStorage","FetchHttpClient","RpcSerialization","layerK8sHttpClient","BunFileSystem","BunHttpServer","BunSocket","layerHttpServer","gen","config","listenAddress","orElse","runnerListenAddress","runnerAddress","isNone","die","layer","value","pipe","unwrap","options","clientOnly","transport","provide","layerHttpClientOnly","layerWebsocketClientOnly","layerWebSocketConstructor","layerHttp","layerWebsocket","runnerHealth","empty","layerK8s","runnerHealthK8s","layerPing","layerRpc","layerClientProtocolHttpDefault","layerClientProtocolWebsocketDefault","provideMerge","storage","layerNoop","orDie","layerMemory","layerFromEnv","shardingConfig","serialization","layerNdjson","layerMsgPack"],"sources":["../src/BunClusterHttp.ts"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"file":"BunClusterHttp.js","names":["Effect","Layer","Option","HttpRunner","MessageStorage","RunnerHealth","Runners","RunnerStorage","ShardingConfig","SqlMessageStorage","SqlRunnerStorage","FetchHttpClient","RpcSerialization","layerK8sHttpClient","BunFileSystem","BunHttpServer","BunSocket","layerHttpServer","gen","config","listenAddress","orElse","runnerListenAddress","runnerAddress","isNone","die","layer","value","pipe","unwrap","options","clientOnly","transport","provide","layerHttpClientOnly","layerWebsocketClientOnly","layerWebSocketConstructor","layerHttp","layerWebsocket","runnerHealth","empty","layerK8s","runnerHealthK8s","layerPing","layerRpc","layerClientProtocolHttpDefault","layerClientProtocolWebsocketDefault","provideMerge","storage","layerNoop","orDie","layerMemory","layerFromEnv","shardingConfig","serialization","layerNdjson","layerMsgPack"],"sources":["../src/BunClusterHttp.ts"],"sourcesContent":[null],"mappings":"AAqCA,OAAO,KAAKA,MAAM,MAAM,eAAe;AACvC,OAAO,KAAKC,KAAK,MAAM,cAAc;AACrC,OAAO,KAAKC,MAAM,MAAM,eAAe;AACvC,OAAO,KAAKC,UAAU,MAAM,oCAAoC;AAChE,OAAO,KAAKC,cAAc,MAAM,wCAAwC;AACxE,OAAO,KAAKC,YAAY,MAAM,sCAAsC;AACpE,OAAO,KAAKC,OAAO,MAAM,iCAAiC;AAC1D,OAAO,KAAKC,aAAa,MAAM,uCAAuC;AAEtE,OAAO,KAAKC,cAAc,MAAM,wCAAwC;AACxE,OAAO,KAAKC,iBAA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AAEkB,OAAO,KAAK,OAAO,GACxBzC,aAAa,CAAC4C,WAAW,GACzBrB,OAAO,EAAEkB,OAAO,KAAK,KAAK,GAC1B/C,KAAK,CAACuC,KAAK,GACXvC,KAAK,CAACiD,KAAK,CAACxC,gBAAgB,CAACgB,KAAK,CAAC,CACxC,EACDzB,KAAK,CAACgC,OAAO,CAACzB,cAAc,CAAC4C,YAAY,CAACtB,OAAO,EAAEuB,cAAc,CAAC,CAAC,EACnEpD,KAAK,CAACgC,OAAO,CACXH,OAAO,EAAEwB,aAAa,KAAK,QAAQ,GAAG1C,gBAAgB,CAAC2C,WAAW,GAAG3C,gBAAgB,CAAC4C,YAAY,CACnG,CACK;AACV,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The `BunClusterSocket` module provides the Bun socket transport for Effect
|
|
3
|
+
* Cluster runners. It wires `SocketRunner` to Bun-compatible TCP sockets,
|
|
4
|
+
* supplies RPC client and server protocol layers, and builds a complete
|
|
5
|
+
* sharding layer with serialization, runner health, runner storage, and message
|
|
6
|
+
* storage.
|
|
7
|
+
*
|
|
8
|
+
* **Common tasks**
|
|
9
|
+
*
|
|
10
|
+
* - Run a Bun process as a cluster runner over raw TCP sockets with
|
|
11
|
+
* {@link layer}
|
|
12
|
+
* - Connect a client-only process to an existing socket cluster without
|
|
13
|
+
* starting a runner server
|
|
14
|
+
* - Use SQL-backed storage for durable multi-process clusters, `local` storage
|
|
15
|
+
* for short-lived development, or `byo` storage when the deployment owns the
|
|
16
|
+
* persistence boundary
|
|
17
|
+
* - Check runner health with socket pings or Kubernetes pod readiness through
|
|
18
|
+
* {@link layerK8sHttpClient}
|
|
19
|
+
*
|
|
20
|
+
* **Gotchas**
|
|
21
|
+
*
|
|
22
|
+
* - `runnerAddress` is the host and port advertised to other runners; set
|
|
23
|
+
* `runnerListenAddress` when the local bind address differs from the
|
|
24
|
+
* externally reachable address
|
|
25
|
+
* - The socket transport is point-to-point RPC, not cluster gossip: runner
|
|
26
|
+
* membership, shard ownership, and persisted delivery are coordinated through
|
|
27
|
+
* `RunnerStorage`, `MessageStorage`, and `RunnerHealth`
|
|
28
|
+
* - `clientOnly` does not start a socket server or receive shard assignments
|
|
29
|
+
* - SQL storage is the default; `local` storage is in-memory/noop and `byo`
|
|
30
|
+
* requires the surrounding application to provide both runner and message
|
|
31
|
+
* storage services
|
|
32
|
+
* - Ping health checks use the same socket protocol, so unreachable ports,
|
|
33
|
+
* firewalls, or serialization mismatches can make a runner appear unhealthy
|
|
34
|
+
* - Kubernetes health checks use Bun's Fetch-backed HTTP client and the service
|
|
35
|
+
* account CA certificate when it is available
|
|
36
|
+
*
|
|
37
|
+
* @since 4.0.0
|
|
3
38
|
*/
|
|
4
39
|
import { layerClientProtocol, layerSocketServer } from "@effect/platform-node-shared/NodeClusterSocket";
|
|
5
40
|
import type * as Config from "effect/Config";
|
|
@@ -14,18 +49,20 @@ import type * as SocketServer from "effect/unstable/socket/SocketServer";
|
|
|
14
49
|
import type { SqlClient } from "effect/unstable/sql/SqlClient";
|
|
15
50
|
export {
|
|
16
51
|
/**
|
|
17
|
-
* @since 1.0.0
|
|
18
52
|
* @category Re-exports
|
|
53
|
+
* @since 4.0.0
|
|
19
54
|
*/
|
|
20
55
|
layerClientProtocol,
|
|
21
56
|
/**
|
|
22
|
-
* @since 1.0.0
|
|
23
57
|
* @category Re-exports
|
|
58
|
+
* @since 4.0.0
|
|
24
59
|
*/
|
|
25
60
|
layerSocketServer };
|
|
26
61
|
/**
|
|
27
|
-
*
|
|
62
|
+
* Creates Bun socket cluster layers, configuring serialization, storage, runner health, and optional client-only mode.
|
|
63
|
+
*
|
|
28
64
|
* @category Layers
|
|
65
|
+
* @since 4.0.0
|
|
29
66
|
*/
|
|
30
67
|
export declare const layer: <const ClientOnly extends boolean = false, const Storage extends "local" | "sql" | "byo" = never>(options?: {
|
|
31
68
|
readonly serialization?: "msgpack" | "ndjson" | undefined;
|
|
@@ -39,8 +76,10 @@ export declare const layer: <const ClientOnly extends boolean = false, const Sto
|
|
|
39
76
|
readonly shardingConfig?: Partial<ShardingConfig.ShardingConfig["Service"]> | undefined;
|
|
40
77
|
}) => ClientOnly extends true ? Layer.Layer<Sharding | Runners.Runners | ("byo" extends Storage ? never : MessageStorage.MessageStorage), Config.ConfigError, "local" extends Storage ? never : "byo" extends Storage ? (MessageStorage.MessageStorage | RunnerStorage.RunnerStorage) : SqlClient> : Layer.Layer<Sharding | Runners.Runners | ("byo" extends Storage ? never : MessageStorage.MessageStorage), SocketServer.SocketServerError | Config.ConfigError, "local" extends Storage ? never : "byo" extends Storage ? (MessageStorage.MessageStorage | RunnerStorage.RunnerStorage) : SqlClient>;
|
|
41
78
|
/**
|
|
42
|
-
*
|
|
79
|
+
* Layer that provides `K8sHttpClient`, using the Kubernetes service-account CA certificate when it is available.
|
|
80
|
+
*
|
|
43
81
|
* @category Layers
|
|
82
|
+
* @since 4.0.0
|
|
44
83
|
*/
|
|
45
84
|
export declare const layerK8sHttpClient: Layer.Layer<K8sHttpClient.K8sHttpClient>;
|
|
46
85
|
//# sourceMappingURL=BunClusterSocket.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunClusterSocket.d.ts","sourceRoot":"","sources":["../src/BunClusterSocket.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"BunClusterSocket.d.ts","sourceRoot":"","sources":["../src/BunClusterSocket.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AACvG,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAG5C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,aAAa,MAAM,uCAAuC,CAAA;AACtE,OAAO,KAAK,cAAc,MAAM,wCAAwC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AAS,OAAO,GAAG,KAAK,GAAG,cAAc,CAAC,cAAc,CAAC,EAC5F,MAAM,CAAC,WAAW,EAClB,OAAO,SAAS,OAAO,GAAG,KAAK,GAC3B,KAAK,SAAS,OAAO,GAAG,CAAC,cAAc,CAAC,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,GACrF,SAAS,CACd,GACD,KAAK,CAAC,KAAK,CACT,QAAQ,GAAG,OAAO,CAAC,OAAO,GAAG,CAAC,KAAK,SAAS,OAAO,GAAG,KAAK,GAAG,cAAc,CAAC,cAAc,CAAC,EAC5F,YAAY,CAAC,iBAAiB,GAAG,MAAM,CAAC,WAAW,EACnD,OAAO,SAAS,OAAO,GAAG,KAAK,GAC3B,KAAK,SAAS,OAAO,GAAG,CAAC,cAAc,CAAC,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,GACrF,SAAS,CAyChB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,CAmBvE,CAAA"}
|
package/dist/BunClusterSocket.js
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The `BunClusterSocket` module provides the Bun socket transport for Effect
|
|
3
|
+
* Cluster runners. It wires `SocketRunner` to Bun-compatible TCP sockets,
|
|
4
|
+
* supplies RPC client and server protocol layers, and builds a complete
|
|
5
|
+
* sharding layer with serialization, runner health, runner storage, and message
|
|
6
|
+
* storage.
|
|
7
|
+
*
|
|
8
|
+
* **Common tasks**
|
|
9
|
+
*
|
|
10
|
+
* - Run a Bun process as a cluster runner over raw TCP sockets with
|
|
11
|
+
* {@link layer}
|
|
12
|
+
* - Connect a client-only process to an existing socket cluster without
|
|
13
|
+
* starting a runner server
|
|
14
|
+
* - Use SQL-backed storage for durable multi-process clusters, `local` storage
|
|
15
|
+
* for short-lived development, or `byo` storage when the deployment owns the
|
|
16
|
+
* persistence boundary
|
|
17
|
+
* - Check runner health with socket pings or Kubernetes pod readiness through
|
|
18
|
+
* {@link layerK8sHttpClient}
|
|
19
|
+
*
|
|
20
|
+
* **Gotchas**
|
|
21
|
+
*
|
|
22
|
+
* - `runnerAddress` is the host and port advertised to other runners; set
|
|
23
|
+
* `runnerListenAddress` when the local bind address differs from the
|
|
24
|
+
* externally reachable address
|
|
25
|
+
* - The socket transport is point-to-point RPC, not cluster gossip: runner
|
|
26
|
+
* membership, shard ownership, and persisted delivery are coordinated through
|
|
27
|
+
* `RunnerStorage`, `MessageStorage`, and `RunnerHealth`
|
|
28
|
+
* - `clientOnly` does not start a socket server or receive shard assignments
|
|
29
|
+
* - SQL storage is the default; `local` storage is in-memory/noop and `byo`
|
|
30
|
+
* requires the surrounding application to provide both runner and message
|
|
31
|
+
* storage services
|
|
32
|
+
* - Ping health checks use the same socket protocol, so unreachable ports,
|
|
33
|
+
* firewalls, or serialization mismatches can make a runner appear unhealthy
|
|
34
|
+
* - Kubernetes health checks use Bun's Fetch-backed HTTP client and the service
|
|
35
|
+
* account CA certificate when it is available
|
|
36
|
+
*
|
|
37
|
+
* @since 4.0.0
|
|
3
38
|
*/
|
|
4
39
|
import { layerClientProtocol, layerSocketServer } from "@effect/platform-node-shared/NodeClusterSocket";
|
|
5
40
|
import * as Effect from "effect/Effect";
|
|
@@ -19,18 +54,20 @@ import * as RpcSerialization from "effect/unstable/rpc/RpcSerialization";
|
|
|
19
54
|
import * as BunFileSystem from "./BunFileSystem.js";
|
|
20
55
|
export {
|
|
21
56
|
/**
|
|
22
|
-
* @since 1.0.0
|
|
23
57
|
* @category Re-exports
|
|
58
|
+
* @since 4.0.0
|
|
24
59
|
*/
|
|
25
60
|
layerClientProtocol,
|
|
26
61
|
/**
|
|
27
|
-
* @since 1.0.0
|
|
28
62
|
* @category Re-exports
|
|
63
|
+
* @since 4.0.0
|
|
29
64
|
*/
|
|
30
65
|
layerSocketServer };
|
|
31
66
|
/**
|
|
32
|
-
*
|
|
67
|
+
* Creates Bun socket cluster layers, configuring serialization, storage, runner health, and optional client-only mode.
|
|
68
|
+
*
|
|
33
69
|
* @category Layers
|
|
70
|
+
* @since 4.0.0
|
|
34
71
|
*/
|
|
35
72
|
export const layer = options => {
|
|
36
73
|
const layer = options?.clientOnly
|
|
@@ -42,8 +79,10 @@ export const layer = options => {
|
|
|
42
79
|
return layer.pipe(Layer.provide(runnerHealth), Layer.provideMerge(options?.storage === "local" ? MessageStorage.layerNoop : options?.storage === "byo" ? Layer.empty : Layer.orDie(SqlMessageStorage.layer)), Layer.provide(options?.storage === "local" ? RunnerStorage.layerMemory : options?.storage === "byo" ? Layer.empty : Layer.orDie(SqlRunnerStorage.layer)), Layer.provide(ShardingConfig.layerFromEnv(options?.shardingConfig)), Layer.provide(options?.serialization === "ndjson" ? RpcSerialization.layerNdjson : RpcSerialization.layerMsgPack));
|
|
43
80
|
};
|
|
44
81
|
/**
|
|
45
|
-
*
|
|
82
|
+
* Layer that provides `K8sHttpClient`, using the Kubernetes service-account CA certificate when it is available.
|
|
83
|
+
*
|
|
46
84
|
* @category Layers
|
|
85
|
+
* @since 4.0.0
|
|
47
86
|
*/
|
|
48
87
|
export const layerK8sHttpClient = /*#__PURE__*/K8sHttpClient.layer.pipe(/*#__PURE__*/Layer.provide(/*#__PURE__*/Layer.unwrap(/*#__PURE__*/Effect.gen(function* () {
|
|
49
88
|
const fs = yield* FileSystem.FileSystem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunClusterSocket.js","names":["layerClientProtocol","layerSocketServer","Effect","FileSystem","Layer","K8sHttpClient","MessageStorage","RunnerHealth","Runners","RunnerStorage","ShardingConfig","SocketRunner","SqlMessageStorage","SqlRunnerStorage","FetchHttpClient","RpcSerialization","BunFileSystem","layer","options","clientOnly","provide","layerClientOnly","runnerHealth","empty","layerK8s","runnerHealthK8s","pipe","layerK8sHttpClient","layerPing","layerRpc","provideMerge","storage","layerNoop","orDie","layerMemory","layerFromEnv","shardingConfig","serialization","layerNdjson","layerMsgPack","unwrap","gen","fs","caCertOption","readFile","option","_tag","fresh","succeed","RequestInit","tls","ca","value"],"sources":["../src/BunClusterSocket.ts"],"sourcesContent":[null],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"BunClusterSocket.js","names":["layerClientProtocol","layerSocketServer","Effect","FileSystem","Layer","K8sHttpClient","MessageStorage","RunnerHealth","Runners","RunnerStorage","ShardingConfig","SocketRunner","SqlMessageStorage","SqlRunnerStorage","FetchHttpClient","RpcSerialization","BunFileSystem","layer","options","clientOnly","provide","layerClientOnly","runnerHealth","empty","layerK8s","runnerHealthK8s","pipe","layerK8sHttpClient","layerPing","layerRpc","provideMerge","storage","layerNoop","orDie","layerMemory","layerFromEnv","shardingConfig","serialization","layerNdjson","layerMsgPack","unwrap","gen","fs","caCertOption","readFile","option","_tag","fresh","succeed","RequestInit","tls","ca","value"],"sources":["../src/BunClusterSocket.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCA,SAASA,mBAAmB,EAAEC,iBAAiB,QAAQ,gDAAgD;AAEvG,OAAO,KAAKC,MAAM,MAAM,eAAe;AACvC,OAAO,KAAKC,UAAU,MAAM,mBAAmB;AAC/C,OAAO,KAAKC,KAAK,MAAM,cAAc;AACrC,OAAO,KAAKC,aAAa,MAAM,uCAAuC;AACtE,OAAO,KAAKC,cAAc,MAAM,wCAAwC;AACxE,OAAO,KAAKC,YAAY,MAAM,sCAAsC;AACpE,OAAO,KAAKC,OAAO,MAAM,iCAAiC;AAC1D,OAAO,KAAKC,aAAa,MAAM,uCAAuC;AAEtE,OAAO,KAAKC,cAAc,MAAM,wCAAwC;AACxE,OAAO,KAAKC,YAAY,MAAM,sCAAsC;AACpE,OAAO,KAAKC,iBAAiB,MAAM,2CAA2C;AAC9E,OAAO,KAAKC,gBAAgB,MAAM,0CAA0C;AAC5E,OAAO,KAAKC,eAAe,MAAM,sCAAsC;AACvE,OAAO,KAAKC,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1
|
import type { FileSystem } from "effect/FileSystem";
|
|
2
2
|
import type * as Layer from "effect/Layer";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Layer that provides the `FileSystem` service for Bun using the shared Node file-system implementation.
|
|
5
|
+
*
|
|
5
6
|
* @category layer
|
|
7
|
+
* @since 4.0.0
|
|
6
8
|
*/
|
|
7
9
|
export declare const layer: Layer.Layer<FileSystem, never, never>;
|
|
8
10
|
//# sourceMappingURL=BunFileSystem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunFileSystem.d.ts","sourceRoot":"","sources":["../src/BunFileSystem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BunFileSystem.d.ts","sourceRoot":"","sources":["../src/BunFileSystem.ts"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAE1C;;;;;GAKG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,KAAK,CAAwB,CAAA"}
|
package/dist/BunFileSystem.js
CHANGED
|
@@ -1,10 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Bun layer for Effect's `FileSystem` service.
|
|
3
|
+
*
|
|
4
|
+
* Use this module at the edge of Bun applications, CLIs, scripts, and tests
|
|
5
|
+
* that need real local filesystem access through `effect/FileSystem`: reading
|
|
6
|
+
* and writing files, creating directories and temporary files, inspecting
|
|
7
|
+
* metadata, managing links, or watching paths for changes. It exposes only the
|
|
8
|
+
* Bun `FileSystem` layer; the operations themselves are accessed from the
|
|
9
|
+
* `FileSystem` service once the layer is provided, or from `BunServices.layer`
|
|
10
|
+
* when the program also needs the standard Bun path, stdio, terminal, and child
|
|
11
|
+
* process services.
|
|
12
|
+
*
|
|
13
|
+
* Bun supports Node-compatible filesystem APIs, so this layer reuses the shared
|
|
14
|
+
* Node filesystem implementation. Paths therefore follow the current process and
|
|
15
|
+
* host platform rules: relative paths are resolved from the current working
|
|
16
|
+
* directory, separators and drive/UNC behavior are platform-dependent, and
|
|
17
|
+
* request URLs should be decoded and validated before being mapped to local
|
|
18
|
+
* paths. The service works with bytes, scoped file handles, and Effect
|
|
19
|
+
* streams/sinks; use `FileSystem.stream` for large files instead of
|
|
20
|
+
* `readFile`, and remember that stream offsets and lengths are byte positions.
|
|
21
|
+
* Bun `File` and `Blob` values are not filesystem handles here; path-based HTTP
|
|
22
|
+
* file responses are handled by the Bun HTTP platform adapter with `Bun.file`.
|
|
23
|
+
*
|
|
24
|
+
* @since 4.0.0
|
|
3
25
|
*/
|
|
4
26
|
import * as NodeFileSystem from "@effect/platform-node-shared/NodeFileSystem";
|
|
5
27
|
/**
|
|
6
|
-
*
|
|
28
|
+
* Layer that provides the `FileSystem` service for Bun using the shared Node file-system implementation.
|
|
29
|
+
*
|
|
7
30
|
* @category layer
|
|
31
|
+
* @since 4.0.0
|
|
8
32
|
*/
|
|
9
33
|
export const layer = NodeFileSystem.layer;
|
|
10
34
|
//# sourceMappingURL=BunFileSystem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunFileSystem.js","names":["NodeFileSystem","layer"],"sources":["../src/BunFileSystem.ts"],"sourcesContent":[null],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"BunFileSystem.js","names":["NodeFileSystem","layer"],"sources":["../src/BunFileSystem.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,OAAO,KAAKA,cAAc,MAAM,6CAA6C;AAI7E;;;;;;AAMA,OAAO,MAAMC,KAAK,GAA0CD,cAAc,CAACC,KAAK","ignoreList":[]}
|
package/dist/BunHttpClient.d.ts
CHANGED
package/dist/BunHttpClient.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as Layer from "effect/Layer";
|
|
2
2
|
import * as Platform from "effect/unstable/http/HttpPlatform";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Layer that provides the Bun `HttpPlatform`, including file responses backed by `Bun.file`.
|
|
5
|
+
*
|
|
5
6
|
* @category Layers
|
|
7
|
+
* @since 4.0.0
|
|
6
8
|
*/
|
|
7
9
|
export declare const layer: Layer.Layer<Platform.HttpPlatform, never, never>;
|
|
8
10
|
//# sourceMappingURL=BunHttpPlatform.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunHttpPlatform.d.ts","sourceRoot":"","sources":["../src/BunHttpPlatform.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BunHttpPlatform.d.ts","sourceRoot":"","sources":["../src/BunHttpPlatform.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAErC,OAAO,KAAK,QAAQ,MAAM,mCAAmC,CAAA;AAyB7D;;;;;GAKG;AACH,eAAO,MAAM,KAAK,kDAGjB,CAAA"}
|
package/dist/BunHttpPlatform.js
CHANGED
|
@@ -4,8 +4,8 @@ import * as Platform from "effect/unstable/http/HttpPlatform";
|
|
|
4
4
|
import * as Response from "effect/unstable/http/HttpServerResponse";
|
|
5
5
|
import * as BunFileSystem from "./BunFileSystem.js";
|
|
6
6
|
/**
|
|
7
|
-
* @since 1.0.0
|
|
8
7
|
* @category constructors
|
|
8
|
+
* @since 4.0.0
|
|
9
9
|
*/
|
|
10
10
|
const make = /*#__PURE__*/Platform.make({
|
|
11
11
|
fileResponse(path, status, statusText, headers, start, end, _contentLength) {
|
|
@@ -28,8 +28,10 @@ const make = /*#__PURE__*/Platform.make({
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Layer that provides the Bun `HttpPlatform`, including file responses backed by `Bun.file`.
|
|
32
|
+
*
|
|
32
33
|
* @category Layers
|
|
34
|
+
* @since 4.0.0
|
|
33
35
|
*/
|
|
34
36
|
export const layer = /*#__PURE__*/Layer.effect(Platform.HttpPlatform)(make).pipe(/*#__PURE__*/Layer.provide(BunFileSystem.layer), /*#__PURE__*/Layer.provide(Etag.layer));
|
|
35
37
|
//# sourceMappingURL=BunHttpPlatform.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunHttpPlatform.js","names":["Layer","Etag","Platform","Response","BunFileSystem","make","fileResponse","path","status","statusText","headers","start","end","_contentLength","file","Bun","undefined","slice","raw","fileWebResponse","_options","layer","effect","HttpPlatform","pipe","provide"],"sources":["../src/BunHttpPlatform.ts"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"file":"BunHttpPlatform.js","names":["Layer","Etag","Platform","Response","BunFileSystem","make","fileResponse","path","status","statusText","headers","start","end","_contentLength","file","Bun","undefined","slice","raw","fileWebResponse","_options","layer","effect","HttpPlatform","pipe","provide"],"sources":["../src/BunHttpPlatform.ts"],"sourcesContent":[null],"mappings":"AA2BA,OAAO,KAAKA,KAAK,MAAM,cAAc;AACrC,OAAO,KAAKC,IAAI,MAAM,2BAA2B;AACjD,OAAO,KAAKC,QAAQ,MAAM,mCAAmC;AAC7D,OAAO,KAAKC,QAAQ,MAAM,yCAAyC;AACnE,OAAO,KAAKC,aAAa,MAAM,oBAAoB;AAEnD;;;;AAIA,MAAMC,IAAI,gBAINH,QAAQ,CAACG,IAAI,CAAC;EAChBC,YAAYA,CAACC,IAAI,EAAEC,MAAM,EAAEC,UAAU,EAAEC,OAAO,EAAEC,KAAK,EAAEC,GAAG,EAAEC,cAAc;IACxE,IAAIC,IAAI,GAAGC,GAAG,CAACD,IAAI,CAACP,IAAI,CAAC;IACzB,IAAII,KAAK,GAAG,CAAC,IAAIC,GAAG,KAAKI,SAAS,EAAE;MAClCF,IAAI,GAAGA,IAAI,CAACG,KAAK,CAACN,KAAK,EAAEC,GAAG,CAAC;IAC/B;IACA,OAAOT,QAAQ,CAACe,GAAG,CAACJ,IAAI,EAAE;MAAEJ,OAAO;MAAEF,MAAM;MAAEC;IAAU,CAAE,CAAC;EAC5D,CAAC;EACDU,eAAeA,CAACL,IAAI,EAAEN,MAAM,EAAEC,UAAU,EAAEC,OAAO,EAAEU,QAAQ;IACzD,OAAOjB,QAAQ,CAACe,GAAG,CAACJ,IAAI,EAAE;MAAEJ,OAAO;MAAEF,MAAM;MAAEC;IAAU,CAAE,CAAC;EAC5D;CACD,CAAC;AAEF;;;;;;AAMA,OAAO,MAAMY,KAAK,gBAAGrB,KAAK,CAACsB,MAAM,CAACpB,QAAQ,CAACqB,YAAY,CAAC,CAAClB,IAAI,CAAC,CAACmB,IAAI,cACjExB,KAAK,CAACyB,OAAO,CAACrB,aAAa,CAACiB,KAAK,CAAC,eAClCrB,KAAK,CAACyB,OAAO,CAACxB,IAAI,CAACoB,KAAK,CAAC,CAC1B","ignoreList":[]}
|
package/dist/BunHttpServer.d.ts
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Bun implementation of the Effect `HttpServer`.
|
|
3
|
+
*
|
|
4
|
+
* This module builds an Effect HTTP server from `Bun.serve`, translating Bun's
|
|
5
|
+
* Web `Request` objects into `HttpServerRequest` values and Effect
|
|
6
|
+
* `HttpServerResponse` values back into Web `Response` objects. It is the Bun
|
|
7
|
+
* runtime entry point for serving `HttpApp`s, streaming responses, file
|
|
8
|
+
* responses through `BunHttpPlatform`, multipart requests, and websocket
|
|
9
|
+
* endpoints through `HttpServerRequest.upgrade`.
|
|
10
|
+
*
|
|
11
|
+
* Common use cases include using {@link layer} or {@link layerConfig} to serve
|
|
12
|
+
* an application from Bun configuration, {@link layerServer} when only the
|
|
13
|
+
* `HttpServer` service is needed, and {@link layerTest} for tests that need an
|
|
14
|
+
* ephemeral Bun listener and fetch-compatible client.
|
|
15
|
+
*
|
|
16
|
+
* Bun supplies absolute request URLs and Web-standard request bodies. This
|
|
17
|
+
* adapter stores the normalized path-and-query URL on `HttpServerRequest.url`,
|
|
18
|
+
* while the underlying `Request` still follows Web body rules: pick the
|
|
19
|
+
* streamed, text, JSON, URL-encoded, or multipart view that matches the route
|
|
20
|
+
* instead of consuming the same body in incompatible ways. Because `Bun.serve`
|
|
21
|
+
* has a single active `fetch` handler, each `serve` call reloads that handler
|
|
22
|
+
* and restores the previous one when the serve scope finalizes.
|
|
23
|
+
*
|
|
24
|
+
* WebSocket upgrades must happen from the Bun request handler. The
|
|
25
|
+
* `HttpServerRequest.upgrade` effect calls `server.upgrade`, fails when Bun says
|
|
26
|
+
* the request is not upgradeable, buffers messages that arrive before the
|
|
27
|
+
* Effect socket handler is installed, and maps non-normal close codes into
|
|
28
|
+
* `Socket` errors. The server is stopped with `server.stop()` when its
|
|
29
|
+
* acquisition scope closes; unless preemptive shutdown is disabled, finalizing
|
|
30
|
+
* a serve scope also starts that stop with the configured graceful shutdown
|
|
31
|
+
* timeout or the default timeout.
|
|
32
|
+
*
|
|
33
|
+
* @since 4.0.0
|
|
3
34
|
*/
|
|
4
35
|
import type { ServerWebSocket } from "bun";
|
|
5
36
|
import * as Config from "effect/Config";
|
|
@@ -20,15 +51,19 @@ import type * as ServerResponse from "effect/unstable/http/HttpServerResponse";
|
|
|
20
51
|
import * as Socket from "effect/unstable/socket/Socket";
|
|
21
52
|
import * as BunServices from "./BunServices.ts";
|
|
22
53
|
/**
|
|
23
|
-
*
|
|
54
|
+
* Bun serve options accepted by the HTTP server, extended with typed route definitions.
|
|
55
|
+
*
|
|
24
56
|
* @category Options
|
|
57
|
+
* @since 4.0.0
|
|
25
58
|
*/
|
|
26
59
|
export type ServeOptions<R extends string> = (Bun.Serve.UnixServeOptions<WebSocketContext> | Bun.Serve.HostnamePortServeOptions<WebSocketContext>) & {
|
|
27
60
|
readonly routes?: Bun.Serve.Routes<WebSocketContext, R>;
|
|
28
61
|
};
|
|
29
62
|
/**
|
|
30
|
-
*
|
|
63
|
+
* Creates a scoped Bun `HttpServer` from `Bun.serve` options, stopping the server on scope finalization with optional graceful shutdown settings.
|
|
64
|
+
*
|
|
31
65
|
* @category Constructors
|
|
66
|
+
* @since 4.0.0
|
|
32
67
|
*/
|
|
33
68
|
export declare const make: <R extends string>(options: ServeOptions<R> & {
|
|
34
69
|
readonly disablePreemptiveShutdown?: boolean | undefined;
|
|
@@ -41,34 +76,44 @@ export declare const make: <R extends string>(options: ServeOptions<R> & {
|
|
|
41
76
|
readonly address: Server.Address;
|
|
42
77
|
}, never, Scope.Scope>;
|
|
43
78
|
/**
|
|
44
|
-
*
|
|
79
|
+
* Layer that provides only `HttpServer` by constructing a scoped Bun server from the supplied serve options.
|
|
80
|
+
*
|
|
45
81
|
* @category Layers
|
|
82
|
+
* @since 4.0.0
|
|
46
83
|
*/
|
|
47
84
|
export declare const layerServer: <R extends string>(options: ServeOptions<R> & {
|
|
48
85
|
readonly disablePreemptiveShutdown?: boolean | undefined;
|
|
49
86
|
readonly gracefulShutdownTimeout?: Duration.Input | undefined;
|
|
50
87
|
}) => Layer.Layer<Server.HttpServer>;
|
|
51
88
|
/**
|
|
52
|
-
*
|
|
89
|
+
* Layer that provides Bun HTTP support services: `HttpPlatform`, weak ETag generation, and `BunServices`.
|
|
90
|
+
*
|
|
53
91
|
* @category Layers
|
|
92
|
+
* @since 4.0.0
|
|
54
93
|
*/
|
|
55
94
|
export declare const layerHttpServices: Layer.Layer<HttpPlatform | Etag.Generator | BunServices.BunServices>;
|
|
56
95
|
/**
|
|
57
|
-
*
|
|
96
|
+
* Layer that provides a Bun `HttpServer` together with the Bun HTTP platform, ETag generator, and Bun services.
|
|
97
|
+
*
|
|
58
98
|
* @category Layers
|
|
99
|
+
* @since 4.0.0
|
|
59
100
|
*/
|
|
60
101
|
export declare const layer: <R extends string>(options: ServeOptions<R> & {
|
|
61
102
|
readonly disablePreemptiveShutdown?: boolean | undefined;
|
|
62
103
|
readonly gracefulShutdownTimeout?: Duration.Input | undefined;
|
|
63
104
|
}) => Layer.Layer<Server.HttpServer | HttpPlatform | Etag.Generator | BunServices.BunServices>;
|
|
64
105
|
/**
|
|
65
|
-
*
|
|
106
|
+
* Test layer that starts a Bun HTTP server on an ephemeral port and provides the HTTP test client dependencies.
|
|
107
|
+
*
|
|
66
108
|
* @category Layers
|
|
109
|
+
* @since 4.0.0
|
|
67
110
|
*/
|
|
68
111
|
export declare const layerTest: Layer.Layer<Server.HttpServer | HttpPlatform | FileSystem.FileSystem | Etag.Generator | Path.Path | HttpClient>;
|
|
69
112
|
/**
|
|
70
|
-
*
|
|
113
|
+
* Creates the Bun HTTP server and support-services layer from configurable serve options.
|
|
114
|
+
*
|
|
71
115
|
* @category Layers
|
|
116
|
+
* @since 4.0.0
|
|
72
117
|
*/
|
|
73
118
|
export declare const layerConfig: <R extends string>(options: Config.Wrap<ServeOptions<R> & {
|
|
74
119
|
readonly disablePreemptiveShutdown?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunHttpServer.d.ts","sourceRoot":"","sources":["../src/BunHttpServer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"BunHttpServer.d.ts","sourceRoot":"","sources":["../src/BunHttpServer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,OAAO,KAAK,EAAuB,eAAe,EAAE,MAAM,KAAK,CAAA;AAC/D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAIvC,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAA;AAGpD,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAErC,OAAO,KAAK,KAAK,IAAI,MAAM,aAAa,CAAA;AA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