💡 Cultivating Precision, One Function at a Time!
🌟 Major Feature: Safe Functions
Now, all functions return errors and follow Go conventions (enforcing the "must" pattern). This ensures you never miss a failure in your template. By default, functions will stop rendering if an error occurs, providing a more predictable and reliable experience. Safe Functions, however, allow you to bypass this strict error handling, letting the template continue rendering even when an error is encountered. This offers flexibility when strict error enforcement is not necessary. See (@42atomys) PR 65.
Read more about safe functions on official documentation.
🌟 Major Feature: Function Call Notices
Function Call Notices provide feedback or warnings when specific functions are executed, alerting users to potential side effects or special behaviors (like deprecations). This helps ensure more informed decisions during template rendering. See (@42atomys) PR 58.
Key Benefits:
- User Awareness: Alerts users to important function behavior, such as deprecations or critical warnings, enhancing their understanding without risking breaking an end user's template.
- Easier Debugging: Notices highlight issues in real-time, making it simpler to trace and resolve problems during execution.
- Improved Control: Users gain better insight into function calls, allowing for more deliberate handling of key actions in templates.
Read more about notices on official documentation.
🚀 New Features
- String Capitalization Functions: Added new functions to capitalize strings, fully supporting Unicode and Latin runes. See (@42atomys) PR 62 and PR 63.
- SHA512 Checksum in Registry: Introduced
sha512sum
to the checksum registry, complete with informative notices. See (@42atomys) PR 59. hasField
for Structs: A newhasField
method to check fields in structs is now available. See (@mbezhanov) PR 61.
🛠 Fixes & Improvements
- Dropped v0.1 Error Handling: Removed legacy error handling until a safe/must decision is finalized in the RFC. See (@42atomys) PR 52.
- Documentation Updates: Added function signatures to the conventions, making it easier to understand their usage. See (@42atomys) PR 64.
🐛 Bug Fixes
- Unicode Capitalization Fix: Resolved issues with string capitalization involving Unicode and Latin runes. See (@42atomys) PR 63.
- Release Candidate Fixes: Addressed problems with v0.6.0-rc.1 to ensure stability and performance. See (@42atomys) PR 68.
💚 Contributors
- @mbezhanov made their first contribution in #61
🌱🌾⭐ Hit that star button like a space explorer hitting hyperdrive! Stay on board for our next release! 🚀