Repository navigation
release: arktype 2.2.5 + dependents - #1660
Merged
Merged
Conversation
Bumps all publishable packages and documents the changes merged since 2.2.4: - preserve escaped backslashes in regex literals (#1634, @spokodev) - fix recursive discriminated unions referenced from a Record (#1641, @xianjianlf2) - prevent a crash validating unions of object arrays (#1638, @xianjianlf2) - merge index-derived props with a declared key of the same name (#1659) - preserve parameter labels when a type.fn implementation annotates an optional param (#1615, @aswinsvijay) #1634 changes behavior for regex literals that contain `\\`: `"/\\\\d/"` previously compiled to the digit class `\d` and now matches a literal backslash followed by "d", matching the equivalent RegExp instance. The changelog calls this out with a migration note. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Version bumps — all eight publishable
package.jsonfiles advance one patch:arktype2.2.4 → 2.2.5,@ark/schema/@ark/util/@ark/fs0.56.3 → 0.56.4,@ark/attest0.56.4 → 0.56.5,arkregex0.0.9 → 0.0.10,@ark/json-schema0.0.8 → 0.0.9,@ark/fast-check0.0.15 → 0.0.16. The util/schema/fs trio stays locked together and@ark/attestremains exactly one patch ahead, per the release convention. ark/util/registry.ts—arkUtilVersionsynced to0.56.4, matching@ark/util's package version (asserted byark/util/__tests__/registry.test.ts).ark/type/CHANGELOG.md— adds the 2.2.5 section documenting the five fixes merged since 2.2.4 (#1634, #1641, #1638, #1659, #1615), including the migration note for the regex-literal behavior change.
I verified the changelog is complete and accurate: git log between the 2.2.4 release and this branch shows exactly the five commits the notes describe, all internal deps use workspace:* so no range edits are needed, and no stale old-version strings remain anywhere outside CHANGELOG.md. I also ran the regex example from the notes against source — type("/\\\\d/") now matches a literal backslash followed by d (and not 5), while type("/\\d/") still matches a digit, matching both the example comments and the migration advice.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Bumps all publishable packages and documents the changes merged since 2.2.4:
Record(Fix recursive aliases with Record references #1641, @xianjianlf2)type.fnimplementation annotates an optional param (Fix label names wheninternalSignaturehas optional params #1615, @aswinsvijay)#1634 changes behavior for regex literals containing
\\:"/\\\\d/"previously compiled to the digit class\d, and now matches a literal backslash followed byd, the same as the equivalentRegExpinstance. The changelog includes a migration note.arktype@ark/schema@ark/util@ark/fs@ark/attestarkregex@ark/json-schema@ark/fast-checkpnpm tsc: cleanpnpm test: 1748 passing, including the registry version test against the new@ark/utilversionprettier --checkon the changelog🤖 Generated with Claude Code