Releases: SMAKSS/random-string
Releases · SMAKSS/random-string
Upgrade dependencies
Update keywords and description
v2.0.1 chore(core): update keywords and description
Migrate to typescript
feat(core): migrate to typescript Also, add dx tools
Migrate to typescript and enhance dx
Release Notes for random-string v2.0 🚀
We're excited to announce the release of randomString
v2.0! 🎉 This version includes some significant updates and optimizations that make generating random strings easier and more efficient. Here's what's new:
🎨 Enhanced API
- The function now accepts an object with
length
andallowedCharacters
as properties to make the API clearer and more flexible. 🌟
// Old way (v1.0)
randomString(10, 'abc123');
// New way (v2.0)
randomString({ length: 10, allowedCharacters: 'abc123' });
🛠️ Improved Performance
- We've optimized the string generation process, making it faster and more memory-efficient. ⚡
📦 Module Import Update
- For CommonJS users, make sure to append
.default
when requiring the module:
const randomString = require('@smakss/random-string').default;
🔍 Simplified Usage
- With default parameters, you can easily generate a random string without specifying any arguments:
randomString();
🧬 Default Length Randomization
- If
length
isn't provided, it will now be randomly selected between 1 and 20 to give you a varied and unpredictable string length. 🎲
📚 Updated Documentation
- The README has been updated to reflect all these changes, making it easier for you to integrate
randomString
into your projects. 📖
🙌 Contribution and Conduct
- As always, we welcome contributions. Check out CONTRIBUTING.md for how to get started. 🤝
- We've committed to making this project welcoming and inclusive to all. Our Code of Conduct outlines our expectations for participant behavior. 🤗
We appreciate your support and feedback on this new release. Give it a try and let us know what you think! 📢
chore: fix workflow and add CodeSandbox to readme
v1.2.4 chore: fix workflow and add CodeSandbox to readme