Skip to content

2.0.1

Compare
Choose a tag to compare
@SrGobi SrGobi released this 01 Apr 18:40
· 11 commits to main since this release

OAuth Version 2.0.1 Update 🎉

Release Date: April 1, 2025
Maintainer: SrGobi

This update introduces significant changes to the project, including dependency updates, API adjustments, and structural improvements.

Note: The version 2.0.0 was already registered in the npm registry, so this release has been published as 2.0.1. The changes described below are identical to those intended for 2.0.0.


🚀 New Features and Improvements

Branch Separation

  • The project has been restructured into three separate branches:
    • main: Core functionality of the OAuth library.
    • docs: Documentation generation and hosting.
    • demo: Example implementation for testing and showcasing the library.

Updated Dependencies

  • @discordjs/collection: Updated from 0.1.6 to 2.1.1.
    • This update introduces breaking changes, such as replacing array with values for iterating over collections.
  • Other dependencies updated to their latest versions:
    • jsonwebtoken: ^9.0.2
    • phin: ^3.7.1

Removed Packages

Several packages have been removed to simplify the project and focus on core functionality.


📚 Documentation Improvements

  • Improved TypeDoc Configuration:
    • Documentation is now generated in a temporary directory (temp-docs) and moved to the docs branch without overwriting critical files like .git and CNAME.
  • Enhanced .gitignore:
    • Added exclusions for temporary files and directories to improve repository cleanliness.

🛠️ Code Improvements

Interface Updates

  • User Interface:
    • Added new fields: globalName, accentColor, publicFlags, and avatarDecorationData.
    • Updated existing fields to match the latest Discord API structure.
  • Guild Interface:
    • Adjusted to reflect the latest Discord API changes.
  • Connection Interface:
    • Added missing fields: two_way_link and visibility.

API Adjustments

  • Updated methods to align with the new @discordjs/collection API:
    • Replaced array with values for iterating over collections.
    • Ensured compatibility with stricter type definitions.

Performance Optimizations

  • Improved error handling and validation for API responses.
  • Refactored methods to ensure compatibility with updated dependencies.

💡 General Notes

This update introduces breaking changes due to the dependency updates and API adjustments. Developers using previous versions of the library should review the updated documentation and adjust their implementations accordingly.

Author: SrGobi
Version: 2.0.1

Happy coding! 🚀