Releases: WaifuAPI/api
Releases · WaifuAPI/api
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 code to use the v4 API version instead of v3.
- 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_consumed
to 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_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.