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

latest releases: @effect/sql-sqlite-node@0.19.5, @effect/sql-sqlite-react-native@0.21.5, @effect/sql-sqlite-wasm@0.18.5...
7 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.