Packages

arktype

2.2.9 · 20 Oct 2026MIT3.4M / weekRepositoryHomepagenpmAtom feed

Your version

2.0.3

26 Jan 2025Where it was published

2.2.9 is the newest release of 2.x.

In short

3 fixed1 changed

Release note

The section about arktype of a note shared by several packages.

  • Fix an issue causing some unions with onUndeclaredKey: "reject" to reject valid data

  • Fix an issue where Types containing arrays were incorrectly treated as including morphs, leading to some unnecessary validation overhead

  • Fix an issue causing objects containing functions like () => never that are subtypes of InferredMorph to be incorrectly treated as morphs

  • Fail early with a ParseError if instanceOf operand is not actually a function at runtime