github Effect-TS/effect @effect/platform@0.45.4

Patch Changes

  • #2174 abcb7d9 Thanks @tim-smart! - add ServerResponse.html/htmlStream api

    It uses the Template module to create html responses

    Example:

    import { Effect } from "effect";
    import * as Http from "@effect/platform/HttpServer";
    
    Http.response.html`<html>${Effect.succeed(123)}</html>`;
  • #2174 abcb7d9 Thanks @tim-smart! - add Template module to platform

    The Template module can be used to create effectful text templates.

    Example:

    import { Effect } from "effect";
    import { Template } from "@effect/platform";
    
    const t = Template.make`<html>${Effect.succeed(123)}</html>`;
    
    Effect.runSync(t); // returns "<html>123</html>"
  • Updated dependencies [bc8404d, 2c5cbcd, 6565916]:

    • effect@2.3.7
    • @effect/schema@0.62.8

Don't miss a new effect release

NewReleases is sending notifications on new releases.