Packages

arktype

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

Your version

56 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 2.x · latest line
  2. 2.2.9

    20 Oct 2026
    • A predicate, a second pattern, a Date bound or an array's non-index props is dropped from the schema it constrains

    • bigint, symbol, a non-JSON unit like undefined and any prototype other than Array become {}

    • A variadic tuple with postfix elements keeps its prefix and minItems, but not its items

  3. 2.2.8

    7 Oct 2026

    Validates base58-encoded strings, which use the Bitcoin alphabet (no 0, O, I or l):

  4. 2.2.7

    1 Oct 2026
    • Unions of objects disjoint at a key no longer throw undefined is not a function on Hermes (Expo, React Native), which doesn't preserve Array subclasses through map.

    • scope.module no longer references this from a static arrow function, which Turbopack could compile to undefined.

  5. 2.2.6

    30 Sep 2026

    ArkErrors now has a message getter returning the same human-readable string as summary, so code that handles a failed result like an Error gets a useful message instead of undefined:

  6. 2.2.5

    24 Sep 2026

    Within a regex literal, \\ is now kept verbatim as an escaped backslash rather than collapsed to a single \, which silently changed the meaning of the pattern:

  7. 2.2.3

    7 Jul 2026

    type.fn.raw is documented as an untyped alias of type.fn, but was undefined at runtime and threw type.fn.raw is not a function when called. It now references the underlying parser directly, so it parses, runs, and validates like type.fn without type-level inference. Thanks to @aarsh767.

  8. 2.2.2

    1 Jul 2026

    A private alias referenced only within its own scope is no longer skipped during JIT precompilation, so its optimized traversal is bound correctly instead of falling back to the unbound reference.

  9. 2.2.1

    17 Jun 2026

    See arkregex CHANGELOG for full notes.

  10. 2.2.0

    4 Mar 2026
    • |> string-embeddable pipe operator

    • type.valueOf for TS enums

    • string.hex + string.regex keywords

  11. 2.1.29

    13 Dec 2025

    See arkregex CHANGELOG for full notes.

  12. 2.1.28

    3 Dec 2025
    • Adds support for the new Standard JSON Schema interface (see standardschema.dev)

    • Now accepts a target option and can generate draft-07 in addition to draft-2020-12

  13. 2.1.27

    17 Nov 2025

    The following assignment will now correctly fail (thanks @LukeAbby)🔒

  14. 2.1.26

    10 Nov 2025

    Remove usages of newer prototypes methods like .at() to better support legacy browsers

  15. 2.1.25

    28 Oct 2025
  16. 2.1.24

    28 Oct 2025

    Definitions like the following now throw a descriptive error:

  17. 2.1.23

    14 Oct 2025

    See #1464

  18. 2.1.22

    4 Sep 2025

    See #1496

  19. 2.1.21

    2 Sep 2025

    Adds support for the upcoming StandardJSONSchemaSourceV1 spec (standardschema.dev)

  20. 2.1.20

    16 Apr 2025

    Some ArkType features don't have JSON Schema equivalents. By default, toJsonSchema() will throw in these cases.

  21. 2.1.19

    7 Apr 2025

    Reading the note…

  22. 2.1.18

    7 Apr 2025

    Reading the note…

  23. 2.1.17

    4 Apr 2025

    Reading the note…

  24. 2.1.16

    1 Apr 2025

    Reading the note…

  25. 2.1.15

    27 Mar 2025

    Reading the note…

  26. 2.1.14

    26 Mar 2025

    Reading the note…

  27. 2.1.13

    26 Mar 2025

    Reading the note…

  28. 2.1.12

    24 Mar 2025

    Reading the note…

  29. 2.1.11

    24 Mar 2025

    Reading the note…

  30. 2.1.10

    19 Mar 2025

    Reading the note…

  31. 2.1.9

    8 Mar 2025

    Reading the note…

  32. 2.1.8

    7 Mar 2025

    Reading the note…

  33. 2.1.7

    6 Mar 2025

    Reading the note…

  34. 2.1.6

    5 Mar 2025

    Reading the note…

  35. 2.1.5

    5 Mar 2025

    Reading the note…

  36. 2.1.4

    5 Mar 2025

    Reading the note…

  37. 2.1.3

    4 Mar 2025

    Reading the note…

  38. 2.1.2

    1 Mar 2025

    Reading the note…

  39. 2.1.1

    1 Mar 2025

    Reading the note…

  40. 2.1.0

    23 Feb 2025
    • "assert": accept unknown, throw if none of the cases match

    • "never": accept an input based on inferred cases, throw if none match

    • "reject": accept unknown, return ArkErrors if none of the cases match

  41. 2.0.4

    29 Jan 2025

    Reading the note…

  42. 2.0.3

    26 Jan 2025

    Reading the note…

  43. 2.0.2

    24 Jan 2025

    Reading the note…

  44. 2.0.1

    23 Jan 2025

    Reading the note…

  45. 2.0.0

    17 Jan 2025
    • Initial stable release 🎉

  46. 0.6.x
  47. 0.6.0

    15 Feb 2023

    Reading the note…

  48. 0.5.x
  49. 0.5.1

    14 Feb 2023

    Reading the note…

  50. 0.5.0

    13 Feb 2023

    Reading the note…

  51. 0.4.x
  52. 0.4.0

    13 Feb 2023

    Reading the note…

  53. 0.3.x
  54. 0.3.0

    10 Feb 2023

    Reading the note…

  55. 0.2.x
  56. 0.2.0

    8 Feb 2023

    Reading the note…