Repository navigation
friendly_shirley
Release Notes for Dinaank - Version 2.0.6 🎉
Release Name: friendly_shirley
Repository: theboringhumane/dinaank
Version: 2.0.6
🚀 New Features
Calendar Navigation Enhancements
- Type Attribute for Navigation Buttons: Added a
typeattribute to calendar navigation buttons to improve accessibility and ensure proper form behavior. This change enhances the user experience when navigating through months and years.
<Calendar>
<button type="button" onClick={goToPreviousMonth}>Previous</button>
<button type="button" onClick={goToNextMonth}>Next</button>
</Calendar>🐛 Bug Fixes
- Resolved issues with date selection not updating correctly when navigating between months. This fix ensures that the selected date remains consistent and accurately reflects the user's choice.
⚡ Improvements
- Performance Optimization: The library remains lightweight at 4.9kb gzipped, ensuring fast load times and minimal impact on application performance.
🔄 Breaking Changes
- DateSelectorOptions Interface Update: The
DateSelectorOptionsinterface has been modified to include new properties for enhanced customization. Ensure to update your implementations accordingly.
interface DateSelectorOptions {
// Existing properties...
showWeekNumbers?: boolean; // New property to toggle week numbers display
}📦 Installation Instructions
You can install Dinaank using npm, yarn, or via CDN:
Using npm:
npm install dinaankUsing yarn:
yarn add dinaankUsing CDN:
<script src="https://cdn.jsdelivr.net/npm/dinaank/dist/dinaank.min.js"></script>📊 Performance Metrics
- Size: 4.9kb gzipped
- Zero Dependencies: Dinaank remains a zero-dependency library, ensuring easy integration without additional overhead.
🔒 Security Notes
- Ensure that any date handling in your application properly validates user input to prevent potential security vulnerabilities, such as date manipulation attacks.
🤝 Contributors
A big thank you to all contributors for their efforts in enhancing the date/time selection features! Special thanks to those who submitted feature requests that inspired this release.
📈 Visualizing Date/Time Selection Flow
graph TD;
A[User Clicks Calendar] --> B{Select Date};
B -->|Valid Date| C[Update Selected Date];
B -->|Invalid Date| D[Show Error];
C --> E[Display Selected Date];🎨 Code Snippet for Date Picker Usage
Here’s a quick example of how to implement the date picker in your project:
import { DatePicker } from 'dinaank';
const App = () => {
const handleDateChange = (date) => {
console.log("Selected Date:", date);
};
return (
<div>
<h1>Select a Date 📅</h1>
<DatePicker onChange={handleDateChange} />
</div>
);
};Thank you for using Dinaank! We hope you enjoy the new features and improvements. Happy coding! 🎉