Skip to content

chore(deps): bump arktype from 2.2.8 to 2.2.9 - #5852

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/arktype-2.2.9
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/arktype-2.2.9

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Bumps arktype from 2.2.8 to 2.2.9.

Changelog

Sourced from arktype's changelog.

2.2.9

Keep tuple elements around defaults in .in and .out

Combining a tuple's defaultable elements with its other elements dropped some of them, depending on key order:

const T = type(["string", "number = 5", "boolean?"])
// was: [string, boolean?]
// now: [string, number?, boolean?]
T.in.expression
// was: number[]
// now: [number, string, ...number[]]
type(["number", "string = 'foo'", "...", "number[]"]).out.expression

A bound that narrows two existing length constraints at once also no longer throws "multiple distinct intersection results":

// was: throws
// now: string == 2
type("1 <= string <= 2").and("string >= 2")

Thanks to @​ybai08 (#1696).

Reject NaN in unions discriminated by typeof

number rejects NaN, but compiled unions like number | null dropped that check when they discriminated by typeof, so NaN was only rejected with jitless (#1702).

const T = type("number | null")
// was: NaN
// now: ArkErrors: must be a number (was NaN)
T(NaN)

Thanks to @​thecotne.

Don't treat Object.prototype keys as declared

Inherited names like toString or constructor, and an own __proto__ key like the one JSON.parse creates, were treated as declared keys, so "+": "delete" kept them and "+": "reject" accepted them (#1701).

const T = type({ a: "string", "+": "reject" })
// was: { a: "x", constructor: 1 }
</tr></table>

... (truncated)

Commits
  • cfded1a release: arktype 2.2.9 + dependents (#1704)
  • 092075a fix(schema): keep tuple elements around defaults in .in and .out (#1696)
  • fc06904 fix(schema): only emit referenced $defs in toJsonSchema (#1689)
  • cd11e1f fix(schema): don't treat Object.prototype keys as declared for undeclared key...
  • c82c596 fix(schema): keep the NaN check when a union discriminates on typeof (#1702)
  • 5aad144 fix(schema): convert what JSON Schema can't represent in ~standard.jsonSchema...
  • 9d60ec7 docs: simpler landing examples, Markdown docs for agents, and an ArkType skil...
  • See full diff in compare view

@dependabot dependabot Bot added dependencies Changes that touch dependencies, e.g. Dependabot, etc. javascript Pull requests that update Javascript code labels Oct 26, 2026
Bumps [arktype](https://github.com/arktypeio/arktype/tree/HEAD/ark/type) from 2.2.8 to 2.2.9.
- [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.9/ark/type)

---
updated-dependencies:
- dependency-name: arktype
  dependency-version: 2.2.9
  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/arktype-2.2.9 branch from af3c58c to b26deb7 Compare October 26, 2026 13:31

This branch has not been deployed

No deployments
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.

0 participants