Skip to content

Migrate to typescript and enhance DX tools

Compare
Choose a tag to compare
@SMAKSS SMAKSS released this 04 Nov 16:22
· 15 commits to master since this release
14c6884

🚀 Release Notes - @smakss/random-array-element - Version 2.0.0

📢 Announcements

🎉 We're thrilled to unveil the latest version of @smakss/random-array-element. This update brings substantial enhancements, TypeScript support, and an improved developer experience.

✨ New Features

  • 🔧 TypeScript Support: The codebase has transitioned to TypeScript for enhanced type safety and superior TypeScript user support.
  • 🎲 Random Element Selection without Repetition: We've upgraded the random selection mechanism to offer unique elements until all have been chosen, followed by an automatic reset.
  • 🛠️ Developer Experience: Introducing new developer tools and a bundler to simplify the development lifecycle and optimize package distribution.

🚀 Enhancements

  • ⚡ Optimized Algorithm: We've fine-tuned our function for increased performance and reduced memory overhead.
  • 📚 JSDoc Comments: Comprehensive JSDoc annotations are now included, providing inline documentation and illustrative examples.
  • 👓 Human-readable Variables: We've revamped our code using descriptive variable names for improved clarity and ease of maintenance.

🐛 Fixes

  • 🔨 Stability Improvements: Multiple minor adjustments have been applied to boost the overall robustness of the package.

💥 Breaking Changes

  • 🚨 Due to the TypeScript migration, updates to import statements may be necessary for TypeScript environments.

🧭 Migration Notes

🔁 For those transitioning from an earlier version, please update your import statements to align with the TypeScript conversion. For example:

import randomArrayElement from '@smakss/random-array-element';

📦 How to Get It

👇 To install the latest iteration, execute:

npm i @smakss/random-array-element@latest

or, for Yarn users:

yarn add @smakss/random-array-element@latest