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 garde requirement from 0.14.0 to 0.15.0 #1293

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 11, 2023

Updates the requirements on garde to permit the latest version.

Release notes

Sourced from garde's releases.

v0.15.0

Breaking changes

  • garde::error has been completely overhauled.
  • garde::Validate has a new validate_into method, which is the primary entrypoint for custom implementations now.
  • garde::Validate::validate is now implemented by default by calling validate_into.

These changes should not have any significant effects on the usage of the library, if all you're doing is deriving Validate and serializing errors using the Display implementation on Errors (now called Report). If you're having trouble migrating, please open an issue.

New features

You can now easily select! errors for specific fields on a given Report:

#[derive(garde::Validate)]
struct Foo<'a> {
  #[garde(dive)]
  bar: Bar<'a>,
}
#[derive(garde::Validate)]
struct Bar<'a> {
#[garde(length(min = 1))]
value: &'a str,
}
let v = Foo { bar: Bar { value: "" } };
let report = v.validate(&()).unwrap_err();
println!("errors for Foo.bar.value");
for error in garde::error::select!(report, bar.value) {
println!("{error}");
}

Pull requests

Full Changelog: jprochazk/garde@v0.14.1...v0.15.0

Commits
  • 8e66117 Release 0.15.0
  • eed9010 link to garde-actix-web in readme
  • 6aebcfc fix select macro not selecting subpaths properly
  • 7f4f3b1 turn select into a proc macro
  • edc2dcd update readme + include it directly in garde
  • 91ac74d allow any expression in Custom
  • 042fbc6 Merge pull request #67 from jprochazk/flat-error-repr
  • ceed749 assert Report is Send
  • 75b757a make rc_list send
  • b8a7215 update docs
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [garde](https://github.com/jprochazk/garde) to permit the latest version.
- [Release notes](https://github.com/jprochazk/garde/releases)
- [Commits](https://github.com/jprochazk/garde/compare/[email protected]@0.15.0)

---
updated-dependencies:
- dependency-name: garde
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies upgrades to dependencies label Sep 11, 2023
@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@5e3d1cd). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1293   +/-   ##
=======================================
  Coverage        ?   72.31%           
=======================================
  Files           ?       75           
  Lines           ?     6347           
  Branches        ?        0           
=======================================
  Hits            ?     4590           
  Misses          ?     1757           
  Partials        ?        0           

@clux clux added the changelog-exclude changelog excluded prs label Sep 11, 2023
@clux clux added this to the 0.87.0 milestone Sep 11, 2023
@clux clux merged commit 83368df into main Sep 11, 2023
17 checks passed
@clux clux deleted the dependabot/cargo/garde-0.15.0 branch September 11, 2023 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-exclude changelog excluded prs dependencies upgrades to dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant