Update dependency @badrap/valita to v0.3.11 - autoclosed #149
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.3.9
->0.3.11
Release Notes
badrap/valita (@badrap/valita)
v0.3.11
Compare Source
Patch Changes
f78c082
Thanks @jviide! - Add experimental support for.optional(() => x)
The
.optional()
method now supports default value functions for replacingundefined
and missing values from the input and wrapped validator. The functionality is similar to.default(x)
, except thatdefaultFn
has to be a function and is executed for each validation run. This allows patterns like the following:This avoids a common pitfall with using
.default([])
for the same pattern. As the newly created empty arrays are not shared, mutating them is safe(r) as it doesn't affect other validation outputs.This feature is marked experimental for the time being.
v0.3.10
Compare Source
Patch Changes
43513b6
Thanks @jviide! - Add support for variadic tuple typesTuple and array types now have a new method,
.concat()
that can be used to create variadic tuple types.43513b6
Thanks @jviide! - Makev.array()
a shorthand forv.array(v.unknown())
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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.