⬆️ chore(deps): Update devDependency valibot to v1 #105
+15
−8
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:
0.30.0->1.2.0Release Notes
open-circle/valibot (valibot)
v1.2.0Compare Source
Many thanks to @EskiMojo14, @makenowjust, @ysknsid25 and @jacekwilczynski for contributing to this release.
toBigint,toBoolean,toDate,toNumberandtoStringtransformation actions (pull request #1212)examplesaction to add example values to a schema (pull request #1199)getExamplesmethod to extract example values from a schema (pull request #1199)isbnvalidation action to validate ISBN-10 and ISBN-13 strings (pull request #1097)RawCheckAddIssue,RawCheckContext,RawCheckIssueInfo,RawTransformAddIssue,RawTransformContextandRawTransformIssueInfotypes for better developer experience withrawCheckandrawTransformactions (pull request #1359)EMOJI_REGEXused byemojiactionv1.1.0Compare Source
Many thanks to @EltonLobo07, @sacrosanctic, @muningis, @EskiMojo14, @MOZGIII, @vktrl and @jasperteo for contributing to this release.
messagemethod to overwrite local error message configuration of a schema (pull request #1103)summarizemethod to summarize issues into a pretty-printable multi-line string (pull request #1158)getTitle,getDescriptionandgetMetadatamethods to extract metadata of a schema (pull request #1154)minEntriesandmaxEntriesvalidation action to validate number of object entries (pull request #1100)entriesandnotEntriesvalidation action to validate number of object entries (pull request #1156)parseJsonandstringifyJsontransformation action to parse and stringify JSON (pull request #1137)flavortransformation action to flavor the output type of a schema (pull request #950)multipleOfvalidation action (pull request #1164)variantandvariantAsyncschema to improve performance by aborting validation of discriminators early (pull request #1110)NanoIDActionandNanoIDIssueinterface toNanoIdActionandNanoIdIssue(pull request #1171)MarkOptionaltype to fix input and output type of objects in edge cases (issue #1176)v1.0.0Compare Source
This is a summary of the changes between v0 and v1. Many thanks to everyone who contributed to this release.
assertmethod to assert values (issue #862)checkItemsAsyncaction (pull request #856)graphemes,maxGraphemes,minGraphemesandnotGraphemesaction (pull request #853)words,maxWords,minWordsandnotWordsactionargsandreturnsaction to transform functions (issue #243)rfcEmailaction to validate RFC 5322 email addresses (pull request #912)gtValueandltValueaction for greater than and less than validation (pull request #978, #985)valuesandnotValuesaction for easier multi-value validation (pull request #919)slugaction to validate URL slugs (pull request #910)ReadonlyMapandReadonlySettoreadonlyaction (issue #1059)entriesFromObjectsutil to improve tree shaking (pull request #1023)pipeandpipeAyncmethod to support unlimited pipe items of same input and output type (issue #852)@__NO_SIDE_EFFECTS__notation to improve tree shaking (pull request #995)exactOptionalandexactOptionalAsyncschema (PR #1013)minValueandmaxValueforNaN(pull request #843)nullable,nullableAsync,nullish,nullishAsync,optional,optionalAsync,undefinedableandundefinedableAsyncfor undefined default value (issue #878)partialCheckandpartialCheckAsyncaction to add.pathListproperty in a type-safe wayfindItemaction to support type predicates (issue #867)looseObject,looseObjectAsync,object,objectAsync,objectWithRest,objectWithRestAsync,strictObjectandstrictObject(PR #1013)optionalandoptionalAsyncwhen used within an object schema (PR #1013)MarkOptionaltype to fix order of entries and TS error when using generic schemas (issue #1021)VariantOptionandVariantOptionAsynctype to fix TS error when using generic schemas (issue #842)variantandvariantAsyncto support optional discriminators usingexactOptional,exactOptionalAsync,optional,optionalAsync,nullishornullishAsync_addIssueto not ignore empty strings as error message (pull request #1065)ISO_DATE_TIME_REGEXandISO_TIMESTAMP_REGEXto support space as separator (pull request #1064)pipeandpipeAsyncto be readonly by defaultforward,forwardCheck,partialCheckandpartialCheckAsyncto improve TypeScript performance (issue #987)DECIMAL_REGEXto support floats that start with a dot (pull request #1086)bytes,maxBytes,minBytesandnotBytesactionnonOptional,nonOptionalAsync,nonNullable,nonNullableAsync,nonNullishandnonNullishAsyncschema in edge cases (issue #909)anyinPathKeystype (issue #929)keyofmethod for objects with many keys (pull request #988)enum_schema (pull request #941)partialCheckandpartialCheckAsyncaction for typed data with issuesv0.42.1Compare Source
_runpropertyv0.42.0Compare Source
Many thanks to @ajfhs812, @andrew-d-jackson and @declanlscott for contributing to this release.
metadataaction to add custom metadata to a schematitlemetadata action to add a title to a schema (discussion #826)decimalaction to validate integer and float strings (pull request #823)decimalaction todigits(pull request #823)NoPipetype toSchemaWithoutPipeIssueDotPathtype (issue #814)v0.41.0Compare Source
Many thanks to @EltonLobo07, @ZerNico, @Andarist, @ruiaraujo012 and @merodiro for contributing to this release.
referenceproperty of all action base types to be less strict (issue #799)variantandvariantAsyncto improve performance and issues generation for nested variants with different discriminators (pull request #809)v0.40.0Compare Source
Many thanks to @jasperteo, @alecmev and @cruzdanilo for contributing to this release.
nanoidaction to validate Nano IDs (pull request #789)undefinedableandundefinedableAsyncschema (issue #385)v0.39.0Compare Source
Many thanks to @tpetry, @incompletude, @ComradeVanti, @istonikula and @ShlokDesai33 for contributing to this release.
exactOptionalPropertyTypesconfig (issue #385)IssueDotPathtype forpipeandpipeAsyncmethod (issue #793)IssueDotPathtype forvariantandvariantAsyncschema (issue #700)v0.38.0Compare Source
Many thanks to @EltonLobo07, @samuba, @alecmev, @gflohr, @threehams and @carcinocron for contributing to this release.
expectsandexpectedproperty by enclosing combined values in parenthesesoptional,optionalAsync,nullishandnullishAsyncschemas in objectsTuplePathandQuestionMarkSchematype (issue #659, #776)pipeandpipeAsyncmethod (pull request #785)v0.37.0Compare Source
Many thanks to @morinokami, @xcfox, @devcaeg, @shayneo, @Sandros94, @slevithan, @thecotne and @EltonLobo07 for contributing to this release.
base64action to validate Base64 strings (pull request #644)descriptionmetadata action (pull request #747)pipeandpipeAsyncmethod (pull request #747)HEXADECIMAL_REGEX(pull request #666)unknown[]inLengthInputtype toArrayLike<unknown>ArrayInputandContentInputtype to useMaybeReadonlyEMOJI_REGEXto be more accurate and strict (pull request #666)fallbackandfallbackAsyncmethod for specific schemas (pull request #752)fallbackAsyncmethod for async schemas (pull request #732)v0.36.0Compare Source
Many thanks to @N0tExisting, @ksv90, @peterbe, @foster-hangdaan and @zougari47 for contributing to this release.
normalizeaction to normalize strings (issue #691)entriesFromListutilentriesFromListutil (issue #492)keyproperty toSetPathItemtype to improve DX (issue #693, #694)FunctionReferencetype and refactor codev0.35.0Compare Source
Many thanks to @jindong-zhannng, @dyljhd and @TeChn4K for contributing to this release.
pipeandpipeAsyncmethod to 19 (issue #643)v0.34.0Compare Source
Many thanks to @Saeris, @Jimdooz, @Kenzo-Wada and @sillvva for contributing to this release.
file,functionandpromiseschemaawaitAsyncaction to await promise in pipelineoperationproperty tofilterItems,findItem,mapItems,reduceItemsandsortItemactionactionargument offilterItems,findItem,mapItems,reduceItemsandsortItemaction tooperationactionargument and property oftransformandtransformAsyncaction tooperation_stringifyutilv0.33.3Compare Source
Many thanks to @Demivan for contributing to this release.
_isPartiallyTypedutil ofpartialCheckandpartialCheckAsyncactionv0.33.2Compare Source
Many thanks to @allezxandre for contributing to this release.
v0.33.1Compare Source
partialCheckandpartialCheckAsyncactionv0.33.0Compare Source
Many thanks to @Demivan, @ruiaraujo012, @Karakatiza666, @micahjon, @unlinking, @demarchenac, @xsjcTony, @ziyak97 and @Lukasz17git for contributing to this release.
partialCheckandpartialCheckAsyncaction (issue #76, #145, #260)checkItems,filterItems,findItem,mapItems,reduceItemsandsortItemaction (issue #595)everyandsomeaction toeveryItemandsomeItem_isAllowedObjectKeyto_isValidObjectKeyand add check for inherited propertiesRecordPathItemandTuplePathItemtype and refactor codereceivedproperty of issue indateschema for invalid dates (issue #654)v0.32.0Compare Source
Many thanks to @ruiaraujo012, @jansedlon, @ksjitendra18 and @megacherry for contributing to this release.
rawCheck,rawCheckAsync,rawTransformandrawTransformAsyncaction (issue #597)FlatErrorstype for better developer experience (discussion #640)pipeandpipeAsyncmethod to mark output as untyped only when necessary (discussion #613)skipPipeoption fromConfigtype and refactor librarythisreference inlooseTuple,looseTupleAsync,strictTuple,strictTupleAsync,tuple,tupleAsync,tupleWithRestandtupleWithRestAsyncschema (pull request #649)optionskey inEnumSchemainterfacev0.31.1Compare Source
Many thanks to @Omochice for contributing to this release.
v0.31.0Compare Source
Many thanks to @Afsoon, @AlexXanderGrib, @Andarist, @AndreyYolkin, @ariskemper, @Demivan, @DylanThomasFr, @EltonLobo07, @GabrielHangor, @Hugos68, @IlyaSemenov, @MohammedEsafi, @MrGeniusProgrammer, @Saeris, @Sandros94, @Sec-ant, @alexbit-codemod, @ammarriq, @anuraghazra, @arybitskiy, @bingtsingw, @brandonpittman, @brenelz, @chertik77, @chimame, @christophsturm, @dboune, @devcaeg, @dusty, @fredericoo, @gmaxlev, @homersimpsons, @jansedlon, @jchatard, @joshwashywash, @jsudelko, @juliusmarminge, @kovalchukq, @linkb15, @lukemorton, @macarie, @morgante, @mtt-artis, @mutewinter, @mxdvl, @nakanoasaservice, @naveen-bharathi, @sacrosanctic, @samualtnorman, @saturnonearth, @seren5240, @sillvva, @ssalbdivad, @vladshcherbin, @xcfox, @yudinmaxim, @znycheporuk and many others for contributing to this release.
To migrate from an older version, please see the official migration guide and our announcement post.
Configuration
📅 Schedule: Branch creation - "before 4am" (UTC), Automerge - "before 4am" (UTC).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.