Skip to content

chore(deps): bump arktype from 2.2.3 to 2.2.5 - #5754

Merged
svozza merged 1 commit into
mainfrom
dependabot/npm_and_yarn/main/arktype-2.2.5
Sep 28, 2026
Merged

svozza merged 1 commit into
mainfrom
dependabot/npm_and_yarn/main/arktype-2.2.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Bumps arktype from 2.2.3 to 2.2.5.

Changelog

Sourced from arktype's changelog.

2.2.5

Preserve escaped backslashes in regex literals

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:

// previously parsed as /\d/, matching a digit
// now matches a literal backslash followed by "d"
const T = type("/\\\\d/")

String literals are unaffected. If a definition relied on the old behavior, write the intended escape directly (e.g. "/\\d/" for a digit). Thanks to @​spokodev.

Fix recursive discriminated unions referenced from a Record

A cyclic alias referenced through Record<string, ...> could cause valid values to be rejected, e.g. an array branch failing with must be an array (was object). Bootstrapping alias references no longer overwrites references that were already resolved. This was a regression introduced in 2.2.2. Thanks to @​xianjianlf2.

Prevent a crash validating unions of object arrays

Inside a union branch, array validation now stops at the first failing element instead of continuing to traverse elements whose basis has already failed, which could throw rather than return an error. Thanks to @​xianjianlf2.

Merge index-derived props with a declared key of the same name

Intersecting a structure with an index signature and one that rejects undeclared keys could produce a node with a duplicate key:

// previously { a: number, a: number, b: number, + (undeclared): reject }
type({ a: "number", "[string]": "number" }).and({
	a: "number",
	b: "number",
	"+": "reject"
})

Props derived from the index signature are now intersected with any declared prop of the same key, and the result is the same in either operand order.

Preserve parameter labels when a type.fn implementation annotates an optional parameter

Annotating an optional parameter, as in type.fn("number?")((n?: number) => n), previously dropped every parameter label from the inferred signature. It now infers (n?: number | undefined) => number | undefined. Thanks to @​aswinsvijay.

2.2.4

Default a property to an empty array or object in string syntax

= [] and = {} are now valid string-embedded defaults, so an empty collection no longer requires the tuple-with-thunk form:

// previously ["string[]", "=", () => []]
const T = type({
</tr></table> 

... (truncated)

Commits
  • 5606ae8 docs: fix mismatched closing tag in README tagline
  • c7c5fee release: arktype 2.2.5 + dependents (#1660)
  • 0653b23 fix(schema): merge index-derived props with a declared key of the same name (...
  • d66d8d2 fix(schema): prevent crash validating unions of object arrays (#1638)
  • 93dbc3f fix(type): preserve escaped backslash in regex string literals (#1634)
  • 207c644 fix recursive alias reference bootstrapping (#1641)
  • b746a01 fix(type): preserve parameter labels when an implementation annotates an opti...
  • 4e82d77 release: arktype 2.2.4 + dependents (#1656)
  • a046ebe fix(schema): recognize cross-realm arrays with Array.isArray (#1646)
  • b8b23cc feat: support empty collection defaults in string syntax ( = [] and = {}...
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Changes that touch dependencies, e.g. Dependabot, etc. javascript Pull requests that update Javascript code labels Sep 28, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/main/arktype-2.2.5 branch 3 times, most recently from 49eb8b6 to 3fbc4f6 Compare September 28, 2026 15:14
Bumps [arktype](https://github.com/arktypeio/arktype/tree/HEAD/ark/type) from 2.2.3 to 2.2.5.
- [Release notes](https://github.com/arktypeio/arktype/releases)
- [Changelog](https://github.com/arktypeio/arktype/blob/main/ark/type/CHANGELOG.md)
- [Commits](https://github.com/arktypeio/arktype/commits/arktype@2.2.5/ark/type)

---
updated-dependencies:
- dependency-name: arktype
  dependency-version: 2.2.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/main/arktype-2.2.5 branch from 3fbc4f6 to d21641c Compare September 28, 2026 15:19
@svozza
svozza merged commit ce19a63 into main Sep 28, 2026
41 checks passed
@svozza
svozza deleted the dependabot/npm_and_yarn/main/arktype-2.2.5 branch September 28, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Changes that touch dependencies, e.g. Dependabot, etc. javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant