-f0f503e: Made policy evaluation asynchronous by default.
Breaking Changes
-f0f503e: policy.can(...) now returns Promise<boolean>.
-f0f503e: createPolicy() now uses async-safe Standard Schema validation for resource schemas (including async resource schemas); this is not a separate Policy schema API.
-f0f503e: The Policy interface changed so can() is async, and mergePolicies/mergePoliciesAny are async accordingly.
-Action required: callers must await policy.can(...) and handle mergePolicies/mergePoliciesAny as async operations; also account for async-safe resource schema validation in createPolicy().
Dependencies
-f75b984: Updated dependency @zap-studio/validation to 0.3.0.
v0.1.3
Dependencies
-e4542bb: Updated dependency @zap-studio/validation to 0.2.1.
v0.1.2
Changed
-2de8183: Adopted shared synchronous Standard Schema validator utilities from @zap-studio/validation for resource schema validation in createPolicy.
Dependencies
-2de8183: Updated dependency @zap-studio/validation to 0.2.0.
v0.1.1
Fixed
-907d903: Added runtime resource validation and fail-closed behavior, including deny-by-default when merges are invoked with no policies.