10 Commits
Author SHA1 Message Date
Rene Nochebuena 3651698c39 release: v1.7.0 (coordinated lockstep bump) 2026-08-18 17:55:15 -06:00
Rene Nochebuena dd3c2a85f3 release: v1.6.0 (coordinated lockstep bump) 2026-08-13 23:10:52 -06:00
Rene Nochebuena 53f05a7080 chore(worker): framework version alignment to v1.5.0 2026-08-12 17:55:03 -06:00
Rene Nochebuena e8852f2185 chore(worker): dependency refresh; framework version alignment to v1.4.0 2026-08-12 15:27:02 -06:00
Rene Nochebuena 157446a1eb chore(worker): framework version alignment to v1.3.0 2026-08-08 10:47:22 -06:00
Rene Nochebuena 3259fbc1cf chore(worker): framework version alignment to v1.2.0 2026-08-08 02:23:03 -06:00
Rene Nochebuena 743ac3bb8c chore(worker): framework version alignment to v1.1.3 2026-08-08 01:26:09 -06:00
Rene Nochebuena 713dfb2a1c chore(worker): framework version alignment to v1.1.2 2026-08-08 00:42:24 -06:00
Rene Nochebuena a8e38d7950 docs(worker): fix wiring doc examples; align to v1.1.1 2026-08-07 23:31:21 -06:00
Rene Nochebuena 2163b809b1 docs(worker): fix fictional launcher.Register/health.Register in doc examples (#2)
The package-doc examples showed a fictional launcher.Register / health.Register
API (and launcher.Append as a package func). Corrected to the real wiring:
lc.Append + web/health.NewHandler(...).ServeHTTP.
worker exposes lc.Append only — it is not observability.Checkable, so no health hook.

Documentation-only. No code, API, or dependency changes; version stays v1.1.0
(the v1.1.0 tag is moved to include this fix). Verified by compiling the
corrected pattern against the real API.

Reviewed-on: #2
Co-authored-by: Rene Nochebuena Guerrero <rene@nochebuena.dev>
Co-committed-by: Rene Nochebuena Guerrero <rene@nochebuena.dev>
2026-08-07 22:18:30 -06:00
6 changed files with 105 additions and 8 deletions
+97
View File
@@ -0,0 +1,97 @@
# Changelog — einherjar/worker
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.7.0] — 2026-08-14
Minor — coordinated framework release (lockstep versioning). No changes to this module's own API.
### Changed
- Bumped einherjar dependencies to v1.7.0. The behavioural changes in this release are in `spa-server`
(per-file Cache-Control, a navigation-scoped SPA fallback, nosniff, and a non-root image).
## [1.6.0] — 2026-08-13
Minor — coordinated framework release (lockstep versioning). No changes to this module's own API.
### Changed
- Bumped einherjar dependencies to v1.6.0. The framework-wide change in this release is
`web`'s new `httputil.Bind` / `httputil.BindEmpty` request-binding adapters.
## [1.5.0] — 2026-08-09
Minor — coordinated framework version alignment. No code or API changes in this module.
### Changed
- Bumped `contracts` to v1.5.0.
## [1.4.0] — 2026-08-09
Minor — coordinated framework release: dependency refresh + lockstep version alignment.
### Changed
- Refreshed dependencies to their latest minor/patch where available.
- Bumped `contracts` to v1.4.0.
## [1.3.0] — 2026-08-08
Minor — coordinated framework version alignment. No code or API changes in this module.
### Changed
- Bumped `contracts` to v1.3.0.
## [1.2.0] — 2026-08-08
Minor — coordinated framework version alignment. No code or API changes in this module.
### Changed
- Bumped `contracts` to v1.2.0.
## [1.1.3] — 2026-08-08
Patch — coordinated framework version alignment.
### Changed
- Bumped einherjar dependencies (\`contracts\`) 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`) 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`) to v1.1.1.
## [1.1.0] — 2026-08-07
Patch — coordinated framework version alignment.
### Changed
- Bumped einherjar dependencies (`contracts`) 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.
+2 -2
View File
@@ -1,6 +1,6 @@
# einherjar/worker # einherjar/worker
[![version](https://img.shields.io/badge/version-v1.1.0-5C4EE5?style=flat-square)](https://code.nochebuena.dev/einherjar/worker) [![version](https://img.shields.io/badge/version-v1.7.0-5C4EE5?style=flat-square)](https://code.nochebuena.dev/einherjar/worker)
[![license](https://img.shields.io/badge/license-AGPL--3.0-22863A?style=flat-square)](LICENSE) [![license](https://img.shields.io/badge/license-AGPL--3.0-22863A?style=flat-square)](LICENSE)
[![go](https://img.shields.io/badge/Go-1.26+-00ADD8?style=flat-square&logo=go&logoColor=white)](https://go.dev) [![go](https://img.shields.io/badge/Go-1.26+-00ADD8?style=flat-square&logo=go&logoColor=white)](https://go.dev)
@@ -18,7 +18,7 @@
import "code.nochebuena.dev/einherjar/worker" import "code.nochebuena.dev/einherjar/worker"
w := worker.New(logger, worker.DefaultConfig()) w := worker.New(logger, worker.DefaultConfig())
launcher.Append(w) // OnInit starts pool; OnStop drains and stops lc.Append(w) // OnInit starts pool; OnStop drains and stops
``` ```
### Dispatching tasks ### Dispatching tasks
+1 -1
View File
@@ -6,7 +6,7 @@ import (
) )
// Component adds lifecycle management to Provider. // Component adds lifecycle management to Provider.
// Register with launcher.Register before starting. // Append it to a launcher (lc.Append) before starting.
type Component interface { type Component interface {
lifecycle.Component lifecycle.Component
observability.Identifiable observability.Identifiable
+2 -2
View File
@@ -9,10 +9,10 @@
// ShutdownTimeout for all goroutines to finish. Returns nil regardless of // ShutdownTimeout for all goroutines to finish. Returns nil regardless of
// whether the drain completed before the deadline. // whether the drain completed before the deadline.
// //
// Register with the launcher before starting: // Append to a launcher before starting:
// //
// pool := worker.New(logger, cfg) // pool := worker.New(logger, cfg)
// launcher.Register(pool) // lc.Append(pool)
// //
// # Dispatching Tasks // # Dispatching Tasks
// //
+1 -1
View File
@@ -2,4 +2,4 @@ module code.nochebuena.dev/einherjar/worker
go 1.26 go 1.26
require code.nochebuena.dev/einherjar/contracts v1.1.0 require code.nochebuena.dev/einherjar/contracts v1.7.0
+2 -2
View File
@@ -1,2 +1,2 @@
code.nochebuena.dev/einherjar/contracts v1.1.0 h1:GsGr6reyrd9qCc7D8CqbT1LWPTeeK9lT4r4EdsNA5Ro= code.nochebuena.dev/einherjar/contracts v1.7.0 h1:yhbtmvE8u6KXcuG95p888+4tDIiTXDf5z/siKrjGbrc=
code.nochebuena.dev/einherjar/contracts v1.1.0/go.mod h1:ccltUtrFb5+MEJdkx2VVEUL+xC5pupVlVVsMM8AlCWI= code.nochebuena.dev/einherjar/contracts v1.7.0/go.mod h1:ccltUtrFb5+MEJdkx2VVEUL+xC5pupVlVVsMM8AlCWI=