Skip to content

v1.5.0

Latest

Choose a tag to compare

@ssgreg ssgreg released this 07 Mar 20:08
1080384

What's Changed

Refactor

  • Slice field constructors (Bytes, Ints64, Floats64, etc.) now eagerly copy
    the backing array and delegate to Const* counterparts
  • Any() handles Snapshotter interface directly in the constructor
  • Removed snapshotField and all snapshotRaw* helpers
  • Consolidated small files: entrywriter.go → entry.go,
    jsonencoderconfig.go → jsonencoder.go, mutablelevel.go → level.go,
    noescape.go → time.go

CI & Dependencies

  • Replaced Travis CI with GitHub Actions (matrix Go 1.22 + 1.23, golangci-lint)
  • Bumped minimum Go version to 1.21
  • Updated testify to v1.11.1

Tests

  • Fixed race condition in newLoggerID
  • Added test cases for Strings, Stringer, Formatter, nil error, non-Const slices
  • Fixed all golangci-lint warnings (errcheck, staticcheck)

Full Changelog: v1.4.2...v1.5.0