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): Bump github.com/qdm12/gosettings from 0.4.0-rc9.0.20240323143821-6cc9afe3e4a0 to 0.4.0 #2185

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 26, 2024

Bumps github.com/qdm12/gosettings from 0.4.0-rc9.0.20240323143821-6cc9afe3e4a0 to 0.4.0.

Release notes

Sourced from github.com/qdm12/gosettings's releases.

v0.4.0

Breaking changes

  • reader and internal/parse packages which replace previous sources/env and sources/merge packages
    • Reader reads from multiple sources in order for each call
    • By default, the reader uses the flags source then the environment variable source
    • internal/parse contains only pure functions to make full use of Go 1.18+ generics
    • Update all code comments, merge example and readme document
  • Merge functions in merge.go removed (now unneeded due to reader package handling the merging)
  • Override: OverrideWithComparable function, replacing OverrideWithNumber, OverrideWithString, OverrideWithPointerRaw, OverrideWithInterface and OverrideWithSliceRaw
  • Defaults: DefaultComparable function, replacing DefaultNumber, DefaultString, DefaultPointerRaw, DefaultInterface and DefaultSliceRaw
  • Number constraint and constraints.go file removed (no longer needed)

Features

  • reader/sources/env environment variable reader-compatible source
  • reader/sources/flags CLI flags reader-compatible source
  • reader package (previously sources/env):
    • add DefaultOptions setting to apply to each read
    • add FirstKeySet method
    • add CSVNetipAddresses method
    • add NetipPrefix method
    • add NetipAddrPort method
    • add CSVNetipAddrPorts method
    • add builtin types methods: Int8, Int16, Int32, Int64, Int8Ptr, Int16Ptr, Int32Ptr, Int64Ptr, Float32, Float32Ptr and Float64Ptr

Fixes

  • validate: allow empty listening addresses
  • validate: listening port validation
    • Check non root users against unprivileged start port found from Kernel file on Linux
    • Check if the running program has the net_bind_service capability if trying to listen on a privileged port without root or windows
  • internal/parse (previously within sources/env/parse.go):
    • try parsing the empty string if AllowEmpty(true) option is specified
  • reader and internal/parse (previously sources/env):
    • BoolPtr returns nil when the empty string is found

Documentation

  • Update readme and examples with the new usage to merge settings from different sources
  • Review code comments
    • fix godoc comments bullet list formatting
    • fix godoc comments new lines formatting
    • mention default settings for CSV methods
    • mention nil slices conditions for CSV methods
    • change function comment the error context to its message
    • fix CSVNetipPrefixes method comment
    • review AcceptEmpty option comment

Maintenance

... (truncated)

Commits

Dependabot compatibility score

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)

Bumps [github.com/qdm12/gosettings](https://github.com/qdm12/gosettings) from 0.4.0-rc9.0.20240323143821-6cc9afe3e4a0 to 0.4.0.
- [Release notes](https://github.com/qdm12/gosettings/releases)
- [Commits](https://github.com/qdm12/gosettings/commits/v0.4.0)

---
updated-dependencies:
- dependency-name: github.com/qdm12/gosettings
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 26, 2024

Looks like github.com/qdm12/gosettings is up-to-date now, so this is no longer needed.

@dependabot dependabot bot closed this Mar 26, 2024
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/qdm12/gosettings-0.4.0 branch March 26, 2024 07:25
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.

None yet

0 participants