Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency valibot to v0.42.1 #1309

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 12, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
valibot (source) 0.21.0 -> 0.42.1 age adoption passing confidence

Release Notes

fabian-hiller/valibot (valibot)

v0.42.1

Compare Source

  • Fix function type declaration of _run property

v0.42.0

Compare Source

Many thanks to @​ajfhs812, @​andrew-d-jackson and @​declanlscott for contributing to this release.

  • Add metadata action to add custom metadata to a schema
  • Add title metadata action to add a title to a schema (discussion #​826)
  • Add decimal action to validate integer and float strings (pull request #​823)
  • Rename decimal action to digits (pull request #​823)
  • Rename NoPipe type to SchemaWithoutPipe
  • Fix inference of generics in IssueDotPath type (issue #​814)

v0.41.0

Compare Source

Many thanks to @​EltonLobo07, @​ZerNico, @​Andarist, @​ruiaraujo012 and @​merodiro for contributing to this release.

  • Change reference property of all action base types to be less strict (issue #​799)
  • Change implementation of variant and variantAsync to improve performance and issues generation for nested variants with different discriminators (pull request #​809)

v0.40.0

Compare Source

Many thanks to @​jasperteo, @​alecmev and @​cruzdanilo for contributing to this release.

  • Add nanoid action to validate Nano IDs (pull request #​789)
  • Add undefinedable and undefinedableAsync schema (issue #​385)
  • Fix invalid output type for transformed optional object entries (issue #​806)

v0.39.0

Compare Source

Many thanks to @​tpetry, @​incompletude, @​ComradeVanti, @​istonikula and @​ShlokDesai33 for contributing to this release.

  • Add support for exactOptionalPropertyTypes config (issue #​385)
  • Fix IssueDotPath type for pipe and pipeAsync method (issue #​793)
  • Fix IssueDotPath type for variant and variantAsync schema (issue #​700)

v0.38.0

Compare Source

Many thanks to @​EltonLobo07, @​samuba, @​alecmev, @​gflohr, @​threehams and @​carcinocron for contributing to this release.

  • Change expects and expected property by enclosing combined values in parentheses
  • Change question mark handling for optional, optionalAsync, nullish and nullishAsync schemas in objects
  • Fix TypeScript errors in TuplePath and QuestionMarkSchema type (issue #​659, #​776)
  • Fix missing TypeScript errors in pipe and pipeAsync method (pull request #​785)

v0.37.0

Compare Source

Many thanks to @​morinokami, @​xcfox, @​devcaeg, @​shayneo, @​Sandros94, @​slevithan, @​thecotne and @​EltonLobo07 for contributing to this release.

  • Add base64 action to validate Base64 strings (pull request #​644)
  • Add description metadata action (pull request #​747)
  • Add metadata feature to pipe and pipeAsync method (pull request #​747)
  • Refactor HEXADECIMAL_REGEX (pull request #​666)
  • Change unknown[] in LengthInput type to ArrayLike<unknown>
  • Change ArrayInput and ContentInput type to use MaybeReadonly
  • Change EMOJI_REGEX to be more accurate and strict (pull request #​666)
  • Fix bug in fallback and fallbackAsync method for specific schemas (pull request #​752)
  • Fix bug in fallbackAsync method for async schemas (pull request #​732)

v0.36.0

Compare Source

Many thanks to @​N0tExisting, @​ksv90, @​peterbe, @​foster-hangdaan and @​zougari47 for contributing to this release.

  • Add normalize action to normalize strings (issue #​691)
  • Add support for async schemas to entriesFromList util
  • Add support for numbers and symbols to entriesFromList util (issue #​492)
  • Add key property to SetPathItem type to improve DX (issue #​693, #​694)
  • Remove FunctionReference type and refactor code

v0.35.0

Compare Source

Many thanks to @​jindong-zhannng, @​dyljhd and @​TeChn4K for contributing to this release.

  • Increase argument limit of pipe and pipeAsync method to 19 (issue #​643)

v0.34.0

Compare Source

Many thanks to @​Saeris, @​Jimdooz, @​Kenzo-Wada and @​sillvva for contributing to this release.

  • Add file, function and promise schema
  • Add awaitAsync action to await promise in pipeline
  • Add operation property to filterItems, findItem, mapItems, reduceItems and sortItem action
  • Rename action argument of filterItems, findItem, mapItems, reduceItems and sortItem action to operation
  • Rename action argument and property of transform and transformAsync action to operation
  • Change and improve implementation of _stringify util

v0.33.3

Compare Source

Many thanks to @​Demivan for contributing to this release.

  • Fix _isPartiallyTyped util of partialCheck and partialCheckAsync action

v0.33.2

Compare Source

Many thanks to @​allezxandre for contributing to this release.

  • Fix type exports for JSR and Deno (pull request #​663)

v0.33.1

Compare Source

  • Fix types of partialCheck and partialCheckAsync action

v0.33.0

Compare Source

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 partialCheck and partialCheckAsync action (issue #​76, #​145, #​260)
  • Add checkItems, filterItems, findItem, mapItems, reduceItems and sortItem action (issue #​595)
  • Rename every and some action to everyItem and someItem
  • Rename _isAllowedObjectKey to _isValidObjectKey and add check for inherited properties
  • Remove RecordPathItem and TuplePathItem type and refactor code
  • Fix received property of issue in date schema for invalid dates (issue #​654)

v0.32.0

Compare Source

Many thanks to @​ruiaraujo012, @​jansedlon, @​ksjitendra18 and @​megacherry for contributing to this release.

  • Add rawCheck, rawCheckAsync, rawTransform and rawTransformAsync action (issue #​597)
  • Change FlatErrors type for better developer experience (discussion #​640)
  • Change pipe and pipeAsync method to mark output as untyped only when necessary (discussion #​613)
  • Remove unused skipPipe option from Config type and refactor library
  • Fix this reference in looseTuple, looseTupleAsync, strictTuple, strictTupleAsync, tuple, tupleAsync, tupleWithRest and tupleWithRestAsync schema (pull request #​649)
  • Fix type of options key in EnumSchema interface

v0.31.1

Compare Source

Many thanks to @​Omochice for contributing to this release.

  • Fix missing file extension for Deno (pull request #​637)

v0.31.0

Compare 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.

v0.30.0

Compare Source

Many thanks to @​Saeris, @​ariskemper, @​mxdvl, @​romeerez and @​niccholaspage for contributing to this release.

  • Add Default and DefaultAsync type and refactor codebase
  • Add Fallback and FallbackAsync type and refactor codebase
  • Add isOfType type guard util to check the type of an object
  • Refactor getDefaults and getDefaultsAsync method (pull request #​259)
  • Refactor getFallbacks and getFallbacksAsync method (pull request #​259)
  • Change type definitions from type to interface (pull request #​259, #​451)
  • Remove deprecated properties of safeParse and safeParseAsync method
  • Remove any deprecated method, schema and validation functions
  • Fix NestedPath type of flatten for async schemas (issue #​456)
  • Fix implementation of DefaultValue type for transformed values

v0.29.0

Compare Source

Many thanks to @​Mini-ghost, @​ivands and @​Demivan for contributing to this release.

  • Add every and some pipeline validation action
  • Add input of schema to getter function of recursive and recursiveAsync schema (pull request #​441)
  • Change implementation of transform and transformAsync method to only run transformations if there are no issues (issue #​436)
  • Rename recursive and recursiveAsync schema to lazy and lazyAsync (issue #​440)
  • Fix bug in i18n util when using setSchemaMessage

v0.28.1

Compare Source

Many thanks to @​compulim for contributing to this release.

  • Fix bug in union and unionAsync schema for transformed inputs (issue #​420)

v0.28.0

Compare Source

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 number and bigint to PicklistOptions type (issue #​378)
  • Fix missing export of forwardAsync method (issue #​412)

v0.27.1

Compare Source

Many thanks to @​Omochice for contributing to this release.

  • Fix missing file extension for Deno (pull request #​387)

v0.27.0

Compare Source

Many thanks to @​pschiffmann for contributing to this release.

  • Remove NonNullable, NonNullish and NonOptional type
  • Add NonNullableInput, NonNullableOutput, NonNullishInput, NonNullishOutput, NonOptionalInput and NonOptionalOutput type
  • Improve type signature of omit, omitAsync, pick and pickAsync schema to also allow read-only object keys (issue #​380)
  • Fix type of pipe argument at intersect and intersectAsync schema

v0.26.0

Compare Source

Many thanks to @​WtfJoke, @​dboune, @​alexabw and @​aypotu for contributing to this release.

  • Improve performance of enum_ and enumAsync schema 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, variant and variantAsync schema to improve developer experience
  • Fix bug in getDefaults, getDefaultsAsync, getFallbacks and getFallbacksAsync schema for falsy but not undefined values (issue #​356)
  • Fix type of pipe argument at union, unionAsync, variant and variantAsync schema
  • Fix bug that broke pipeline execution in union, unionAsync, variant and variantAsync schema (issue #​364)
  • Fix typo in type name of startsWith validation 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

Compare Source

Many thanks to @​ariskemper, @​ewautr, @​cuberoot @​lo1tuma and @​richardvanbergen for contributing to this release.

  • Add creditCard, decimal, hash, hexadecimal, hexColor and octal pipeline validation action (pull request #​292, #​304, #​307, #​308, #​309)
  • Add pipe parameter to intersect, intersectAsync, union, unionAsync, variant and variantAsync schema (discussion #​297)
  • Add support for multiple variant options with same discriminator key to variant and variantAsync schema (issue #​310)
  • Add path to issues if discriminator key of variant and variantAsync schema is missing (issue #​235, #​303)
  • Change PicklistOptions type and generics of picklist and picklistAsync schema

v0.24.1

Compare Source

Many thanks to @​NotWorkingCode for contributing to this release.

  • Fix output type of optional object and objectAsync entries with default value (issue #​286)
  • Fix output type of nullable, nullableAsync, nullish, nullishAsync, optional and optionalAsync schema with default value (issue #​286)

v0.24.0

Compare Source

Many thanks to @​genki and @​NotWorkingCode for contributing to this release.

  • Add support for special schema as key of record schema (issue #​291)
  • Add support for special and specialAsync schema as key of recordAsync schema (issue #​291)
  • Fix input and output type of optional object keys with default value (issue #​286)

v0.23.0

Compare Source

Many thanks to @​ariskemper, @​ivands and @​emilgpa for contributing to this release.

  • Add bic validation function (pull request #​284)
  • Add mac, mac48 and mac64 validation function (pull request #​270)
  • Change PicklistOptions, UnionOptions and UnionOptionsAsync type from tuple to array (issue #​279)
  • Change IntersectOptions, IntersectOptionsAsync, UnionOptions and UnionOptionsAsync type to support readonly values (issue #​279)
  • Fix optional keys of ObjectInput and ObjectOutput type (issue #​242)

v0.22.0

Compare Source

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 notValue validation (pull request #​261)
  • Add .typed to schema validation result and execute pipeline of complex schemas if output is typed (issue #​76, #​145)
  • Add forward method that forwards issues of pipelines to nested fields (issue #​76, #​145)
  • Add skipPipe option to is type guard method (pull request #​166)
  • Change return type of safeParse and safeParseAsync method
  • Rename and change util functions and refactor codebase
  • Fix RecordInput and RecordOuput type when using unionAsync as key
  • Fix output type for nullable, nullableAsync, nullish, nullishAsync, optional and optionalAsync when 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 these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovatebot label Aug 12, 2024
@renovate renovate bot changed the title fix(deps): update dependency valibot to v0.37.0 fix(deps): update dependency valibot to v0.38.0 Aug 20, 2024
@renovate renovate bot changed the title fix(deps): update dependency valibot to v0.38.0 fix(deps): update dependency valibot to v0.39.0 Aug 24, 2024
@renovate renovate bot changed the title fix(deps): update dependency valibot to v0.39.0 fix(deps): update dependency valibot to v0.40.0 Aug 29, 2024
@renovate renovate bot changed the title fix(deps): update dependency valibot to v0.40.0 fix(deps): update dependency valibot to v0.41.0 Sep 1, 2024
@renovate renovate bot force-pushed the renovate/valibot-0.x branch 4 times, most recently from 691b800 to 844bbf7 Compare September 15, 2024 07:14
@renovate renovate bot changed the title fix(deps): update dependency valibot to v0.41.0 fix(deps): update dependency valibot to v0.42.0 Sep 15, 2024
@renovate renovate bot force-pushed the renovate/valibot-0.x branch 2 times, most recently from 314e670 to 31d58ce Compare September 20, 2024 20:10
@renovate renovate bot changed the title fix(deps): update dependency valibot to v0.42.0 fix(deps): update dependency valibot to v0.42.1 Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants