2.0.1
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 as2.0.1
. The changes described below are identical to those intended for2.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 from0.1.6
to2.1.1
.- This update introduces breaking changes, such as replacing
array
withvalues
for iterating over collections.
- This update introduces breaking changes, such as replacing
- 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
andCNAME
.
- Documentation is now generated in a temporary directory (temp-docs) and moved to the docs branch without overwriting critical files like
- 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
, andavatarDecorationData
. - Updated existing fields to match the latest Discord API structure.
- Added new fields:
Guild
Interface:- Adjusted to reflect the latest Discord API changes.
Connection
Interface:- Added missing fields:
two_way_link
andvisibility
.
- Added missing fields:
API Adjustments
- Updated methods to align with the new
@discordjs/collection
API:- Replaced
array
withvalues
for iterating over collections. - Ensured compatibility with stricter type definitions.
- Replaced
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! 🚀