Skip to content

v0.2.0.0

Choose a tag to compare

@shinzui shinzui released this 20 Jul 04:37
· 47 commits to master since this release

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: resolve now returns ResolveResult unconditionally — the typed outcome moves to its answer field, and the provenance report and warnings are available for every resolution attempt, including failures.
  • settei-env: environment bindings are validated once at construction. Bindings is an opaque validated collection built by bindings/prefixedBindings; envSource/readEnvSource are total; bindingsList inspects 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 spellings y/yes/on/n/no/off are now plain text, eliminating the Norway problem.
  • settei-optparse-applicative: ExplainMode and its parsers are replaced by DiagnosticMode, which also supports --check-config, --describe-config, and --describe-config-json.

New Features

  • settei: Functor instance for Decoder; combinator kit (listDecoder, nonEmptyDecoder, parsedDecoder, rationalDecoder, doubleDecoder); whenConfig/whenEq/fallbackTo config sugar; publicShowSetting/withRenderer; sourceFromPairs/SourceConstructionError; SensitivityConflict resolution error; decimal rendering of terminating rationals.
  • settei-env: mergeBindings to compose validated Bindings; 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.Bindings to 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:PATH configuration inputs, a shared loader dispatching to the YAML/KDL/Dhall adapters, and a reusable --config FORMAT:PATH option.
  • settei-optparse-applicative: schemaDiagnostic and resolutionDiagnostic helpers.

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 (YamlSyntaxError with a fixed secret-safe message); asynchronous exceptions still propagate.
  • settei: merge duplicate sensitivities most-restrictively; merge repeated annotateSource annotations instead of replacing.