Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates remix-utils to v8. It fixes pnpm unmet peer dependency warning caused by v7.7.0 React version constraint. Updated Here
List of changes:
await
for all uses of honeypot.check(), honeypot.getInputProps(), and the checkHoneypot util,according to the v7-to-v8 upgrade docs
Test Plan
I manually tested in the browser on the following list of public facing forms.
When filling in the hidden inputs via chrome devtools, I get the correct thrown Response from honeypot.server.ts.
When not filling out the hidden inputs, the form works as expected.
I did not add any automated tests because I'm not sure how I can locate hidden fields to fill them out but I can try this week if you want me to.
Let me know if I need to include anything else. Criticism welcome. I'm new to this PR stuff.
Thanks