Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Releases: Effect-TS/schema

v0.51.5

05 Dec 15:03
7bc2941
Compare
Choose a tag to compare

Patch Changes

  • #629 f690ebe Thanks @gcanti! - Schema: add filter overloading returning Option

    For more complex scenarios, you can return an Option<ParseError> type instead of a boolean. In this context, None indicates success, and Some(error) rejects the input with a specific error

v0.51.4

04 Dec 22:46
5c099c4
Compare
Choose a tag to compare

Patch Changes

v0.51.3

04 Dec 08:46
fa60b7b
Compare
Choose a tag to compare

Patch Changes

v0.51.2

03 Dec 18:05
d0e422b
Compare
Choose a tag to compare

Patch Changes

v0.51.1

01 Dec 02:10
d12e9c4
Compare
Choose a tag to compare

Patch Changes

v0.51.0

30 Nov 21:33
3110310
Compare
Choose a tag to compare

Minor Changes

Patch Changes

v0.50.0

28 Nov 17:51
4ca0e28
Compare
Choose a tag to compare

Minor Changes

  • #593 cbc2e3f Thanks @gcanti! - ParseResult: merge failure APIs into fail

  • #607 e85aefb Thanks @gcanti! - Bug Fix: align index signature behaviour to TypeScript

  • #589 3b99569 Thanks @gcanti! - - remove ValidDate (which is just an alias of Date)

    • add DateFromString (decodes from string, output: possibly invalid Date)
  • #593 cbc2e3f Thanks @gcanti! - ParseResult: rename success to succeed (standard naming)

Patch Changes

  • #597 caeed29 Thanks @jessekelly881! - added BigDecimal

  • #585 5b27f03 Thanks @gcanti! - improve JSON Schema output:

    • rename dependencies to $defs
    • remove "type" from const schemas
    • use "oneOf" for enums and add "title"s
    • add support for record(pattern, number)
    • add "$id" and "$comment" properties
    • literals should be converted to enum instead of anyOf, closes #579
  • #603 8e21d7e Thanks @gcanti! - TreeFormatter: enhance formatActual for data types with a custom toString implementation, closes #600

v0.49.4

22 Nov 22:51
b39371c
Compare
Choose a tag to compare

Patch Changes

v0.49.3

22 Nov 18:35
7b3253c
Compare
Choose a tag to compare

Patch Changes

v0.49.2

22 Nov 08:46
a907cfa
Compare
Choose a tag to compare

Patch Changes

  • #587 64fe91f Thanks @gcanti! - DateFromSelf: its arbitrary should also generate "Invalid Date"s