Releases: GalaxyBotTeam/Image-Classifier
2.0.5
2.0.4
Image Classification v2.0.4 Release Notes
We're pleased to announce the release of Image Classification v2.0.4, addressing SSL connection issues and refining logging behavior.
Changelog
🔧 SSL Connection Fix
- Resolved an issue where SSL connections were failing under certain conditions.
- Improved TLS handshake handling to ensure stable and secure connections.
📢 Discord Webhook Logging Improvement
- The Discord webhook now logs only flagged content instead of all processed data.
- This reduces unnecessary notifications and improves log clarity.
This update enhances security and logging efficiency while maintaining stability. No breaking changes were introduced.
2.0.3
Image Classification v2.0.3 Release Notes
We're pleased to announce the release of Image Classification v2.0.3, bringing improvements to the build and start scripts.
Changelog
🛠 NPM Script Adjustments
- Updated
package.jsonscripts for better consistency and production readiness:
Previous Scripts:Updated Scripts:"scripts": { "dev": "ts-node src/index.ts", "build": "tsc && node -e \"require('fs').copyFileSync('config.json', 'dist/config.json')\"", "start": "node dist/index.js" }
"scripts": { "dev": "ts-node src/index.ts", "build": "tsc && node -e \"require('fs').copyFileSync('config.json', 'dist/config.json')\"", "start": "tsc && node -e \"require('fs').copyFileSync('config.json', 'dist/config.json')\" && node dist/index.js", "prod": "node dist/index.js" }
- The
startscript now includes the build step, ensuring that the latest code is compiled before execution. - Added a
prodscript for running the pre-built application directly.
This update enhances the development workflow and ensures smoother deployment. No breaking changes were introduced.
2.0.2
Image Classification v2.0.2 Release Notes
We're pleased to announce the release of Image Classification v2.0.2, a refinement update focusing on response consistency and project rebranding.
Changelog
🔄 Standardized Response Format
- All API responses now follow a unified type definition:
type WebServerResponse = { status: number, message: string, data: unknown }
- This ensures consistent structure across all endpoints, making integration smoother.
✨ Project Rebranding
- The project has been renamed from NSFW-Classifier to Image Classification to better reflect its broader application scope.
🛠 Minor Improvements
- Updated internal documentation to align with the new naming conventions.
- Improved logging to provide clearer error messages and debugging information.
This update builds upon the previous v2.0.1 release, maintaining stability while improving usability. No breaking changes were introduced, making upgrading seamless.
2.0.1
NSFW-Classifier v2.0.1 Release Notes
We're pleased to announce the release of NSFW-Classifier v2.0.1, a maintenance update focused on dependency management.
Changelog
🔧 Dependency Changes
-
Removed Dependencies: Removed dependencies related to local model processing that are no longer needed after the OpenAI API migration:
- TensorFlow.js and related packages
- NSFW.js model dependencies
- Various image processing libraries
-
Type Definitions: Moved all TypeScript type definitions to devDependencies:
@types/bun@types/cors@types/express@types/minio
-
Updated Dependencies:
- Ensured all remaining dependencies are at their latest compatible versions
🧹 Cleanup
- Optimized package structure to reduce bundle size
- Removed unused configuration options from previous version
This patch release follows our major v2.0.0 update which introduced the TypeScript rewrite and OpenAI Moderation API integration. No configuration changes are required when upgrading from v2.0.0 to v2.0.1.
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.