@effect/platform-deno 4.0.0 → 4.0.2

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.
Files changed (108) hide show
  1. package/ai-docs/package.json +2 -2
  2. package/ai-docs/tsconfig.json +2 -1
  3. package/dist/DenoChildProcessSpawner.d.ts +4 -0
  4. package/dist/DenoChildProcessSpawner.d.ts.map +1 -1
  5. package/dist/DenoChildProcessSpawner.js +2 -0
  6. package/dist/DenoChildProcessSpawner.js.map +1 -1
  7. package/dist/DenoClusterHttp.d.ts +3 -0
  8. package/dist/DenoClusterHttp.d.ts.map +1 -1
  9. package/dist/DenoClusterHttp.js +4 -0
  10. package/dist/DenoClusterHttp.js.map +1 -1
  11. package/dist/DenoClusterSocket.d.ts +5 -0
  12. package/dist/DenoClusterSocket.d.ts.map +1 -1
  13. package/dist/DenoClusterSocket.js +5 -0
  14. package/dist/DenoClusterSocket.js.map +1 -1
  15. package/dist/DenoCrypto.d.ts +3 -0
  16. package/dist/DenoCrypto.d.ts.map +1 -1
  17. package/dist/DenoCrypto.js +3 -0
  18. package/dist/DenoCrypto.js.map +1 -1
  19. package/dist/DenoFileSystem.d.ts +1 -0
  20. package/dist/DenoFileSystem.d.ts.map +1 -1
  21. package/dist/DenoFileSystem.js +2 -0
  22. package/dist/DenoFileSystem.js.map +1 -1
  23. package/dist/DenoHttpClient.d.ts +1 -0
  24. package/dist/DenoHttpClient.d.ts.map +1 -1
  25. package/dist/DenoHttpClient.js +1 -0
  26. package/dist/DenoHttpClient.js.map +1 -1
  27. package/dist/DenoHttpPlatform.d.ts +2 -0
  28. package/dist/DenoHttpPlatform.d.ts.map +1 -1
  29. package/dist/DenoHttpPlatform.js +3 -0
  30. package/dist/DenoHttpPlatform.js.map +1 -1
  31. package/dist/DenoHttpServer.d.ts +9 -1
  32. package/dist/DenoHttpServer.d.ts.map +1 -1
  33. package/dist/DenoHttpServer.js +15 -4
  34. package/dist/DenoHttpServer.js.map +1 -1
  35. package/dist/DenoHttpServerRequest.d.ts +2 -0
  36. package/dist/DenoHttpServerRequest.d.ts.map +1 -1
  37. package/dist/DenoHttpServerRequest.js +1 -0
  38. package/dist/DenoHttpServerRequest.js.map +1 -1
  39. package/dist/DenoKeyValueStore.d.ts +3 -0
  40. package/dist/DenoKeyValueStore.d.ts.map +1 -1
  41. package/dist/DenoKeyValueStore.js +3 -0
  42. package/dist/DenoKeyValueStore.js.map +1 -1
  43. package/dist/DenoMultipart.d.ts +3 -0
  44. package/dist/DenoMultipart.d.ts.map +1 -1
  45. package/dist/DenoMultipart.js +2 -0
  46. package/dist/DenoMultipart.js.map +1 -1
  47. package/dist/DenoPath.d.ts +4 -0
  48. package/dist/DenoPath.d.ts.map +1 -1
  49. package/dist/DenoPath.js +4 -0
  50. package/dist/DenoPath.js.map +1 -1
  51. package/dist/DenoRuntime.d.ts +4 -0
  52. package/dist/DenoRuntime.d.ts.map +1 -1
  53. package/dist/DenoRuntime.js +2 -0
  54. package/dist/DenoRuntime.js.map +1 -1
  55. package/dist/DenoServices.d.ts +3 -0
  56. package/dist/DenoServices.d.ts.map +1 -1
  57. package/dist/DenoServices.js +1 -0
  58. package/dist/DenoServices.js.map +1 -1
  59. package/dist/DenoSocket.d.ts +10 -0
  60. package/dist/DenoSocket.d.ts.map +1 -1
  61. package/dist/DenoSocket.js +8 -0
  62. package/dist/DenoSocket.js.map +1 -1
  63. package/dist/DenoSocketServer.d.ts +1 -0
  64. package/dist/DenoSocketServer.d.ts.map +1 -1
  65. package/dist/DenoSocketServer.js +1 -0
  66. package/dist/DenoSocketServer.js.map +1 -1
  67. package/dist/DenoStdio.d.ts +1 -0
  68. package/dist/DenoStdio.d.ts.map +1 -1
  69. package/dist/DenoStdio.js +2 -0
  70. package/dist/DenoStdio.js.map +1 -1
  71. package/dist/DenoTerminal.d.ts +2 -0
  72. package/dist/DenoTerminal.d.ts.map +1 -1
  73. package/dist/DenoTerminal.js +3 -0
  74. package/dist/DenoTerminal.js.map +1 -1
  75. package/dist/DenoWorker.d.ts +2 -0
  76. package/dist/DenoWorker.d.ts.map +1 -1
  77. package/dist/DenoWorker.js +3 -0
  78. package/dist/DenoWorker.js.map +1 -1
  79. package/dist/DenoWorkerRunner.d.ts +3 -0
  80. package/dist/DenoWorkerRunner.d.ts.map +1 -1
  81. package/dist/DenoWorkerRunner.js +4 -0
  82. package/dist/DenoWorkerRunner.js.map +1 -1
  83. package/dist/index.d.ts +21 -0
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +21 -0
  86. package/dist/index.js.map +1 -1
  87. package/package.json +5 -5
  88. package/src/DenoChildProcessSpawner.ts +4 -0
  89. package/src/DenoClusterHttp.ts +4 -0
  90. package/src/DenoClusterSocket.ts +5 -0
  91. package/src/DenoCrypto.ts +3 -0
  92. package/src/DenoFileSystem.ts +2 -0
  93. package/src/DenoHttpClient.ts +1 -0
  94. package/src/DenoHttpPlatform.ts +3 -0
  95. package/src/DenoHttpServer.ts +18 -3
  96. package/src/DenoHttpServerRequest.ts +2 -0
  97. package/src/DenoKeyValueStore.ts +3 -0
  98. package/src/DenoMultipart.ts +3 -0
  99. package/src/DenoPath.ts +4 -0
  100. package/src/DenoRuntime.ts +4 -0
  101. package/src/DenoServices.ts +3 -0
  102. package/src/DenoSocket.ts +10 -0
  103. package/src/DenoSocketServer.ts +1 -0
  104. package/src/DenoStdio.ts +2 -0
  105. package/src/DenoTerminal.ts +3 -0
  106. package/src/DenoWorker.ts +3 -0
  107. package/src/DenoWorkerRunner.ts +4 -0
  108. package/src/index.ts +21 -0
@@ -5,6 +5,7 @@
5
5
  * creates a scoped process-backed `Terminal` service, and `layer` provides the
6
6
  * default terminal service with the standard quit behavior for key input.
7
7
  *
8
+ * @stability unstable
8
9
  * @since 4.0.0
9
10
  */
10
11
  import * as NodeTerminal from "@effect/platform-node-shared/NodeTerminal"
@@ -17,6 +18,7 @@ import type { Terminal, UserInput } from "effect/Terminal"
17
18
  * Creates a scoped `Terminal` service backed by process stdin/stdout, using the
18
19
  * optional predicate to decide when key input should end the input stream.
19
20
  *
21
+ * @stability unstable
20
22
  * @category constructors
21
23
  * @since 4.0.0
22
24
  */
@@ -26,6 +28,7 @@ export const make: (shouldQuit?: (input: UserInput) => boolean) => Effect<Termin
26
28
  * Provides the default process-backed `Terminal` service, ending key input on
27
29
  * the default quit keys.
28
30
  *
31
+ * @stability unstable
29
32
  * @category layers
30
33
  * @since 4.0.0
31
34
  */
package/src/DenoWorker.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Parent-side Deno platform for Effect workers.
3
3
  *
4
+ * @stability unstable
4
5
  * @since 4.0.0
5
6
  */
6
7
  import * as Deferred from "effect/Deferred"
@@ -13,6 +14,7 @@ import { WorkerError, WorkerReceiveError } from "effect/workers/WorkerError"
13
14
  /**
14
15
  * Creates Deno worker layers by combining the default worker platform with a spawner.
15
16
  *
17
+ * @stability unstable
16
18
  * @category layers
17
19
  * @since 4.0.0
18
20
  */
@@ -27,6 +29,7 @@ export const layer = (
27
29
  /**
28
30
  * Layer that provides the Deno worker platform.
29
31
  *
32
+ * @stability unstable
30
33
  * @category layers
31
34
  * @since 4.0.0
32
35
  */
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Runner-side Deno platform for Effect worker handlers using the standard `MessagePort` API.
3
3
  *
4
+ * @stability unstable
4
5
  * @since 4.0.0
5
6
  */
6
7
  import * as Cause from "effect/Cause"
@@ -26,6 +27,7 @@ if (typeof self !== "undefined" && "onconnect" in self) {
26
27
  /**
27
28
  * Creates a worker runner platform over a `MessagePort`.
28
29
  *
30
+ * @stability unstable
29
31
  * @category constructors
30
32
  * @since 4.0.0
31
33
  */
@@ -158,6 +160,7 @@ export const make = (self: MessagePort): WorkerRunner.WorkerRunnerPlatform["Serv
158
160
  /**
159
161
  * Layer that provides the worker runner platform using the global worker scope.
160
162
  *
163
+ * @stability unstable
161
164
  * @category layers
162
165
  * @since 4.0.0
163
166
  */
@@ -168,6 +171,7 @@ export const layer: Layer.Layer<WorkerRunner.WorkerRunnerPlatform> = Layer.sync(
168
171
  /**
169
172
  * Layer that provides the worker runner platform using the supplied `MessagePort`.
170
173
  *
174
+ * @stability unstable
171
175
  * @category layers
172
176
  * @since 4.0.0
173
177
  */
package/src/index.ts CHANGED
@@ -1,65 +1,78 @@
1
1
  /**
2
+ * @stability unstable
2
3
  * @since 4.0.0
3
4
  */
4
5
 
5
6
  // @barrel: Auto-generated exports. Do not edit manually.
6
7
 
7
8
  /**
9
+ * @stability unstable
8
10
  * @since 4.0.0
9
11
  */
10
12
  export * as DenoChildProcessSpawner from "./DenoChildProcessSpawner.ts"
11
13
 
12
14
  /**
15
+ * @stability unstable
13
16
  * @since 4.0.0
14
17
  */
15
18
  export * as DenoClusterHttp from "./DenoClusterHttp.ts"
16
19
 
17
20
  /**
21
+ * @stability unstable
18
22
  * @since 4.0.0
19
23
  */
20
24
  export * as DenoClusterSocket from "./DenoClusterSocket.ts"
21
25
 
22
26
  /**
27
+ * @stability unstable
23
28
  * @since 4.0.0
24
29
  */
25
30
  export * as DenoCrypto from "./DenoCrypto.ts"
26
31
 
27
32
  /**
33
+ * @stability unstable
28
34
  * @since 4.0.0
29
35
  */
30
36
  export * as DenoFileSystem from "./DenoFileSystem.ts"
31
37
 
32
38
  /**
39
+ * @stability unstable
33
40
  * @since 4.0.0
34
41
  */
35
42
  export * as DenoHttpClient from "./DenoHttpClient.ts"
36
43
 
37
44
  /**
45
+ * @stability unstable
38
46
  * @since 4.0.0
39
47
  */
40
48
  export * as DenoHttpPlatform from "./DenoHttpPlatform.ts"
41
49
 
42
50
  /**
51
+ * @stability unstable
43
52
  * @since 4.0.0
44
53
  */
45
54
  export * as DenoHttpServer from "./DenoHttpServer.ts"
46
55
 
47
56
  /**
57
+ * @stability unstable
48
58
  * @since 4.0.0
49
59
  */
50
60
  export * as DenoHttpServerRequest from "./DenoHttpServerRequest.ts"
51
61
 
52
62
  /**
63
+ * @stability unstable
53
64
  * @since 4.0.0
54
65
  */
55
66
  export * as DenoKeyValueStore from "./DenoKeyValueStore.ts"
56
67
 
57
68
  /**
69
+ * @stability unstable
58
70
  * @since 4.0.0
59
71
  */
60
72
  export * as DenoMultipart from "./DenoMultipart.ts"
61
73
 
62
74
  /**
75
+ * @stability unstable
63
76
  * @since 4.0.0
64
77
  */
65
78
  export * as DenoPath from "./DenoPath.ts"
@@ -71,41 +84,49 @@ export * as DenoPath from "./DenoPath.ts"
71
84
  export * as DenoRedis from "./DenoRedis.ts"
72
85
 
73
86
  /**
87
+ * @stability unstable
74
88
  * @since 4.0.0
75
89
  */
76
90
  export * as DenoRuntime from "./DenoRuntime.ts"
77
91
 
78
92
  /**
93
+ * @stability unstable
79
94
  * @since 4.0.0
80
95
  */
81
96
  export * as DenoServices from "./DenoServices.ts"
82
97
 
83
98
  /**
99
+ * @stability unstable
84
100
  * @since 4.0.0
85
101
  */
86
102
  export * as DenoSocket from "./DenoSocket.ts"
87
103
 
88
104
  /**
105
+ * @stability unstable
89
106
  * @since 4.0.0
90
107
  */
91
108
  export * as DenoSocketServer from "./DenoSocketServer.ts"
92
109
 
93
110
  /**
111
+ * @stability unstable
94
112
  * @since 4.0.0
95
113
  */
96
114
  export * as DenoStdio from "./DenoStdio.ts"
97
115
 
98
116
  /**
117
+ * @stability unstable
99
118
  * @since 4.0.0
100
119
  */
101
120
  export * as DenoTerminal from "./DenoTerminal.ts"
102
121
 
103
122
  /**
123
+ * @stability unstable
104
124
  * @since 4.0.0
105
125
  */
106
126
  export * as DenoWorker from "./DenoWorker.ts"
107
127
 
108
128
  /**
129
+ * @stability unstable
109
130
  * @since 4.0.0
110
131
  */
111
132
  export * as DenoWorkerRunner from "./DenoWorkerRunner.ts"