Skip to content

Releases: samber/oops

v1.23.1

Choose a tag to compare

@github-actions github-actions released this 23 Aug 19:40

What's Changed

  • chore(deps): bump github/codeql-action from 4 to 4.37.3 by @dependabot[bot] in #142
  • chore(deps): bump actions/setup-go from 6 to 7 by @dependabot[bot] in #143
  • chore(deps): bump github.com/oklog/ulid/v2 from 2.1.1 to 2.1.2 by @dependabot[bot] in #141

Full Changelog: v1.23.0...v1.23.1

v1.23.0

Choose a tag to compare

@github-actions github-actions released this 06 Jul 19:40

Significant performance improvements: stack traces are now constructed lazily, reducing their cost by up to 90% on code paths where they are not needed.

Performance

  • perf(stacktrace): defer frame symbolization to first read 🔥 😍😍😍 by @samber in #137
  • perf(helpers): fast-path type assertion in AsOops before errors.As by @samber in #134
  • perf(stacktrace): defer shortFuncName to kept frames; drop Sprintf in frame.String by @samber in #136
  • perf(error): cut intermediate allocations in LogValue, ToMap and formatVerbose by @samber in #135
  • perf(kv): skip merge of absent context/user/tenant maps in snapshot by @samber in #138
  • perf(error): check SourceFragmentsHidden before formatting sources by @samber in #139
  • perf: reduce allocations in hot paths by @samber in #122
  • perf/reduce allocations by @samber in #123
  • perf: single-pass chain traversal in LogValue/ToMap/formatVerbose by @samber in #124
  • perf: fast-path common pointer types in dereferencePointers + inline tag dedup by @samber in #125

Dependencies

  • chore(deps): bump github.com/sirupsen/logrus from 1.9.1 to 1.9.4 by @dependabot[bot] in #130
  • chore(deps): bump go.uber.org/zap from 1.26.0 to 1.28.0 by @dependabot[bot] in #126
  • chore(deps): bump actions/checkout from 6 to 7 by @dependabot[bot] in #131
  • chore(deps): bump codecov/codecov-action from 6 to 7 by @dependabot[bot] in #132

Full Changelog: v1.22.0...v1.23.0

v1.22.0

Choose a tag to compare

@github-actions github-actions released this 26 May 23:19

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

  • doc: clarify why Wrapf uses fmt.Errorf instead of fmt.Sprintf by @samber in #104

New Contributors

Full Changelog: v1.21.0...v1.22.0

v1.21.0

Choose a tag to compare

@github-actions github-actions released this 18 Jan 21:49

What's Changed

New Contributors

Full Changelog: v1.20.0...v1.21.0

v1.20.0

Choose a tag to compare

@github-actions github-actions released this 01 Jan 19:58

What's Changed

Other

  • chore(deps): bump actions/checkout from 5 to 6 by @dependabot[bot] in #91
  • chore(deps): bump golangci/golangci-lint-action from 8 to 9 by @dependabot[bot] in #92
  • chore(deps): bump github.com/sirupsen/logrus from 1.9.0 to 1.9.1 in /loggers/logrus by @dependabot[bot] in #93

New Contributors

Full Changelog: v1.19.4...v1.20.0

v1.19.4

Choose a tag to compare

@github-actions github-actions released this 13 Nov 20:20

What's Changed

  • test: ensure stacktrace test runs only on main repo by @sruehl in #86
  • fix: use strings.Builder for looped concat by @sruehl in #84
  • fix(test): the test skipping condition has been reversed by @samber in #88
  • fix(errors.Is): fix errors.Is(oopsErr, oopsErr) by @samber in #89

Other

  • chore(deps): bump actions/setup-go from 5 to 6 by @dependabot[bot] in #80
  • chore(deps): bump github.com/samber/lo from 1.51.0 to 1.52.0 by @dependabot[bot] in #83

New Contributors

Full Changelog: v1.19.3...v1.19.4

v1.19.3

Choose a tag to compare

@github-actions github-actions released this 01 Oct 15:29

Caution

This is a re-release of v0.19.2. I made a mistake in semver versioning.

What's Changed

  • refactor(sources): refactor the sources and example by @samber in #71
  • style(lint): add .golangci.yml by @samber in #77
  • Fix/errors is panic by @samber in #79

Other

  • chore(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in #73
  • chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.0 by @dependabot[bot] in #74
  • chore(deps): bump github.com/stretchr/testify from 1.11.0 to 1.11.1 by @dependabot[bot] in #75

Full Changelog: v1.19.0...v1.19.3

v0.19.2

Choose a tag to compare

@github-actions github-actions released this 01 Oct 14:04

Caution

I made a mistake while naming this release. It does not follow semver versioning. Please upgrade to v1.19.3 instead.

What's Changed

  • refactor(sources): refactor the sources and example by @samber in #71
  • Fix/errors is panic by @samber in #79
  • style(lint): add .golangci.yml by @samber in #77

Other

  • chore(deps): bump github.com/samber/lo from 1.50.0 to 1.51.0 by @dependabot[bot] in #69
  • chore(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in #73
  • chore(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.0 by @dependabot[bot] in #74
  • chore(deps): bump github.com/stretchr/testify from 1.11.0 to 1.11.1 by @dependabot[bot] in #75

Full Changelog: v1.18.1...v0.19.2

v0.19.1

Choose a tag to compare

@github-actions github-actions released this 30 Jun 17:05

Caution

I made a mistake while naming this release. It does not follow semver versioning. Please upgrade to v1.19.3 instead.

What's Changed

  • refactor(sources): refactor the sources and example by @samber in #71

Full Changelog: v1.19.0...v0.19.1

v1.19.0

Choose a tag to compare

@github-actions github-actions released this 27 Jun 14:29

What's Changed

  • Improved code safety in 0824269
  • Added more documentation, tests, and examples

Dependencies

  • chore(deps): bump github.com/samber/lo from 1.50.0 to 1.51.0 by @dependabot in #69

Full Changelog: v1.18.1...v1.19.0