typescript-runtime-type-benchmarks
typescript-runtime-type-benchmarks copied to clipboard
fix(deps): update dependency valibot to v0.40.0
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| valibot (source) | 0.21.0 -> 0.40.0 |
Release Notes
fabian-hiller/valibot (valibot)
v0.40.0
v0.39.0
Many thanks to @​tpetry, @​incompletude, @​ComradeVanti, @​istonikula and @​ShlokDesai33 for contributing to this release.
- Add support for
exactOptionalPropertyTypesconfig (issue #​385) - Fix
IssueDotPathtype forpipeandpipeAsyncmethod (issue #​793) - Fix
IssueDotPathtype forvariantandvariantAsyncschema (issue #​700)
v0.38.0
Many thanks to @​EltonLobo07, @​samuba, @​alecmev, @​gflohr, @​threehams and @​carcinocron for contributing to this release.
- Change
expectsandexpectedproperty by enclosing combined values in parentheses - Change question mark handling for
optional,optionalAsync,nullishandnullishAsyncschemas in objects - Fix TypeScript errors in
TuplePathandQuestionMarkSchematype (issue #​659, #​776) - Fix missing TypeScript errors in
pipeandpipeAsyncmethod (pull request #​785)
v0.37.0
Many thanks to @​morinokami, @​xcfox, @​devcaeg, @​shayneo, @​Sandros94, @​slevithan, @​thecotne and @​EltonLobo07 for contributing to this release.
- Add
base64action to validate Base64 strings (pull request #​644) - Add
descriptionmetadata action (pull request #​747) - Add metadata feature to
pipeandpipeAsyncmethod (pull request #​747) - Refactor
HEXADECIMAL_REGEX(pull request #​666) - Change
unknown[]inLengthInputtype toArrayLike<unknown> - Change
ArrayInputandContentInputtype to useMaybeReadonly - Change
EMOJI_REGEXto be more accurate and strict (pull request #​666) - Fix bug in
fallbackandfallbackAsyncmethod for specific schemas (pull request #​752) - Fix bug in
fallbackAsyncmethod for async schemas (pull request #​732)
v0.36.0
Many thanks to @​N0tExisting, @​ksv90, @​peterbe, @​foster-hangdaan and @​zougari47 for contributing to this release.
- Add
normalizeaction to normalize strings (issue #​691) - Add support for async schemas to
entriesFromListutil - Add support for numbers and symbols to
entriesFromListutil (issue #​492) - Add
keyproperty toSetPathItemtype to improve DX (issue #​693, #​694) - Remove
FunctionReferencetype and refactor code
v0.35.0
Many thanks to @​jindong-zhannng, @​dyljhd and @​TeChn4K for contributing to this release.
- Increase argument limit of
pipeandpipeAsyncmethod to 19 (issue #​643)
v0.34.0
Many thanks to @​Saeris, @​Jimdooz, @​Kenzo-Wada and @​sillvva for contributing to this release.
- Add
file,functionandpromiseschema - Add
awaitAsyncaction to await promise in pipeline - Add
operationproperty tofilterItems,findItem,mapItems,reduceItemsandsortItemaction - Rename
actionargument offilterItems,findItem,mapItems,reduceItemsandsortItemaction tooperation - Rename
actionargument and property oftransformandtransformAsyncaction tooperation - Change and improve implementation of
_stringifyutil
v0.33.3
Many thanks to @​Demivan for contributing to this release.
- Fix
_isPartiallyTypedutil ofpartialCheckandpartialCheckAsyncaction
v0.33.2
Many thanks to @​allezxandre for contributing to this release.
- Fix type exports for JSR and Deno (pull request #​663)
v0.33.1
- Fix types of
partialCheckandpartialCheckAsyncaction
v0.33.0
Many thanks to @​Demivan, @​ruiaraujo012, @​Karakatiza666, @​micahjon, @​unlinking, @​demarchenac, @​xsjcTony, @​ziyak97 and @​Lukasz17git for contributing to this release.
- Add export alias with reserved keywords for functions with underscore suffix
- Add
partialCheckandpartialCheckAsyncaction (issue #​76, #​145, #​260) - Add
checkItems,filterItems,findItem,mapItems,reduceItemsandsortItemaction (issue #​595) - Rename
everyandsomeaction toeveryItemandsomeItem - Rename
_isAllowedObjectKeyto_isValidObjectKeyand add check for inherited properties - Remove
RecordPathItemandTuplePathItemtype and refactor code - Fix
receivedproperty of issue indateschema for invalid dates (issue #​654)
v0.32.0
Many thanks to @​ruiaraujo012, @​jansedlon, @​ksjitendra18 and @​megacherry for contributing to this release.
- Add
rawCheck,rawCheckAsync,rawTransformandrawTransformAsyncaction (issue #​597) - Change
FlatErrorstype for better developer experience (discussion #​640) - Change
pipeandpipeAsyncmethod to mark output as untyped only when necessary (discussion #​613) - Remove unused
skipPipeoption fromConfigtype and refactor library - Fix
thisreference inlooseTuple,looseTupleAsync,strictTuple,strictTupleAsync,tuple,tupleAsync,tupleWithRestandtupleWithRestAsyncschema (pull request #​649) - Fix type of
optionskey inEnumSchemainterface
v0.31.1
Many thanks to @​Omochice for contributing to this release.
- Fix missing file extension for Deno (pull request #​637)
v0.31.0
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.
v0.30.0
Many thanks to @​Saeris, @​ariskemper, @​mxdvl, @​romeerez and @​niccholaspage for contributing to this release.
- Add
DefaultandDefaultAsynctype and refactor codebase - Add
FallbackandFallbackAsynctype and refactor codebase - Add
isOfTypetype guard util to check the type of an object - Refactor
getDefaultsandgetDefaultsAsyncmethod (pull request #​259) - Refactor
getFallbacksandgetFallbacksAsyncmethod (pull request #​259) - Change type definitions from
typetointerface(pull request #​259, #​451) - Remove deprecated properties of
safeParseandsafeParseAsyncmethod - Remove any deprecated method, schema and validation functions
- Fix
NestedPathtype offlattenfor async schemas (issue #​456) - Fix implementation of
DefaultValuetype for transformed values
v0.29.0
Many thanks to @​Mini-ghost, @​ivands and @​Demivan for contributing to this release.
- Add
everyandsomepipeline validation action - Add
inputof schema togetterfunction ofrecursiveandrecursiveAsyncschema (pull request #​441) - Change implementation of
transformandtransformAsyncmethod to only run transformations if there are no issues (issue #​436) - Rename
recursiveandrecursiveAsyncschema tolazyandlazyAsync(issue #​440) - Fix bug in
i18nutil when usingsetSchemaMessage
v0.28.1
Many thanks to @​compulim for contributing to this release.
- Fix bug in
unionandunionAsyncschema for transformed inputs (issue #​420)
v0.28.0
Many thanks to @​LorisSigrist, @​samuelstroschein, @​gmaxlev, @​thundermiracle, @​ivanhofer, @​CanRau, @​zkulbeda, @​lucaschultz, @​paoloricciuti, @​hyunbinseo, and @​bertez for contributing to this release.
Note: The library has been revised and refactored. Therefore, not every change is listed in detail.
- Add i18n feature, global configurations and improve error messages (pull request #​397)
- Add
numberandbiginttoPicklistOptionstype (issue #​378) - Fix missing export of
forwardAsyncmethod (issue #​412)
v0.27.1
Many thanks to @​Omochice for contributing to this release.
- Fix missing file extension for Deno (pull request #​387)
v0.27.0
Many thanks to @​pschiffmann for contributing to this release.
- Remove
NonNullable,NonNullishandNonOptionaltype - Add
NonNullableInput,NonNullableOutput,NonNullishInput,NonNullishOutput,NonOptionalInputandNonOptionalOutputtype - Improve type signature of
omit,omitAsync,pickandpickAsyncschema to also allow read-only object keys (issue #​380) - Fix type of
pipeargument atintersectandintersectAsyncschema
v0.26.0
Many thanks to @​WtfJoke, @​dboune, @​alexabw and @​aypotu for contributing to this release.
- Improve performance of
enum_andenumAsyncschema by caching values - Change ISO timestamp regex to support timestamps with lower and higher millisecond accuracy (pull request #​353)
- Change issue handling of
union,unionAsync,variantandvariantAsyncschema to improve developer experience - Fix bug in
getDefaults,getDefaultsAsync,getFallbacksandgetFallbacksAsyncschema for falsy but notundefinedvalues (issue #​356) - Fix type of
pipeargument atunion,unionAsync,variantandvariantAsyncschema - Fix bug that broke pipeline execution in
union,unionAsync,variantandvariantAsyncschema (issue #​364) - Fix typo in type name of
startsWithvalidation action (pull request #​375)
Migration guide
The changes in union, unionAsync, variant and variantAsync are breaking changes and may result in different behavior when returning issues. Please create an issue if you have questions about this.
import * as v from 'valibot';
// Change this
const UnionSchema = v.union(
[v.string([v.email()]), v.literal('')],
'Not a valid email'
);
// To that
const UnionSchema = v.union([
v.string([v.email('Not a valid email')]),
v.literal(''),
]);
v0.25.0
Many thanks to @​ariskemper, @​ewautr, @​cuberoot @​lo1tuma and @​richardvanbergen for contributing to this release.
- Add
creditCard,decimal,hash,hexadecimal,hexColorandoctalpipeline validation action (pull request #​292, #​304, #​307, #​308, #​309) - Add
pipeparameter tointersect,intersectAsync,union,unionAsync,variantandvariantAsyncschema (discussion #​297) - Add support for multiple variant options with same discriminator key to
variantandvariantAsyncschema (issue #​310) - Add path to issues if discriminator key of
variantandvariantAsyncschema is missing (issue #​235, #​303) - Change
PicklistOptionstype and generics ofpicklistandpicklistAsyncschema
v0.24.1
Many thanks to @​NotWorkingCode for contributing to this release.
- Fix output type of optional
objectandobjectAsyncentries with default value (issue #​286) - Fix output type of
nullable,nullableAsync,nullish,nullishAsync,optionalandoptionalAsyncschema with default value (issue #​286)
v0.24.0
Many thanks to @​genki and @​NotWorkingCode for contributing to this release.
- Add support for
specialschema as key ofrecordschema (issue #​291) - Add support for
specialandspecialAsyncschema as key ofrecordAsyncschema (issue #​291) - Fix input and output type of optional object keys with default value (issue #​286)
v0.23.0
Many thanks to @​ariskemper, @​ivands and @​emilgpa for contributing to this release.
- Add
bicvalidation function (pull request #​284) - Add
mac,mac48andmac64validation function (pull request #​270) - Change
PicklistOptions,UnionOptionsandUnionOptionsAsynctype from tuple to array (issue #​279) - Change
IntersectOptions,IntersectOptionsAsync,UnionOptionsandUnionOptionsAsynctype to support readonly values (issue #​279) - Fix optional keys of
ObjectInputandObjectOutputtype (issue #​242)
v0.22.0
Many thanks to @​ecyrbe, @​Demivan, @​GriefMoDz, @​demarchenac, @​TFX0019, @​AbePlays, @​irg1008, @​skotenko, @​dukeofsoftware, @​xxxhussein, @​JortsEnjoyer0, @​Karakatiza666, @​micahjon, @​lulucas, @​xsjcTony, @​ziyak97, @​micha149, @​anhzf and @​jonlambert for contributing to this release.
- Add support for boolean to
notValuevalidation (pull request #​261) - Add
.typedto schema validation result and execute pipeline of complex schemas if output is typed (issue #​76, #​145) - Add
forwardmethod that forwards issues of pipelines to nested fields (issue #​76, #​145) - Add
skipPipeoption toistype guard method (pull request #​166) - Change return type of
safeParseandsafeParseAsyncmethod - Rename and change util functions and refactor codebase
- Fix
RecordInputandRecordOuputtype when usingunionAsyncas key - Fix output type for
nullable,nullableAsync,nullish,nullishAsync,optionalandoptionalAsyncwhen using a default value (issue #​271)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.