Skip to content

Release v2.1.0 - new features and bugfix

Compare
Choose a tag to compare
@jxskiss jxskiss released this 09 Dec 14:28
· 279 commits to master since this release

Features:

  • Feat: add support for Go 1.20
  • Feat: update dependencies to latest
  • Feat: update CI workflow to test under all linux/mac/windows platforms
  • Feat: new api easy.Glob supporting double-star pattern
  • Feat: new api easy.LazyJSON helps to avoid unnecessary marshaling in some use case
  • Feat: new api fastrand.Fastrand64, fastrand.ExpFloat64, fastrand.NormFloat64 and fastrand.NewZipf
  • Feat: new api zlog.Println, zlog.TRACE1 and zlog.TRACESkip1
  • Feat: zlog support per logger output files
  • Feat: optimize spinlock implementation
  • Feat: make errcode.Code being compatible with errors.Is

Bugfix:

  • Fix: test failures and bugs
  • Fix: some issues reported by golangci-lint

Minor incompatible changes:

  • Change return value of monkey.Mock to be exported type Mocker
  • Remove deprecated type json.InvalidUTF8Error, json.UnmarshalFieldError,
    which are deprecated since Go 1.2
  • Remove api monkey.Patch.Origin, which does not work correctly