@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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @since 4.0.0
|
|
9
9
|
*/
|
|
10
|
-
import type { HttpServerRequest } from "effect/
|
|
10
|
+
import type { HttpServerRequest } from "effect/http/HttpServerRequest"
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Returns the underlying `Bun.BunRequest` from an Effect `HttpServerRequest`.
|
package/src/BunMultipart.ts
CHANGED
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type * as Effect from "effect/Effect"
|
|
12
12
|
import type { FileSystem } from "effect/FileSystem"
|
|
13
|
+
import * as Multipart from "effect/http/Multipart"
|
|
13
14
|
import type { Path } from "effect/Path"
|
|
14
15
|
import type * as Scope from "effect/Scope"
|
|
15
16
|
import * as Stream from "effect/Stream"
|
|
16
|
-
import * as Multipart from "effect/unstable/http/Multipart"
|
|
17
17
|
import * as BunStream from "./BunStream.ts"
|
|
18
18
|
|
|
19
19
|
/**
|
package/src/BunRedis.ts
CHANGED
|
@@ -16,8 +16,8 @@ import * as Deferred from "effect/Deferred"
|
|
|
16
16
|
import * as Effect from "effect/Effect"
|
|
17
17
|
import * as Fn from "effect/Function"
|
|
18
18
|
import * as Layer from "effect/Layer"
|
|
19
|
+
import * as Redis from "effect/persistence/Redis"
|
|
19
20
|
import * as Scope from "effect/Scope"
|
|
20
|
-
import * as Redis from "effect/unstable/persistence/Redis"
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Service tag for Bun Redis integration, exposing the raw `RedisClient` and a `use` helper that maps client promise failures to `RedisError`.
|
package/src/BunServices.ts
CHANGED
|
@@ -12,9 +12,9 @@ import type { Crypto } from "effect/Crypto"
|
|
|
12
12
|
import type { FileSystem } from "effect/FileSystem"
|
|
13
13
|
import * as Layer from "effect/Layer"
|
|
14
14
|
import type { Path } from "effect/Path"
|
|
15
|
+
import type { ChildProcessSpawner } from "effect/process/ChildProcessSpawner"
|
|
15
16
|
import type { Stdio } from "effect/Stdio"
|
|
16
17
|
import type { Terminal } from "effect/Terminal"
|
|
17
|
-
import type { ChildProcessSpawner } from "effect/unstable/process/ChildProcessSpawner"
|
|
18
18
|
import * as BunChildProcessSpawner from "./BunChildProcessSpawner.ts"
|
|
19
19
|
import * as BunCrypto from "./BunCrypto.ts"
|
|
20
20
|
import * as BunFileSystem from "./BunFileSystem.ts"
|
package/src/BunSocket.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type * as Duration from "effect/Duration"
|
|
|
12
12
|
import type { Effect } from "effect/Effect"
|
|
13
13
|
import { flow } from "effect/Function"
|
|
14
14
|
import * as Layer from "effect/Layer"
|
|
15
|
-
import * as Socket from "effect/
|
|
15
|
+
import * as Socket from "effect/socket/Socket"
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @since 4.0.0
|
package/src/BunWorker.ts
CHANGED
|
@@ -15,8 +15,8 @@ import * as Effect from "effect/Effect"
|
|
|
15
15
|
import * as Exit from "effect/Exit"
|
|
16
16
|
import * as Layer from "effect/Layer"
|
|
17
17
|
import * as Scope from "effect/Scope"
|
|
18
|
-
import * as Worker from "effect/
|
|
19
|
-
import { WorkerError, WorkerUnknownError } from "effect/
|
|
18
|
+
import * as Worker from "effect/workers/Worker"
|
|
19
|
+
import { WorkerError, WorkerUnknownError } from "effect/workers/WorkerError"
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Provides the Bun `WorkerPlatform` together with a `Worker.Spawner` created
|
package/src/BunWorkerRunner.ts
CHANGED
|
@@ -17,8 +17,8 @@ import * as Fiber from "effect/Fiber"
|
|
|
17
17
|
import { identity } from "effect/Function"
|
|
18
18
|
import * as Layer from "effect/Layer"
|
|
19
19
|
import * as Scope from "effect/Scope"
|
|
20
|
-
import { WorkerError, WorkerReceiveError, WorkerSpawnError } from "effect/
|
|
21
|
-
import * as WorkerRunner from "effect/
|
|
20
|
+
import { WorkerError, WorkerReceiveError, WorkerSpawnError } from "effect/workers/WorkerError"
|
|
21
|
+
import * as WorkerRunner from "effect/workers/WorkerRunner"
|
|
22
22
|
|
|
23
23
|
declare const self: MessagePort
|
|
24
24
|
|