Skip to content

genro-bag 0.25.0

Choose a tag to compare

@github-actions github-actions released this 17 Sep 19:49
· 7 commits to main since this release

Changes

  • Reject an empty path in native Bag.set_item with ValueError, without mutation. Successful writes return a BagNode. This fixes the silent Bag return/no-op introduced in 0.24.0; compatibility setItem retains legacy empty-path merge behavior.
  • Honor resolver read_only class defaults and explicit overrides. Readonly cached results stay in the resolver, never in the containing node.
  • Remove resolver kw; use declared parameter attributes and the extras-only kwargs view. The engine prepares parameters through on_loading once per actual load attempt and restores temporary context after exceptions or nested calls.
  • Update built-in resolvers, documentation and regression tests.

Compatibility

Native empty-label writes are no longer accepted, including the older empty-node creation behavior. Builders should validate empty identifiers and produce their own application-level errors. This release alone does not guarantee a particular builder ConfigError.

Resolver implementations using .kw must migrate as described in docs/resolvers/custom.md. See BREAKING_CHANGES.md for the complete 0.25.0 contract.

Validation: 959 Python tests passed; Ruff checks and source/wheel builds passed.