github Effect-TS/effect @effect/printer@0.32.0

latest releases: @effect/platform-node@0.60.3, @effect/vitest@0.10.2, @effect/typeclass@0.27.2...
5 months ago

Minor Changes

  • #2378 0dd62a7 Thanks @IMax153! - Removes the Render module and consolidates Doc rendering methods

    This PR removes the Render module and consolidates all document rendering methods into a single method.

    Before:

    import * as Doc from "@effect/printer/Doc";
    import * as Render from "@effect/printer/Render";
    
    const doc = Doc.cat(Doc.text("Hello, "), Doc.text("World!"));
    
    console.log(Render.prettyDefault(doc));

    After:

    import * as Doc from "@effect/printer/Doc";
    
    const doc = Doc.cat(Doc.text("Hello, "), Doc.text("World!"));
    
    console.log(Doc.render(doc, { style: "pretty" }));

Patch Changes

Don't miss a new effect release

NewReleases is sending notifications on new releases.