The upgrade process differs slightly depending on which version you’re upgrading from.
Two things changed in v4.x:
isVerified() is deprecated. Use isRequestLowScore() instead for the same check. This is optional and mainly useful for logging to indicate whether the request score was below the blocking threshold.isHandledResponse() is new and returns true when HUMAN already wrote the response (block page or first-party), meaning you cannot continue to filterChain.doFilterTo account for these, update your code accordingly: