Releases: sukovanej/effect-http
Releases · sukovanej/effect-http
v0.1.1
v0.1.0
Minor Changes
-
2eb96bb: Rewrite endpoint handling using
Runtime
.Http.express
,Http.listen
and newHttp.listenExpress
functions now
returnEffect
instead of promise.- Options object of
Http.express
was extended byvalidationErrorFormatter
field
that configures how are HTTP validation errors formatted. Http.listen
andHttp.listenExpress
options object was extended by
port
andlogger
fields.Http.setLogger
was removed in favor of the configuration above.Http.provideService
andHttp.provideLayer
were removed because the context
is now propagated from the top-level effect. Simply provide the context for the
app effect instead. Also, scoped services are now guaranteed to be safely released
when the whole app closes - currently, on SIGTERM and SIGINT signals.
pipe( server, Http.listen({ port: 3000 }), Effect.provideLayer(layer), Effect.runPromise, );
Patch Changes
- 12b70ae: ExampleServer internal and public modules