chore(deps): update dependency arktype to v2.2.0#147
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
chore(deps): update dependency arktype to v2.2.0#147renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
7399d4b to
7390ed0
Compare
5417718 to
44c091a
Compare
3037b90 to
4b90d38
Compare
4b90d38 to
4ee866b
Compare
640b304 to
b867bd7
Compare
1c1f1ca to
2424b86
Compare
b61c286 to
ee864bc
Compare
ee864bc to
6e8731a
Compare
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.1.20→2.2.0Release Notes
arktypeio/arktype (arktype)
v2.2.0Compare Source
Full announcement: https://arktype.io/docs/blog/2.2
type.fn- Validated functionsDefine functions with runtime-validated parameters and return types. Supports defaults, optionals, and variadics.
Type-safe regex via arkregex
Regex literals in definitions now carry full type inference.
x-prefix parses capture groups at runtime.@ark/json-schema- Bidirectional JSON SchemaParse JSON Schema into ArkType Types with the new
@ark/json-schemapackage, complementingtoJsonSchema(). Thanks to @TizzySaurus.Configurable
toJsonSchemaHandle incompatibilities between ArkType and JSON Schema with granular fallback codes. Supports
draft-07/draft-2020-12targets and cyclic types.Standard Schema as definitions
Any Standard Schema compliant validator (Zod, Valibot, etc.) can be embedded directly in ArkType definitions.
select- Deep reference introspectionQuery the internal structure of a type by node kind and predicate. Use selectors to configure specific references.
Improved
type.declareNow supports morph-aware declarations via a
sidecontext, and optionality via property values.N-ary operators
type.or,type.and,type.merge, andtype.pipeaccept variadic definitions.Additional highlights
|>string-embeddable pipe operatortype.valueOffor TS enumsstring.hex+string.regexkeywordsArkErrors(flatByPath,flatProblemsByPath,toJSON)TraversalErrorreplacesAggregateErrorexactOptionalPropertyTypesconfigv2.1.29Compare Source
Improve regex inference for certain numeric expressions
See arkregex CHANGELOG for full notes.
v2.1.28Compare Source
JSON Schema improvements
targetoption and can generate draft-07 in addition to draft-2020-12Standard Schema is now a valid definition
Any Standard Schema compliant validator can now be passed directly to
type, either directly or nested in a structural ArkType definition, and will be fully inferred and validated.e(x)ec mode for regex types
more flexible
type.declareOptionality can now be expressed via a property value in addition to its key:
fixed a bug causing predicate errors after the first to not be reported
See #1557
v2.1.27Compare Source
fix assignability for certain objects like
ModuleThe following assignment will now correctly fail (thanks @LukeAbby)🔒
bump regex inference to arkregex 0.0.3
v2.1.26Compare Source
es2020 compatibility
Remove usages of newer prototypes methods like
.at()to better support legacy browsersimprove external generic inference
Some inference scenarios like the following involving default values are now more cooperative (thanks @Andarist) 🎉
v2.1.25Compare Source
bump regex inference to arkregex 0.0.2
v2.1.24Compare Source
bump regex inference to arkregex 0.0.1
duplicate key errors
Definitions like the following now throw a descriptive error:
v2.1.23Compare Source
regex literals are now inferred (will be announced and documented as part of 2.2)
fix an issue with some discriminated morphs (thanks @JeremyMoeglich)
See #1464
v2.1.22Compare Source
fix an issue with some recursive transforms
See #1496
v2.1.21Compare Source
~standard
toJSONSchemasupportAdds support for the upcoming StandardJSONSchemaSourceV1 spec (standardschema.dev)
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.