Skip to content

v1.4.0

Choose a tag to compare

@hf-kklein hf-kklein released this 12 Apr 16:34
· 42 commits to main since this release
9035b9f

Deprecation Warnings

All inject-based code paths now emit DeprecationWarning when used without ahb_context. This signals that the python-inject dependency will be removed in v2.0.0.

If you see warnings like:

DeprecationWarning: Calling ConditionNodeBuilder without ahb_context is deprecated
and will be removed in ahbicht v2.0. Pass an AhbContext instance explicitly.

Follow the v1.3.0 migration guide to switch to AhbContext.

Affected functions

Warning trigger Replacement
ConditionNodeBuilder(keys) without ahb_context ConditionNodeBuilder(keys, ahb_context=ctx)
PackageExpansionTransformer() without ahb_context Pass ahb_context via parse_expression_including_unresolved_subexpressions(..., ahb_context=ctx)
_build_evaluated_format_constraint_nodes() without ahb_context Pass ahb_context via evaluate_ahb_expression_tree(tree, ahb_context=ctx)
create_and_inject_hardcoded_evaluators() AhbContext.from_content_evaluation_result(cer, format, version)

Timeline

  • v1.3.0AhbContext introduced, old API unchanged
  • v1.4.0 (this release) — deprecation warnings on old API
  • v2.0.0 (upcoming) — python-inject removed, ahb_context required

What's Changed

  • feat: add deprecation warnings on inject-based code paths by @hf-kklein in #750

Full Changelog: v1.3.0...v1.4.0