Skip to main content

strux_pr 0.8.13 copy "strux_pr: ^0.8.13" to clipboard
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 @Rule methods through activeContext.
  • 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 @Rule methods 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.raw context contract
  • API:
    • PrecedenceAnalysisException and NoMatchingRuleException now implement Exception
    • added deprecated StateError-compatible aliases
    • added structural Predicate equality 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.
  • 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.raw trust 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, and PrecedenceAnalysisException.
    • Added library-level docs for strux_pr.
  • Verification.
    • Enabled public_member_api_docs in package analysis.

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_overlap compatibility clarity and GitLab CI scaffold.
  • Phase 4 implementation.
    • Generated dispatchers preserve TContext and common rule return type.

0.6.2 #

  • Correctness and build-time validation hardening.
    • Consolidated predicate code generation and escaped control characters in generated Dart literals.
    • Preserved $ escaping in Predicate.equals.
    • Validated Predicate.equals field 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 validateRuleMethod for 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.

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 Predicate model with combinators (and, or, not, equals, raw).
  • Migrated Rule.when from string to Predicate?.
  • 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 @PrecedenceEngine classes.
  • 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 subscope and overrideTarget.
  • 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 subscope and overrideTarget.
  • Added validation for duplicate rule IDs.
  • Added validation for unknown subscope and overrideTarget references.
  • 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 @PrecedenceEngine classes to implement PrecedenceRuleContainer<TContext>.
  • Added validation requiring at least one @Rule in 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_builder and source_gen combining 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.
0
likes
160
points
1.74k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Runtime annotations and deterministic structural precedence engine for pure-Dart rule dispatch.

Homepage
Repository (GitLab)
View/report issues

Topics

#structural-precedence #rule-engine #precedence-engine #annotations

License

MIT (license)

More

Packages that depend on strux_pr