From 468b1cae21ebcbde1d8c00a3714b5129b931e819 Mon Sep 17 00:00:00 2001 From: David Blass Date: Tue, 7 Jul 2026 10:11:04 -0400 Subject: [PATCH] release: arktype 2.2.3 + dependents Bumps all publishable packages and documents the fixes merged since 2.2.2: - fix type.fn.raw throwing at runtime (#1631, @aarsh767) - anchor versioned UUID validation (#1602, @WolfieLeader) - fix inferred output of declared morphs (#1579, @eralmansouri) - allow Object.prototype method names as keys (#1586, @kaigritun) Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01Qk4c4vPUecBDYbd4p3yE1H --- ark/attest/package.json | 2 +- ark/fast-check/package.json | 2 +- ark/fs/package.json | 2 +- ark/json-schema/package.json | 2 +- ark/regex/package.json | 2 +- ark/schema/package.json | 2 +- ark/type/CHANGELOG.md | 18 ++++++++++++++++++ ark/type/package.json | 2 +- ark/util/package.json | 2 +- ark/util/registry.ts | 2 +- 10 files changed, 27 insertions(+), 9 deletions(-) diff --git a/ark/attest/package.json b/ark/attest/package.json index addd13032..112b1b52d 100644 --- a/ark/attest/package.json +++ b/ark/attest/package.json @@ -1,6 +1,6 @@ { "name": "@ark/attest", - "version": "0.56.2", + "version": "0.56.3", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/fast-check/package.json b/ark/fast-check/package.json index 01664b08e..fece0f5a3 100644 --- a/ark/fast-check/package.json +++ b/ark/fast-check/package.json @@ -1,6 +1,6 @@ { "name": "@ark/fast-check", - "version": "0.0.13", + "version": "0.0.14", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/fs/package.json b/ark/fs/package.json index 5e9df373c..d3304b445 100644 --- a/ark/fs/package.json +++ b/ark/fs/package.json @@ -1,6 +1,6 @@ { "name": "@ark/fs", - "version": "0.56.1", + "version": "0.56.2", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/json-schema/package.json b/ark/json-schema/package.json index 3d3b070f3..38402a2e6 100644 --- a/ark/json-schema/package.json +++ b/ark/json-schema/package.json @@ -1,6 +1,6 @@ { "name": "@ark/json-schema", - "version": "0.0.6", + "version": "0.0.7", "license": "MIT", "authors": [ { diff --git a/ark/regex/package.json b/ark/regex/package.json index 07526d3a6..9e43dc52d 100644 --- a/ark/regex/package.json +++ b/ark/regex/package.json @@ -1,7 +1,7 @@ { "name": "arkregex", "description": "A drop-in replacement for new RegExp() with types", - "version": "0.0.7", + "version": "0.0.8", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/schema/package.json b/ark/schema/package.json index 64e9a6107..b3da5cd43 100644 --- a/ark/schema/package.json +++ b/ark/schema/package.json @@ -1,6 +1,6 @@ { "name": "@ark/schema", - "version": "0.56.1", + "version": "0.56.2", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/type/CHANGELOG.md b/ark/type/CHANGELOG.md index 0335fed8e..ee542f153 100644 --- a/ark/type/CHANGELOG.md +++ b/ark/type/CHANGELOG.md @@ -1,5 +1,23 @@ # arktype +## 2.2.3 + +### Fix `type.fn.raw` throwing at runtime + +`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. + +### Anchor versioned UUID validation + +`string.uuid` no longer accepts strings that merely contain a UUID. The internal `#versioned` pattern is now anchored like the individual version keywords, so leading or trailing content is rejected. Thanks to @WolfieLeader. + +### Fix inferred output of `declare`d morphs + +The output side of a `declare`d definition now wraps its preinferred value in `Out<...>`, matching the inference of the equivalent definition without `declare`. Thanks to @eralmansouri. + +### Allow `Object.prototype` method names as keys + +Keys like `constructor`, `toString`, and `hasOwnProperty` are no longer incorrectly reported as duplicate keys, since duplicate detection now uses a prototype-free record. Thanks to @kaigritun. + ## 2.2.2 ### Fix precompilation of private aliases diff --git a/ark/type/package.json b/ark/type/package.json index 9b821b85a..714c1028b 100644 --- a/ark/type/package.json +++ b/ark/type/package.json @@ -1,7 +1,7 @@ { "name": "arktype", "description": "TypeScript's 1:1 validator, optimized from editor to runtime", - "version": "2.2.2", + "version": "2.2.3", "license": "MIT", "repository": { "type": "git", diff --git a/ark/util/package.json b/ark/util/package.json index f876c3903..11bea8093 100644 --- a/ark/util/package.json +++ b/ark/util/package.json @@ -1,6 +1,6 @@ { "name": "@ark/util", - "version": "0.56.1", + "version": "0.56.2", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/util/registry.ts b/ark/util/registry.ts index 2056e8516..31c8f4880 100644 --- a/ark/util/registry.ts +++ b/ark/util/registry.ts @@ -8,7 +8,7 @@ import { FileConstructor, objectKindOf } from "./objectKinds.ts" // recent node versions (https://nodejs.org/api/esm.html#json-modules). // For now, we assert this matches the package.json version via a unit test. -export const arkUtilVersion = "0.56.1" +export const arkUtilVersion = "0.56.2" export const initialRegistryContents = { version: arkUtilVersion,