Skip to content

Releases: WaifuAPI/api

4.8.0

24 Nov 20:17
eaebd9f
Compare
Choose a tag to compare
4.8.0 Pre-release
Pre-release

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

10 Jul 19:32
a3b88a0
Compare
Choose a tag to compare

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

20 May 11:57
ef8da08
Compare
Choose a tag to compare

What's Changed

Features

Full Changelog: 4.5.14...4.6.0

4.5.15

20 Feb 15:25
ef8da08
Compare
Choose a tag to compare

What's Changed

Full Changelog: 4.5.14...4.5.15

4.5.14

05 Feb 10:59
a295e2f
Compare
Choose a tag to compare

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

10 Jan 19:58
3307aa1
Compare
Choose a tag to compare

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.

3.4.14

13 Jul 18:48
bf42ca0
Compare
Choose a tag to compare

What's Changed

  • Added base api redirect to docs by @kyrea in #49

Full Changelog: 3.4.13...3.4.14

3.4.13

05 Jul 06:06
de43268
Compare
Choose a tag to compare

What's Changed

  • Changed meta description and bumped the version by @kyrea in #48

Full Changelog: 3.4.12...3.4.13

3.4.12

04 Jun 20:05
1bb71ce
Compare
Choose a tag to compare

What's Changed

  • Staging by @kyrea in #45
  • Updated readme [no version change required] by @kyrea in #46
  • Fixed authorization failed error by @kyrea in #47

Full Changelog: 3.4.10...3.4.12

3.4.11

30 May 07:46
52c075a
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.4.9...3.4.11