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

v0.55.0

Compare
Choose a tag to compare
@github-actions github-actions released this 20 Dec 13:22
· 14 commits to main since this release
c4de61a

Minor Changes

  • #649 d80b933 Thanks @gcanti! - Arbitrary: should throw on declarations without annotations

  • #669 294dfad Thanks @gcanti! - Schema: refactor parseJson to replace ParseJson and fromJson

  • #649 d80b933 Thanks @gcanti! - Schema: refactor S.optional API.

    Upgrade Guide:

    • S.optional(schema, { exact: true }) replaces the old S.optional(schema)
    • S.optional(schema, { exact: true, default: () => A }) replaces the old S.optional(schema).withDefault(() => A)
    • S.optional(schema, { exact: true, as: "Option" }) replaces the old S.optional(schema).toOption()
  • #649 d80b933 Thanks @gcanti! - Schema: replace propertySignature constructor with propertySignatureAnnotations combinator

  • #669 294dfad Thanks @gcanti! - Schema: simplify split parameters to only accept separator

  • #669 294dfad Thanks @gcanti! - Schema: remove useless combinators

    • lowercase
    • uppercase
    • trim
    • numberFromString
    • symbolFromString
    • bigintFromString
    • bigintFromNumber
    • secret
    • durationFromHrTime
    • durationFromMillis
    • durationFromNanos
    • uint8ArrayFromNumbers
    • base64
    • base64url
    • hex
    • dateFromString
    • bigDecimalFromNumber
    • bigDecimalFromString
    • not

Patch Changes