strux_pr 0.8.13
strux_pr: ^0.8.13 copied to clipboard
Runtime annotations and deterministic structural precedence engine for pure-Dart rule dispatch.
0.8.13 #
- License/API changes internally:
- token added unrelated-pairs value accessor
- Internal cleanup and central graph construction.
- Documentation updates.
0.8.12 #
- Gap-fix release:
- removed non-intercepting compatibility aliases
- centralized shared precedence-graph construction and diagnostics
- corrected README method-support lists and doc typos
- improved unrelated-pair and interval diagnostics tests
0.8.12 #
- Tooling:
- added coverage collection commands and SDK-floor validation
- Metadata:
- corrected version-to-tag release alignment
0.8.11 #
- Added context-bound parameter support for
@Rulemethods throughactiveContext. - Added support for abstract rule methods on abstract engines through concrete subclasses.
- Extended validation and generated dispatch for the newly supported method kinds.
- Retained rejection for multi-parameter, non-context parameter, async, void, accessor, and operator rule methods.
0.8.10 #
- Static
@Rulemethods are now valid when they have no parameters and return a non-void, non-Future value. - Generated dispatchers invoke static rules through the annotated class name.
- Extended test coverage for static and mixed static/instance precedence engines.
- Kept parameterized, abstract, async, void, accessor, and operator rule methods explicitly unsupported.
0.8.9 #
- Metadata:
- corrected GitLab package repository URLs to valid tagged paths.
- No API or runtime behavior changes beyond repository links.
0.8.8 #
- Documentation:
- clarified declaration ordering and interval behavior
- documented helper exports and
Predicate.rawcontext contract
- API:
PrecedenceAnalysisExceptionandNoMatchingRuleExceptionnow implementException- added deprecated
StateError-compatible aliases - added structural
Predicateequality and hashCode
- Runtime helper behavior:
- added documented interval fail-closed and inclusive bounds behavior
0.8.7 #
- Release alignment.
- Version bumped to 0.8.7 to stay ahead of published 0.8.5 and satisfy release preflight.
- Publish-ready package polish and release pipeline fixes.
- Non-breaking, additive changes only.
0.8.6 #
- Security hardening:
- sanitize overlap rule IDs in generated comments.
- validate runtime predicate field paths and finite doubles.
- API:
- generated dispatchers throw
NoMatchingRuleException.
- generated dispatchers throw
- Packaging:
- exclude coverage/generated docs from archives.
0.8.5 #
- Release alignment.
- Version bumped to 0.8.5 to stay ahead of published 0.8.4.
- CI verification now retries package availability before adding dependencies.
- Dependency and version checks hardened against release/version drift.
0.8.4 #
- Release alignment for consolidated audit implementation.
- Version bumped beyond published 0.8.3.
- Includes deterministic graph/type helpers and expanded tests.
- Runtime metadata, docs, and security process updates.
0.8.3 #
- Release alignment.
- Version is now greater than the published 0.8.2 runtime release.
- Documented
Predicate.rawtrust boundary and precedence-analysis errors.
0.8.2 #
- Cycle diagnostics.
- Multi-node precedence cycles are now reported with the complete cycle path instead of falling back to a generic unresolved-rule message.
0.8.1 #
- Runtime documentation pass.
- Documented public APIs, including
PrecedenceEngine,PrecedenceRuleContainer,Rule,Predicate,PredicateOp,RuleDescriptor, andPrecedenceAnalysisException. - Added library-level docs for
strux_pr.
- Documented public APIs, including
- Verification.
- Enabled
public_member_api_docsin package analysis.
- Enabled
0.8.0 #
- Runtime package isolation.
- No analyzer, build, or source_gen dependencies.
- Contains annotations and precedence analysis runtime only.
- Prepared for independent publication.
0.7.0 #
- Phase 1/2 implementation hardening.
- Shared Dart string literal escaping for rule IDs and predicate values.
- Fixed identical-interval false cycles.
- Attached source elements to rule-method validation failures.
- Shared rule extraction/validation between generator and artifact builder.
- Improved cycle-path diagnostics.
- Artifact output now includes schema version, structured predicates, and resolved edges.
- Wired invalid fixtures into builder-level tests.
- Strengthened artifact builder output assertions.
- Added
strict_overlapcompatibility clarity and GitLab CI scaffold.
- Phase 4 implementation.
- Generated dispatchers preserve
TContextand common rule return type.
- Generated dispatchers preserve
0.6.2 #
- Correctness and build-time validation hardening.
- Consolidated predicate code generation and escaped control characters in generated Dart literals.
- Preserved
$escaping inPredicate.equals. - Validated
Predicate.equalsfield paths. - Preserved source locations on precedence-analysis failures.
- Improved async return-type rejection.
- Hardened overlap comment generation against injection.
- Generated artifact improvements.
- Artifact builder now validates builder options and reconstructs/serializes predicates.
- Test suite improvements.
- Validation tests assert exact failure messages.
- Extracted
validateRuleMethodfor direct test coverage. - Added precision tests for duplicate, unknown-reference, empty, and sibling-rejection behavior.
- Documentation/package metadata.
- Aligned README install versions with
pubspec.yaml. - Added/updated release notes.
- Aligned README install versions with
0.6.1 #
- Correctness hardening: escape
$in rule IDs/predicates, interval validation, reachability.
0.6.0 #
- Hardened benchmark scaffold.
- Minor documentation updates.
0.5.0 #
- Updated documentation (README predicate example, overlap, interval specificity).
- Reverted premature 1.0.0 bump.
0.4.0 #
- Added interval-based specificity derivation (
scopeStart,scopeEnd). - Derived implicit precedence edges from interval containment.
- Added fail-closed validation for overlapping intervals.
- Updated documentation.
0.3.0 #
- Added structured
Predicatemodel with combinators (and,or,not,equals,raw). - Migrated
Rule.whenfrom string toPredicate?. - Updated generator and tests for structured predicates.
0.2.0 #
- Added shared precedence analysis helper (
analyzePrecedenceEngine). - Added dedicated artifact builder emitting
.strux_pr.json. - Artifact now includes engine, order, rules, edges, and predicates.
- Added artifact builder tests and documentation.
0.1.2 #
- Hardened validation: reject abstract and generic
@PrecedenceEngineclasses. - Hardened validation: reject getter, setter, and operator rule methods.
- Hardened validation: reject
void-returning rule methods. - Improved circular dependency diagnostics to include each unresolved rule's
subscopeandoverrideTarget. - Documented that only directly declared methods are scanned (no mixin/superclass traversal).
- Added benchmark scaffold (no published numbers yet).
0.1.1 #
- Improved structural precedence resolution and validation.
- Added deterministic ordering for rules without explicit precedence relationships.
- Added explicit precedence handling for
subscopeandoverrideTarget. - Added validation for duplicate rule IDs.
- Added validation for unknown
subscopeandoverrideTargetreferences. - Added validation preventing a rule from referencing itself.
- Added circular precedence dependency detection with diagnostic information about rules that cannot be ordered.
- Added validation requiring
@PrecedenceEngineclasses to implementPrecedenceRuleContainer<TContext>. - Added validation requiring at least one
@Rulein a precedence engine. - Added validation preventing rule methods from accepting parameters.
- Added validation preventing static rule methods.
- Added validation preventing abstract rule methods.
- Added validation rejecting empty and whitespace-only rule IDs.
- Improved generated Dart source escaping for rule IDs containing quotes, backslashes, newlines, and other special characters.
- Added support and test coverage for Unicode rule IDs.
- Added generated-code tests covering declaration ordering, explicit precedence, branching dependencies, and duplicate precedence edges.
- Added comprehensive generator validation tests using build-time fixture generation.
- Updated the example application to demonstrate normal, subscope, override, and no-match dispatch behavior.
- Updated build configuration for the
strux_pr_builderandsource_gencombining builder. - Updated the project's homepage, repository, and issue tracker links.
0.1.0 #
- Initial release of
strux_pr(Structural Precedence Engine for Dart and Flutter). - Feature: Compile-time DAG rule resolution with automatic cycle detection.
- Feature: Generated rule dispatch through
build_runner.