Skip to content

v2.7.0

Compare
Choose a tag to compare
@sahaib sahaib released this 23 Oct 05:56
· 2 commits to main since this release
06e14da

Release Notes

Version 2.7.0 (November 15, 2023)

🌟 New Features

  1. Enhanced User Management

    • Implemented a new get_or_create_token endpoint for improved user authentication and management.
    • Added fingerprint-based user tracking for better user identification across sessions.
  2. Improved Error Handling

    • Enhanced error logging and handling throughout the application, especially in user management and token generation processes.
  3. Database Upgrades

    • Integrated Flask-Migrate for smoother database schema management and migrations.
    • Added new columns to the User model: fingerprint, last_ip, created_at, and last_token_refresh.
  4. Security Enhancements

    • Implemented Fernet encryption for sensitive data storage.
    • Added an ENCRYPTION_KEY environment variable for secure data handling.

🛠️ Improvements

  1. API Key Validation

    • Added checks to ensure all required API keys (CLAUDE, GEMINI, GPT, MISTRAL) are set in environment variables.
  2. Database Configuration

    • Improved database URL handling to support both PostgreSQL and SQLite.
    • Added automatic database URL modification for Heroku PostgreSQL compatibility.
  3. Logging Enhancements

    • Implemented more comprehensive logging throughout the application for better debugging and monitoring.
  4. Code Refactoring

    • Restructured the User and UserActivity models for improved data management.
    • Optimized the token generation and validation processes.

🐛 Bug Fixes

  1. Fixed issues with user creation and retrieval in concurrent scenarios.
  2. Resolved potential security vulnerabilities in token handling.

📚 Documentation

  • Updated README with detailed setup instructions, including environment variable configuration and database initialization steps.

🔧 DevOps

  • Updated requirements.txt to include all necessary dependencies, including Flask-Migrate.
  • Modified Procfile to ensure proper application startup on Heroku.

🔜 Coming Soon

  • Further optimizations for high-traffic scenarios.

For any questions or issues, please open an issue on the GitHub repository.