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

Update dependency @badrap/valita to v0.3.11 - autoclosed #149

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 14, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@badrap/valita 0.3.9 -> 0.3.11 age adoption passing confidence

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 replacing undefined and missing values from the input and wrapped validator. The functionality is similar to .default(x), except that defaultFn has to be a function and is executed for each validation run. This allows patterns like the following:

    const Item = v.object({ id: v.string() });
    
    const Items = v.array(Item).optional(() => []);

    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

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.


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

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

Copy link

codecov bot commented Oct 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (4156862) to head (47f9dfe).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #149   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines          507       507           
  Branches       139       163   +24     
=========================================
  Hits           507       507           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot changed the title Update dependency @badrap/valita to v0.3.10 Update dependency @badrap/valita to v0.3.11 Oct 17, 2024
@renovate renovate bot changed the title Update dependency @badrap/valita to v0.3.11 Update dependency @badrap/valita to v0.3.11 - autoclosed Oct 26, 2024
@renovate renovate bot closed this Oct 26, 2024
@renovate renovate bot deleted the renovate/badrap-valita-0.x-lockfile branch October 26, 2024 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants