v1.1.0
Security Improvements:
- π Fixed critical mass assignment vulnerability -
isAdmincan no longer be set during registration - π Added JWT token expiration (7 days) with proper validation
- π‘οΈ Implemented rate limiting middleware to prevent brute force attacks
- π Added secure headers middleware (XSS, clickjacking, MIME sniffing protection)
- π‘οΈ Added CSRF protection for production environments
- π Fixed JWT secret validation - now throws error if missing
- π Fixed password hash leak in profile update response
- π‘οΈ Improved CORS configuration with environment-based origin restrictions
- π Fixed error handler stack trace exposure logic
- β Added comprehensive input validation (email format, password length)
Code Quality:
- π¦ Removed deprecated
@types/mongoosedependency - π Standardized environment variable access to
process.env - β Improved TypeScript types and error handling
- π Updated to modern Hono JWT API (
sign/verifyinstead of deprecatedJwt) - π Enhanced error messages and validation feedback
Dependencies:
- Updated to Hono v4.11.3
- Mongoose v9.1.1 (includes built-in TypeScript types)