You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, calling protect() with no rules configured in the SDK will still run the Shield rule implicitly in Arcjet's Decide service.
We are deprecating the implicitness of Shield, so we'll want to warn if protect() is called with no rules. After the deprecation phase, this may turn into an explicit error.
The text was updated successfully, but these errors were encountered:
Closes#605
This adds a warning log if `protect()` is called with no rules configured that lets users know they should be configuring at least one rule, and suggests Shield because that is the common case where no rule would be specified before this behavior change.
Currently, calling
protect()
with no rules configured in the SDK will still run the Shield rule implicitly in Arcjet's Decide service.We are deprecating the implicitness of Shield, so we'll want to warn if
protect()
is called with no rules. After the deprecation phase, this may turn into an explicit error.The text was updated successfully, but these errors were encountered: