Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d6142d922
|
||
|
|
0c5177a415
|
||
|
|
ce72260b0b
|
||
|
|
af6f5ab9e6
|
||
|
|
e1cd1d2674
|
@@ -0,0 +1,46 @@
|
||||
# Changelog — einherjar/smtp
|
||||
|
||||
All notable changes to this module are documented here.
|
||||
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
||||
This module adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
---
|
||||
|
||||
## [1.1.3] — 2026-08-08
|
||||
|
||||
Patch — coordinated framework version alignment.
|
||||
|
||||
### Changed
|
||||
|
||||
- Bumped einherjar dependencies (\`contracts\`, \`core\`) to v1.1.3. No code or API changes.## [1.1.2] — 2026-08-08
|
||||
|
||||
Patch — coordinated framework version alignment.
|
||||
|
||||
### Changed
|
||||
|
||||
- Bumped einherjar dependencies (`contracts`, `core`) to v1.1.2. No code or API changes.
|
||||
|
||||
## [1.1.1] — 2026-08-07
|
||||
|
||||
Patch — corrected package-doc wiring examples plus framework version alignment.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Doc examples used a fictional `launcher.Register` / `health.Register` API; corrected to
|
||||
`lc.Append` + `web/health.NewHandler(...).ServeHTTP`.
|
||||
|
||||
### Changed
|
||||
|
||||
- Bumped einherjar dependencies (`contracts`, `core`) to v1.1.1.
|
||||
|
||||
## [1.1.0] — 2026-08-07
|
||||
|
||||
Patch — coordinated framework version alignment.
|
||||
|
||||
### Changed
|
||||
|
||||
- Bumped einherjar dependencies (`contracts`, `core`) to v1.1.0.
|
||||
|
||||
## [1.0.0] — 2026-05-28
|
||||
|
||||
Initial release. See the README for the full API and the `v1.0.0` git tag for the source.
|
||||
@@ -1,6 +1,6 @@
|
||||
# einherjar/smtp
|
||||
|
||||
[](https://code.nochebuena.dev/einherjar/smtp)
|
||||
[](https://code.nochebuena.dev/einherjar/smtp)
|
||||
[](LICENSE)
|
||||
[](https://go.dev)
|
||||
[]()
|
||||
@@ -19,8 +19,9 @@
|
||||
import "code.nochebuena.dev/einherjar/smtp"
|
||||
|
||||
mailer := smtp.New(logger, smtp.DefaultConfig())
|
||||
launcher.Append(mailer) // OnInit verifies credentials; OnStop is a no-op
|
||||
health.Register(mailer) // dial check; LevelDegraded
|
||||
lc.Append(mailer) // OnInit verifies credentials; OnStop is a no-op
|
||||
// mailer is observability.Checkable (dial check, LevelDegraded):
|
||||
srv.Get("/health", health.NewHandler(logger, mailer).ServeHTTP)
|
||||
```
|
||||
|
||||
When `cfg.Host` is empty, `New` returns a no-op that logs every `Send` call at debug level and always returns nil. No code changes are needed between environments.
|
||||
|
||||
@@ -12,8 +12,12 @@
|
||||
// # Lifecycle Registration
|
||||
//
|
||||
// client := smtp.New(logger, cfg)
|
||||
// launcher.Register(client)
|
||||
// health.Register(client)
|
||||
// lc.Append(client) // lifecycle: OnInit → OnStop
|
||||
//
|
||||
// client satisfies [observability.Checkable], so it can back a health endpoint via
|
||||
// web/health.NewHandler:
|
||||
//
|
||||
// srv.Get("/health", health.NewHandler(logger, client).ServeHTTP)
|
||||
//
|
||||
// # Sending
|
||||
//
|
||||
|
||||
@@ -3,6 +3,6 @@ module code.nochebuena.dev/einherjar/smtp
|
||||
go 1.26
|
||||
|
||||
require (
|
||||
code.nochebuena.dev/einherjar/contracts v1.0.0
|
||||
code.nochebuena.dev/einherjar/core v1.0.0
|
||||
code.nochebuena.dev/einherjar/contracts v1.1.3
|
||||
code.nochebuena.dev/einherjar/core v1.1.3
|
||||
)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
code.nochebuena.dev/einherjar/contracts v1.0.0 h1:hRudEtOIqU7vwedYLsCh8+9q5dCnKb61qX+zibqImRU=
|
||||
code.nochebuena.dev/einherjar/contracts v1.0.0/go.mod h1:ccltUtrFb5+MEJdkx2VVEUL+xC5pupVlVVsMM8AlCWI=
|
||||
code.nochebuena.dev/einherjar/core v1.0.0 h1:AueZgfjp3+rQmDKOxmJQ945TTh+sqC1l/xJdTOdbr9w=
|
||||
code.nochebuena.dev/einherjar/core v1.0.0/go.mod h1:0IywfRnJXX9xXQO6iPVaq2QDlXbbpXrB8A4T7gO8nE4=
|
||||
code.nochebuena.dev/einherjar/contracts v1.1.3 h1:rBtQUVCeqaIKMcG1+R0ndHM/4cRm3XTFnVNzFTbf1QU=
|
||||
code.nochebuena.dev/einherjar/contracts v1.1.3/go.mod h1:ccltUtrFb5+MEJdkx2VVEUL+xC5pupVlVVsMM8AlCWI=
|
||||
code.nochebuena.dev/einherjar/core v1.1.3 h1:MjWUA/hJ5IOosACh0in9xzFZ7jc1TTO0YEHh1xQVuOg=
|
||||
code.nochebuena.dev/einherjar/core v1.1.3/go.mod h1:xkI2uQ4S0FQHbFiawTUFgJdG5jbivcZpGFddHxQe8Q0=
|
||||
|
||||
Reference in New Issue
Block a user