What's Changed
The checkAllSettle
tuple parameter can now take a policy with no argument directly instead of passing it into an array.
It should simplify the API.
const snapshot = checkAllSettle([
[guard.post.policy("is my post"), post], // Policy with argument
["post has comments", post.comments.length > 0], // Implicit policy with no argument
definePolicy("post has likes", post.likes.length > 0), // Policy without argument. Can be used as is
]);
Full Changelog: v0.3.0...v0.4.0