Releases: labstack/gommon
Releases · labstack/gommon
v0.5.0
Highlights
email: SMTPS / implicit TLS on port 465.smtp.SendMailonly speaks plain + STARTTLS, so Resend/SendGrid/etc. on:465hang on the handshake. Detect port 465 and dial TLS directly. AddedEmail.TLSConfig(custom root pool / ServerName; always cloned per send) andEmail.DialTimeout(scoped to the TCP/TLS connect phase).email: no silent cleartext downgrade. DriveHello()explicitly so a failed EHLO can't be swallowed and mis-read as "STARTTLS not advertised".log: silence 14go vetprintf warnings. Split the internallog()method; public signatures unchanged.TestCallerFileguards theruntime.Callerskip.random: fixsync.Poolcopy inNew(). Construct the pool directly on the struct —sync.Poolmust not be copied after first use.
Toolchain (breaking)
- Go directive bumped
1.18→1.23.0to align withlabstack/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: replacedParse(\"8EiB\")assertions withParse(\"7EiB\")— 2^63 overflowedint64and relied on implementation-defined float-to-int behavior.
Full diff
v0.4.2 update deps
- update deps #58