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

chore(deps): update nutype requirement from 0.3.1 to 0.4.0 #10

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 20, 2023

Updates the requirements on nutype to permit the latest version.

Changelog

Sourced from nutype's changelog.

v0.4.0 - 2023-11-21

  • [FEATURE] Support of arbitrary inner types with custom sanitizers and validators.
  • [FEATURE] Add numeric validator greater
  • [FEATURE] Add numeric validator less
  • [BREAKING] Removal of asterisk derive
  • [BREAKING] Use commas to separate high level attributes
  • [BREAKING] Traits are derived with #[nutype(derive(Debug))]. The regular #[derive(Debug)] syntax is not supported anymore.
  • [BREAKING] Validator with has been renamed to predicate to reflect the boolean nature of its range
  • [BREAKING] String validator min_len has been renamed to len_char_min to reflect that is based on UTF8 chars.
  • [BREAKING] String validator max_len has been renamed to len_char_max to reflect that is based on UTF8 chars.
  • [BREAKING] Rename numeric validator max to less_or_equal
  • [BREAKING] Rename numeric validator min to greater_or_equal
  • [BREAKING] Rename error variants to follow the following formula: <ValidationRule>Violated. This implies the following renames:
    • TooShort -> LenCharMinViolated
    • TooLong -> LenCharMaxViolated
    • Empty -> NotEmptyViolated
    • RegexMismatch -> RegexViolated
    • Invalid -> PredicateViolated
    • TooBig -> LessOrEqualViolated
    • TooSmall -> GreaterOrEqualViolated
    • NotFinite -> FiniteViolated
  • Better error messages: in case of unknown attribute, validator or sanitizer the possible values are listed.
  • [FIX] Make derived Deserialize work with RON format

v0.3.1 - 2023-06-30

  • Support deriving of Deref

v0.3.0 - 2023-06-25

  • [BREAKING] min_len and max_len validators run against number of characters in a string (val.chars().count()), not number of bytes (val.len()).
  • Add finite validation for float types which checks against NaN and infinity.
  • Support deriving of Default
  • Support deriving of Eq and Ord on float types (if finite validation is present)
  • Support deriving of TryFrom for types without validation (in this case Error type is std::convert::Infallible)

v0.2.0 - 2023-04-13

  • [BREAKING] Rename string validator present -> not_empty. Rename error variant Missing -> Empty.
  • [BREAKING] Rename feature serde1 to serde.
  • Introduce new_unchecked feature flag, that allows to bypass sanitization and validation.
  • Support derive of JsonSchema of schemars crate (requires schemars08 feature).
  • Support string validation with regex (requires regex feature).

v0.1.1 - 2023-02-11

  • Initial release
Commits
  • d93b1bf Prepare v0.4.0
  • b0cefec Merge pull request #104 from greyblake/update-readme-for-v04
  • b9f6f9b Update README for v0.4.0
  • c81414b Merge pull request #103 from greyblake/len-char
  • e80be5f Rename char_len_max -> len_char_max, char_len_min -> len_char_min
  • 7a75c59 Merge pull request #102 from greyblake/better-docs-for-macros
  • 49cfc86 Add docs on nutype macro
  • d05e9b3 Merge pull request #101 from greyblake/example-new-unchecked
  • ad16b97 Add example for new_unchecked
  • 09a117a Merge pull request #100 from greyblake/example-serde
  • 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 [nutype](https://github.com/greyblake/nutype) to permit the latest version.
- [Release notes](https://github.com/greyblake/nutype/releases)
- [Changelog](https://github.com/greyblake/nutype/blob/master/CHANGELOG.md)
- [Commits](greyblake/nutype@v0.3.1...v0.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 20, 2023
@KernelFreeze KernelFreeze enabled auto-merge (rebase) November 21, 2023 19:59
@KernelFreeze KernelFreeze force-pushed the dependabot/cargo/nutype-0.4.0 branch from ab12a2f to bbcc1c6 Compare November 21, 2023 20:12
auto-merge was automatically disabled November 21, 2023 20:13

Base branch requires signed commits

@KernelFreeze KernelFreeze merged commit dffabbe into main Nov 21, 2023
2 checks passed
@KernelFreeze KernelFreeze deleted the dependabot/cargo/nutype-0.4.0 branch November 21, 2023 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant