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.4.0 to 0.5.0 #13

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 2, 2024

Updates the requirements on nutype to permit the latest version.

Changelog

Sourced from nutype's changelog.

v0.5.0 - 2024-xx-xx

  • [FEATURE] Added support for custom error types and validation functions via the error and with attributes.
  • [BREAKING] Replaced lazy_static with std::sync::LazyLock for regex validation. This requires Rust 1.80 or higher and may cause compilation issues on older Rust versions due to the use of std::sync::LazyLock. If upgrading Rust isn't an option, you can still use lazy_static explicitly as a workaround.
  • [BREAKING] The fallible ::new() constructor has been fully replaced by ::try_new().

v0.4.3 - 2024-07-06

  • Support generics
  • [DEPRECATION] Fallible constructor ::new() is deprecated. Users should use ::try_new() instead.
  • [FIX] Use absolute path for ::core::result::Result when generating code for derive(TryFrom).

v0.4.2 - 2024-04-07

  • Support no_std ( the dependency needs to be declared as nutype = { default-features = false } )
  • Support integration with arbitrary crate (see arbitrary feature).
    • Support Arbitrary for integer types
    • Support Arbitrary for float types
    • Support Arbitrary for string inner types
    • Support Arbitrary for any inner types
  • Possibility to specify boundaries (greater, greater_or_equal, less, less_or_equal, len_char_min, len_char_max) with expressions or named constants.
  • Add #[inline] attribute to trivial functions
  • Improve error messages

v0.4.1 - 2024-04-07

  • Failed release. Includes everything from v0.4.2 except support of Arbitrary for String based types.

v0.4.0 - 2023-11-21

  • Support of arbitrary inner types with custom sanitizers and validators.
  • Add numeric validator greater
  • 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.

... (truncated)

Commits
  • aad0699 Merge pull request #176 from greyblake/prepare-050
  • dd92e99 Prepare v0.5.0
  • 206ef4a Merge pull request #174 from greyblake/prepare-v0.5.0-beta.2
  • 4b66431 Prepare 0.5.0-beta.2
  • 51d4e68 Merge pull request #173 from greyblake/fix-regex-error
  • 3557eab Improve error message when regex feature is not enabled
  • 26421c5 Merge pull request #171 from greyblake/fix-doc-tests
  • c767124 Run doctests with --all-features
  • 4a37a13 Adjust ci.yml to run doc tests
  • 97c5159 Adjust Justfile to run doc tests
  • 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.4.0...v0.5.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 Sep 2, 2024
@KernelFreeze KernelFreeze merged commit 029800e into main Sep 2, 2024
2 checks passed
@KernelFreeze KernelFreeze deleted the dependabot/cargo/nutype-0.5.0 branch September 2, 2024 22:11
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