Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Releases: Effect-TS/schema

v0.19.3

19 May 13:17
c81c664
Compare
Choose a tag to compare

Patch Changes

  • #285 39d3c55 Thanks @gcanti! - AST: memoize createLazy

  • #285 39d3c55 Thanks @gcanti! - Arbitrary: fix maximum call stack size exceeded when producing nested arrays and records that are too deep

v0.19.2

17 May 12:56
5bb5525
Compare
Choose a tag to compare

Patch Changes

v0.19.1

17 May 09:37
1d5bb36
Compare
Choose a tag to compare

Patch Changes

v0.19.0

12 May 07:44
71c7569
Compare
Choose a tag to compare

Minor Changes

v0.18.0

10 May 07:15
eb51527
Compare
Choose a tag to compare

Minor Changes

p.s.

Here's how to define getPropertySignatures in userland:

import * as AST from '@effect/schema/AST'
import { Schema, make } from '@effect/schema/Schema'

export const getPropertySignatures = <I extends { [K in keyof A]: any }, A>(
  schema: Schema<I, A>
): { [K in keyof A]: Schema<I[K], A[K]> } => {
  const out: Record<PropertyKey, Schema<any>> = {}
  const propertySignatures = AST.getPropertySignatures(schema.ast)
  for (let i = 0; i < propertySignatures.length; i++) {
    const propertySignature = propertySignatures[i]
    out[propertySignature.name] = make(propertySignature.type)
  }
  return out as any
}

v0.17.5

08 May 16:03
cf86407
Compare
Choose a tag to compare

Patch Changes

  • #272 d91a7a7 Thanks @gcanti! - pick / omit: add support for structs with property signature transformations

v0.17.4

04 May 13:47
9cdb0ea
Compare
Choose a tag to compare

Patch Changes

v0.17.3

01 May 17:04
325ea37
Compare
Choose a tag to compare

Patch Changes

v0.17.2

24 Apr 17:07
c328b84
Compare
Choose a tag to compare

Patch Changes

v0.17.1

24 Apr 16:46
6a39482
Compare
Choose a tag to compare

Patch Changes

  • #256 162e099 Thanks @gcanti! - leverage annotations (e.g. maxLength, int, between) to improve fast-check performance