3.2 KiB
3.2 KiB
25.02.0 - 2025-02-17
Added
- Add STARTTLS support to the mailer, thx @mwieser
- Extend util and test package with additional helper functions, thx @mwieser
- Add MIME interface to use *mimtype.MIME or an already KnownMIME, thx @mwieser
- Add function to detach context to avoid context cancelation. Can be used to pass context information to go routines without a deadline or cancel, thx @mwieser
- Add oauth2 helper for PKCE extention to generate verifier and challenge, thx @mwieser
- Extend mailer mock to support waiting for all expected mails to arrive to check asynchronously sent mails in tests, thx @mwieser
- Add mock clock to server struct to ensure consistent and mockable time during tests
- Add devcontainer startup commands to import local gitconfig into the container
Changed
- Separated the go-starter and child project readme and changelog files to prevent conflicts
- Simplify the endpoint tests by using test.RequireHTTPError, response snapshots and table-driven tests
- Update to golang:1.24.0-bookworm (requires
./docker-helper.sh --rebuild) - Minor: Bump github.com/golangci/golangci-lint from v1.62.2 to v1.64.5
- Dependency updates:
- Patch: Bump github.com/gabriel-vasile/mimetype from v1.4.7 to v1.4.8
- Minor: Bump github.com/spf13/cobra from v1.8.1 to v1.9.1
- Patch: Bump github.com/volatiletech/sqlboiler/v4 from v4.17.1 to v4.18.0
- Minor: Bump golang.org/x/crypto from v0.31.0 to v0.33.0
- Minor: Bump golang.org/x/mod from v0.22.0 to v0.23.0
- Minor: Bump golang.org/x/sys from v0.28.0 to v0.30.0
- Minor: Bump golang.org/x/text from v0.21.0 to v0.22.0
- Minor: Bump google.golang.org/api from v0.214.0 to v0.221.0
Deprecated
- Deprecated the mailer option UseTLS (
SERVER_SMTP_USE_TLS) in favour of Encryption (SERVER_SMTP_ENCRYPTION). If you were using theSERVER_SMTP_USE_TLSflag before to enable TLS, you will need to migrate to theSERVER_SMTP_ENCRYPTIONsetting oftls. For the moment, both settings are supported (with a warning being printed when usingSERVER_SMTP_USE_TLS, however support for the deprecated config will be dropped in one of the next releases. See Mailer UseTLS SERVER_SMTP_USE_TLS Deprecation
Removed
- Remove
util.RunningInTest()in favour oftesting.Testing(), see https://pkg.go.dev/testing@master#Testing