github Effect-TS/effect @effect/schema@0.67.19

Patch Changes

  • #2916 cd7496b Thanks @gcanti! - Add support for AST.Literal in Schema.TemplateLiteral, closes #2913

  • #2915 349a036 Thanks @gcanti! - Align constructors arguments:

    • Refactor Class interface to accept options for disabling validation
    • Refactor TypeLiteral interface to accept options for disabling validation
    • Refactor refine interface to accept options for disabling validation
    • Refactor BrandSchema interface to accept options for disabling validation

    Example

    import { Schema } from "@effect/schema";
    
    const BrandedNumberSchema = Schema.Number.pipe(
      Schema.between(1, 10),
      Schema.brand("MyNumber"),
    );
    
    BrandedNumberSchema.make(20, { disableValidation: true }); // Bypasses validation and creates the instance without errors
  • Updated dependencies [8c5d280, 6ba6d26, 3f28bf2, 5817820]:

    • effect@3.2.9

Don't miss a new effect release

NewReleases is sending notifications on new releases.