@effect/platform-bun 4.0.0-rc.116 → 4.0.0-rc.118
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/AGENTS.md +4 -4
- package/CLAUDE.md +4 -4
- package/ai-docs/package.json +3 -3
- package/ai-docs/src/01_effect/03_services/20_layer-composition.ts +1 -1
- package/ai-docs/src/01_effect/06_running/20_layer-launch.ts +1 -1
- package/ai-docs/src/03_stream/30_encoding.ts +1 -1
- package/ai-docs/src/08_observability/20_otlp-tracing.ts +2 -2
- package/ai-docs/src/08_observability/index.md +1 -1
- package/ai-docs/src/40_sql/10_basics.ts +2 -2
- package/ai-docs/src/40_sql/index.md +1 -1
- package/ai-docs/src/50_http-client/10_basics.ts +1 -1
- package/ai-docs/src/51_http-server/10_basics.ts +2 -2
- package/ai-docs/src/51_http-server/20_testing.ts +2 -2
- package/ai-docs/src/51_http-server/fixtures/api/Api.ts +1 -1
- package/ai-docs/src/51_http-server/fixtures/api/Authorization.ts +1 -1
- package/ai-docs/src/51_http-server/fixtures/api/System.ts +1 -1
- package/ai-docs/src/51_http-server/fixtures/api/Users.ts +1 -1
- package/ai-docs/src/51_http-server/fixtures/domain/User.ts +1 -1
- package/ai-docs/src/51_http-server/fixtures/server/Users/http.ts +1 -1
- package/ai-docs/src/51_http-server/fixtures/server/Users.ts +1 -1
- package/ai-docs/src/60_child-process/10_working-with-child-processes.ts +1 -1
- package/ai-docs/src/60_child-process/index.md +1 -1
- package/ai-docs/src/70_cli/10_basics.ts +1 -1
- package/ai-docs/src/70_cli/index.md +1 -1
- package/ai-docs/src/71_ai/10_language-model.ts +2 -2
- package/ai-docs/src/71_ai/20_tools.ts +2 -2
- package/ai-docs/src/71_ai/30_chat.ts +2 -2
- package/ai-docs/src/80_cluster/10_entities.ts +3 -3
- package/dist/BunClusterHttp.d.ts +10 -20
- package/dist/BunClusterHttp.d.ts.map +1 -1
- package/dist/BunClusterHttp.js +20 -10
- package/dist/BunClusterHttp.js.map +1 -1
- package/dist/BunClusterSocket.d.ts +8 -8
- package/dist/BunClusterSocket.d.ts.map +1 -1
- package/dist/BunClusterSocket.js +11 -11
- package/dist/BunClusterSocket.js.map +1 -1
- package/dist/BunHttpClient.d.ts +1 -1
- package/dist/BunHttpClient.d.ts.map +1 -1
- package/dist/BunHttpClient.js +1 -1
- package/dist/BunHttpClient.js.map +1 -1
- package/dist/BunHttpPlatform.d.ts +1 -1
- package/dist/BunHttpPlatform.d.ts.map +1 -1
- package/dist/BunHttpPlatform.js +3 -3
- package/dist/BunHttpPlatform.js.map +1 -1
- package/dist/BunHttpServer.d.ts +10 -10
- package/dist/BunHttpServer.d.ts.map +1 -1
- package/dist/BunHttpServer.js +13 -13
- package/dist/BunHttpServer.js.map +1 -1
- package/dist/BunHttpServerRequest.d.ts +1 -1
- package/dist/BunHttpServerRequest.d.ts.map +1 -1
- package/dist/BunMultipart.d.ts +1 -1
- package/dist/BunMultipart.d.ts.map +1 -1
- package/dist/BunMultipart.js +1 -1
- package/dist/BunMultipart.js.map +1 -1
- package/dist/BunRedis.d.ts +1 -1
- package/dist/BunRedis.d.ts.map +1 -1
- package/dist/BunRedis.js +1 -1
- package/dist/BunRedis.js.map +1 -1
- package/dist/BunServices.d.ts +1 -1
- package/dist/BunServices.d.ts.map +1 -1
- package/dist/BunSocket.d.ts +1 -1
- package/dist/BunSocket.d.ts.map +1 -1
- package/dist/BunSocket.js +1 -1
- package/dist/BunSocket.js.map +1 -1
- package/dist/BunWorker.d.ts +1 -1
- package/dist/BunWorker.d.ts.map +1 -1
- package/dist/BunWorker.js +2 -2
- package/dist/BunWorker.js.map +1 -1
- package/dist/BunWorkerRunner.d.ts +1 -1
- package/dist/BunWorkerRunner.d.ts.map +1 -1
- package/dist/BunWorkerRunner.js +2 -2
- package/dist/BunWorkerRunner.js.map +1 -1
- package/package.json +4 -4
- package/src/BunClusterHttp.ts +16 -16
- package/src/BunClusterSocket.ts +14 -14
- package/src/BunHttpClient.ts +1 -1
- package/src/BunHttpPlatform.ts +3 -3
- package/src/BunHttpServer.ts +17 -17
- package/src/BunHttpServerRequest.ts +1 -1
- package/src/BunMultipart.ts +1 -1
- package/src/BunRedis.ts +1 -1
- package/src/BunServices.ts +1 -1
- package/src/BunSocket.ts +1 -1
- package/src/BunWorker.ts +2 -2
- package/src/BunWorkerRunner.ts +2 -2
package/AGENTS.md
CHANGED
|
@@ -302,7 +302,7 @@ Use it when your Effect programs need testable current time, safe parsing, stabl
|
|
|
302
302
|
|
|
303
303
|
Effect has built-in support for structured logging, distributed tracing, and
|
|
304
304
|
metrics. For exporting telemetry, use the lightweight Otlp modules from
|
|
305
|
-
`effect/
|
|
305
|
+
`effect/observability` in new projects, or use
|
|
306
306
|
`@effect/opentelemetry` NodeSdk when integrating with an existing OpenTelemetry
|
|
307
307
|
setup.
|
|
308
308
|
|
|
@@ -344,7 +344,7 @@ if (Predicate.isObject(thing)) {
|
|
|
344
344
|
|
|
345
345
|
## Working with SQL databases
|
|
346
346
|
|
|
347
|
-
Use the `effect/
|
|
347
|
+
Use the `effect/sql` modules together with a driver package such as
|
|
348
348
|
`@effect/sql-sqlite-node` to access SQL databases. Define domain models with
|
|
349
349
|
`Model.Class` to derive schemas for the database and JSON boundaries, run
|
|
350
350
|
migrations, and write type-safe queries.
|
|
@@ -372,13 +372,13 @@ Build http clients with the `HttpClient` module.
|
|
|
372
372
|
|
|
373
373
|
## Working with child processes
|
|
374
374
|
|
|
375
|
-
Use the `effect/
|
|
375
|
+
Use the `effect/process` modules to define child processes and run them with `ChildProcessSpawner`.
|
|
376
376
|
|
|
377
377
|
- **[Working with child processes](./ai-docs/src/60_child-process/10_working-with-child-processes.ts)**: This example shows how to collect process output, compose pipelines, and stream long-running command output.
|
|
378
378
|
|
|
379
379
|
## Building CLI applications
|
|
380
380
|
|
|
381
|
-
Use the "effect/
|
|
381
|
+
Use the "effect/cli" modules to build CLI applications. These modules
|
|
382
382
|
provide utilities for parsing command-line arguments, handling user input, and
|
|
383
383
|
managing the flow of a CLI application.
|
|
384
384
|
|
package/CLAUDE.md
CHANGED
|
@@ -302,7 +302,7 @@ Use it when your Effect programs need testable current time, safe parsing, stabl
|
|
|
302
302
|
|
|
303
303
|
Effect has built-in support for structured logging, distributed tracing, and
|
|
304
304
|
metrics. For exporting telemetry, use the lightweight Otlp modules from
|
|
305
|
-
`effect/
|
|
305
|
+
`effect/observability` in new projects, or use
|
|
306
306
|
`@effect/opentelemetry` NodeSdk when integrating with an existing OpenTelemetry
|
|
307
307
|
setup.
|
|
308
308
|
|
|
@@ -344,7 +344,7 @@ if (Predicate.isObject(thing)) {
|
|
|
344
344
|
|
|
345
345
|
## Working with SQL databases
|
|
346
346
|
|
|
347
|
-
Use the `effect/
|
|
347
|
+
Use the `effect/sql` modules together with a driver package such as
|
|
348
348
|
`@effect/sql-sqlite-node` to access SQL databases. Define domain models with
|
|
349
349
|
`Model.Class` to derive schemas for the database and JSON boundaries, run
|
|
350
350
|
migrations, and write type-safe queries.
|
|
@@ -372,13 +372,13 @@ Build http clients with the `HttpClient` module.
|
|
|
372
372
|
|
|
373
373
|
## Working with child processes
|
|
374
374
|
|
|
375
|
-
Use the `effect/
|
|
375
|
+
Use the `effect/process` modules to define child processes and run them with `ChildProcessSpawner`.
|
|
376
376
|
|
|
377
377
|
- **[Working with child processes](./ai-docs/src/60_child-process/10_working-with-child-processes.ts)**: This example shows how to collect process output, compose pipelines, and stream long-running command output.
|
|
378
378
|
|
|
379
379
|
## Building CLI applications
|
|
380
380
|
|
|
381
|
-
Use the "effect/
|
|
381
|
+
Use the "effect/cli" modules to build CLI applications. These modules
|
|
382
382
|
provide utilities for parsing command-line arguments, handling user input, and
|
|
383
383
|
managing the flow of a CLI application.
|
|
384
384
|
|
package/ai-docs/package.json
CHANGED
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"@effect/sql-sqlite-wasm": "workspace:*",
|
|
28
28
|
"@effect/vitest": "workspace:*",
|
|
29
29
|
"effect": "workspace:*",
|
|
30
|
-
"hono": "^4.13.
|
|
31
|
-
"nodemailer": "^10.0.
|
|
30
|
+
"hono": "^4.13.9",
|
|
31
|
+
"nodemailer": "^10.0.10"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@types/nodemailer": "^8.0.
|
|
34
|
+
"@types/nodemailer": "^8.0.2"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { PgClient } from "@effect/sql-pg"
|
|
9
9
|
import { Array, Config, Context, Effect, Layer, type Option, Schema } from "effect"
|
|
10
|
-
import { SqlClient, SqlError } from "effect/
|
|
10
|
+
import { SqlClient, SqlError } from "effect/sql"
|
|
11
11
|
|
|
12
12
|
// Define a layer for the SqlClient service
|
|
13
13
|
export const SqlClientLayer: Layer.Layer<
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { NodeHttpServer, NodeRuntime } from "@effect/platform-node"
|
|
7
7
|
import { Effect, Layer } from "effect"
|
|
8
|
-
import { HttpRouter, HttpServerResponse } from "effect/
|
|
8
|
+
import { HttpRouter, HttpServerResponse } from "effect/http"
|
|
9
9
|
import { createServer } from "node:http"
|
|
10
10
|
|
|
11
11
|
// Build a tiny HTTP app with a health-check endpoint.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* decode and encode streams of structured data.
|
|
6
6
|
*/
|
|
7
7
|
import { DateTime, Schema, Stream } from "effect"
|
|
8
|
-
import { Ndjson, SchemaBinary } from "effect/
|
|
8
|
+
import { Ndjson, SchemaBinary } from "effect/encoding"
|
|
9
9
|
|
|
10
10
|
// SchemaBinary derives a framed binary decoder directly from a schema.
|
|
11
11
|
export const schemaBinaryDecoder = SchemaBinary.decode(Schema.Struct({
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { NodeRuntime } from "@effect/platform-node"
|
|
7
7
|
import { Context, Effect, Layer } from "effect"
|
|
8
|
-
import { FetchHttpClient } from "effect/
|
|
9
|
-
import { OtlpLogger, OtlpSerialization, OtlpTracer } from "effect/
|
|
8
|
+
import { FetchHttpClient } from "effect/http"
|
|
9
|
+
import { OtlpLogger, OtlpSerialization, OtlpTracer } from "effect/observability"
|
|
10
10
|
|
|
11
11
|
// Configure OTLP span export.
|
|
12
12
|
export const OtlpTracingLayer = OtlpTracer.layer({
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Effect has built-in support for structured logging, distributed tracing, and
|
|
4
4
|
metrics. For exporting telemetry, use the lightweight Otlp modules from
|
|
5
|
-
`effect/
|
|
5
|
+
`effect/observability` in new projects, or use
|
|
6
6
|
`@effect/opentelemetry` NodeSdk when integrating with an existing OpenTelemetry
|
|
7
7
|
setup.
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
import { NodeRuntime } from "@effect/platform-node"
|
|
8
8
|
import { SqliteClient, SqliteMigrator } from "@effect/sql-sqlite-node"
|
|
9
9
|
import { Context, Effect, Layer, Schema } from "effect"
|
|
10
|
-
import { Model } from "effect/
|
|
11
|
-
import { SqlClient, SqlModel, SqlSchema } from "effect/
|
|
10
|
+
import { Model } from "effect/schema"
|
|
11
|
+
import { SqlClient, SqlModel, SqlSchema } from "effect/sql"
|
|
12
12
|
|
|
13
13
|
// Use a branded string for the group id, so it cannot be mixed up with other
|
|
14
14
|
// string ids in the application.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## Working with SQL databases
|
|
2
2
|
|
|
3
|
-
Use the `effect/
|
|
3
|
+
Use the `effect/sql` modules together with a driver package such as
|
|
4
4
|
`@effect/sql-sqlite-node` to access SQL databases. Define domain models with
|
|
5
5
|
`Model.Class` to derive schemas for the database and JSON boundaries, run
|
|
6
6
|
migrations, and write type-safe queries.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Define a service that uses the HttpClient module to fetch data from an external API
|
|
5
5
|
*/
|
|
6
6
|
import { Context, Effect, flow, Layer, Schedule, Schema } from "effect"
|
|
7
|
-
import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/
|
|
7
|
+
import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http"
|
|
8
8
|
|
|
9
9
|
class Todo extends Schema.Class<Todo>("Todo")({
|
|
10
10
|
userId: Schema.Int,
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { NodeHttpServer, NodeRuntime } from "@effect/platform-node"
|
|
8
8
|
import { Context, Effect, flow, Layer, Schedule } from "effect"
|
|
9
|
-
import { FetchHttpClient, HttpClient, HttpClientRequest, HttpRouter, HttpServer } from "effect/
|
|
10
|
-
import { HttpApiBuilder, HttpApiClient, HttpApiMiddleware, HttpApiScalar } from "effect/
|
|
9
|
+
import { FetchHttpClient, HttpClient, HttpClientRequest, HttpRouter, HttpServer } from "effect/http"
|
|
10
|
+
import { HttpApiBuilder, HttpApiClient, HttpApiMiddleware, HttpApiScalar } from "effect/http-api"
|
|
11
11
|
import { createServer } from "node:http"
|
|
12
12
|
// Api definitions should **always** be seperate from the server implementation,
|
|
13
13
|
// so that they can be shared between the server and client without leaking
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { assert, layer } from "@effect/vitest"
|
|
8
8
|
import { Effect, Layer } from "effect"
|
|
9
|
-
import { HttpClientRequest, HttpServer } from "effect/
|
|
10
|
-
import { HttpApiMiddleware, HttpApiTest } from "effect/
|
|
9
|
+
import { HttpClientRequest, HttpServer } from "effect/http"
|
|
10
|
+
import { HttpApiMiddleware, HttpApiTest } from "effect/http-api"
|
|
11
11
|
import { Api } from "./fixtures/api/Api.ts"
|
|
12
12
|
import { Authorization } from "./fixtures/api/Authorization.ts"
|
|
13
13
|
import { UserId } from "./fixtures/domain/User.ts"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context, Schema } from "effect"
|
|
2
|
-
import { HttpApiMiddleware, HttpApiSecurity } from "effect/
|
|
2
|
+
import { HttpApiMiddleware, HttpApiSecurity } from "effect/http-api"
|
|
3
3
|
import type { User } from "../domain/User.ts"
|
|
4
4
|
|
|
5
5
|
export class CurrentUser extends Context.Service<CurrentUser, User>()("acme/HttpApi/Authorization/CurrentUser") {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect"
|
|
2
|
-
import { HttpApiEndpoint, HttpApiError, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/
|
|
2
|
+
import { HttpApiEndpoint, HttpApiError, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api"
|
|
3
3
|
import { User, UserId } from "../domain/User.ts"
|
|
4
4
|
import { SearchQueryTooShort, UserNotFound } from "../domain/UserErrors.ts"
|
|
5
5
|
import { Authorization } from "./Authorization.ts"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect, Layer } from "effect"
|
|
2
|
-
import { HttpApiBuilder, HttpApiError } from "effect/
|
|
2
|
+
import { HttpApiBuilder, HttpApiError } from "effect/http-api"
|
|
3
3
|
import { Api } from "../../api/Api.ts"
|
|
4
4
|
import { CurrentUser } from "../../api/Authorization.ts"
|
|
5
5
|
import { AuthorizationLayer } from "../Authorization.ts"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SqliteClient, SqliteMigrator } from "@effect/sql-sqlite-node"
|
|
2
2
|
import { Context, Effect, Layer, Schema } from "effect"
|
|
3
|
-
import { SqlClient, SqlModel, SqlSchema } from "effect/
|
|
3
|
+
import { SqlClient, SqlModel, SqlSchema } from "effect/sql"
|
|
4
4
|
import { User } from "../domain/User.ts"
|
|
5
5
|
import type { UserId } from "../domain/User.ts"
|
|
6
6
|
import { SearchQueryTooShort, UserNotFound, UsersError } from "../domain/UserErrors.ts"
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { NodeServices } from "@effect/platform-node"
|
|
7
7
|
import { Console, Context, Effect, Layer, Schema, Stream, String } from "effect"
|
|
8
|
-
import { ChildProcess, ChildProcessSpawner } from "effect/
|
|
8
|
+
import { ChildProcess, ChildProcessSpawner } from "effect/process"
|
|
9
9
|
|
|
10
10
|
export class DevToolsError extends Schema.TaggedError<DevToolsError>()("DevToolsError", {
|
|
11
11
|
cause: Schema.Defect()
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { NodeRuntime, NodeServices } from "@effect/platform-node"
|
|
8
8
|
import { Console, Effect, Option, Schema } from "effect"
|
|
9
|
-
import { Argument, Command, Flag } from "effect/
|
|
9
|
+
import { Argument, Command, Flag } from "effect/cli"
|
|
10
10
|
|
|
11
11
|
// You can define flags outside of commands and reuse them across multiple
|
|
12
12
|
// commands.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
## Building CLI applications
|
|
2
2
|
|
|
3
|
-
Use the "effect/
|
|
3
|
+
Use the "effect/cli" modules to build CLI applications. These modules
|
|
4
4
|
provide utilities for parsing command-line arguments, handling user input, and
|
|
5
5
|
managing the flow of a CLI application.
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
import { AnthropicClient, AnthropicLanguageModel } from "@effect/ai-anthropic"
|
|
8
8
|
import { OpenAiClient, OpenAiLanguageModel } from "@effect/ai-openai"
|
|
9
9
|
import { Config, Context, Effect, ExecutionPlan, Layer, Schema, Stream } from "effect"
|
|
10
|
-
import { AiError, LanguageModel, Model, type Response } from "effect/
|
|
11
|
-
import { FetchHttpClient } from "effect/
|
|
10
|
+
import { AiError, LanguageModel, Model, type Response } from "effect/ai"
|
|
11
|
+
import { FetchHttpClient } from "effect/http"
|
|
12
12
|
import { LaunchPlan } from "./fixtures/domain/LaunchPlan.ts"
|
|
13
13
|
|
|
14
14
|
// You can use Config to create ai clients
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { OpenAiClient, OpenAiLanguageModel, OpenAiTool } from "@effect/ai-openai"
|
|
8
8
|
import { Config, Context, Effect, Layer, Schema } from "effect"
|
|
9
|
-
import { AiError, LanguageModel, Tool, Toolkit } from "effect/
|
|
10
|
-
import { FetchHttpClient } from "effect/
|
|
9
|
+
import { AiError, LanguageModel, Tool, Toolkit } from "effect/ai"
|
|
10
|
+
import { FetchHttpClient } from "effect/http"
|
|
11
11
|
|
|
12
12
|
// ---------------------------------------------------------------------------
|
|
13
13
|
// 1. Defining tools
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { OpenAiClient, OpenAiLanguageModel } from "@effect/ai-openai"
|
|
8
8
|
import { Config, Context, DateTime, Effect, Layer, Ref, Schema } from "effect"
|
|
9
|
-
import { AiError, Chat, Prompt, Tool, Toolkit } from "effect/
|
|
10
|
-
import { FetchHttpClient } from "effect/
|
|
9
|
+
import { AiError, Chat, Prompt, Tool, Toolkit } from "effect/ai"
|
|
10
|
+
import { FetchHttpClient } from "effect/http"
|
|
11
11
|
|
|
12
12
|
// ---------------------------------------------------------------------------
|
|
13
13
|
// Provider setup
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { NodeClusterSocket, NodeRuntime } from "@effect/platform-node"
|
|
7
7
|
import { Effect, Layer, Ref, Schema } from "effect"
|
|
8
|
-
import { ClusterSchema, Entity, TestRunner } from "effect/
|
|
9
|
-
import { Rpc } from "effect/
|
|
10
|
-
import type { SqlClient } from "effect/
|
|
8
|
+
import { ClusterSchema, Entity, TestRunner } from "effect/cluster"
|
|
9
|
+
import { Rpc } from "effect/rpc"
|
|
10
|
+
import type { SqlClient } from "effect/sql"
|
|
11
11
|
|
|
12
12
|
export const Increment = Rpc.make("Increment", {
|
|
13
13
|
payload: { amount: Schema.Int },
|
package/dist/BunClusterHttp.d.ts
CHANGED
|
@@ -1,25 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
* choosing serialization, runner health checks, runner storage, message
|
|
7
|
-
* storage, and optional client-only mode from the supplied options.
|
|
8
|
-
*
|
|
9
|
-
* @since 4.0.0
|
|
10
|
-
*/
|
|
1
|
+
import * as MessageStorage from "effect/cluster/MessageStorage";
|
|
2
|
+
import * as Runners from "effect/cluster/Runners";
|
|
3
|
+
import * as RunnerStorage from "effect/cluster/RunnerStorage";
|
|
4
|
+
import type { Sharding } from "effect/cluster/Sharding";
|
|
5
|
+
import * as ShardingConfig from "effect/cluster/ShardingConfig";
|
|
11
6
|
import type * as Config from "effect/Config";
|
|
7
|
+
import type * as Etag from "effect/http/Etag";
|
|
8
|
+
import type { HttpPlatform } from "effect/http/HttpPlatform";
|
|
9
|
+
import type { HttpServer } from "effect/http/HttpServer";
|
|
10
|
+
import type { ServeError } from "effect/http/HttpServerError";
|
|
12
11
|
import * as Layer from "effect/Layer";
|
|
13
|
-
import
|
|
14
|
-
import * as Runners from "effect/unstable/cluster/Runners";
|
|
15
|
-
import * as RunnerStorage from "effect/unstable/cluster/RunnerStorage";
|
|
16
|
-
import type { Sharding } from "effect/unstable/cluster/Sharding";
|
|
17
|
-
import * as ShardingConfig from "effect/unstable/cluster/ShardingConfig";
|
|
18
|
-
import type * as Etag from "effect/unstable/http/Etag";
|
|
19
|
-
import type { HttpPlatform } from "effect/unstable/http/HttpPlatform";
|
|
20
|
-
import type { HttpServer } from "effect/unstable/http/HttpServer";
|
|
21
|
-
import type { ServeError } from "effect/unstable/http/HttpServerError";
|
|
22
|
-
import type { SqlClient } from "effect/unstable/sql/SqlClient";
|
|
12
|
+
import type { SqlClient } from "effect/sql/SqlClient";
|
|
23
13
|
import { layerK8sHttpClient } from "./BunClusterSocket.ts";
|
|
24
14
|
import type { BunServices } from "./BunServices.ts";
|
|
25
15
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunClusterHttp.d.ts","sourceRoot":"","sources":["../src/BunClusterHttp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BunClusterHttp.d.ts","sourceRoot":"","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B,CAAA"}
|
package/dist/BunClusterHttp.js
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bun HTTP and WebSocket layers for Effect Cluster runners.
|
|
3
|
+
*
|
|
4
|
+
* `layerHttpServer` provides the Bun HTTP server used by cluster runners. The
|
|
5
|
+
* main `layer` builds a sharding layer for HTTP or WebSocket transport,
|
|
6
|
+
* choosing serialization, runner health checks, runner storage, message
|
|
7
|
+
* storage, and optional client-only mode from the supplied options.
|
|
8
|
+
*
|
|
9
|
+
* @since 4.0.0
|
|
10
|
+
*/
|
|
11
|
+
import * as HttpRunner from "effect/cluster/HttpRunner";
|
|
12
|
+
import * as MessageStorage from "effect/cluster/MessageStorage";
|
|
13
|
+
import * as RunnerHealth from "effect/cluster/RunnerHealth";
|
|
14
|
+
import * as Runners from "effect/cluster/Runners";
|
|
15
|
+
import * as RunnerStorage from "effect/cluster/RunnerStorage";
|
|
16
|
+
import * as ShardingConfig from "effect/cluster/ShardingConfig";
|
|
17
|
+
import * as SqlMessageStorage from "effect/cluster/SqlMessageStorage";
|
|
18
|
+
import * as SqlRunnerStorage from "effect/cluster/SqlRunnerStorage";
|
|
1
19
|
import * as Effect from "effect/Effect";
|
|
20
|
+
import * as FetchHttpClient from "effect/http/FetchHttpClient";
|
|
2
21
|
import * as Layer from "effect/Layer";
|
|
3
22
|
import * as Option from "effect/Option";
|
|
4
|
-
import * as
|
|
5
|
-
import * as MessageStorage from "effect/unstable/cluster/MessageStorage";
|
|
6
|
-
import * as RunnerHealth from "effect/unstable/cluster/RunnerHealth";
|
|
7
|
-
import * as Runners from "effect/unstable/cluster/Runners";
|
|
8
|
-
import * as RunnerStorage from "effect/unstable/cluster/RunnerStorage";
|
|
9
|
-
import * as ShardingConfig from "effect/unstable/cluster/ShardingConfig";
|
|
10
|
-
import * as SqlMessageStorage from "effect/unstable/cluster/SqlMessageStorage";
|
|
11
|
-
import * as SqlRunnerStorage from "effect/unstable/cluster/SqlRunnerStorage";
|
|
12
|
-
import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
|
|
13
|
-
import * as RpcSerialization from "effect/unstable/rpc/RpcSerialization";
|
|
23
|
+
import * as RpcSerialization from "effect/rpc/RpcSerialization";
|
|
14
24
|
import { layerK8sHttpClient } from "./BunClusterSocket.js";
|
|
15
25
|
import * as BunCrypto from "./BunCrypto.js";
|
|
16
26
|
import * as BunFileSystem from "./BunFileSystem.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunClusterHttp.js","names":[],"sources":["../src/BunClusterHttp.ts"],"sourcesContent":[null],"mappings":"
|
|
1
|
+
{"version":3,"file":"BunClusterHttp.js","names":[],"sources":["../src/BunClusterHttp.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;AAUA,OAAO,KAAK,UAAU,MAAM,2BAA2B;AACvD,OAAO,KAAK,cAAc,MAAM,+BAA+B;AAC/D,OAAO,KAAK,YAAY,MAAM,6BAA6B;AAC3D,OAAO,KAAK,OAAO,MAAM,wBAAwB;AACjD,OAAO,KAAK,aAAa,MAAM,8BAA8B;AAE7D,OAAO,KAAK,cAAc,MAAM,+BAA+B;AAC/D,OAAO,KAAK,iBAAiB,MAAM,kCAAkC;AACrE,OAAO,KAAK,gBAAgB,MAAM,iCAAiC;AAEnE,OAAO,KAAK,MAAM,MAAM,eAAe;AAEvC,OAAO,KAAK,eAAe,MAAM,6BAA6B;AAI9D,OAAO,KAAK,KAAK,MAAM,cAAc;AACrC,OAAO,KAAK,MAAM,MAAM,eAAe;AACvC,OAAO,KAAK,gBAAgB,MAAM,6BAA6B;AAE/D,SAAS,kBAAkB,QAAQ,uBAAuB;AAC1D,OAAO,KAAK,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAK,aAAa,MAAM,oBAAoB;AACnD,OAAO,KAAK,aAAa,MAAM,oBAAoB;AAEnD,OAAO,KAAK,SAAS,MAAM,gBAAgB;AAE3C;AACE;;;;;;AAMA,kBAAkB;AAGpB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BAAgB,CAAC,eAAe,CAAC;IAAE,aAAa,EAAE,OAAO,CAAC;EAA0B,CAAE,CAAC,GACvF,gBAAgB,CAAC,iBAAiB,CAAC;IAAE,YAAY,EAAE,OAAO,CAAC;EAA0B,CAAE,CAAC,CAC7F,CACK;AACV,CAAC","ignoreList":[]}
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
* @since 4.0.0
|
|
11
11
|
*/
|
|
12
12
|
import { layerClientProtocol, layerSocketServer } from "@effect/platform-node-shared/NodeClusterSocket";
|
|
13
|
+
import * as K8sHttpClient from "effect/cluster/K8sHttpClient";
|
|
14
|
+
import * as MessageStorage from "effect/cluster/MessageStorage";
|
|
15
|
+
import * as Runners from "effect/cluster/Runners";
|
|
16
|
+
import * as RunnerStorage from "effect/cluster/RunnerStorage";
|
|
17
|
+
import type { Sharding } from "effect/cluster/Sharding";
|
|
18
|
+
import * as ShardingConfig from "effect/cluster/ShardingConfig";
|
|
13
19
|
import type * as Config from "effect/Config";
|
|
14
20
|
import * as Layer from "effect/Layer";
|
|
15
|
-
import * as
|
|
16
|
-
import
|
|
17
|
-
import * as Runners from "effect/unstable/cluster/Runners";
|
|
18
|
-
import * as RunnerStorage from "effect/unstable/cluster/RunnerStorage";
|
|
19
|
-
import type { Sharding } from "effect/unstable/cluster/Sharding";
|
|
20
|
-
import * as ShardingConfig from "effect/unstable/cluster/ShardingConfig";
|
|
21
|
-
import type * as SocketServer from "effect/unstable/socket/SocketServer";
|
|
22
|
-
import type { SqlClient } from "effect/unstable/sql/SqlClient";
|
|
21
|
+
import type * as SocketServer from "effect/socket/SocketServer";
|
|
22
|
+
import type { SqlClient } from "effect/sql/SqlClient";
|
|
23
23
|
export {
|
|
24
24
|
/**
|
|
25
25
|
* Provides the cluster `RpcClientProtocol` using the shared socket client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunClusterSocket.d.ts","sourceRoot":"","sources":["../src/BunClusterSocket.ts"],"names":[],"mappings":"AAAA;;;;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 @@
|
|
|
10
10
|
* @since 4.0.0
|
|
11
11
|
*/
|
|
12
12
|
import { layerClientProtocol, layerSocketServer } from "@effect/platform-node-shared/NodeClusterSocket";
|
|
13
|
+
import * as K8sHttpClient from "effect/cluster/K8sHttpClient";
|
|
14
|
+
import * as MessageStorage from "effect/cluster/MessageStorage";
|
|
15
|
+
import * as RunnerHealth from "effect/cluster/RunnerHealth";
|
|
16
|
+
import * as Runners from "effect/cluster/Runners";
|
|
17
|
+
import * as RunnerStorage from "effect/cluster/RunnerStorage";
|
|
18
|
+
import * as ShardingConfig from "effect/cluster/ShardingConfig";
|
|
19
|
+
import * as SocketRunner from "effect/cluster/SocketRunner";
|
|
20
|
+
import * as SqlMessageStorage from "effect/cluster/SqlMessageStorage";
|
|
21
|
+
import * as SqlRunnerStorage from "effect/cluster/SqlRunnerStorage";
|
|
13
22
|
import * as Effect from "effect/Effect";
|
|
14
23
|
import * as FileSystem from "effect/FileSystem";
|
|
24
|
+
import * as FetchHttpClient from "effect/http/FetchHttpClient";
|
|
15
25
|
import * as Layer from "effect/Layer";
|
|
16
|
-
import * as
|
|
17
|
-
import * as MessageStorage from "effect/unstable/cluster/MessageStorage";
|
|
18
|
-
import * as RunnerHealth from "effect/unstable/cluster/RunnerHealth";
|
|
19
|
-
import * as Runners from "effect/unstable/cluster/Runners";
|
|
20
|
-
import * as RunnerStorage from "effect/unstable/cluster/RunnerStorage";
|
|
21
|
-
import * as ShardingConfig from "effect/unstable/cluster/ShardingConfig";
|
|
22
|
-
import * as SocketRunner from "effect/unstable/cluster/SocketRunner";
|
|
23
|
-
import * as SqlMessageStorage from "effect/unstable/cluster/SqlMessageStorage";
|
|
24
|
-
import * as SqlRunnerStorage from "effect/unstable/cluster/SqlRunnerStorage";
|
|
25
|
-
import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
|
|
26
|
-
import * as RpcSerialization from "effect/unstable/rpc/RpcSerialization";
|
|
26
|
+
import * as RpcSerialization from "effect/rpc/RpcSerialization";
|
|
27
27
|
import * as BunCrypto from "./BunCrypto.js";
|
|
28
28
|
import * as BunFileSystem from "./BunFileSystem.js";
|
|
29
29
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunClusterSocket.js","names":[],"sources":["../src/BunClusterSocket.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA,SAAS,mBAAmB,EAAE,iBAAiB,QAAQ,gDAAgD;
|
|
1
|
+
{"version":3,"file":"BunClusterSocket.js","names":[],"sources":["../src/BunClusterSocket.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA,SAAS,mBAAmB,EAAE,iBAAiB,QAAQ,gDAAgD;AACvG,OAAO,KAAK,aAAa,MAAM,8BAA8B;AAC7D,OAAO,KAAK,cAAc,MAAM,+BAA+B;AAC/D,OAAO,KAAK,YAAY,MAAM,6BAA6B;AAC3D,OAAO,KAAK,OAAO,MAAM,wBAAwB;AACjD,OAAO,KAAK,aAAa,MAAM,8BAA8B;AAE7D,OAAO,KAAK,cAAc,MAAM,+BAA+B;AAC/D,OAAO,KAAK,YAAY,MAAM,6BAA6B;AAC3D,OAAO,KAAK,iBAAiB,MAAM,kCAAkC;AACrE,OAAO,KAAK,gBAAgB,MAAM,iCAAiC;AAEnE,OAAO,KAAK,MAAM,MAAM,eAAe;AACvC,OAAO,KAAK,UAAU,MAAM,mBAAmB;AAC/C,OAAO,KAAK,eAAe,MAAM,6BAA6B;AAC9D,OAAO,KAAK,KAAK,MAAM,cAAc;AACrC,OAAO,KAAK,gBAAgB,MAAM,6BAA6B;AAG/D,OAAO,KAAK,SAAS,MAAM,gBAAgB;AAC3C,OAAO,KAAK,aAAa,MAAM,oBAAoB;AAEnD;AACE;;;;;;;AAOA,mBAAmB;AACnB;;;;;;;AAOA,iBAAiB;AAGnB;;;;;;AAMA,OAAO,MAAM,KAAK,GAIhB,OAWC,IAcG;EAEJ,MAAM,KAAK,GAA+B,OAAO,EAAE;EACjD;EAAA,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O,CACX,OAAO,EAAE,aAAa,KAAK,QAAQ,GAC/B,gBAAgB,CAAC,eAAe,CAAC;IAAE,aAAa,EAAE,OAAO,EAAE;EAA0B,CAAE,CAAC,GACxF,gBAAgB,CAAC,iBAAiB,CAAC;IACnC,YAAY,EAAE,OAAO,EAAE;GACxB,CAAC,CACL,CACK;AACV,CAAC;AAED;;;;;;AAMA,OAAO,MAAM,kBAAkB,gBAA6C,aAAa,CAAC,KAAK,CAAC,IAAI,cAClG,KAAK,CAAC,OAAO,cAAC,KAAK,CAAC,MAAM,cAAC,MAAM,CAAC,GAAG,CAAC,aAAS;EAC7C,MAAM,EAAE,GAAG,OAAO,UAAU,CAAC,UAAU;EACvC,MAAM,YAAY,GAAG,OAAO,EAAE,CAAC,QAAQ,CAAC,sDAAsD,CAAC,CAAC,IAAI,CAClG,MAAM,CAAC,MAAM,CACd;EACD,IAAI,YAAY,CAAC,IAAI,KAAK,MAAM,EAAE;IAChC,OAAO,eAAe,CAAC,KAAK;EAC9B;EAEA,OAAO,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,IAAI,CAC5C,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,WAAW,EAAE;IACvD,GAAG,EAAE;MACH,EAAE,EAAE,YAAY,CAAC;;GAEb,CAAC,CAAC,CACX;AACH,CAAC,CAAC,CAAC,CAAC,eACJ,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CACnC","ignoreList":[]}
|
package/dist/BunHttpClient.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunHttpClient.d.ts","sourceRoot":"","sources":["../src/BunHttpClient.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,cAAc,
|
|
1
|
+
{"version":3,"file":"BunHttpClient.d.ts","sourceRoot":"","sources":["../src/BunHttpClient.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,cAAc,6BAA6B,CAAA"}
|
package/dist/BunHttpClient.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunHttpClient.js","names":[],"sources":["../src/BunHttpClient.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAIA;;;;AAIA,cAAc,
|
|
1
|
+
{"version":3,"file":"BunHttpClient.js","names":[],"sources":["../src/BunHttpClient.ts"],"sourcesContent":[null],"mappings":"AAAA;;;AAIA;;;;AAIA,cAAc,6BAA6B","ignoreList":[]}
|
|
@@ -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":"AAeA,OAAO,KAAK,QAAQ,MAAM,0BAA0B,CAAA;AAEpD,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AA0CrC;;;;;GAKG;AACH,eAAO,MAAM,KAAK,kDAGjB,CAAA"}
|
package/dist/BunHttpPlatform.js
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
* @since 4.0.0
|
|
11
11
|
*/
|
|
12
12
|
import * as NodeHttpCompression from "@effect/platform-node-shared/NodeHttpCompression";
|
|
13
|
+
import * as Etag from "effect/http/Etag";
|
|
14
|
+
import * as Platform from "effect/http/HttpPlatform";
|
|
15
|
+
import * as Response from "effect/http/HttpServerResponse";
|
|
13
16
|
import * as Layer from "effect/Layer";
|
|
14
|
-
import * as Etag from "effect/unstable/http/Etag";
|
|
15
|
-
import * as Platform from "effect/unstable/http/HttpPlatform";
|
|
16
|
-
import * as Response from "effect/unstable/http/HttpServerResponse";
|
|
17
17
|
import * as BunFileSystem from "./BunFileSystem.js";
|
|
18
18
|
// Bun's CompressionStream supports an extended format set covering brotli and
|
|
19
19
|
// zstd
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BunHttpPlatform.js","names":[],"sources":["../src/BunHttpPlatform.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA,OAAO,KAAK,mBAAmB,MAAM,kDAAkD;AAGvF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"BunHttpPlatform.js","names":[],"sources":["../src/BunHttpPlatform.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;;;;AAWA,OAAO,KAAK,mBAAmB,MAAM,kDAAkD;AAGvF,OAAO,KAAK,IAAI,MAAM,kBAAkB;AACxC,OAAO,KAAK,QAAQ,MAAM,0BAA0B;AACpD,OAAO,KAAK,QAAQ,MAAM,gCAAgC;AAC1D,OAAO,KAAK,KAAK,MAAM,cAAc;AACrC,OAAO,KAAK,aAAa,MAAM,oBAAoB;AAEnD;AACA;AACA,MAAM,WAAW,gBAAG,mBAAmB,CAAC,IAAI,cAAC,QAAQ,CAAC,kBAAkB,CAAC;EACvE,UAAU,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC;EAC7C,SAAS,EAAG,SAAS,IAAK,QAAQ,CAAC,uBAAuB,CAAC,SAAS,KAAK,IAAI,GAAG,QAAQ,GAAG,SAAS;CACrG,CAAC,CAAC;AAEH;;;;AAIA,MAAM,IAAI,gBAIN,QAAQ,CAAC,IAAI,CAAC;EAChB,QAAQ,EAAE,KAAK;EACf,WAAW;EACX,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,aAAa;IACvE,IAAI,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;IACzB,IAAI,KAAK,GAAG,CAAC,IAAI,GAAG,KAAK,SAAS,EAAE;MAClC,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC;IAC/B;IACA,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE;MACxB,O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