Skip to content

Commit 66ea63d

Browse files
ssalbdivadclaude
andcommitted
release: arktype 2.2.2 + dependents
Bug fixes from #1632 (private alias precompilation) and #1619 (ArkErrors JSON.stringify hardening), plus the #1620 Node 26 build fix already on main. Patch-bump the core published packages. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 10e4ce3 commit 66ea63d

9 files changed

Lines changed: 18 additions & 8 deletions

File tree

ark/attest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ark/attest",
3-
"version": "0.56.1",
3+
"version": "0.56.2",
44
"license": "MIT",
55
"author": {
66
"name": "David Blass",

ark/fast-check/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ark/fast-check",
3-
"version": "0.0.12",
3+
"version": "0.0.13",
44
"license": "MIT",
55
"author": {
66
"name": "David Blass",

ark/fs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ark/fs",
3-
"version": "0.56.0",
3+
"version": "0.56.1",
44
"license": "MIT",
55
"author": {
66
"name": "David Blass",

ark/json-schema/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ark/json-schema",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"license": "MIT",
55
"authors": [
66
{

ark/regex/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "arkregex",
33
"description": "A drop-in replacement for new RegExp() with types",
4-
"version": "0.0.6",
4+
"version": "0.0.7",
55
"license": "MIT",
66
"author": {
77
"name": "David Blass",

ark/schema/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ark/schema",
3-
"version": "0.56.0",
3+
"version": "0.56.1",
44
"license": "MIT",
55
"author": {
66
"name": "David Blass",

ark/type/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# arktype
22

3+
## 2.2.2
4+
5+
### Fix precompilation of private aliases
6+
7+
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.
8+
9+
### Harden `ArkErrors` JSON serialization
10+
11+
`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`.
12+
313
## 2.2.1
414

515
### Improve regex inference for zero-min quantifiers on numeric patterns

ark/type/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "arktype",
33
"description": "TypeScript's 1:1 validator, optimized from editor to runtime",
4-
"version": "2.2.1",
4+
"version": "2.2.2",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

ark/util/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ark/util",
3-
"version": "0.56.0",
3+
"version": "0.56.1",
44
"license": "MIT",
55
"author": {
66
"name": "David Blass",

0 commit comments

Comments
 (0)