github Effect-TS/effect @effect/platform-node@0.56.5

latest releases: @effect/typeclass@0.29.14, @effect/vitest@0.13.14, @effect/sql-sqlite-wasm@0.20.5...
3 months ago

Patch Changes

  • #3409 056b710 Thanks @sukovanej! - Add NodeHttpServer.layerTest.

    import { HttpClientRequest, HttpRouter, HttpServer } from "@effect/platform";
    import { NodeHttpServer } from "@effect/platform-node";
    import { expect, it } from "@effect/vitest";
    import { Effect } from "effect";
    
    it.scoped("test", () =>
      Effect.gen(function* () {
        yield* HttpServer.serveEffect(HttpRouter.empty);
        const response = yield* HttpClientRequest.get("/");
        expect(response.status, 404);
      }).pipe(Effect.provide(NodeHttpServer.layerTest)),
    );
  • Updated dependencies [056b710]:

    • @effect/platform@0.61.5
    • @effect/platform-node-shared@0.11.5

Don't miss a new effect release

NewReleases is sending notifications on new releases.