Repository navigation
Release Notes for Dinaank - Version 2.0.8: awesome_euclid 🎉
🚀 New Features
Enhanced Date Selector 🎨
- Background Color Customization: The DateSelector now supports customizable background colors, allowing developers to create visually appealing date pickers that match their application's theme.
- Implementation: You can set the background color using the
backgroundColorproperty in theDateSelectorOptionsinterface.
- Implementation: You can set the background color using the
Improved Date Handling 📅
- Robust Date Parsing: Enhanced date parsing capabilities ensure that various date formats are handled seamlessly, improving user experience and reducing errors.
- Time Picker Integration: The time picker functionality has been refined, allowing for smoother selection of time alongside dates.
🐛 Bug Fixes
- Fixed an issue where invalid dates were not being properly handled, leading to unexpected behavior in the date selection process.
⚡ Improvements
- Performance Optimization: The library size is now a lightweight 4.9kb gzipped, ensuring fast load times and minimal impact on application performance.
- User Experience Enhancements: Improved responsiveness of the date picker interface, making it more user-friendly on mobile devices.
🔄 Breaking Changes
- DateSelectorOptions Interface Update: The
DateSelectorOptionsinterface has been modified to include the newbackgroundColorproperty. Ensure to update your implementation accordingly:interface DateSelectorOptions { backgroundColor?: string; // New property for background color customization // ... other existing properties }
📦 Installation Instructions
You can install Dinaank via npm, yarn, or CDN:
Using npm:
npm install dinaankUsing yarn:
yarn add dinaankUsing CDN:
<script src="https://cdn.jsdelivr.net/npm/dinaank@2.0.8/dist/dinaank.min.js"></script>📈 Performance Metrics
- Gzipped Size: 4.9kb
- Zero Dependencies: Dinaank remains a zero-dependency library, ensuring easy integration without additional overhead.
🔒 Security Notes
- Ensure that any user input for date handling is validated to prevent potential security vulnerabilities, such as injection attacks.
🤝 Contributors
A big thank you to all contributors for their valuable input and feature requests that helped shape this release! Your feedback is essential in making Dinaank better.
📊 Calendar/Time Selection Flow
graph TD;
A[User Clicks Date Picker] --> B{Date Selected?}
B -- Yes --> C[Display Selected Date]
B -- No --> D[Show Calendar]
D --> E[User Selects Date]
E --> C
C --> F[User Clicks Time Picker]
F --> G{Time Selected?}
G -- Yes --> H[Display Selected Time]
G -- No --> I[Show Time Picker]
I --> F🎉 Conclusion
With this release, Dinaank continues to provide a fun and efficient way to handle date and time selection in your JavaScript/TypeScript applications. Enjoy the new features and happy coding! 🚀