Repository navigation
v0.2.0.0
Coordinated major release of the Settei package family under the shared version 0.2.0.0 (PVP major bump, driven by breaking API changes). Two new packages — settei-kubernetes and settei-formats — make their first Hackage appearance here.
Packages
| Package | Hackage |
|---|---|
| settei | https://hackage.haskell.org/package/settei-0.2.0.0 |
| settei-env | https://hackage.haskell.org/package/settei-env-0.2.0.0 |
| settei-dhall | https://hackage.haskell.org/package/settei-dhall-0.2.0.0 |
| settei-kdl | https://hackage.haskell.org/package/settei-kdl-0.2.0.0 |
| settei-yaml | https://hackage.haskell.org/package/settei-yaml-0.2.0.0 |
| settei-kubernetes | https://hackage.haskell.org/package/settei-kubernetes-0.2.0.0 |
| settei-optparse-applicative | https://hackage.haskell.org/package/settei-optparse-applicative-0.2.0.0 |
| settei-formats | https://hackage.haskell.org/package/settei-formats-0.2.0.0 |
What's Changed
Breaking Changes
- settei:
resolvenow returnsResolveResultunconditionally — the typed outcome moves to itsanswerfield, and the provenance report and warnings are available for every resolution attempt, including failures. - settei-env: environment bindings are validated once at construction.
Bindingsis an opaque validated collection built bybindings/prefixedBindings;envSource/readEnvSourceare total;bindingsListinspects a validated collection. - settei-yaml: boolean scalars are restricted to the YAML 1.2 core schema — only case-insensitive
true/false, plain or!!bool. The YAML 1.1 spellingsy/yes/on/n/no/offare now plain text, eliminating the Norway problem. - settei-optparse-applicative:
ExplainModeand its parsers are replaced byDiagnosticMode, which also supports--check-config,--describe-config, and--describe-config-json.
New Features
- settei:
Functorinstance forDecoder; combinator kit (listDecoder,nonEmptyDecoder,parsedDecoder,rationalDecoder,doubleDecoder);whenConfig/whenEq/fallbackToconfig sugar;publicShowSetting/withRenderer;sourceFromPairs/SourceConstructionError;SensitivityConflictresolution error; decimal rendering of terminating rationals. - settei-env:
mergeBindingsto compose validatedBindings;renderEnvErrorText/renderEnvErrorsText. - settei-dhall / settei-kdl / settei-yaml: operator-readable, secret-safe adapter error renderers (
render*ErrorText/render*ErrorsText), with optional source positions for Dhall. - settei-kubernetes (new): mounted-directory source for projected ConfigMap/Secret volumes with per-file key bindings, atomic-writer symlink handling, and per-file provenance;
Settei.Kubernetes.Bindingsto derive validated env bindings from an object reference; freshness identity annotations (kubernetes.mount-path,kubernetes.file-modified,kubernetes.read-at). - settei-formats (new): tagged
FORMAT:PATHconfiguration inputs, a shared loader dispatching to the YAML/KDL/Dhall adapters, and a reusable--config FORMAT:PATHoption. - settei-optparse-applicative:
schemaDiagnosticandresolutionDiagnostichelpers.
Bug Fixes
- settei-yaml / settei-kdl: reject numeric values whose base-10 exponent magnitude exceeds 4096 instead of attempting an unbounded exact conversion at load time.
- settei-yaml: contain synchronous failures at the pure decode boundary (
YamlSyntaxErrorwith a fixed secret-safe message); asynchronous exceptions still propagate. - settei: merge duplicate sensitivities most-restrictively; merge repeated
annotateSourceannotations instead of replacing.