Skip to content

deps: update module github.com/ccoveille/go-safecast to v2#2845

Merged
dadrus merged 3 commits intoreleasefrom
renovate/github.com-ccoveille-go-safecast-2.x
Nov 4, 2025
Merged

deps: update module github.com/ccoveille/go-safecast to v2#2845
dadrus merged 3 commits intoreleasefrom
renovate/github.com-ccoveille-go-safecast-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Nov 4, 2025

This PR contains the following updates:

Package Change Age Confidence
github.com/ccoveille/go-safecast v1.8.1 -> v2.0.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

ccoveille/go-safecast (github.com/ccoveille/go-safecast)

v2.0.0

Compare Source

What brings the v2 ?

Fixed

  • float overflow handling with parse float from string

    Previously, it returned an ErrStringConversion error while it's an overflow.
    Now it returns the proper overflow error.

BREAKING CHANGES

  • package no longer supports converting from bool

true/false are no longer converted to 1/0
These values cannot overflow, this was an error.

  • Convert no longer supports converting from string

You can now use Parse function

  • string to number conversion no longer uses base 0 (auto-detect in Go strconv library)

Use Parse function with proper base instead

This solves issue with 07 being parsed as 7, and 08 being reported as an invalid octal

  • Convert no longer returns 0 when conversion fails (e6c5137)

It now returns the invalid converted value with the error

  • Removed Input type (Input=string|bool|Number)

This type was used by Convert function to represent input value.
Now Convert function uses Number type directly.

This also drastically improves performance as it removes the type assertion checks.

All of these was introduced with ccoVeille#120

Minor

Full Changelog: ccoVeille/go-safecast@v1.8.1...v2.0.0

v1.8.2: deprecate the v1

Compare Source

What's Changed

v1 is now deprecated, please use v2

d47929d

Full Changelog: ccoVeille/go-safecast@v1.8.1...v1.8.2


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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

🔕 Ignore: Close this PR and you won't be reminded about this update again.


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

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

@renovate renovate bot added the dependency label Nov 4, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.29%. Comparing base (f573605) to head (59efb58).
⚠️ Report is 1 commits behind head on release.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           release    #2845   +/-   ##
========================================
  Coverage    91.29%   91.29%           
========================================
  Files          283      283           
  Lines        10667    10667           
========================================
  Hits          9738     9738           
  Misses         677      677           
  Partials       252      252           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate
Copy link
Copy Markdown
Contributor Author

renovate bot commented Nov 4, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@dadrus dadrus merged commit 27e50c4 into release Nov 4, 2025
19 checks passed
@dadrus dadrus deleted the renovate/github.com-ccoveille-go-safecast-2.x branch November 4, 2025 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant