diff --git a/ark/attest/package.json b/ark/attest/package.json index 1702a8e860..addd130320 100644 --- a/ark/attest/package.json +++ b/ark/attest/package.json @@ -1,6 +1,6 @@ { "name": "@ark/attest", - "version": "0.56.1", + "version": "0.56.2", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/fast-check/package.json b/ark/fast-check/package.json index 1c40792be2..01664b08ee 100644 --- a/ark/fast-check/package.json +++ b/ark/fast-check/package.json @@ -1,6 +1,6 @@ { "name": "@ark/fast-check", - "version": "0.0.12", + "version": "0.0.13", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/fs/package.json b/ark/fs/package.json index bc83501d39..5e9df373ce 100644 --- a/ark/fs/package.json +++ b/ark/fs/package.json @@ -1,6 +1,6 @@ { "name": "@ark/fs", - "version": "0.56.0", + "version": "0.56.1", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/json-schema/package.json b/ark/json-schema/package.json index 45a645341b..3d3b070f3d 100644 --- a/ark/json-schema/package.json +++ b/ark/json-schema/package.json @@ -1,6 +1,6 @@ { "name": "@ark/json-schema", - "version": "0.0.5", + "version": "0.0.6", "license": "MIT", "authors": [ { diff --git a/ark/regex/package.json b/ark/regex/package.json index 8b8f358d73..07526d3a6c 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.6", + "version": "0.0.7", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/schema/package.json b/ark/schema/package.json index 34f458402f..64e9a61071 100644 --- a/ark/schema/package.json +++ b/ark/schema/package.json @@ -1,6 +1,6 @@ { "name": "@ark/schema", - "version": "0.56.0", + "version": "0.56.1", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/type/CHANGELOG.md b/ark/type/CHANGELOG.md index 700c0f01b8..0335fed8ed 100644 --- a/ark/type/CHANGELOG.md +++ b/ark/type/CHANGELOG.md @@ -1,5 +1,15 @@ # arktype +## 2.2.2 + +### Fix precompilation of private aliases + +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. + +### Harden `ArkErrors` JSON serialization + +`ArkErrors` doubles as a Standard Schema `issues` array, so `JSON.stringify` no longer assumes every indexed entry is an `ArkError` with a `toJSON` method (e.g. plain issue-shaped entries from other validators). Inherited array methods (`map`, `filter`, `slice`, …) now return a plain `Array` via `Symbol.species`, preventing callbacks that return primitives from producing a malformed `ArkErrors`. + ## 2.2.1 ### Improve regex inference for zero-min quantifiers on numeric patterns diff --git a/ark/type/package.json b/ark/type/package.json index a53202c5e5..9b821b85a0 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.1", + "version": "2.2.2", "license": "MIT", "repository": { "type": "git", diff --git a/ark/util/package.json b/ark/util/package.json index 2ff0ed8c67..f876c39033 100644 --- a/ark/util/package.json +++ b/ark/util/package.json @@ -1,6 +1,6 @@ { "name": "@ark/util", - "version": "0.56.0", + "version": "0.56.1", "license": "MIT", "author": { "name": "David Blass", diff --git a/ark/util/registry.ts b/ark/util/registry.ts index 47a5dd3c75..2056e85161 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.0" +export const arkUtilVersion = "0.56.1" export const initialRegistryContents = { version: arkUtilVersion,