Releases: WaifuAPI/api
Releases · WaifuAPI/api
4.10.0
📦 Release v4.10.0
🚀 New Features
-
Notifications System
- Added notification modals, routes, and middlewares.
- Introduced greeting notifications on account creation.
-
Pages Module
- Implemented page routes, middlewares, and modal definitions.
-
Rewards System
- Added schema, routes, and endpoint for creating and redeeming rewards.
-
Stats & Logging Enhancements
- Updated stats schema to support a new structure.
- Introduced new routes for stats tracking.
- Logger improvements: added token reset logging, failed logger, and new log formatting.
-
Authentication
- Added basic auth flow and 401 status handling.
- Included username field for user schema.
🐛 Bug Fixes
- Fixed an issue where a database query was built from user-controlled sources.
- Addressed multiple minor bugs and logging-related issues.
- Fixed endpoint logic and improved URL identification.
🧹 Refactors & Cleanup
- Refactored reward API and uncommented key auth checks.
- Removed unnecessary or redundant logging from endpoints.
- Ignored
package-lock.jsonfor cleaner dependency management. - Updated internal references (e.g.,
_idfromsystemstatstosystem,sudotosystem).
🔧 Other Improvements
- Added message support to services.
- Added an internal key to support new functionalities.
- Improved internal structure and consistency of API logic.
Full Changelog: 4.9.1...4.10.0
4.9.1
What's Changed
🚀 New Features
- User Action Processing: Added support for handling the following actions:
addquotaremovequotabanunban
- Membership Endpoint: Introduced a new API endpoint for managing memberships.
- System Configuration Model: Added a system configuration model for centralized settings.
🔧 Improvements
- Updated Mongoose: Upgraded to the latest version for better performance and compatibility.
- Comment Enhancements: Improved comments for better code clarity.
- Token Handling: Removed
updateUserTokenas part of code cleanup.
🔢 Versioning
- Version Bump: Incremented version number to reflect the latest updates.
4.8.0
What's Changed
Refactor user session handling and update endpoints to v4 API.
- Added professional JSDoc comments for better code documentation and clarity.
- Updated function names to better reflect their purpose:
processUserSessionAndUpdate: Handles user creation, logging, and token updates.getUser: Fetches user details and updates access tokens if provided.
- Migrated the internal API to use the v4 API version instead of v3.
- Removed
useCreateIndexanduseFindAndModifyfrom Mongoose connection options
as they are no longer supported in Mongoose v6+. - Ensured compatibility with modern Mongoose connection defaults.
- Improved error handling and validation messages for enhanced API robustness.
Full Changelog: 4.7.0...4.8.0
4.7.0
What's Changed
- Implemented a fix to use the current date without triggering a version update. (#59 by @kyrea)
- Added a route for internal statistics and status updates. (Commit)
- Introduced
req_consumedto track exhausted quotas for better usage monitoring. (Commit) - Implemented endpoint enablement check (limited to token-based endpoints). (Commit)
Improvements:
- Clarified each change's purpose and impact.
- Included relevant GitHub links for easy reference to commits and pull requests.
- Made descriptions concise while maintaining clarity about the changes made.
Full Changelog: 4.6.0...4.7.0
4.6.0
What's Changed
- Fixed waifu query using anime (Commit d12f9d9)
- Fixed "uwuify is not a function" (Commit a9fb0f0)
- Fixed "owoify is not a function" (Commit badb090)
- Fixed "uvuify is not a function" (Commit dbd18cf)
Features
- Added feature to query quotes using anime name (Commit commit_sha)
Full Changelog: 4.5.14...4.6.0
4.5.15
4.5.14
What's Changed
- Added a quick fix and changed access_token to accessToken by @kyrea in #53
- fix: destructure 'access-token' in headers by @kyrea in #54
- Hot fix added quote route [no version change required] by @kyrea in #55
- Added husbando endpoint
- Updated waifu endpoint to support newer data
- Staging by @kyrea in #56
Full Changelog: 4.4.14...4.5.14
4.4.14
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_historyfor 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.