Skip to content

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

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/arktype-2.2.5
Sep 28, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/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 compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

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/[email protected]/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] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 28, 2026
@github-actions
github-actions Bot enabled auto-merge (squash) September 28, 2026 23:46
@pkg-pr-new

pkg-pr-new Bot commented Sep 28, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/openworkflowdev/openworkflow/@openworkflow/cli@821
npm i https://pkg.pr.new/openworkflowdev/openworkflow/@openworkflow/dashboard@821
npm i https://pkg.pr.new/openworkflowdev/openworkflow@821

commit: 2c1c812

@github-actions
github-actions Bot merged commit 7048dad into main Sep 28, 2026
7 checks passed
@github-actions
github-actions Bot deleted the dependabot/npm_and_yarn/arktype-2.2.5 branch September 28, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants