Skip to content

4.4.14

Compare
Choose a tag to compare
@kyrea kyrea released this 10 Jan 19:58
· 37 commits to production since this release
3307aa1

What's Changed

New Features

  • New Website: The API has been updated with a new website built using Next.js and Tailwind CSS
  • Secure Token Retrieval: Implemented a more secure method for obtaining tokens
  • Page Layouts: Introduced new page layouts for improved user experience.
  • Auto Join Discord Server: Users can now automatically join the Discord server through OAuth.
  • New API Endpoint: Added a new API endpoint structure using /api/v{version_number}/{endpoint}
  • Code Refactoring:
    • Replaced CommonJS require statements with ES6 import statements.
    • Updated module exports to use the ES6 export syntax.
    • Utilized arrow functions for concise and expressive code.
    • Addressed necessary adjustments for ES6 compatibility.
  • Enhanced Authorization and Rate-Limiting:
    • Comprehensive refactoring of authorization and rate-limit functions.
    • Overhauled rate-limiting mechanisms for better control and flexibility.
  • User Schema Updates:
    • Updated user schema for improved status tracking.
    • Refactored user schema to include detailed status_history for manual and automatic bans.
  • Query Filter for /waifu Endpoint:
    • Added a query filter to the /waifu endpoint, allowing filtering by character name or anime.
  • New .env Variables: Added new environment variables for configuration.

Code Changes

  • ES6 Codebase:
    • Replaced CommonJS with ES6 throughout the codebase.
    • Updated code to adhere to the latest JavaScript standards.
  • Function and Endpoint Updates:
    • Renamed functions for better clarity.
    • Changed default request limits and enhanced error messages.
    • Updated base endpoint response.
  • Authentication and Middleware:
    • Refactored authentication middleware for clarity and modularity.
  • Documentation and Comments:
    • Improved documentation for models, routes, and controllers.
    • Enhanced comments throughout the codebase.
  • Build and Dependency Management:
    • Added new builds and Gitignore configurations.
    • Updated package dependencies.
  • Website Changes:
    • Removed the website as it has been moved to another repository.
    • Updated endpoint URLs.

Bug Fixes and Other Changes

  • Various bug fixes and hotfixes provided by @kyrea.

Contributors

For more details, refer to the PR #51.