@effect/platform-node 4.0.0-beta.73 → 4.0.0-beta.74

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.
@@ -60,7 +60,7 @@ Fetch,
60
60
  /**
61
61
  * Layer that provides the fetch-based HTTP client implementation.
62
62
  *
63
- * @category Fetch
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 undici
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 undici
124
+ * @category Undici
125
125
  * @since 4.0.0
126
126
  */
127
127
  export declare const makeUndici: Effect.Effect<Client.HttpClient, never, Dispatcher>;
@@ -78,7 +78,7 @@ Fetch,
78
78
  /**
79
79
  * Layer that provides the fetch-based HTTP client implementation.
80
80
  *
81
- * @category Fetch
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 undici
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 undici
145
+ * @category Undici
146
146
  * @since 4.0.0
147
147
  */
148
148
  export const makeUndici = /*#__PURE__*/Effect.gen(function* () {
@@ -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 Handlers
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 Handlers
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 Testing
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>;
@@ -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 Handlers
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 Handlers
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 Testing
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/Undici.d.ts CHANGED
@@ -16,12 +16,12 @@
16
16
  */
17
17
  import Undici from "undici";
18
18
  /**
19
- * @category undici
19
+ * @category Undici
20
20
  * @since 4.0.0
21
21
  */
22
22
  export * from "undici";
23
23
  /**
24
- * @category undici
24
+ * @category Undici
25
25
  * @since 4.0.0
26
26
  */
27
27
  export default Undici;
package/dist/Undici.js CHANGED
@@ -16,12 +16,12 @@
16
16
  */
17
17
  import Undici from "undici";
18
18
  /**
19
- * @category undici
19
+ * @category Undici
20
20
  * @since 4.0.0
21
21
  */
22
22
  export * from "undici";
23
23
  /**
24
- * @category undici
24
+ * @category Undici
25
25
  * @since 4.0.0
26
26
  */
27
27
  export default Undici;
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.73",
4
+ "version": "4.0.0-beta.74",
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.73"
53
+ "@effect/platform-node-shared": "^4.0.0-beta.74"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "ioredis": "^5.7.0",
57
- "effect": "^4.0.0-beta.73"
57
+ "effect": "^4.0.0-beta.74"
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.73"
64
+ "effect": "^4.0.0-beta.74"
65
65
  },
66
66
  "scripts": {
67
67
  "codegen": "effect-utils codegen",
@@ -85,7 +85,7 @@ export {
85
85
  /**
86
86
  * Layer that provides the fetch-based HTTP client implementation.
87
87
  *
88
- * @category Fetch
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 undici
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 undici
166
+ * @category Undici
167
167
  * @since 4.0.0
168
168
  */
169
169
  export const makeUndici = Effect.gen(function*() {
@@ -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 Handlers
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 Handlers
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 Testing
491
+ * @category testing
492
492
  * @since 4.0.0
493
493
  */
494
494
  export const layerTest: Layer.Layer<
package/src/Undici.ts CHANGED
@@ -17,13 +17,13 @@
17
17
  import Undici from "undici"
18
18
 
19
19
  /**
20
- * @category undici
20
+ * @category Undici
21
21
  * @since 4.0.0
22
22
  */
23
23
  export * from "undici"
24
24
 
25
25
  /**
26
- * @category undici
26
+ * @category Undici
27
27
  * @since 4.0.0
28
28
  */
29
29
  export default Undici