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: Update minor and patch Golang dependencies #17

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 9, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/nobl9/govy v0.1.1 -> v0.11.0 age adoption passing confidence
golang.org/x/tools v0.24.0 -> v0.28.0 age adoption passing confidence

Release Notes

nobl9/govy (github.com/nobl9/govy)

v0.11.0

Compare Source

What's Changed

🚀 Features

  • feat: Add EqualProperties rule (#​54) @​nieomylnieja

    Added rules.EqualProperties rule which helps ensure selected properties are equal.
    The equality check is performed via a configurable function.
    Two builtin functions are provided out of the box: rules.CompareFunc which operates on comparable types and rules.CompareDeepEqualFunc which uses reflect.DeepEqual and operates on any type.

🧰 Maintenance

v0.10.0

Compare Source

What's Changed

🚀 Features

  • feat: Add alphanumeric rules (#​52) @​nieomylnieja

    Added rules.StringAlpha, rules.StringAlphanumeric, rules.StringAlphaUnicode and rules.StringAlphanumericUnicode which help ensure strings contain only letters and numbers (either ASCII or Unicode).

v0.9.1

Compare Source

What's Changed

⚠️ Breaking Changes

  • fix: Predicate matching for govy.PropertyRules (#​51) @​nieomylnieja

    govy.PropertyRules will no longer fail if Required() was specified when a validate value is its type's zero value AND none of the When() conditions are matched.

🐞 Bug Fixes

v0.9.0

Compare Source

What's Changed

🚀 Features

  • feat: Add StringDateTime and StringTimeZone rules (#​50) @​nieomylnieja

    Added StringDateTime rule which ensures a string is a valid date and time according to the rules defined by https://pkg.go.dev/time.
    Added StringTimeZone rule which ensures a string is a valid IANA Time Zone database code.

🧰 Maintenance

v0.8.0

Compare Source

What's Changed

🚀 Features

  • feat: Add AssertErrorContains (#​47) @​nieomylnieja

    Added govytest.AssertErrorContains function which helps test govy rules by checking if a produced govy.ValidatorError contains specified error.

v0.7.0

Compare Source

What's Changed

⚠️ Breaking Changes

  • feat: Add cascade mode setting to Validator (#​43) @​nieomylnieja

    govy.CascadeMode enum now starts from 1 (previously 0).

  • feat: Allow converting rules for pointers (#​42) @​nieomylnieja

    govy.NewRuleSet now only accepts govy.Rule. Previously passing anything else into it would not work either.

🚀 Features

  • feat: Add benchmark report (#​41) @​nieomylnieja

    Benchmarks for govy can now be easily inspected and tracked over time.

  • feat: Add cascade mode setting to Validator (#​43) @​nieomylnieja

    Added govy.Validator.Cascade which allows controlling error handling on govy.Validator level and propagating the setting to govy.PropertyRules. For more details on cascade mode read this.

  • feat: Allow converting rules for pointers (#​42) @​nieomylnieja

    Added two functions: govy.RuleToPointer and govy.RuleSetToPointer which both convert respectively govy.Rule[T] and govy.RuleSet[T] to work on pointers of the same type: govy.Rule[*T] and govy.RuleSet[*T].
    govytest.ExpectedRuleError no longer requires PropertyName to be provided, this allows testing properties which have no name.

🧰 Maintenance

4 changes

v0.6.0

Compare Source

What's Changed

🚀 Features

v0.5.0

Compare Source

What's Changed

🚀 Features

  • feat: Add file system rules (#​37) @​nieomylnieja

    Added 4 new rules: StringFileSystemPath, StringFilePath, StringDirPath and StringMatchFileSystemPath, which help verify file system paths and patterns.

  • feat: Add StringGitRef rule (#​35) @​nieomylnieja

    Added StringGitRef validation rule which checks if a string is a valid git reference according to the rules defined by git-check-ref-format.

  • feat: Add benchmarks (#​32) @​nieomylnieja

    Added benchmarks to builtin rules.

  • feat: Support validating slices of objects (#​30) @​nieomylnieja

    Added new validator function for slices: govy.Validator.ValidateSlice. It can be used to validate a slice of values, where each value has the same type as the validator's type constraint. Internally it calls govy.Validator.Validate on each element and returns govy.ValidatorErrors.

🧰 Maintenance

4 changes

v0.4.0

Compare Source

What's Changed

⚠️ Breaking Changes

  • chore: Simplify StringDNSLabel rule (#​29) @​nieomylnieja

    StringDNSLabel is no longer a RuleSet, instead it's now a single Rule.

🚀 Features

  • feat: Add WithNameFunc to Validator (#​28) @​nieomylnieja

    Added Validator.WithNameFunc function which can be used to dynamically set the validator's name per-instance.

🧰 Maintenance

v0.3.0

Compare Source

What's Changed

🚀 Features

  • feat: Add test utilities (#​25) @​nieomylnieja

    Added govytest package which exposes utilities which help test govy validation rules.
    It comes with two functions AssertNoError, which ensures no error was produced, and AssertError which checks that the expected errors are equal to the actual govy.ValidatorError.
    Added OneOfProperties rule which checks if at least one of the properties is set.

🧰 Maintenance

v0.2.0

Compare Source

What's Changed

⚠️ Breaking Changes

  • chore: Update README and add coverage report (#​22) @​nieomylnieja

    Changed NameInferDefaultRule to NameInferDefaultFunc.
    The change can be easily applied with the following command: gofmt -r 'govyconfig.NameInferDefaultRule -> govyconfig.NameInferDefaultFunc'.

  • feat: Improve development docs and SliceUnique, remove gomarkdoc (#​11) @​nieomylnieja

    SliceUnique error message has been changed.
    Before: elements are not unique, index 0 collides with index 2.
    After: elements are not unique, 1st and 3rd elements collide.

🚀 Features

  • feat: Add network rules (#​21) @​nieomylnieja

    New network rules for MAC, IP and CIDR (includes IPv4 and IPv6) along with StringEmail (based on RFC 5322) and StringExcludes which complements existing StringContains rule.

  • feat: Remove stretchr/testify dependency (#​20) @​nieomylnieja

    Govy no longer relies on stretchr/testify library for unit testing, thus limiting its module's dependency tree size significantly.

  • feat: Add lazy loading to regular expressions (#​16) @​nieomylnieja

    All regular expressions are now lazy loaded, once when the corresponding rule is used.

  • feat: Improve development docs and SliceUnique, remove gomarkdoc (#​11) @​nieomylnieja

    SliceUnique now reports more readable error messages using ordinal slice index form (e.g. 1st, 2nd, 11th) instead of 0-based slice index.

🧰 Maintenance

6 changes

Configuration

📅 Schedule: Branch creation - "* 0-4,22-23 * * 1-5,* * * * 0,6" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


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

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

@n9-machine-user n9-machine-user added chore Routine or minor duty task go Pull requests that update Go code patch Bug fixes and security updates labels Sep 9, 2024
@renovate renovate bot changed the title chore: Update module github.com/go-playground/validator/v10 to v10.22.1 chore: Update minor and patch Golang dependencies Sep 9, 2024
@renovate renovate bot force-pushed the renovate_minor-and-patch-golang-dependencies branch from 77ef63d to 75d3984 Compare September 9, 2024 18:56
Copy link
Contributor Author

renovate bot commented Sep 9, 2024

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 2 additional dependencies were updated
  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.22 -> 1.23.4
golang.org/x/mod v0.20.0 -> v0.22.0
golang.org/x/sync v0.8.0 -> v0.10.0

@renovate renovate bot force-pushed the renovate_minor-and-patch-golang-dependencies branch 3 times, most recently from ec6c43d to 1ebbdb1 Compare September 20, 2024 17:09
@renovate renovate bot force-pushed the renovate_minor-and-patch-golang-dependencies branch 3 times, most recently from aa2323a to 407938f Compare October 4, 2024 19:07
@renovate renovate bot force-pushed the renovate_minor-and-patch-golang-dependencies branch 2 times, most recently from 78658d2 to 68c7aef Compare November 3, 2024 19:32
@renovate renovate bot force-pushed the renovate_minor-and-patch-golang-dependencies branch 3 times, most recently from 3ac1307 to 41e32cd Compare November 8, 2024 19:53
@renovate renovate bot force-pushed the renovate_minor-and-patch-golang-dependencies branch 4 times, most recently from 31a7975 to 3f30eff Compare November 19, 2024 18:48
@renovate renovate bot force-pushed the renovate_minor-and-patch-golang-dependencies branch from 3f30eff to aa6e9fe Compare November 20, 2024 20:15
@renovate renovate bot force-pushed the renovate_minor-and-patch-golang-dependencies branch from aa6e9fe to da19fcf Compare December 5, 2024 01:57
@renovate renovate bot force-pushed the renovate_minor-and-patch-golang-dependencies branch from da19fcf to 246f5e8 Compare December 16, 2024 15:16
@renovate renovate bot force-pushed the renovate_minor-and-patch-golang-dependencies branch 5 times, most recently from 0837fcc to 9450ff7 Compare December 22, 2024 18:12
@renovate renovate bot changed the title chore: Update minor and patch Golang dependencies chore: Update module github.com/nobl9/govy to v0.11.0 Dec 31, 2024
@renovate renovate bot force-pushed the renovate_minor-and-patch-golang-dependencies branch from 9450ff7 to 03edb77 Compare December 31, 2024 04:09
@renovate renovate bot changed the title chore: Update module github.com/nobl9/govy to v0.11.0 chore: Update minor and patch Golang dependencies Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Routine or minor duty task dependencies go Pull requests that update Go code golang patch Bug fixes and security updates renovate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant