Releases: SrGobi/canvacard
6.0.4
Canvacard Version 6.0.4 Update 🎉
Release Date: December 2, 2024
Maintainer: SrGobi
This is a minor update that focuses on refining functionality, enhancing documentation, and improving user experience. Below is a summary of the changes included in version 6.0.4:
🚀 New Features and Enhancements
Font Registration
- Added a
registerFont
function:- Enables registering custom fonts using the
@napi-rs/canvas
library. - Now available in both CommonJS and TypeScript with added typings.
- Example usage for CommonJS, ESModule, and TypeScript included in the documentation.
- Enables registering custom fonts using the
📚 Documentation Updates
- Improved README.md:
- Added comprehensive examples showcasing how to use the
registerFont
function in CommonJS and TypeScript. - Clarified usage for registering fonts with paths and aliases.
- Added comprehensive examples showcasing how to use the
🛠️ Code Improvements
- Logging Removal:
- Removed unnecessary console logs when registering fonts, ensuring cleaner output.
- Dependency Updates:
- Updated dependencies in
package.json
to the latest stable versions for improved performance and security.
- Updated dependencies in
💡 General Notes
This update is a quality-of-life improvement designed to make it easier for developers to work with Canvacard, especially when customizing fonts for their projects. We encourage feedback to continue refining the package.
Author: SrGobi
Version: 6.0.4
Happy coding! 🚀
6.0.3
Canvacard Version 6.0.3 Update
This update addresses significant bugs in previous versions (6.0.0, 6.0.1, and 6.0.2) and improves functionality and code organization. The most notable changes are detailed below:
New Features and Improvements
Welcome and Goodbye Cards
- Renamed Class: The
Welcomer
class has been renamed toWelcomeLeave
for clarity. - Updated Settings: The visual aspects of the cards have been improved, including changes to the background, colors, and text.
- Removed Unnecessary Classes: The
BaseCard.js
file and its corresponding type definition have been removed.
Rank Cards
- Refactoring: We now have a new card built from scratch using new functions in the utilities.
Error Handling
- APIError class: Implemented to improve error handling in methods and functions.
- Improved Comments: Comments have been updated to properly reflect return values and exceptions.
API and Data
- New API: Implemented to fetch new data and improve error handling.
- Function Refactoring: Several functions have been updated to improve performance and usability.
Images and Resources
- Updated URLs: Image and flag URLs have been updated to reflect the new data structure.
- Image Conversion: Conversion functions now return images in PNG format, improving compatibility.
General Refactoring
- Refactored Classes: The
Assets
class has been renamed toAssetsFactory
, improving code organization. - Unnecessary Code Removal: Cleaned up multiple files and dependencies that are not currently used.
Documentation
- Documentation Update: Improved project documentation, including usage examples for classes.
- Documentation Generation: Added a script to facilitate generating documentation using JSDoc.
Removals
- Assets Removal: Assets have been moved to a separate branch to avoid overhead in installing the package.
- Documentation Removal: Documentation has been moved to a separate branch to avoid overhead in installing the package.
- Testing Removal: Testing has been moved to a separate branch to avoid overhead in installing the package.
Final Notes
With this 6.0.3 release, the above issues are expected to be resolved, improving the stability and overall functionality of Canvacard. We appreciate any feedback on this update.