What's Changed
🚀 New Features
- Definitions required for client by @wangjq4214 in https://github.com/gofiber/utils/pull/29
- Add IsIPv4/v6 util by @sadfun in https://github.com/gofiber/utils/pull/32
- Add timestamp calculation functionality by @ReneWerner87 in https://github.com/gofiber/utils/pull/33
- RFC8478 - Add the application/zstd Media Type by @gaby in https://github.com/gofiber/utils/pull/75
- Add IfToLower and IfToUpper functions for converting ASCII strings to lowercase and uppercase respectively by @sixcolors in https://github.com/gofiber/utils/pull/76
- Add fiber trim functions by @ReneWerner87 in https://github.com/gofiber/utils/pull/91
- Add support for CBOR encoding by @imsk17 in https://github.com/gofiber/utils/pull/94
- Add support for stopping timestamp updater by @gaby in https://github.com/gofiber/utils/pull/101
- Add support for MsgPack by @hotrungnhan in https://github.com/gofiber/utils/pull/118
- Support case-insensitive parsing of Content Type by @gaby in https://github.com/gofiber/utils/pull/125
- Add parse functions by @ReneWerner87 in https://github.com/gofiber/utils/pull/133
- Add parse float by @ReneWerner87 in https://github.com/gofiber/utils/pull/134
- Add ParseInt16/Uint16 functions by @ReneWerner87 in https://github.com/gofiber/utils/pull/135
- Add AddTrailingSlash by @duhnnie in https://github.com/gofiber/utils/pull/162
- Add GenerateSecureToken and SecureToken (256-bit default) by @sixcolors in https://github.com/gofiber/utils/pull/165
- Add UUID alias for UUIDv4 by @ReneWerner87 in https://github.com/gofiber/utils/pull/178
🧹 Updates
- http: update list of HTTP status codes by @leonklingele in https://github.com/gofiber/utils/pull/37
- time: do not export timestamp var, instead provide helper function to retrieve it by @leonklingele in https://github.com/gofiber/utils/pull/38
- Improve ToString by 20% by @Fenny in https://github.com/gofiber/utils/pull/62
- ToString: improve test and bench setup by @ReneWerner87 in https://github.com/gofiber/utils/pull/63
- Improve UnsafeBytes with Go 1.20+ by @Fenny in https://github.com/gofiber/utils/pull/64
- Update unsafe functions by @ReneWerner87 in https://github.com/gofiber/utils/pull/65
- Improve Unit-Tests Coverage and CI Workflows by @gaby in https://github.com/gofiber/utils/pull/79
- Add support for go1.23 and golangci-lint v1.61.0 by @gaby in https://github.com/gofiber/utils/pull/92
- Add support for go1.24, and drop go1.22 by @gaby in https://github.com/gofiber/utils/pull/108
- Improve utils performance by @ReneWerner87 in https://github.com/gofiber/utils/pull/116
- Improve tests coverage by @gaby in https://github.com/gofiber/utils/pull/117
- Improve ToLower/ToUpper performance by @gaby in https://github.com/gofiber/utils/pull/119
- strings: improve tests for case conversion functions to improve coverage and performance benchmarks by @sixcolors in https://github.com/gofiber/utils/pull/122
- tests: enhance benchmarks by separating allocation checks from main loops and adding input size reporting for throughput metrics by @sixcolors in https://github.com/gofiber/utils/pull/123
- Fix timestamp updater synchronization and improve tests by @sixcolors in https://github.com/gofiber/utils/pull/126
- Improve ConvertToBytes performance by @ReneWerner87 in https://github.com/gofiber/utils/pull/127
- Increase unit test coverage by @ReneWerner87 in https://github.com/gofiber/utils/pull/129
- Fix dependabot config by @ReneWerner87 in https://github.com/gofiber/utils/pull/130
- Improve ByteSize function by @ReneWerner87 in https://github.com/gofiber/utils/pull/132
- Expand test coverage by @gaby in https://github.com/gofiber/utils/pull/136
- Improve parse functions - error handling by @ReneWerner87 in https://github.com/gofiber/utils/pull/137
- Refactor string conversion test cases for clarity and performance by @sixcolors in https://github.com/gofiber/utils/pull/139
- Add cbor in mimeExtension list by @ReneWerner87 in https://github.com/gofiber/utils/pull/144
- Performance: unroll loops (saves ~20-40% cpu) by @arturmelanchyk in https://github.com/gofiber/utils/pull/158
- Optimize IsIPv6 parsing by @google-labs-jules[bot] in https://github.com/gofiber/utils/pull/163
- Create faster TrimSpace method with benchmarks by @ReneWerner87 in https://github.com/gofiber/utils/pull/164
- Optimize TrimSpace by @ReneWerner87 in https://github.com/gofiber/utils/pull/166
- Optimize string manipulation functions and improve error handling by @ReneWerner87 in https://github.com/gofiber/utils/pull/167
- Enhance AppendInt to utilize cache for small negative integers by @ReneWerner87 in https://github.com/gofiber/utils/pull/168
- Simplify SecureToken API by removing the *Must variants by @sixcolors in https://github.com/gofiber/utils/pull/171
🐛 Bug Fixes
- Fix mismatch minimum go version to match gofiber/fiber by @gaby in https://github.com/gofiber/utils/pull/70
- Fix IPv4 boundary checking by @fufuok in https://github.com/gofiber/utils/pull/73
- Fix FunctionName nil handling by @gaby in https://github.com/gofiber/utils/pull/131
- Fix ToUpper/ToLower allocation tests failing with race detector in CI by @Copilot in https://github.com/gofiber/utils/pull/142
🛠️ Maintenance
- Bump dependabot/fetch-metadata from 1.3.3 to 1.3.4 by @dependabot[bot] in https://github.com/gofiber/utils/pull/31
- Bump github.com/stretchr/testify from 1.8.0 to 1.8.1 by @dependabot[bot] in https://github.com/gofiber/utils/pull/34
- Bump lewagon/wait-on-check-action from 1.1.2 to 1.2.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/35
- Bump dependabot/fetch-metadata from 1.3.4 to 1.3.5 by @dependabot[bot] in https://github.com/gofiber/utils/pull/36
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot[bot] in https://github.com/gofiber/utils/pull/39
- Bump lewagon/wait-on-check-action from 1.2.0 to 1.3.1 by @dependabot[bot] in https://github.com/gofiber/utils/pull/40
- Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 by @dependabot[bot] in https://github.com/gofiber/utils/pull/41
- Bump actions/setup-go from 3 to 4 by @dependabot[bot] in https://github.com/gofiber/utils/pull/42
- Add go 1.20 to test matrix by @gaby in https://github.com/gofiber/utils/pull/43
- Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/44
- Bump github.com/stretchr/testify from 1.8.2 to 1.8.3 by @dependabot[bot] in https://github.com/gofiber/utils/pull/45
- Bump actions/setup-go from 4 to 5 by @dependabot[bot] in https://github.com/gofiber/utils/pull/53
- Bump lewagon/wait-on-check-action from 1.3.1 to 1.3.3 by @dependabot[bot] in https://github.com/gofiber/utils/pull/57
- Bump actions/cache from 3 to 4 by @dependabot[bot] in https://github.com/gofiber/utils/pull/58
- Bump nick-fields/retry from 2 to 3 by @dependabot[bot] in https://github.com/gofiber/utils/pull/60
- Bump release-drafter/release-drafter from 5 to 6 by @dependabot[bot] in https://github.com/gofiber/utils/pull/61
- Bump fuxingloh/multi-labeler from 2 to 3 by @dependabot[bot] in https://github.com/gofiber/utils/pull/66
- Bump fuxingloh/multi-labeler from 3 to 4 by @dependabot[bot] in https://github.com/gofiber/utils/pull/67
- Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/71
- Add CODEOWNERS file by @gaby in https://github.com/gofiber/utils/pull/72
- Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/74
- Bump lewagon/wait-on-check-action from 1.3.3 to 1.3.4 by @dependabot[bot] in https://github.com/gofiber/utils/pull/78
- Bump codecov/codecov-action from 4.1.1 to 4.3.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/80
- Bump golangci/golangci-lint-action from 4 to 5 by @dependabot[bot] in https://github.com/gofiber/utils/pull/81
- Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/82
- Bump codecov/codecov-action from 4.3.0 to 4.3.1 by @dependabot[bot] in https://github.com/gofiber/utils/pull/83
- Bump golangci/golangci-lint-action from 5 to 6 by @dependabot[bot] in https://github.com/gofiber/utils/pull/84
- Bump codecov/codecov-action from 4.3.1 to 4.4.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/85
- Bump codecov/codecov-action from 4.4.0 to 4.4.1 by @dependabot[bot] in https://github.com/gofiber/utils/pull/86
- Bump golangci-lint to v1.59.1 by @gaby in https://github.com/gofiber/utils/pull/87
- Bump codecov/codecov-action from 4.4.1 to 4.5.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/88
- Bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/89
- Bump codecov/codecov-action from 4.5.0 to 4.6.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/93
- Bump codecov/codecov-action from 4.6.0 to 5.0.2 by @dependabot[bot] in https://github.com/gofiber/utils/pull/96
- Bump codecov/codecov-action from 5.0.2 to 5.0.7 by @dependabot[bot] in https://github.com/gofiber/utils/pull/98
- Bump github.com/stretchr/testify from 1.9.0 to 1.10.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/99
- Bump codecov/codecov-action from 5.0.7 to 5.1.1 by @dependabot[bot] in https://github.com/gofiber/utils/pull/100
- Bump codecov/codecov-action from 5.1.1 to 5.1.2 by @dependabot[bot] in https://github.com/gofiber/utils/pull/102
- Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/105
- Bump codecov/codecov-action from 5.1.2 to 5.3.1 by @dependabot[bot] in https://github.com/gofiber/utils/pull/106
- Bump github.com/fxamacker/cbor/v2 from 2.7.0 to 2.8.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/110
- Bump codecov/codecov-action from 5.4.0 to 5.4.2 by @dependabot[bot] in https://github.com/gofiber/utils/pull/111
- Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/113
- Bump codecov/codecov-action from 5.4.2 to 5.4.3 by @dependabot[bot] in https://github.com/gofiber/utils/pull/114
- Bump lewagon/wait-on-check-action from 1.3.4 to 1.4.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/121
- Bump actions/checkout from 3 to 5 by @dependabot[bot] in https://github.com/gofiber/utils/pull/147
- Bump codecov/codecov-action from 5.4.3 to 5.5.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/148
- Bump github.com/stretchr/testify from 1.10.0 to 1.11.1 by @dependabot[bot] in https://github.com/gofiber/utils/pull/150
- Bump github.com/shamaton/msgpack/v2 from 2.2.3 to 2.3.1 by @dependabot[bot] in https://github.com/gofiber/utils/pull/151
- Bump actions/setup-go from 5 to 6 by @dependabot[bot] in https://github.com/gofiber/utils/pull/152
- Bump codecov/codecov-action from 5.5.0 to 5.5.1 by @dependabot[bot] in https://github.com/gofiber/utils/pull/153
- Bump lewagon/wait-on-check-action from 1.4.0 to 1.4.1 by @dependabot[bot] in https://github.com/gofiber/utils/pull/154
- Bump github/codeql-action from 3 to 4 by @dependabot[bot] in https://github.com/gofiber/utils/pull/155
- Bump github.com/shamaton/msgpack/v2 from 2.3.1 to 2.4.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/157
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in https://github.com/gofiber/utils/pull/161
- Update golangci-lint tooling by @ReneWerner87 in https://github.com/gofiber/utils/pull/160
- Bump codecov/codecov-action from 5.5.1 to 5.5.2 by @dependabot[bot] in https://github.com/gofiber/utils/pull/172
- Bump actions/cache from 4 to 5 by @dependabot[bot] in https://github.com/gofiber/utils/pull/174
- Fix grammar in README description by @sixcolors in https://github.com/gofiber/utils/pull/176
- Bump codecov/codecov-action from 5.5.1 to 5.5.2 by @dependabot[bot] in https://github.com/gofiber/utils/pull/177
- Bump dependabot/fetch-metadata from 2.4.0 to 2.5.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/180
- Upgrade shamaton/msgpack from v2.4.0 to v3.0.0 by @shamaton in https://github.com/gofiber/utils/pull/181
- Bump lewagon/wait-on-check-action from 1.4.1 to 1.5.0 by @dependabot[bot] in https://github.com/gofiber/utils/pull/182
- Add editorconfig by @ReneWerner87 in https://github.com/gofiber/utils/pull/145
📚 Documentation
- Add CODEOWNERS file by @gaby in https://github.com/gofiber/utils/pull/72
- Fix grammar in README description by @sixcolors in https://github.com/gofiber/utils/pull/176
Other Changes
- Fixes and refactoring of CI files by @gaby in https://github.com/gofiber/utils/pull/56
- Add Go benchmark formatter by @ReneWerner87 in https://github.com/gofiber/utils/pull/138
- Add modernize workflow by @ReneWerner87 in https://github.com/gofiber/utils/pull/143
- Pin gotestsum version for Go 1.23 compatibility by @ReneWerner87 in https://github.com/gofiber/utils/pull/156
New Contributors
- @wangjq4214 made their first contribution in https://github.com/gofiber/utils/pull/29
- @sadfun made their first contribution in https://github.com/gofiber/utils/pull/32
- @leonklingele made their first contribution in https://github.com/gofiber/utils/pull/37
- @gaby made their first contribution in https://github.com/gofiber/utils/pull/43
- @fufuok made their first contribution in https://github.com/gofiber/utils/pull/73
- @imsk17 made their first contribution in https://github.com/gofiber/utils/pull/94
- @hotrungnhan made their first contribution in https://github.com/gofiber/utils/pull/118
- @arturmelanchyk made their first contribution in https://github.com/gofiber/utils/pull/158
- @google-labs-jules[bot] made their first contribution in https://github.com/gofiber/utils/pull/163
- @duhnnie made their first contribution in https://github.com/gofiber/utils/pull/162
- @shamaton made their first contribution in https://github.com/gofiber/utils/pull/181
Full Changelog: https://github.com/gofiber/utils/compare/v1.2.0...v2.0.0