docs(core): fix logz.Options -> logz.Config in doc examples; bump to v1.1.0
Coordinated framework release. Documentation-only code change plus the shared
version bump.
- core/launcher/doc.go, core/logz/doc.go: logz.New(logz.Options{...}) ->
logz.Config (Options was retired per ADR-003; the constructor takes Config).
- go.mod: contracts -> v1.1.0 (via go get + go mod tidy).
Verified by compiling the example patterns against the real API. Badge -> v1.1.0.
This commit is contained in:
@@ -6,6 +6,21 @@ This module adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html
|
||||
|
||||
---
|
||||
|
||||
## [1.1.0] — 2026-08-07
|
||||
|
||||
Coordinated framework release. Documentation fix plus the framework version bump.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **Package doc examples referenced the retired `logz.Options`.** `logz.New` takes
|
||||
`logz.Config`; the `launcher` and `logz` package docs showed `logz.New(logz.Options{…})`,
|
||||
which does not compile. Both corrected to `logz.Config`, verified by compiling the example
|
||||
patterns against the real API.
|
||||
|
||||
### Changed
|
||||
|
||||
- Bumped `contracts` to v1.1.0 (framework version alignment).
|
||||
|
||||
## [1.0.0] — 2026-05-28
|
||||
|
||||
### Added
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# einherjar/core
|
||||
|
||||
[](https://code.nochebuena.dev/einherjar/core)
|
||||
[](https://code.nochebuena.dev/einherjar/core)
|
||||
[](LICENSE)
|
||||
[](https://go.dev)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ module code.nochebuena.dev/einherjar/core
|
||||
go 1.26
|
||||
|
||||
require (
|
||||
code.nochebuena.dev/einherjar/contracts v1.0.0
|
||||
code.nochebuena.dev/einherjar/contracts v1.1.0
|
||||
github.com/go-playground/validator/v10 v10.30.1
|
||||
)
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
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/contracts v1.1.0 h1:GsGr6reyrd9qCc7D8CqbT1LWPTeeK9lT4r4EdsNA5Ro=
|
||||
code.nochebuena.dev/einherjar/contracts v1.1.0/go.mod h1:ccltUtrFb5+MEJdkx2VVEUL+xC5pupVlVVsMM8AlCWI=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
github.com/gabriel-vasile/mimetype v1.4.12 h1:e9hWvmLYvtp846tLHam2o++qitpguFiYCKbn0w9jyqw=
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
//
|
||||
// Usage:
|
||||
//
|
||||
// logger := logz.New(logz.Options{JSON: true})
|
||||
// logger := logz.New(logz.Config{JSON: true})
|
||||
// lc := launcher.New(logger)
|
||||
//
|
||||
// lc.Append(db, cache, server)
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
//
|
||||
// Usage:
|
||||
//
|
||||
// logger := logz.New(logz.Options{
|
||||
// logger := logz.New(logz.Config{
|
||||
// Level: slog.LevelDebug,
|
||||
// JSON: true,
|
||||
// StaticArgs: []any{"service", "api"},
|
||||
|
||||
Reference in New Issue
Block a user