access_gate 0.0.5
access_gate: ^0.0.5 copied to clipboard
Hide Flutter widgets behind feature flags, roles, permissions, and attribute-based access policies.
0.0.5 #
- Added structural matching, equality, hashing, and defensive copies for nested JSON-compatible feature values and attributes.
- Changed malformed context and policy JSON to consistently throw
FormatException. - Prevented allowed decisions from carrying denial reasons and aligned
AccessGuardinput validation with the other widgets. - Documented
AccessControllerownership and disposal expectations. - Expanded compatibility to Dart 3.0 and Flutter 3.10, backed by a CI compatibility matrix.
0.0.4 #
- Added
AccessContext.mergeandAccessContext.combinefor building one context from multiple app state sources. - Added convenience policy and gate constructors for any-of features, roles, permissions, exact feature values, and exact attributes, including typed-key variants.
- Added optional policy labels, labeled denial reasons, and lightweight diagnostics through value equality,
hashCode, andtoStringsupport. - Rebuilt the example app as an interactive controller-driven demo with denied states, disabled UI, and JSON previews.
- Expanded consumer docs, provider recipes, loading guidance, testing guidance, and Agent Skills-compatible references.
0.0.3 #
- Changed
AccessHiddento render as a zero-size widget so denied gates remain safe inside multi-child layouts. - Added render-order regression coverage for denied gates in multi-child layouts and for the example app.
- Added consumer-oriented usage documentation and Agent Skills-compatible Codex and Claude Code guidance.
0.0.2 #
- Added policy composition with
AccessPolicy.allOf,AccessPolicy.anyOf, andAccessPolicy.not. - Added structured denial reasons on
AccessDecision. - Added
AccessGuardfor page-level and route-body access decisions. - Added JSON helpers for
AccessContextand serializableAccessPolicyvalues. - Expanded docs and the example app.
0.0.1 #
- Initial release with feature flag, RBAC, permission, and ABAC widget gates.
- Added
AccessScope,AccessController,AccessPolicy, andAccessContext. - Added typed key helpers for enum-backed features, roles, permissions, and attributes.
- Added
AccessHidden, a fallback for denied gates.