Skip to content

Releases: arktypeio/arktype

@arktype/util@0.0.45

24 May 22:00
cd6cff2

Choose a tag to compare

Patch Changes

  • #971 79c2b27 Thanks @ssalbdivad! - Provide recommended tsconfig via tsconfig.base.json, e.g.:

    tsconfig.json

    {
    	"extends": "@arktype/util/tsconfig.base.json",
    	// your settings here
    }

@arktype/schema@0.1.7

24 May 22:00
cd6cff2

Choose a tag to compare

Patch Changes

@arktype/attest@0.7.7

24 May 22:00
cd6cff2

Choose a tag to compare

Patch Changes

  • Updated dependencies [79c2b27]:
    • @arktype/util@0.0.45
    • arktype@2.0.0-dev.15

arktype@2.0.0-dev.15

24 May 22:00
cd6cff2

Choose a tag to compare

arktype@2.0.0-dev.15 Pre-release
Pre-release
  • Fix a crash when piping to nested paths (see #968)
  • Fix inferred input type of .narrow (see #969)
  • Throw on a pipe between disjoint types, e.g.:
// Now correctly throws ParseError: Intersection of <3 and >5 results in an unsatisfiable type
const t = type("number>5").pipe(type("number<3"))

// Previously returned a Disjoint object
  • Mention the actual value when describing an intersection error:
const evenGreaterThan5 = type({ value: "number%2>5" })
const out = evenGreaterThan5(3)
if (out instanceof type.errors) {
	/*
    value 3 must be...
      • a multiple of 2
      • at most 5
    */
	console.log(out.summary)
}

// was previously "value must be..."

Thanks @TizzySaurus for reporting the last two on our Discord!

#971

@arktype/util@0.0.44

22 May 22:32
5aa6a73

Choose a tag to compare

Patch Changes

@arktype/schema@0.1.6

22 May 22:32
5aa6a73

Choose a tag to compare

Patch Changes

  • 8cd0807 - Initial changeset

  • Updated dependencies [8cd0807]:

    • @arktype/util@0.0.44

@arktype/fs@0.0.20

22 May 22:31
5aa6a73

Choose a tag to compare

Patch Changes

@arktype/attest@0.7.6

22 May 22:31
5aa6a73

Choose a tag to compare

Patch Changes

  • 8cd0807 - Initial changeset

  • Updated dependencies [8cd0807]:

    • @arktype/fs@0.0.20
    • @arktype/util@0.0.44
    • arktype@2.0.0-dev.14