[PR #683] chore(deps): bump github.com/qdm12/gosettings from 0.4.0-rc9 to 0.4.1 #797

Closed
opened 2025-11-20 04:26:06 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/qdm12/ddns-updater/pull/683

State: closed
Merged: Yes


Bumps github.com/qdm12/gosettings from 0.4.0-rc9 to 0.4.1.

Release notes

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

v0.4.1

Fixes

  • do not reuse key to try transformed for previous source

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

... (truncated)

Commits
  • 4920427 hotfix(parse): do not reuse key to try transformed for previous source
  • 021e75a chore(validate): fix listen address test for bind capable environment
  • 6cc9afe feat(reader): add IsRetro option
  • See full diff in compare view

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)
**Original Pull Request:** https://github.com/qdm12/ddns-updater/pull/683 **State:** closed **Merged:** Yes --- Bumps [github.com/qdm12/gosettings](https://github.com/qdm12/gosettings) from 0.4.0-rc9 to 0.4.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/qdm12/gosettings/releases">github.com/qdm12/gosettings's releases</a>.</em></p> <blockquote> <h2>v0.4.1</h2> <h2>Fixes</h2> <ul> <li>do not reuse key to try transformed for previous source</li> </ul> <h2>v0.4.0</h2> <h2>Breaking changes</h2> <ul> <li><code>reader</code> and <code>internal/parse</code> packages which replace previous <code>sources/env</code> and <code>sources/merge</code> packages <ul> <li>Reader reads from multiple sources in order for each call</li> <li>By default, the reader uses the flags source then the environment variable source</li> <li><code>internal/parse</code> contains only pure functions to make full use of Go 1.18+ generics</li> <li>Update all code comments, merge example and readme document</li> </ul> </li> <li>Merge functions in merge.go removed (now unneeded due to <code>reader</code> package handling the merging)</li> <li>Override: <code>OverrideWithComparable</code> function, replacing <code>OverrideWithNumber</code>, <code>OverrideWithString</code>, <code>OverrideWithPointerRaw</code>, <code>OverrideWithInterface</code> and <code>OverrideWithSliceRaw</code></li> <li>Defaults: <code>DefaultComparable</code> function, replacing <code>DefaultNumber</code>, <code>DefaultString</code>, <code>DefaultPointerRaw</code>, <code>DefaultInterface</code> and <code>DefaultSliceRaw</code></li> <li><code>Number</code> constraint and <code>constraints.go</code> file removed (no longer needed)</li> </ul> <h2>Features</h2> <ul> <li><code>reader/sources/env</code> environment variable reader-compatible source</li> <li><code>reader/sources/flags</code> CLI flags reader-compatible source</li> <li><code>reader</code> package (previously <code>sources/env</code>): <ul> <li>add <code>DefaultOptions</code> setting to apply to each read</li> <li>add <code>FirstKeySet</code> method</li> <li>add <code>CSVNetipAddresses</code> method</li> <li>add <code>NetipPrefix</code> method</li> <li>add <code>NetipAddrPort</code> method</li> <li>add <code>CSVNetipAddrPorts</code> method</li> <li>add builtin types methods: <code>Int8</code>, <code>Int16</code>, <code>Int32</code>, <code>Int64</code>, <code>Int8Ptr</code>, <code>Int16Ptr</code>, <code>Int32Ptr</code>, <code>Int64Ptr</code>, <code>Float32</code>, <code>Float32Ptr</code> and <code>Float64Ptr</code></li> </ul> </li> </ul> <h2>Fixes</h2> <ul> <li><code>validate</code>: allow empty listening addresses</li> <li><code>validate</code>: listening port validation <ul> <li>Check non root users against unprivileged start port found from Kernel file on Linux</li> <li>Check if the running program has the net_bind_service capability if trying to listen on a privileged port without root or windows</li> </ul> </li> <li><code>internal/parse</code> (previously within <code>sources/env/parse.go</code>): <ul> <li>try parsing the empty string if <code>AllowEmpty(true)</code> option is specified</li> </ul> </li> <li><code>reader</code> and <code>internal/parse</code> (previously <code>sources/env</code>): <ul> <li><code>BoolPtr</code> returns <code>nil</code> when the empty string is found</li> </ul> </li> </ul> <h2>Documentation</h2> <ul> <li>Update readme and examples with the new usage to merge settings from different sources</li> <li>Review code comments <ul> <li>fix godoc comments bullet list formatting</li> <li>fix godoc comments new lines formatting</li> <li>mention default settings for CSV methods</li> <li>mention nil slices conditions for CSV methods</li> </ul> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/qdm12/gosettings/commit/4920427d006834135a89dff4b8e20f16f9ea7e74"><code>4920427</code></a> hotfix(parse): do not reuse key to try transformed for previous source</li> <li><a href="https://github.com/qdm12/gosettings/commit/021e75ae90a4cc1dd4060cc5db0a266352406289"><code>021e75a</code></a> chore(validate): fix listen address test for bind capable environment</li> <li><a href="https://github.com/qdm12/gosettings/commit/6cc9afe3e4a023782e7bb2e99abd1d637d912071"><code>6cc9afe</code></a> feat(reader): add <code>IsRetro</code> option</li> <li>See full diff in <a href="https://github.com/qdm12/gosettings/compare/v0.4.0-rc9...v0.4.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/qdm12/gosettings&package-manager=go_modules&previous-version=0.4.0-rc9&new-version=0.4.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details>
saavagebueno added the pull-request label 2025-11-20 04:26:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#797