Update dependency arktype to v2.2.5 - #446
Merged
Merged
Conversation
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.
This PR contains the following updates:
2.2.3->2.2.5Release Notes
arktypeio/arktype (arktype)
v2.2.5Compare Source
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: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
RecordA cyclic alias referenced through
Record<string, ...>could cause valid values to be rejected, e.g. an array branch failing withmust 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:
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.fnimplementation annotates an optional parameterAnnotating 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.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.