Skip to content

[v4.0.0]#51

Merged
a3ryk merged 89 commits into
productionfrom
v4
Jan 10, 2024
Merged

[v4.0.0]#51
a3ryk merged 89 commits into
productionfrom
v4

Conversation

@a3ryk
Copy link
Copy Markdown
Member

@a3ryk a3ryk commented Aug 8, 2023

Waifu.it v4.x.x

Note

This code is still under development, do not use it in production!

Important

Beta website [Hosted on Render]: https://beta.waifu.it/

Warning

Don't log into the beta website unless you know what you're doing

Changes

  • New website, Next.js, and Tailwind CSS
  • New secure way to obtain the token
  • New page layouts
  • Auto join discord server on oauth
  • New endpoint for APIs api.waifu.it
  • Replace CommonJS require statements with ES6 import statements.
  • Update module exports to use the ES6 export syntax.
  • Utilize arrow functions for concise and expressive code.
  • Address any necessary adjustments for ES6 compatibility.
  • Added Enhanced Authorization and Rate-Limiting.
    • Introduced comprehensive refactoring of authorization and rate-limit functions.
    • Overhauled rate-limiting mechanisms for better control and flexibility.
  • Update user schema for better status tracking
    • Refactor user schema to include detailed status_history for manual and automatic bans.
  • Added query filter to /waifu endpoint by using character name or anime
  • Added new .env variables
  • Renamed functions to better and easier names

@a3ryk a3ryk added documentation Improvements or additions to documentation enhancement New feature or request dependencies Pull requests that update a dependency file labels Aug 8, 2023
@a3ryk a3ryk self-assigned this Aug 8, 2023
@render
Copy link
Copy Markdown

render Bot commented Aug 8, 2023

@a3ryk a3ryk marked this pull request as draft September 6, 2023 07:31
@a3ryk a3ryk mentioned this pull request Dec 9, 2023
Comment thread src/controllers/v4/images/waifu.js Fixed
Comment thread src/controllers/v4/images/waifu.js Fixed
}

// Check if the user with the given _id exists
const userExists = await Users.exists({ _id: id });

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources

This query object depends on a [user-provided value](1).
@a3ryk a3ryk marked this pull request as ready for review January 10, 2024 14:19
@a3ryk a3ryk requested a review from NotKyoyo January 10, 2024 19:53
Copy link
Copy Markdown
Member

@NotKyoyo NotKyoyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@a3ryk a3ryk merged commit 3307aa1 into production Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants