@effect/platform-node 4.0.0-beta.73 → 4.0.0-beta.75
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/NodeHttpClient.d.ts +3 -3
- package/dist/NodeHttpClient.js +3 -3
- package/dist/NodeHttpServer.d.ts +3 -3
- package/dist/NodeHttpServer.js +3 -3
- package/dist/NodeRuntime.d.ts +9 -9
- package/dist/NodeRuntime.js +3 -3
- package/dist/Undici.d.ts +2 -2
- package/dist/Undici.js +2 -2
- package/package.json +4 -4
- package/src/NodeHttpClient.ts +3 -3
- package/src/NodeHttpServer.ts +3 -3
- package/src/NodeRuntime.ts +9 -9
- package/src/Undici.ts +2 -2
package/dist/NodeHttpClient.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ Fetch,
|
|
|
60
60
|
/**
|
|
61
61
|
* Layer that provides the fetch-based HTTP client implementation.
|
|
62
62
|
*
|
|
63
|
-
* @category
|
|
63
|
+
* @category fetch
|
|
64
64
|
* @since 4.0.0
|
|
65
65
|
*/
|
|
66
66
|
layer as layerFetch,
|
|
@@ -112,7 +112,7 @@ export declare const dispatcherLayerGlobal: Layer.Layer<Dispatcher>;
|
|
|
112
112
|
* Fiber reference containing default Undici request options applied to requests
|
|
113
113
|
* sent by `makeUndici`.
|
|
114
114
|
*
|
|
115
|
-
* @category
|
|
115
|
+
* @category Undici
|
|
116
116
|
* @since 4.0.0
|
|
117
117
|
*/
|
|
118
118
|
export declare const UndiciOptions: Context.Reference<Partial<Undici.Dispatcher.RequestOptions<null>>>;
|
|
@@ -121,7 +121,7 @@ export declare const UndiciOptions: Context.Reference<Partial<Undici.Dispatcher.
|
|
|
121
121
|
* `Dispatcher`, converts Effect HTTP bodies to Undici bodies, and maps
|
|
122
122
|
* transport and decode failures to `HttpClientError`.
|
|
123
123
|
*
|
|
124
|
-
* @category
|
|
124
|
+
* @category Undici
|
|
125
125
|
* @since 4.0.0
|
|
126
126
|
*/
|
|
127
127
|
export declare const makeUndici: Effect.Effect<Client.HttpClient, never, Dispatcher>;
|
package/dist/NodeHttpClient.js
CHANGED
|
@@ -78,7 +78,7 @@ Fetch,
|
|
|
78
78
|
/**
|
|
79
79
|
* Layer that provides the fetch-based HTTP client implementation.
|
|
80
80
|
*
|
|
81
|
-
* @category
|
|
81
|
+
* @category fetch
|
|
82
82
|
* @since 4.0.0
|
|
83
83
|
*/
|
|
84
84
|
layer as layerFetch,
|
|
@@ -131,7 +131,7 @@ export const dispatcherLayerGlobal = /*#__PURE__*/Layer.sync(Dispatcher)(() => U
|
|
|
131
131
|
* Fiber reference containing default Undici request options applied to requests
|
|
132
132
|
* sent by `makeUndici`.
|
|
133
133
|
*
|
|
134
|
-
* @category
|
|
134
|
+
* @category Undici
|
|
135
135
|
* @since 4.0.0
|
|
136
136
|
*/
|
|
137
137
|
export const UndiciOptions = /*#__PURE__*/Context.Reference("@effect/platform-node/NodeHttpClient/UndiciOptions", {
|
|
@@ -142,7 +142,7 @@ export const UndiciOptions = /*#__PURE__*/Context.Reference("@effect/platform-no
|
|
|
142
142
|
* `Dispatcher`, converts Effect HTTP bodies to Undici bodies, and maps
|
|
143
143
|
* transport and decode failures to `HttpClientError`.
|
|
144
144
|
*
|
|
145
|
-
* @category
|
|
145
|
+
* @category Undici
|
|
146
146
|
* @since 4.0.0
|
|
147
147
|
*/
|
|
148
148
|
export const makeUndici = /*#__PURE__*/Effect.gen(function* () {
|
package/dist/NodeHttpServer.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare const make: (evaluate: LazyArg<Http.Server<typeof Http.IncomingMe
|
|
|
42
42
|
* injecting a `HttpServerRequest` and interrupting the request fiber if the
|
|
43
43
|
* client closes the response before it finishes.
|
|
44
44
|
*
|
|
45
|
-
* @category
|
|
45
|
+
* @category handlers
|
|
46
46
|
* @since 4.0.0
|
|
47
47
|
*/
|
|
48
48
|
export declare const makeHandler: <R, E, App extends Effect.Effect<HttpServerResponse, any, any> = Effect.Effect<HttpServerResponse, E, R>>(httpEffect: Effect.Effect<HttpServerResponse, E, R>, options: {
|
|
@@ -54,7 +54,7 @@ export declare const makeHandler: <R, E, App extends Effect.Effect<HttpServerRes
|
|
|
54
54
|
* exposing the upgraded WebSocket as the request's `upgrade` effect and
|
|
55
55
|
* interrupting the request fiber when the socket closes early.
|
|
56
56
|
*
|
|
57
|
-
* @category
|
|
57
|
+
* @category handlers
|
|
58
58
|
* @since 4.0.0
|
|
59
59
|
*/
|
|
60
60
|
export declare const makeUpgradeHandler: <R, E, App extends Effect.Effect<HttpServerResponse, any, any> = Effect.Effect<HttpServerResponse, E, R>>(lazyWss: Effect.Effect<NodeWS.WebSocketServer>, httpEffect: Effect.Effect<HttpServerResponse, E, R>, options: {
|
|
@@ -106,7 +106,7 @@ export declare const layerConfig: (evaluate: LazyArg<Http.Server>, options: Conf
|
|
|
106
106
|
* Provides a test HTTP server listening on an ephemeral port together with a
|
|
107
107
|
* Fetch-backed `HttpClient` configured for server integration tests.
|
|
108
108
|
*
|
|
109
|
-
* @category
|
|
109
|
+
* @category testing
|
|
110
110
|
* @since 4.0.0
|
|
111
111
|
*/
|
|
112
112
|
export declare const layerTest: Layer.Layer<HttpServer.HttpServer | FileSystem.FileSystem | Path.Path | HttpPlatform.HttpPlatform | Etag.Generator | HttpClient, ServeError, never>;
|
package/dist/NodeHttpServer.js
CHANGED
|
@@ -140,7 +140,7 @@ export const make = /*#__PURE__*/Effect.fnUntraced(function* (evaluate, options)
|
|
|
140
140
|
* injecting a `HttpServerRequest` and interrupting the request fiber if the
|
|
141
141
|
* client closes the response before it finishes.
|
|
142
142
|
*
|
|
143
|
-
* @category
|
|
143
|
+
* @category handlers
|
|
144
144
|
* @since 4.0.0
|
|
145
145
|
*/
|
|
146
146
|
export const makeHandler = (httpEffect, options) => {
|
|
@@ -164,7 +164,7 @@ export const makeHandler = (httpEffect, options) => {
|
|
|
164
164
|
* exposing the upgraded WebSocket as the request's `upgrade` effect and
|
|
165
165
|
* interrupting the request fiber when the socket closes early.
|
|
166
166
|
*
|
|
167
|
-
* @category
|
|
167
|
+
* @category handlers
|
|
168
168
|
* @since 4.0.0
|
|
169
169
|
*/
|
|
170
170
|
export const makeUpgradeHandler = (lazyWss, httpEffect, options) => {
|
|
@@ -305,7 +305,7 @@ export const layerConfig = (evaluate, options) => Layer.mergeAll(Layer.effect(Ht
|
|
|
305
305
|
* Provides a test HTTP server listening on an ephemeral port together with a
|
|
306
306
|
* Fetch-backed `HttpClient` configured for server integration tests.
|
|
307
307
|
*
|
|
308
|
-
* @category
|
|
308
|
+
* @category testing
|
|
309
309
|
* @since 4.0.0
|
|
310
310
|
*/
|
|
311
311
|
export const layerTest = /*#__PURE__*/HttpServer.layerTestClient.pipe(/*#__PURE__*/Layer.provide(/*#__PURE__*/Layer.fresh(FetchHttpClient.layer).pipe(/*#__PURE__*/Layer.provide(/*#__PURE__*/Layer.succeed(FetchHttpClient.RequestInit)({
|
package/dist/NodeRuntime.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ import type * as Runtime from "effect/Runtime";
|
|
|
5
5
|
*
|
|
6
6
|
* **When to use**
|
|
7
7
|
*
|
|
8
|
-
* Use to run
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* Use to run a Node.js application's main Effect with structured error
|
|
9
|
+
* handling, log management, interrupt support, or advanced teardown
|
|
10
|
+
* capabilities.
|
|
11
11
|
*
|
|
12
12
|
* **Details**
|
|
13
13
|
*
|
|
@@ -30,9 +30,9 @@ export declare const runMain: {
|
|
|
30
30
|
*
|
|
31
31
|
* **When to use**
|
|
32
32
|
*
|
|
33
|
-
* Use to run
|
|
34
|
-
*
|
|
35
|
-
*
|
|
33
|
+
* Use to run a Node.js application's main Effect with structured error
|
|
34
|
+
* handling, log management, interrupt support, or advanced teardown
|
|
35
|
+
* capabilities.
|
|
36
36
|
*
|
|
37
37
|
* **Details**
|
|
38
38
|
*
|
|
@@ -58,9 +58,9 @@ export declare const runMain: {
|
|
|
58
58
|
*
|
|
59
59
|
* **When to use**
|
|
60
60
|
*
|
|
61
|
-
* Use to run
|
|
62
|
-
*
|
|
63
|
-
*
|
|
61
|
+
* Use to run a Node.js application's main Effect with structured error
|
|
62
|
+
* handling, log management, interrupt support, or advanced teardown
|
|
63
|
+
* capabilities.
|
|
64
64
|
*
|
|
65
65
|
* **Details**
|
|
66
66
|
*
|
package/dist/NodeRuntime.js
CHANGED
|
@@ -35,9 +35,9 @@ import * as NodeRuntime from "@effect/platform-node-shared/NodeRuntime";
|
|
|
35
35
|
*
|
|
36
36
|
* **When to use**
|
|
37
37
|
*
|
|
38
|
-
* Use to run
|
|
39
|
-
*
|
|
40
|
-
*
|
|
38
|
+
* Use to run a Node.js application's main Effect with structured error
|
|
39
|
+
* handling, log management, interrupt support, or advanced teardown
|
|
40
|
+
* capabilities.
|
|
41
41
|
*
|
|
42
42
|
* **Details**
|
|
43
43
|
*
|
package/dist/Undici.d.ts
CHANGED
package/dist/Undici.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect/platform-node",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.75",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Platform specific implementations for the Node.js runtime",
|
|
7
7
|
"homepage": "https://effect.website",
|
|
@@ -50,18 +50,18 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"mime": "^4.1.0",
|
|
52
52
|
"undici": "^8.2.0",
|
|
53
|
-
"@effect/platform-node-shared": "^4.0.0-beta.
|
|
53
|
+
"@effect/platform-node-shared": "^4.0.0-beta.75"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"ioredis": "^5.7.0",
|
|
57
|
-
"effect": "^4.0.0-beta.
|
|
57
|
+
"effect": "^4.0.0-beta.75"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@testcontainers/mysql": "^11.14.0",
|
|
61
61
|
"@testcontainers/postgresql": "^11.14.0",
|
|
62
62
|
"@testcontainers/redis": "^11.14.0",
|
|
63
63
|
"@types/node": "^25.7.0",
|
|
64
|
-
"effect": "^4.0.0-beta.
|
|
64
|
+
"effect": "^4.0.0-beta.75"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"codegen": "effect-utils codegen",
|
package/src/NodeHttpClient.ts
CHANGED
|
@@ -85,7 +85,7 @@ export {
|
|
|
85
85
|
/**
|
|
86
86
|
* Layer that provides the fetch-based HTTP client implementation.
|
|
87
87
|
*
|
|
88
|
-
* @category
|
|
88
|
+
* @category fetch
|
|
89
89
|
* @since 4.0.0
|
|
90
90
|
*/
|
|
91
91
|
layer as layerFetch,
|
|
@@ -150,7 +150,7 @@ export const dispatcherLayerGlobal: Layer.Layer<Dispatcher> = Layer.sync(Dispatc
|
|
|
150
150
|
* Fiber reference containing default Undici request options applied to requests
|
|
151
151
|
* sent by `makeUndici`.
|
|
152
152
|
*
|
|
153
|
-
* @category
|
|
153
|
+
* @category Undici
|
|
154
154
|
* @since 4.0.0
|
|
155
155
|
*/
|
|
156
156
|
export const UndiciOptions = Context.Reference<Partial<Undici.Dispatcher.RequestOptions>>(
|
|
@@ -163,7 +163,7 @@ export const UndiciOptions = Context.Reference<Partial<Undici.Dispatcher.Request
|
|
|
163
163
|
* `Dispatcher`, converts Effect HTTP bodies to Undici bodies, and maps
|
|
164
164
|
* transport and decode failures to `HttpClientError`.
|
|
165
165
|
*
|
|
166
|
-
* @category
|
|
166
|
+
* @category Undici
|
|
167
167
|
* @since 4.0.0
|
|
168
168
|
*/
|
|
169
169
|
export const makeUndici = Effect.gen(function*() {
|
package/src/NodeHttpServer.ts
CHANGED
|
@@ -182,7 +182,7 @@ export const make = Effect.fnUntraced(function*(
|
|
|
182
182
|
* injecting a `HttpServerRequest` and interrupting the request fiber if the
|
|
183
183
|
* client closes the response before it finishes.
|
|
184
184
|
*
|
|
185
|
-
* @category
|
|
185
|
+
* @category handlers
|
|
186
186
|
* @since 4.0.0
|
|
187
187
|
*/
|
|
188
188
|
export const makeHandler = <
|
|
@@ -224,7 +224,7 @@ export const makeHandler = <
|
|
|
224
224
|
* exposing the upgraded WebSocket as the request's `upgrade` effect and
|
|
225
225
|
* interrupting the request fiber when the socket closes early.
|
|
226
226
|
*
|
|
227
|
-
* @category
|
|
227
|
+
* @category handlers
|
|
228
228
|
* @since 4.0.0
|
|
229
229
|
*/
|
|
230
230
|
export const makeUpgradeHandler = <
|
|
@@ -488,7 +488,7 @@ export const layerConfig = (
|
|
|
488
488
|
* Provides a test HTTP server listening on an ephemeral port together with a
|
|
489
489
|
* Fetch-backed `HttpClient` configured for server integration tests.
|
|
490
490
|
*
|
|
491
|
-
* @category
|
|
491
|
+
* @category testing
|
|
492
492
|
* @since 4.0.0
|
|
493
493
|
*/
|
|
494
494
|
export const layerTest: Layer.Layer<
|
package/src/NodeRuntime.ts
CHANGED
|
@@ -38,9 +38,9 @@ import type * as Runtime from "effect/Runtime"
|
|
|
38
38
|
*
|
|
39
39
|
* **When to use**
|
|
40
40
|
*
|
|
41
|
-
* Use to run
|
|
42
|
-
*
|
|
43
|
-
*
|
|
41
|
+
* Use to run a Node.js application's main Effect with structured error
|
|
42
|
+
* handling, log management, interrupt support, or advanced teardown
|
|
43
|
+
* capabilities.
|
|
44
44
|
*
|
|
45
45
|
* **Details**
|
|
46
46
|
*
|
|
@@ -63,9 +63,9 @@ export const runMain: {
|
|
|
63
63
|
*
|
|
64
64
|
* **When to use**
|
|
65
65
|
*
|
|
66
|
-
* Use to run
|
|
67
|
-
*
|
|
68
|
-
*
|
|
66
|
+
* Use to run a Node.js application's main Effect with structured error
|
|
67
|
+
* handling, log management, interrupt support, or advanced teardown
|
|
68
|
+
* capabilities.
|
|
69
69
|
*
|
|
70
70
|
* **Details**
|
|
71
71
|
*
|
|
@@ -93,9 +93,9 @@ export const runMain: {
|
|
|
93
93
|
*
|
|
94
94
|
* **When to use**
|
|
95
95
|
*
|
|
96
|
-
* Use to run
|
|
97
|
-
*
|
|
98
|
-
*
|
|
96
|
+
* Use to run a Node.js application's main Effect with structured error
|
|
97
|
+
* handling, log management, interrupt support, or advanced teardown
|
|
98
|
+
* capabilities.
|
|
99
99
|
*
|
|
100
100
|
* **Details**
|
|
101
101
|
*
|
package/src/Undici.ts
CHANGED