Commit 3df4aa3
authored
deps: update module github.com/spf13/cast to v1.9.2 (#1065)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/spf13/cast](https://redirect.github.com/spf13/cast) |
`v1.8.0` -> `v1.9.2` |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
<details>
<summary>spf13/cast (github.com/spf13/cast)</summary>
###
[`v1.9.2`](https://redirect.github.com/spf13/cast/releases/tag/v1.9.2)
[Compare
Source](https://redirect.github.com/spf13/cast/compare/v1.9.1...v1.9.2)
#### What's Changed
- fix: float string to number parsing by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/276](https://redirect.github.com/spf13/cast/pull/276)
**Full Changelog**:
spf13/cast@v1.9.1...v1.9.2
###
[`v1.9.1`](https://redirect.github.com/spf13/cast/releases/tag/v1.9.1)
[Compare
Source](https://redirect.github.com/spf13/cast/compare/v1.9.0...v1.9.1)
#### What's Changed
- fix: indirection of typed nils by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/273](https://redirect.github.com/spf13/cast/pull/273)
**Full Changelog**:
spf13/cast@v1.9.0...v1.9.1
###
[`v1.9.0`](https://redirect.github.com/spf13/cast/releases/tag/v1.9.0)
[Compare
Source](https://redirect.github.com/spf13/cast/compare/v1.8.0...v1.9.0)
#### Notable new features 🎉
- Casting *from* type aliases is now supported for basic types
- Added generic functions: `To`/`ToE`, `Must`, `ToNumber`/`ToNumberE`
- Increased test coverage
- Converting float numbers from string is now supported
#### What's Changed
- build(deps): bump github/codeql-action from 3.28.17 to 3.28.18 by
[@​dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/cast/pull/248](https://redirect.github.com/spf13/cast/pull/248)
- build(deps): bump actions/dependency-review-action from 4.6.0 to 4.7.1
by [@​dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/cast/pull/247](https://redirect.github.com/spf13/cast/pull/247)
- build(deps): bump actions/setup-go from 5.4.0 to 5.5.0 by
[@​dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/cast/pull/245](https://redirect.github.com/spf13/cast/pull/245)
- refactor: move number parsing to generic functions by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/250](https://redirect.github.com/spf13/cast/pull/250)
- Improve ToString/ToStringE performance by
[@​ganigeorgiev](https://redirect.github.com/ganigeorgiev) in
[https://github.com/spf13/cast/pull/244](https://redirect.github.com/spf13/cast/pull/244)
- Split caste.go into smaller files by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/251](https://redirect.github.com/spf13/cast/pull/251)
- refactor: remove unused initial int conversion by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/253](https://redirect.github.com/spf13/cast/pull/253)
- Generate code to make maintenance easier by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/252](https://redirect.github.com/spf13/cast/pull/252)
- feat: add To and ToNumber functions by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/255](https://redirect.github.com/spf13/cast/pull/255)
- build(deps): bump golangci/golangci-lint-action from 7.0.0 to 8.0.0 by
[@​dependabot](https://redirect.github.com/dependabot) in
[https://github.com/spf13/cast/pull/243](https://redirect.github.com/spf13/cast/pull/243)
- Move tests next to their implementation by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/256](https://redirect.github.com/spf13/cast/pull/256)
- Refactor number tests by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/257](https://redirect.github.com/spf13/cast/pull/257)
- feat: return 0 when casting an empty string to a number by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/259](https://redirect.github.com/spf13/cast/pull/259)
- Support converting string float numbers to integer types by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/261](https://redirect.github.com/spf13/cast/pull/261)
- Test improvements by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/262](https://redirect.github.com/spf13/cast/pull/262)
- Improvements by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/263](https://redirect.github.com/spf13/cast/pull/263)
- refactor: return indirection result from indirect function by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/264](https://redirect.github.com/spf13/cast/pull/264)
- Slice improvements by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/265](https://redirect.github.com/spf13/cast/pull/265)
- refactor: move error message to a constant by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/267](https://redirect.github.com/spf13/cast/pull/267)
- chore: improve map cast functions by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/269](https://redirect.github.com/spf13/cast/pull/269)
- Resolve aliases by
[@​sagikazarmark](https://redirect.github.com/sagikazarmark) in
[https://github.com/spf13/cast/pull/271](https://redirect.github.com/spf13/cast/pull/271)
#### New Contributors
- [@​ganigeorgiev](https://redirect.github.com/ganigeorgiev) made
their first contribution in
[https://github.com/spf13/cast/pull/244](https://redirect.github.com/spf13/cast/pull/244)
**Full Changelog**:
spf13/cast@v1.8.0...v1.9.0
</details>
---
### 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.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/hetznercloud/cli).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4zMy42IiwidXBkYXRlZEluVmVyIjoiNDAuMzMuNiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent 30a1b58 commit 3df4aa3
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
| 101 | + | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments