Skip to content

Releases: labstack/gommon

v0.5.0

19 Apr 22:13
2659cda

Choose a tag to compare

Highlights

  • email: SMTPS / implicit TLS on port 465. smtp.SendMail only speaks plain + STARTTLS, so Resend/SendGrid/etc. on :465 hang on the handshake. Detect port 465 and dial TLS directly. Added Email.TLSConfig (custom root pool / ServerName; always cloned per send) and Email.DialTimeout (scoped to the TCP/TLS connect phase).
  • email: no silent cleartext downgrade. Drive Hello() explicitly so a failed EHLO can't be swallowed and mis-read as "STARTTLS not advertised".
  • log: silence 14 go vet printf warnings. Split the internal log() method; public signatures unchanged. TestCallerFile guards the runtime.Caller skip.
  • random: fix sync.Pool copy in New(). Construct the pool directly on the struct — sync.Pool must not be copied after first use.

Toolchain (breaking)

  • Go directive bumped 1.181.23.0 to align with labstack/echo. Consumers on Go <1.23 should stay on v0.4.2.
  • CI matrix: 1.23 / 1.24 / 1.25 / 1.26 × ubuntu / macos / windows.
  • Deps refreshed: testify 1.8.4 → 1.11.1, go-colorable 0.1.13 → 0.1.14, go-isatty 0.0.20 → 0.0.21, x/sys 0.15.0 → 0.29.0 (highest that still supports Go 1.23).

Non-breaking code changes

  • bytes/bytes_test.go: replaced Parse(\"8EiB\") assertions with Parse(\"7EiB\") — 2^63 overflowed int64 and relied on implementation-defined float-to-int behavior.

Full diff

#62

v0.4.2 update deps

20 Dec 13:02
2888b9c

Choose a tag to compare

  • update deps #58

v0.4.1 small updates

09 Nov 21:18
bf0335a

Choose a tag to compare

  • feat(random): use crypto/rand for random string generator [#55]

  • update deps and CI flow [#57]

  • update deps [#54]

v0.4.0: Fix panic in log with empty header

05 Oct 03:48

Choose a tag to compare

  • Rename binary units according to IEC 60027 and add decimal units (SI) [#45]
  • Fix panic in log with empty header [#51]

v0.3.1

05 Nov 07:27

Choose a tag to compare

Changelog

  • Fix #48 - bump testify version as it uses insecure version of yaml library

v0.3.0

17 Aug 14:36

Choose a tag to compare

Bumped v0.3.0

Signed-off-by: Vishal Rana <vr@labstack.com>

v0.2.9

09 Jun 16:36

Choose a tag to compare

  • Optimized locking in log

v0.2.8

10 Nov 20:48

Choose a tag to compare

Using vgo

v0.2.7

11 Sep 04:18

Choose a tag to compare

[Email] client quit instead of close

Signed-off-by: Vishal Rana <vr@labstack.com>

v0.2.6

13 Jun 04:44

Choose a tag to compare

[Email] Fixed empty body

Signed-off-by: Vishal Rana <vr@labstack.com>