@effect/platform-deno 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/DenoChildProcessSpawner.d.ts +2 -2
- package/dist/DenoChildProcessSpawner.d.ts.map +1 -1
- package/dist/DenoChildProcessSpawner.js +2 -2
- package/dist/DenoChildProcessSpawner.js.map +1 -1
- package/dist/DenoClusterHttp.d.ts +10 -20
- package/dist/DenoClusterHttp.d.ts.map +1 -1
- package/dist/DenoClusterHttp.js +19 -9
- package/dist/DenoClusterHttp.js.map +1 -1
- package/dist/DenoClusterSocket.d.ts +9 -9
- package/dist/DenoClusterSocket.d.ts.map +1 -1
- package/dist/DenoClusterSocket.js +23 -12
- package/dist/DenoClusterSocket.js.map +1 -1
- package/dist/DenoHttpClient.d.ts +1 -1
- package/dist/DenoHttpClient.d.ts.map +1 -1
- package/dist/DenoHttpClient.js +1 -1
- package/dist/DenoHttpClient.js.map +1 -1
- package/dist/DenoHttpPlatform.d.ts +4 -4
- package/dist/DenoHttpPlatform.d.ts.map +1 -1
- package/dist/DenoHttpPlatform.js +3 -3
- package/dist/DenoHttpPlatform.js.map +1 -1
- package/dist/DenoHttpServer.d.ts +9 -9
- package/dist/DenoHttpServer.d.ts.map +1 -1
- package/dist/DenoHttpServer.js +13 -13
- package/dist/DenoHttpServer.js.map +1 -1
- package/dist/DenoHttpServerRequest.d.ts +1 -1
- package/dist/DenoHttpServerRequest.d.ts.map +1 -1
- package/dist/DenoKeyValueStore.d.ts +1 -1
- package/dist/DenoKeyValueStore.d.ts.map +1 -1
- package/dist/DenoKeyValueStore.js +1 -1
- package/dist/DenoKeyValueStore.js.map +1 -1
- package/dist/DenoMultipart.d.ts +1 -1
- package/dist/DenoMultipart.d.ts.map +1 -1
- package/dist/DenoMultipart.js +1 -1
- package/dist/DenoMultipart.js.map +1 -1
- package/dist/DenoRedis.d.ts +1 -1
- package/dist/DenoRedis.d.ts.map +1 -1
- package/dist/DenoRedis.js +1 -1
- package/dist/DenoRedis.js.map +1 -1
- package/dist/DenoServices.d.ts +1 -1
- package/dist/DenoServices.d.ts.map +1 -1
- package/dist/DenoSocket.d.ts +1 -1
- package/dist/DenoSocket.d.ts.map +1 -1
- package/dist/DenoSocket.js +1 -1
- package/dist/DenoSocket.js.map +1 -1
- package/dist/DenoWorker.d.ts +1 -1
- package/dist/DenoWorker.d.ts.map +1 -1
- package/dist/DenoWorker.js +2 -2
- package/dist/DenoWorker.js.map +1 -1
- package/dist/DenoWorkerRunner.d.ts +1 -1
- package/dist/DenoWorkerRunner.d.ts.map +1 -1
- package/dist/DenoWorkerRunner.js +2 -2
- package/dist/DenoWorkerRunner.js.map +1 -1
- package/package.json +5 -5
- package/src/DenoChildProcessSpawner.ts +6 -6
- package/src/DenoClusterHttp.ts +15 -15
- package/src/DenoClusterSocket.ts +15 -15
- package/src/DenoHttpClient.ts +1 -1
- package/src/DenoHttpPlatform.ts +3 -3
- package/src/DenoHttpServer.ts +18 -18
- package/src/DenoHttpServerRequest.ts +1 -1
- package/src/DenoKeyValueStore.ts +1 -1
- package/src/DenoMultipart.ts +1 -1
- package/src/DenoRedis.ts +1 -1
- package/src/DenoServices.ts +1 -1
- package/src/DenoSocket.ts +1 -1
- package/src/DenoWorker.ts +2 -2
- package/src/DenoWorkerRunner.ts +2 -2
package/dist/DenoWorker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DenoWorker.js","sourceRoot":"","sources":["../src/DenoWorker.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"DenoWorker.js","sourceRoot":"","sources":["../src/DenoWorker.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,cAAc,C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AAC,CAAA;QAC9C,IAAI,OAAO,IAAI,IAAI,EAAE,CAAC;YACpB,IAAI,CAAC,KAAK,EAAE,CAAA;QACd,CAAC;QACD,OAAO,KAAK,CAAC,YAAY,CACvB,KAAK,EACL,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;YACf,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAgB,CAAC,CAAA;YACrD,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAc,CAAC,CAAA;QACnD,CAAC,CAAC,CACH,CAAA;IACH,CAAC;CACF,CAAC,CACH,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DenoWorkerRunner.d.ts","sourceRoot":"","sources":["../src/DenoWorkerRunner.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAIrC,OAAO,KAAK,YAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"DenoWorkerRunner.d.ts","sourceRoot":"","sources":["../src/DenoWorkerRunner.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAIrC,OAAO,KAAK,YAAY,MAAM,6BAA6B,CAAA;AAU3D;;;;;GAKG;AACH,eAAO,MAAM,IAAI,SAAU,WAAW,KAAG,YAAY,CAAC,oBAAoB,CAAC,SAAS,CA4HlF,CAAA;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,oBAAoB,CAEhE,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,SAAU,WAAW,KAAG,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,oBAAoB,CACpC,CAAA"}
|
package/dist/DenoWorkerRunner.js
CHANGED
|
@@ -12,8 +12,8 @@ import { identity } from "effect/Function";
|
|
|
12
12
|
import * as Layer from "effect/Layer";
|
|
13
13
|
import * as Queue from "effect/Queue";
|
|
14
14
|
import * as Scope from "effect/Scope";
|
|
15
|
-
import { WorkerError, WorkerReceiveError } from "effect/
|
|
16
|
-
import * as WorkerRunner from "effect/
|
|
15
|
+
import { WorkerError, WorkerReceiveError } from "effect/workers/WorkerError";
|
|
16
|
+
import * as WorkerRunner from "effect/workers/WorkerRunner";
|
|
17
17
|
const cachedPorts = new Set();
|
|
18
18
|
function globalHandleConnect(event) {
|
|
19
19
|
cachedPorts.add(event.ports[0]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DenoWorkerRunner.js","sourceRoot":"","sources":["../src/DenoWorkerRunner.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAA;AACnC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"DenoWorkerRunner.js","sourceRoot":"","sources":["../src/DenoWorkerRunner.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAA;AACnC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,KAAK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AAA;YACzB,CAAC;YACD,KAAK,CAAC,CAAC,KAAK,CAAC,YAAY,CACvB,KAAK,EACL,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;gBACf,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;gBAC1C,IAAI,WAAW,IAAI,IAAI,EAAE,CAAC;oBACxB,IAAI,CAAC,KAAK,EAAE,CAAA;oBACZ,IAAI,CAAC,SAAS,GAAG,aAAa,CAAA;gBAChC,CAAC;YACH,CAAC,CAAC,CACH,CAAA;YAED,KAAK,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;QACnC,CAAC,CAAC,CAAC,CAAA;QAEL,OAAO,QAAQ,CAAkC,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC,CAAA;IAC1F,CAAC,CAAQ;CACV,CAAC,CAAA;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,KAAK,GAAmD,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC,GAAG,EAAE,CACtH,IAAI,CAAC,IAA8B,CAAC,CACrC,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAiB,EAAkD,EAAE,CACpG,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/platform-deno",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-rc.
|
|
4
|
+
"version": "4.0.0-rc.118",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Platform specific implementations for the Deno runtime",
|
|
7
7
|
"homepage": "https://effect.website",
|
|
@@ -56,17 +56,17 @@
|
|
|
56
56
|
"@std/fs": "npm:@jsr/std__fs@^1.0.24",
|
|
57
57
|
"@std/media-types": "npm:@jsr/std__media-types@^1.1.0",
|
|
58
58
|
"@std/path": "npm:@jsr/std__path@^1.1.6",
|
|
59
|
-
"@std/streams": "npm:@jsr/std__streams@^1.
|
|
60
|
-
"@effect/platform-node-shared": "^4.0.0-rc.
|
|
59
|
+
"@std/streams": "npm:@jsr/std__streams@^1.2.0",
|
|
60
|
+
"@effect/platform-node-shared": "^4.0.0-rc.118"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"effect": "^4.0.0-rc.
|
|
63
|
+
"effect": "^4.0.0-rc.118"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@std/assert": "npm:@jsr/std__assert@^1.0.19",
|
|
67
67
|
"@testcontainers/redis": "^12.1.0",
|
|
68
68
|
"@types/deno": "^2.7.0",
|
|
69
|
-
"effect": "^4.0.0-rc.
|
|
69
|
+
"effect": "^4.0.0-rc.118"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"codegen": "effect-utils codegen",
|
|
@@ -15,18 +15,18 @@ import * as Layer from "effect/Layer"
|
|
|
15
15
|
import * as Path from "effect/Path"
|
|
16
16
|
import * as PlatformError from "effect/PlatformError"
|
|
17
17
|
import * as Predicate from "effect/Predicate"
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import * as Stream from "effect/Stream"
|
|
21
|
-
import * as ChildProcess from "effect/unstable/process/ChildProcess"
|
|
22
|
-
import type { ChildProcessHandle } from "effect/unstable/process/ChildProcessSpawner"
|
|
18
|
+
import * as ChildProcess from "effect/process/ChildProcess"
|
|
19
|
+
import type { ChildProcessHandle } from "effect/process/ChildProcessSpawner"
|
|
23
20
|
import {
|
|
24
21
|
ChildProcessSpawner,
|
|
25
22
|
ExitCode,
|
|
26
23
|
make as makeSpawner,
|
|
27
24
|
makeHandle,
|
|
28
25
|
ProcessId
|
|
29
|
-
} from "effect/
|
|
26
|
+
} from "effect/process/ChildProcessSpawner"
|
|
27
|
+
import type * as Scope from "effect/Scope"
|
|
28
|
+
import * as Sink from "effect/Sink"
|
|
29
|
+
import * as Stream from "effect/Stream"
|
|
30
30
|
|
|
31
31
|
const commandString = (command: ChildProcess.Command): string => {
|
|
32
32
|
const { commands } = flattenCommand(command)
|
package/src/DenoClusterHttp.ts
CHANGED
|
@@ -8,25 +8,25 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @since 4.0.0
|
|
10
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 type { Sharding } from "effect/cluster/Sharding"
|
|
17
|
+
import * as ShardingConfig from "effect/cluster/ShardingConfig"
|
|
18
|
+
import * as SqlMessageStorage from "effect/cluster/SqlMessageStorage"
|
|
19
|
+
import * as SqlRunnerStorage from "effect/cluster/SqlRunnerStorage"
|
|
11
20
|
import type * as Config from "effect/Config"
|
|
12
21
|
import * as Effect from "effect/Effect"
|
|
22
|
+
import type * as Etag from "effect/http/Etag"
|
|
23
|
+
import type { HttpPlatform } from "effect/http/HttpPlatform"
|
|
24
|
+
import type { HttpServer } from "effect/http/HttpServer"
|
|
25
|
+
import type { ServeError } from "effect/http/HttpServerError"
|
|
13
26
|
import * as Layer from "effect/Layer"
|
|
14
27
|
import * as Option from "effect/Option"
|
|
15
|
-
import * as
|
|
16
|
-
import
|
|
17
|
-
import * as RunnerHealth from "effect/unstable/cluster/RunnerHealth"
|
|
18
|
-
import * as Runners from "effect/unstable/cluster/Runners"
|
|
19
|
-
import * as RunnerStorage from "effect/unstable/cluster/RunnerStorage"
|
|
20
|
-
import type { Sharding } from "effect/unstable/cluster/Sharding"
|
|
21
|
-
import * as ShardingConfig from "effect/unstable/cluster/ShardingConfig"
|
|
22
|
-
import * as SqlMessageStorage from "effect/unstable/cluster/SqlMessageStorage"
|
|
23
|
-
import * as SqlRunnerStorage from "effect/unstable/cluster/SqlRunnerStorage"
|
|
24
|
-
import type * as Etag from "effect/unstable/http/Etag"
|
|
25
|
-
import type { HttpPlatform } from "effect/unstable/http/HttpPlatform"
|
|
26
|
-
import type { HttpServer } from "effect/unstable/http/HttpServer"
|
|
27
|
-
import type { ServeError } from "effect/unstable/http/HttpServerError"
|
|
28
|
-
import * as RpcSerialization from "effect/unstable/rpc/RpcSerialization"
|
|
29
|
-
import type { SqlClient } from "effect/unstable/sql/SqlClient"
|
|
28
|
+
import * as RpcSerialization from "effect/rpc/RpcSerialization"
|
|
29
|
+
import type { SqlClient } from "effect/sql/SqlClient"
|
|
30
30
|
import { layerK8sHttpClient } from "./DenoClusterSocket.ts"
|
|
31
31
|
import * as DenoCrypto from "./DenoCrypto.ts"
|
|
32
32
|
import * as DenoHttpClient from "./DenoHttpClient.ts"
|
package/src/DenoClusterSocket.ts
CHANGED
|
@@ -9,26 +9,26 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @since 4.0.0
|
|
11
11
|
*/
|
|
12
|
+
import * as K8sHttpClient from "effect/cluster/K8sHttpClient"
|
|
13
|
+
import * as MessageStorage from "effect/cluster/MessageStorage"
|
|
14
|
+
import * as RunnerHealth from "effect/cluster/RunnerHealth"
|
|
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"
|
|
19
|
+
import * as SocketRunner from "effect/cluster/SocketRunner"
|
|
20
|
+
import * as SqlMessageStorage from "effect/cluster/SqlMessageStorage"
|
|
21
|
+
import * as SqlRunnerStorage from "effect/cluster/SqlRunnerStorage"
|
|
12
22
|
import type * as Config from "effect/Config"
|
|
13
23
|
import * as Effect from "effect/Effect"
|
|
14
24
|
import * as FileSystem from "effect/FileSystem"
|
|
15
25
|
import * as Layer from "effect/Layer"
|
|
16
26
|
import * as Option from "effect/Option"
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import
|
|
20
|
-
import * as
|
|
21
|
-
import
|
|
22
|
-
import type { Sharding } from "effect/unstable/cluster/Sharding"
|
|
23
|
-
import * as ShardingConfig from "effect/unstable/cluster/ShardingConfig"
|
|
24
|
-
import * as SocketRunner from "effect/unstable/cluster/SocketRunner"
|
|
25
|
-
import * as SqlMessageStorage from "effect/unstable/cluster/SqlMessageStorage"
|
|
26
|
-
import * as SqlRunnerStorage from "effect/unstable/cluster/SqlRunnerStorage"
|
|
27
|
-
import * as RpcClient from "effect/unstable/rpc/RpcClient"
|
|
28
|
-
import * as RpcSerialization from "effect/unstable/rpc/RpcSerialization"
|
|
29
|
-
import { Socket } from "effect/unstable/socket/Socket"
|
|
30
|
-
import type * as SocketServer from "effect/unstable/socket/SocketServer"
|
|
31
|
-
import type { SqlClient } from "effect/unstable/sql/SqlClient"
|
|
27
|
+
import * as RpcClient from "effect/rpc/RpcClient"
|
|
28
|
+
import * as RpcSerialization from "effect/rpc/RpcSerialization"
|
|
29
|
+
import { Socket } from "effect/socket/Socket"
|
|
30
|
+
import type * as SocketServer from "effect/socket/SocketServer"
|
|
31
|
+
import type { SqlClient } from "effect/sql/SqlClient"
|
|
32
32
|
import * as DenoCrypto from "./DenoCrypto.ts"
|
|
33
33
|
import * as DenoFileSystem from "./DenoFileSystem.ts"
|
|
34
34
|
import * as DenoHttpClient from "./DenoHttpClient.ts"
|
package/src/DenoHttpClient.ts
CHANGED
package/src/DenoHttpPlatform.ts
CHANGED
|
@@ -15,10 +15,10 @@ import * as NodeHttpCompression from "@effect/platform-node-shared/NodeHttpCompr
|
|
|
15
15
|
import { contentType } from "@std/media-types"
|
|
16
16
|
import { extname } from "@std/path"
|
|
17
17
|
import { ByteSliceStream } from "@std/streams"
|
|
18
|
+
import * as Etag from "effect/http/Etag"
|
|
19
|
+
import * as Platform from "effect/http/HttpPlatform"
|
|
20
|
+
import * as Response from "effect/http/HttpServerResponse"
|
|
18
21
|
import * as Layer from "effect/Layer"
|
|
19
|
-
import * as Etag from "effect/unstable/http/Etag"
|
|
20
|
-
import * as Platform from "effect/unstable/http/HttpPlatform"
|
|
21
|
-
import * as Response from "effect/unstable/http/HttpServerResponse"
|
|
22
22
|
import * as DenoFileSystem from "./DenoFileSystem.ts"
|
|
23
23
|
|
|
24
24
|
// gzip and deflate use the native CompressionStream, which does not expose a
|
package/src/DenoHttpServer.ts
CHANGED
|
@@ -11,32 +11,32 @@ import * as Effect from "effect/Effect"
|
|
|
11
11
|
import * as Fiber from "effect/Fiber"
|
|
12
12
|
import type * as FileSystem from "effect/FileSystem"
|
|
13
13
|
import { flow } from "effect/Function"
|
|
14
|
+
import * as Cookies from "effect/http/Cookies"
|
|
15
|
+
import * as Etag from "effect/http/Etag"
|
|
16
|
+
import * as FetchHttpClient from "effect/http/FetchHttpClient"
|
|
17
|
+
import * as Headers from "effect/http/Headers"
|
|
18
|
+
import type * as HttpBody from "effect/http/HttpBody"
|
|
19
|
+
import type { HttpClient } from "effect/http/HttpClient"
|
|
20
|
+
import * as HttpEffect from "effect/http/HttpEffect"
|
|
21
|
+
import * as IncomingMessage from "effect/http/HttpIncomingMessage"
|
|
22
|
+
import type { HttpMethod } from "effect/http/HttpMethod"
|
|
23
|
+
import type { HttpPlatform } from "effect/http/HttpPlatform"
|
|
24
|
+
import * as Server from "effect/http/HttpServer"
|
|
25
|
+
import * as Error from "effect/http/HttpServerError"
|
|
26
|
+
import * as ServerRequest from "effect/http/HttpServerRequest"
|
|
27
|
+
import * as ServerResponse from "effect/http/HttpServerResponse"
|
|
28
|
+
import type * as Multipart from "effect/http/Multipart"
|
|
29
|
+
import * as UrlParams from "effect/http/UrlParams"
|
|
14
30
|
import * as Inspectable from "effect/Inspectable"
|
|
15
31
|
import * as Layer from "effect/Layer"
|
|
32
|
+
import * as NetAddress from "effect/net/NetAddress"
|
|
16
33
|
import * as Option from "effect/Option"
|
|
17
34
|
import type * as Path from "effect/Path"
|
|
18
35
|
import type * as Record from "effect/Record"
|
|
19
36
|
import type * as Schema from "effect/Schema"
|
|
20
37
|
import * as Scope from "effect/Scope"
|
|
38
|
+
import * as Socket from "effect/socket/Socket"
|
|
21
39
|
import * as Stream from "effect/Stream"
|
|
22
|
-
import * as Cookies from "effect/unstable/http/Cookies"
|
|
23
|
-
import * as Etag from "effect/unstable/http/Etag"
|
|
24
|
-
import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient"
|
|
25
|
-
import * as Headers from "effect/unstable/http/Headers"
|
|
26
|
-
import type * as HttpBody from "effect/unstable/http/HttpBody"
|
|
27
|
-
import type { HttpClient } from "effect/unstable/http/HttpClient"
|
|
28
|
-
import * as HttpEffect from "effect/unstable/http/HttpEffect"
|
|
29
|
-
import * as IncomingMessage from "effect/unstable/http/HttpIncomingMessage"
|
|
30
|
-
import type { HttpMethod } from "effect/unstable/http/HttpMethod"
|
|
31
|
-
import type { HttpPlatform } from "effect/unstable/http/HttpPlatform"
|
|
32
|
-
import * as Server from "effect/unstable/http/HttpServer"
|
|
33
|
-
import * as Error from "effect/unstable/http/HttpServerError"
|
|
34
|
-
import * as ServerRequest from "effect/unstable/http/HttpServerRequest"
|
|
35
|
-
import * as ServerResponse from "effect/unstable/http/HttpServerResponse"
|
|
36
|
-
import type * as Multipart from "effect/unstable/http/Multipart"
|
|
37
|
-
import * as UrlParams from "effect/unstable/http/UrlParams"
|
|
38
|
-
import * as NetAddress from "effect/unstable/net/NetAddress"
|
|
39
|
-
import * as Socket from "effect/unstable/socket/Socket"
|
|
40
40
|
import * as Platform from "./DenoHttpPlatform.ts"
|
|
41
41
|
import * as DenoMultipart from "./DenoMultipart.ts"
|
|
42
42
|
import * as DenoServices from "./DenoServices.ts"
|
|
@@ -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 web-standard `Request` from an Effect `HttpServerRequest`.
|
package/src/DenoKeyValueStore.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import type * as Layer from "effect/Layer"
|
|
8
|
-
import * as KeyValueStore from "effect/
|
|
8
|
+
import * as KeyValueStore from "effect/persistence/KeyValueStore"
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Creates a `KeyValueStore` layer backed by `localStorage`, with values stored between sessions.
|
package/src/DenoMultipart.ts
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type * as Effect from "effect/Effect"
|
|
13
13
|
import type { FileSystem } from "effect/FileSystem"
|
|
14
|
+
import * as Multipart from "effect/http/Multipart"
|
|
14
15
|
import type { Path } from "effect/Path"
|
|
15
16
|
import type * as Scope from "effect/Scope"
|
|
16
17
|
import * as Stream from "effect/Stream"
|
|
17
|
-
import * as Multipart from "effect/unstable/http/Multipart"
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Parses a web `Request` body as multipart data and returns a stream of multipart parts.
|
package/src/DenoRedis.ts
CHANGED
|
@@ -15,9 +15,9 @@ import * as Context from "effect/Context"
|
|
|
15
15
|
import * as Effect from "effect/Effect"
|
|
16
16
|
import * as Fn from "effect/Function"
|
|
17
17
|
import * as Layer from "effect/Layer"
|
|
18
|
+
import * as Redis from "effect/persistence/Redis"
|
|
18
19
|
import * as Predicate from "effect/Predicate"
|
|
19
20
|
import * as Record from "effect/Record"
|
|
20
|
-
import * as Redis from "effect/unstable/persistence/Redis"
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Options for connecting to Redis, including a Redis URL or individual
|
package/src/DenoServices.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 DenoChildProcessSpawner from "./DenoChildProcessSpawner.ts"
|
|
19
19
|
import * as DenoCrypto from "./DenoCrypto.ts"
|
|
20
20
|
import * as DenoFileSystem from "./DenoFileSystem.ts"
|
package/src/DenoSocket.ts
CHANGED
|
@@ -19,7 +19,7 @@ import { constVoid } from "effect/Function"
|
|
|
19
19
|
import * as Latch from "effect/Latch"
|
|
20
20
|
import * as Layer from "effect/Layer"
|
|
21
21
|
import * as Scope from "effect/Scope"
|
|
22
|
-
import * as Socket from "effect/
|
|
22
|
+
import * as Socket from "effect/socket/Socket"
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* Options for opening a TCP or Unix connection.
|
package/src/DenoWorker.ts
CHANGED
|
@@ -7,8 +7,8 @@ import * as Deferred from "effect/Deferred"
|
|
|
7
7
|
import * as Effect from "effect/Effect"
|
|
8
8
|
import * as Layer from "effect/Layer"
|
|
9
9
|
import * as Scope from "effect/Scope"
|
|
10
|
-
import * as Worker from "effect/
|
|
11
|
-
import { WorkerError, WorkerReceiveError } from "effect/
|
|
10
|
+
import * as Worker from "effect/workers/Worker"
|
|
11
|
+
import { WorkerError, WorkerReceiveError } from "effect/workers/WorkerError"
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Creates Deno worker layers by combining the default worker platform with a spawner.
|
package/src/DenoWorkerRunner.ts
CHANGED
|
@@ -12,8 +12,8 @@ import { identity } from "effect/Function"
|
|
|
12
12
|
import * as Layer from "effect/Layer"
|
|
13
13
|
import * as Queue from "effect/Queue"
|
|
14
14
|
import * as Scope from "effect/Scope"
|
|
15
|
-
import { WorkerError, WorkerReceiveError } from "effect/
|
|
16
|
-
import * as WorkerRunner from "effect/
|
|
15
|
+
import { WorkerError, WorkerReceiveError } from "effect/workers/WorkerError"
|
|
16
|
+
import * as WorkerRunner from "effect/workers/WorkerRunner"
|
|
17
17
|
|
|
18
18
|
const cachedPorts = new Set<MessagePort>()
|
|
19
19
|
function globalHandleConnect(event: MessageEvent) {
|