Repository navigation
2.0.0
NSFW-Classifier v2.0.0 Release Notes
We're excited to announce the release of NSFW-Classifier v2.0.0! This major update brings a complete TypeScript rewrite and switches to the OpenAI Moderation API for more accurate and efficient content classification.
Changelog
✨ Major Changes
- Complete TypeScript Rewrite: Entire codebase converted from JavaScript to TypeScript for improved type safety and developer experience
- OpenAI Moderation API Integration: Replaced local TensorFlow/NSFW.js model with OpenAI's Moderation API for better classification accuracy
- Build System Overhaul: New TypeScript compilation pipeline with improved build scripts
🚀 New Features
- Proper TypeScript types for moderation results
- Full support for Bun runtime alongside Node.js
- Improved configuration management with automatic config file copying during build
🔧 Improvements
- Enhanced project structure with proper source/distribution separation
- Better error handling and type safety
- More consistent API responses
- Updated dependencies to latest versions
- Comprehensive TypeScript definitions
📝 API Changes
- Response format updated to match OpenAI Moderation API structure
- Added stronger typing for request and response payloads
📦 Development Experience
- New development workflow with TypeScript support
- Improved build scripts:
npm run build/bun run build: Compiles TypeScript and copies confignpm start/bun start: Runs the compiled applicationnpm run dev/bun run dev: Runs with hot-reloading for development
📚 Documentation
- Updated README with TypeScript-specific instructions
- Added more detailed API documentation
Upgrading
This is a breaking change. Please review the updated documentation and API response formats before upgrading from v1.x.