Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@rphlmr rphlmr released this 01 Oct 13:43
bce02e3

What's Changed

  • 👌 IMPROVE: checkAllSettle extended api by @rphlmr in #3

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