v1.4.0
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.0 —
AhbContextintroduced, old API unchanged - v1.4.0 (this release) — deprecation warnings on old API
- v2.0.0 (upcoming) —
python-injectremoved,ahb_contextrequired
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