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

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

Patch Changes

  • #2347 595140a Thanks @gcanti! - add back BrandSchema and introduce asBrandSchema utility

  • #2353 5f5fcd9 Thanks @tim-smart! - make optional dual:

    import * as S from "@effect/schema/Schema";
    
    const schema = S.struct({
      a: S.string.pipe(S.optional()),
    });
    
    // same as:
    const schema2 = S.struct({
      a: S.optional(S.string),
    });
  • #2356 7a45ad0 Thanks @gcanti! - make partial dual:

    import * as S from "@effect/schema/Schema";
    
    const schema = S.struct({ a: S.string }).pipe(S.partial());
    
    // same as:
    const schema2 = S.partial(S.struct({ a: S.string }));
  • #2339 5c3b1cc Thanks @gcanti! - use Simplify from effect/Types in TaggedClass, TaggedError and TaggedRequest to avoid errors in Schema.d.ts, closes #1841

  • #2343 6f7dfc9 Thanks @gcanti! - improve pick/omit and add support for Class

  • #2337 88b8583 Thanks @gcanti! - JSONSchema: allow overrides through annotations, closes #1823

  • #2348 cb20824 Thanks @gcanti! - feedback: expose Class API identifiers

  • #2350 a45a525 Thanks @gcanti! - refactor unions: remove sorting, flattening, and unification

  • Updated dependencies [bb0b69e, 6b20bad, 4e64e9b, 3851a02, 5f5fcd9, 814e5b8]:

    • effect@2.4.8

Don't miss a new effect release

NewReleases is sending notifications on new releases.