FAQ

Frequently Asked Questions

Does NFSFU234FormValidation work without a build step?

Yes. Drop in the CDN script and stylesheet tags and it works in plain HTML with no bundler required. It also works identically in React, Next.js, and Expo web via npm.

Does it validate file and image uploads?

Yes, as of v3. validateFile() and validateAllFile() handle required/min/max file counts, MIME or extension allowlists, max size, and image dimension limits.

Is it safe to use in a Next.js Server Component?

The library reads and manipulates the DOM directly, so it must run client-side. Call it inside a useEffect() in a Client Component ("use client") rather than during server render.

What happened to the password hashing functions?

hashPassword(), verifyPassword(), and passwordMatch() were removed in v3. Client-side password hashing never protected a password in transit — that responsibility belongs to your backend.

Does it have any runtime dependencies?

None. package.json's dependencies field is genuinely empty as of v3 — nothing to audit, nothing to update.

Is v2 still supported?

v2 docs remain available for reference, but new features and fixes land in v3 going forward. See the Migration Guide for upgrading.