v1.22.0
Summary
Huge performance gain, thanks to a refactoring of the error builder (#121):
- Use of lazy loading in error builder
- -90% error build time and no more alloc when wrapping nil error (general case)
- -30% to -90% error build time and memory allocation for effective errors
Features
- perf/multiple perf improvements by @samber in #108
- feature/caller skip by @samber in #109
- fix: change User and Tenant param type to ...any by @cley44 in #36
- feat: add AsError[T] generic helper and document AsOops in README by @samber in #103
- fix: OopsError.Is() now compares by identity, not by type by @samber in #105
- fix(trace): explicit Trace() always beats auto-generated trace by @samber in #106
- fix: deep review improvements — bug fixes, docs, and test coverage by @samber in #107
- refactor(tests): migrate to table-driven test pattern by @samber in #120
- refactor(builder): migrate to functional options pattern (linked-list optionFunc) by @samber in #121
- feat: add OopsError.Layers() to inspect individual error chain layers by @samber in #110
- test: add table-driven unit tests for recursive functions by @samber in #111
CI
- chore(ci): adding codeql by @samber in #98
- ci: disable govulncheck, pin go-version-file and add trivyignore in security workflow by @samber in #119
- fix: security scan CI failures by @samber in #112
#115
Dependencies
- chore(deps): bump github.com/samber/lo from 1.52.0 to 1.53.0 by @dependabot[bot] in #102
- chore(deps): bump codecov/codecov-action from 5 to 6 by @dependabot[bot] in #100
- chore(deps): bump softprops/action-gh-release from 2 to 3 by @dependabot[bot] in #117
- chore(deps): bump aquasecurity/trivy-action from 0.35.0 to 0.36.0 by @dependabot[bot] in
- ci: add dependabot automerge workflow by @headless-samber in #118
Other
New Contributors
- @cley44 made their first contribution in #36
- @headless-samber made their first contribution in #118
Full Changelog: v1.21.0...v1.22.0