We are excited to announce the release of Convert Numbers
version 2.1.0. This new version includes significant improvements in functionality and compatibility, ensuring a more robust and versatile experience for users.
What's New in 2.1.0
Enhanced Conversion Mechanism
- Dual Conversion Approach: Implemented a dual strategy for number conversion. For shorter strings or typical use cases, the function now employs a map-based approach for efficient and readable conversion. For longer strings, it seamlessly switches to a regular expression-based method, optimizing performance.
- Error Resilience: Added a try-catch block to gracefully handle any unexpected errors during conversion. This feature ensures the function's reliability across different environments and use cases.
Improved Compatibility
- Fallback Loop Iteration: In case of compatibility issues or errors with modern JavaScript features, the function now falls back to a basic
for-of
loop iteration. This change significantly enhances the function's compatibility with older JavaScript environments, ensuring consistent functionality across a broader range of browsers and platforms.
Other Improvements
- Codebase optimizations and minor bug fixes.
Bug Fixes
- Resolved minor bugs reported in the previous version.
- Enhanced error handling to prevent unexpected crashes.
Getting Started
To upgrade to Convert Numbers
version 2.1.0, use the following commands:
npm update @smakss/convert-numbers
# or
yarn upgrade @smakss/convert-numbers
Acknowledgements
A big thank you to our community of developers and contributors who have provided feedback and suggestions. Your insights were invaluable in making these improvements.
For more information, refer to our documentation.
We hope you enjoy using Convert Numbers
version 2.1.0 and look forward to your continued feedback and support!