Repository navigation
condescending_poitras
Release Notes for Dinaank - Version 2.0.2 🎉
Release Name: condescending_poitras
🚀 New Features
-
Enhanced Date Picker Functionality: The date picker now supports a more intuitive selection process, allowing users to easily navigate through months and years. This improvement enhances user experience when selecting dates. 📅
import { DatePicker } from 'dinaank'; const datePicker = new DatePicker({ onSelect: (date) => console.log(`Selected date: ${date}`), format: 'YYYY-MM-DD', });
-
Time Picker Integration: A new time picker feature has been added, allowing users to select both date and time seamlessly. This is particularly useful for applications requiring precise scheduling. ⏰
import { TimePicker } from 'dinaank'; const timePicker = new TimePicker({ onSelect: (time) => console.log(`Selected time: ${time}`), format: 'HH:mm', });
🐛 Fixes
- Bug Fixes in Date Handling: Resolved issues related to date parsing and formatting that could lead to incorrect date selections. This ensures that users can rely on accurate date inputs. 🔧
⚡ Improvements
-
Performance Optimization: The library size has been optimized to a lightweight 4.9kb gzipped, ensuring faster load times and better performance in web applications. 🚀
-
User Interface Enhancements: Improved the visual design of the calendar and time picker components, making them more user-friendly and visually appealing. 🎨
🔄 Breaking Changes
-
Updated DateSelectorOptions Interface: The
DateSelectorOptionsinterface has been modified to include new properties for time selection. Ensure to update your implementation accordingly:interface DateSelectorOptions { onSelect: (date: Date) => void; format: string; showTimePicker?: boolean; // New property }
📦 Installation Instructions
To install Dinaank, you can use npm, yarn, or include it via CDN:
-
Using npm:
npm install dinaank
-
Using yarn:
yarn add dinaank
-
Using CDN:
<script src="https://cdn.jsdelivr.net/npm/dinaank/dist/dinaank.min.js"></script>
🔒 Security Notes
- Date Handling Security: Ensure that any date inputs are validated to prevent potential security vulnerabilities, such as injection attacks. Always sanitize user inputs when dealing with date and time data.
🤝 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 these updates. 🙌
📊 Performance Metrics
- Library Size: 4.9kb gzipped
- Zero Dependencies: Dinaank remains a zero-dependency library, ensuring ease of integration without additional overhead.
📈 Visual Flow Diagrams
graph TD;
A[User Interaction] --> B{Select Date};
B -->|Click| C[Open Calendar];
C --> D[Choose Date];
D --> E[Confirm Selection];
E --> F[Display Selected Date];
A --> G{Select Time};
G -->|Click| H[Open Time Picker];
H --> I[Choose Time];
I --> J[Confirm Selection];
J --> K[Display Selected Time];Thank you for using Dinaank! We hope you enjoy the new features and improvements. Happy coding! 🎉